strerror_r-posix: Fixes for MSVC 14.
[gnulib.git] / ChangeLog
blobd641fb7841b12e0e46b6a1f1c24f47e058c60162
1 2017-04-29  Bruno Haible  <bruno@clisp.org>
3         strerror_r-posix: Fixes for MSVC 14.
4         * lib/strerror_r.c: Include <stdarg.h>.
5         (strerror_r): Provide error messages for errno values 100...140.
6         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
8 2017-04-28  Bruno Haible  <bruno@clisp.org>
10         noreturn: New module.
11         * lib/noreturn.h: New file.
12         * modules/noreturn: New file.
13         * tests/test-noreturn.c: New file.
14         * modules/noreturn-tests: New file.
15         * tests/test-noreturn-c++.cc: New file.
16         * modules/noreturn-c++-tests: New file.
18 2017-04-27  Bruno Haible  <bruno@clisp.org>
20         wctype-h: Fix compilation error with the original mingw.org mingw.
21         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
22         HAVE_CRTDEFS_H.
23         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
24         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
25         <stddef.h> instead.
26         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
28 2017-04-26  Pádraig Brady  <P@draigBrady.com>
30         nap.h: Fix compilation on non windows platforms
31         * tests/nap.h: Move misplaced endif.
33 2017-04-26  Pádraig Brady  <P@draigBrady.com>
34         and Paul Eggert  <eggert@cs.ucla.edu>
36         time_rz: fix heap buffer overflow vulnerability
37         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
38         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
39         whether there is enough buffer space available, thus avoiding
40         the problematic promotion of signed to unsigned causing an invalid
41         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
42         the start of the buffer.
43         * tests/test-parse-datetime.c (main): Add a test case written by
44         Paul Eggert, which overwrites enough of the heap so that
45         standard glibc will fail with "free(): invalid pointer"
46         without the patch applied.
48 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
50         xalloc: add missing integer overflow check
51         * lib/xalloc.h (x2nrealloc): Also check for multiplication
52         overflow when P is null.
54 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56         parse-datetime: make it standalone
57         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
58         (_GL_ATTRIBUTE_FORMAT): New macro.
59         These are needed to get './gnulib-tool --test parse-datetime' to work.
61 2017-04-23  Bruno Haible  <bruno@clisp.org>
63         nap.h: Port to native Windows.
64         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
65         use nap_fd instead. On native Windows, close and reopen nap_fd.
66         (nap_works): Don't compare the ctimes, because on native Windows, these
67         are the creation times.
68         (nap): Update.
70 2017-04-23  Bruno Haible  <bruno@clisp.org>
72         nap.h: Fix logic.
73         * tests/nap.h (nap): Avoid signed integer overflow in loop.
75 2017-04-23  Bruno Haible  <bruno@clisp.org>
77         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
78         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
79         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
80         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
81         * lib/argp-help.c (__argp_failure): Likewise.
83 2017-04-23  Bruno Haible  <bruno@clisp.org>
85         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
86         * m4/strerror_r.m4: Revert changes since 2016-10-16.
87         * lib/strerror_r.c: Likewise.
89 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
91         Target a C99 subset, not a C89 subset
92         For many years Gnulib has targeted C89 and has resisted using C99
93         features, as some Gnulib-using programs still wanted to target
94         C89.  As this no longer seems to be the case, relax the porting
95         requirements to allow some C99 features.  This is merely a change
96         to the documentation, to give other Gnulib developers a chance to
97         weigh in on the topic.
98         * doc/extern-inline.texi (extern inline):
99         * doc/gnulib-readme.texi (Portability guidelines):
100         * doc/gnulib-tool.texi (Initial import):
101         * doc/gnulib.texi (Header files):
102         Modernize to talk about C99 and C11 instead of C89 and C99.
103         * doc/gnulib-readme.texi (Portability guidelines):
104         Now a section, not merely a subsection, so that it
105         can be split up.  Modernize a bit.
106         (C language versions, C99 features assumed)
107         (C99 features avoided):
108         New sections.
110 2017-04-23  Bruno Haible  <bruno@clisp.org>
112         doc: New section "Modules that modify the way other modules work".
113         * doc/gnulib.texi (Modules that modify the way other modules work): New
114         section.
116 2017-04-23  Bruno Haible  <bruno@clisp.org>
118         stat-time: Update comments.
119         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
120         * tests/test-utimens-common.h: Add reference regarding st_ctime on
121         Windows.
123 2017-04-01  Bruno Haible  <bruno@clisp.org>
125         glob: Fix more memory leaks.
126         * lib/glob.c (glob): Free allocated memory before returning.
127         Reported by Coverity via Tim Rühsen.
129 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
131         poll: improve fast check for out-of-range NFD
132         * lib/poll.c: Do not include intprops.h.
133         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
134         * modules/poll (Depends-on): Remove intprops.
136         ftoastr: cite a newer paper
137         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
138         instead of Loitsch 2010.
140 2017-04-22  Bruno Haible  <bruno@clisp.org>
142         poll: Enable argument check also in the Windows implementation.
143         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
144         Reported by Paul Eggert.
146 2017-04-22  Bruno Haible  <bruno@clisp.org>
148         getlogin_r: Work around bug in Mac OS X 10.12.
149         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
150         bug.
151         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
152         given size minus 1, call getlogin_r a second time, on a larger buffer.
153         * modules/getlogin_r (Depends-on): Add malloca.
154         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
156 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
158         parse-datetime: fix %z and prefer signed int
159         %z problem reported by Pádraig Brady in:
160         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00103.html
161         While fixing it, I decided to prefer signed ints to size_t, as
162         they are less error-prone (e.g., ubsan catches overflow).
163         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
164         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
165         counts, since signed integers make for better debugging.
166         (date): Don’t assume %z works in printf formats.
167         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
168         sizes of buffers known to be small, e.g., because we’re using snprintf.
169         (parse_datetime2): Simplify call to debug_mktime_not_ok.
171 2017-04-22  Bruno Haible  <bruno@clisp.org>
173         *printf: Work around rounding bug on Mac OS X.
174         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
175         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
176         Mac OS X and FreeBSD.
177         * doc/glibc-functions/*printf.texi: Likewise.
179 2017-04-22  Bruno Haible  <bruno@clisp.org>
181         vasnprintf tests: Avoid warnings.
182         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
183         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
184         test.
186 2017-04-22  Bruno Haible  <bruno@clisp.org>
188         sys_file tests: Avoid warning.
189         * tests/test-sys_file.c (main): Add a default clause to the switch
190         statement.
192 2017-04-22  Bruno Haible  <bruno@clisp.org>
194         sethostname: Update doc.
195         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
196         Mac OS X.
198 2017-04-22  Bruno Haible  <bruno@clisp.org>
200         quotearg tests: Avoid warnings.
201         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
202         false.
204 2017-04-22  Bruno Haible  <bruno@clisp.org>
206         poll: Enable argument check.
207         * lib/poll.c: Include intprops.h.
208         (poll): Check value of nfd correctly.
209         * modules/poll (Depends-on): Add intprops.
211 2017-04-22  Bruno Haible  <bruno@clisp.org>
213         get-rusage-data: Avoid warnings on Mac OS X.
214         * lib/get-rusage-data.c: On Mac OS X, don't define
215         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
216         (get_rusage_data) [Mac OS X]: Just return 0.
218 2017-04-22  Bruno Haible  <bruno@clisp.org>
220         xbinary-io: Fix build error.
221         * modules/xbinary-io (Depends-on): Add gettext-h.
222         * lib/xbinary-io.c: Include gettext.h and define _().
223         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
224         <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00089.html>.
226 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
228         parse-datetime: overflow and debug cleanups
229         This long patch was triggered by this bug report from Ruediger Meier:
230         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00028.html
231         I fixed the bug he noted, then found some others nearby, and then
232         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
233         up some of the code to follow GNU standards while I was at it.
234         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
235         use c_isdigit.
236         (EPOCH_YEAR): Remove; unused.
237         (TM_YEAR_BASE): Now an enum rather than a macro.
238         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
239         time zone offset, since timezones now are in terms of seconds and
240         not minutes.
241         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
242         appropriate.  Verify that intmax_t is wide enough.
243         (time_overflow, time_zone_str): New functions, used to deal
244         more reliably with overflow.
245         (dbg_printf): Add printf attribute, to help catch integer width errors.
246         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
247         (%union, to_hour, yylex, parse_datetime2):
248         Use intmax_t instead of long int and/or long_time_t.
249         All uses changed.
250         (DBGBUFSIZE): Move earlier.
251         (relative_time, set_hhmmss, parser_control):
252         Just use int for nanoseconds and for time zones; that’s wide enough.
253         (parser_control): Use bool for members like year_seen that can
254         be booleans instead of counters.  All uses changed.
255         Remove debug_default_input_timezone; no longer needed.
256         All uses removed.
257         (apply_relative_time): Return a bool overflow flag.
258         All uses changed to check for overflow.
259         (apply_relative_time, zone, date, relunit, relunit_snumber)
260         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
261         Check for integer overflow portably.
262         (str_days): Use just int for N, as it’s wide enough.
263         Prefer 2D char arrays to arrays of char * when it looks like
264         2D is a win on typical platforms.
265         Prefer snprintf to strncpy/strncat, for simplicity;
266         all buffers are smaller than INT_MAX so this is safe.
267         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
268         (debug_print_current_time): Don’t assume tv_nsec is of type long,
269         as this is not true on x32.  Output "." before any nanoseconds.
270         (debug_print_current_time, parse_datetime2):
271         Output local zones using a more-consistent format.
272         (debug_print_current_time, date, parse_datetime2):
273         (main) [TEST]:
274         Don’t assume time_t is the same width as long.
275         (print_rel_part): New function, replacing ...
276         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
277         (debug_print_relative_time): Use bool for boolean.
278         (local_zone): dsts_seen now counts only tDST instances.
279         (date): Fix printf of size_t to use %z.  Do not assume numeric
280         tokens have negative values merely because the context suggests
281         a syntax with "-" separating tokens.
282         (time_zone_hhmm): Return bool success indicator, which checks for
283         overflow.  Store result into PC->time_zone instead.  All callers
284         changed.
285         (tm_year_str): New function.  Return a bool success indicator and
286         store the result into a buffer.  All callers changed.  Output the
287         numerically correct string even if adding 1900 to the year would
288         overflow.
289         (to_tm_year): New function, replacing the old to_year.  All
290         callers changed.
291         (tm_diff): Sync with glibc.
292         (lookup_word): Use to_uchar instead of doing it by hand.
293         (TZBUFSIZE): Now local to the only function that needs it.
294         (debug_strfdatetime): Simplify now that time zones are int seconds.
295         (debug_strfdate): Work even if tm_year + 1900 would overflow.
296         (get_effective_timezone): Remove.  All uses removed.
297         (parse_datetime2): Use fprintf in pieces instead of snprintfing
298         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
299         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
300         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
301         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
302         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
303         * modules/parse-datetime (Depends-on): Add inttypes.
305 2017-04-21  Bruno Haible  <bruno@clisp.org>
307         gettext-h: Avoid -Wundef warning.
308         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
309         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
310         <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00022.html>.
312 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
314         error: Avoid "function declaration isn't a prototype" warning.
315         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
317 2017-04-21  Bruno Haible  <bruno@clisp.org>
319         vasnprintf: Fix for MSVC 14.
320         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
321         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
322         of !HAVE_SNPRINTF_RETVAL_C99.
324 2017-04-21  Bruno Haible  <bruno@clisp.org>
326         mbrtowc tests: Fix test failures on MSVC 14.
327         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
328         behaviour for invalid input.
330 2017-04-21  Bruno Haible  <bruno@clisp.org>
332         mbsinit: Fix for MSVC 14.
333         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
334         implementation that is in sync with mbrtowc.c. On other platforms, use
335         an adequate ad-hoc implementation.
337 2017-04-21  Bruno Haible  <bruno@clisp.org>
339         Fix test-mbrtowc5.sh failure on native Windows.
340         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
341         "C".
343 2017-04-21  Bruno Haible  <bruno@clisp.org>
345         Avoid accidental use of native Windows APIs on Cygwin.
346         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
347         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
348         * lib/localename.c (WINDOWS_NATIVE): Likewise.
350 2017-04-20  Bruno Haible  <bruno@clisp.org>
352         Remove red warnings from the generated MODULES.html.
353         * modules/fcntl (Description): Disambiguate function references.
354         * modules/getcwd-lgpl (Description): Likewise.
355         * modules/hostent (Description): Likewise.
356         * modules/servent (Description): Likewise.
357         * modules/tempname (Description): Likewise.
359 2017-04-20  Bruno Haible  <bruno@clisp.org>
361         verify tests: Fix spurious failure with parallel make.
362         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
363         EXTRA_PROGRAMS.
364         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
365         * tests/test-verify-try.c: New file.
366         * modules/verify-tests (Files): Add it.
367         (EXTRA_PROGRAMS): Add test-verify-try.
368         (MOSTLYCLEANFILES): Update accordingly.
369         Reported by Adam James Stewart <ajstewart@anl.gov>.
371 2017-04-18  Bruno Haible  <bruno@clisp.org>
373         vma-iter: Fix compilation error on Solaris 7.
374         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
375         like on IRIX, OSF/1.
376         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
378 2017-04-18  Bruno Haible  <bruno@clisp.org>
380         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
381         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
382         included.
383         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
384         <sys/procfs.h>.
385         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
386         <sys/procfs.h> cannot be included.
387         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
389 2017-04-18  Bruno Haible  <bruno@clisp.org>
391         getopt-gnu: Add comments.
392         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
393         * modules/getopt-gnu (configure.ac): Likewise.
395 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
397         regex: port better to Solaris 10
398         Solaris 10 <locale.h> includes <libintl.h>, which #defines
399         gettext, and this causes a double #define.
400         Problem reported by Gavin Smith in:
401         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00056.html
402         * lib/regex_internal.h (gettext): #undef before #defining.
404 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
406         intprops: improve comments
407         * lib/intprops.h: Improve and shorten commentary.
408         For the record, if we ever run into a pedantic compiler that
409         behaves differently from GCC when converting an out-of-range value
410         to a signed integer, we can work around the problem with something
411         like the following code, where UCT is the signed counterpart of T
412         (UCT is sometimes narrower than UT) and all callers are changed
413         accordingly:
414         #if __SUNPRO_C <= 0x5120
415         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
416            ((t) ((ut) (a) op (ut) (b)))
417         #else
418         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
419            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
420             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
421                + TYPE_MINIMUM (t)) \
422             : (t) (uct) ((ut) (a) op (ut) (b)))
423         #endif
425 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
427         intprops: try to avoid tickling similar bugs
428         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
429         needs to be the same width as T; it can be wider.
430         Change callers so that UT is at least as wide as unsigned int,
431         as I suspect that this is less likely to run into compiler bugs.
433         intprops: port to Oracle Studio 12.3 x86
434         Problem reported by Gavin Smith in:
435         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00049.html
436         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
437         Convert unsigned to signed via the usual rather than the standard way,
438         to avoid a compiler bug in Oracle Studio 12.3 x86.
440 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
442         getopt: prefer - to _ in new file names
443         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
444         * lib/getopt-core.h: Rename from lib/getopt_core.h.
445         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
446         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
447         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
448         All uses changed.
450         getopt: port recent getopt changes to macOS
451         Problem reported by Harald Maier (Bug#26398).
452         The macOS C compiler uses __nonnull for its own purposes and that
453         clashes with glibc's __nonnull.
454         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
455         * lib/getopt_cdefs.in.h (__nonnull): Remove.
456         * lib/getopt_core.h (getopt):
457         * lib/getopt_ext.h (getopt_long, getopt_long_only):
458         Use _GL_ARG_NONNULL, not __nonnull.
459         * lib/unistd.in.h: Move snippet hooks to before where the getopt
460         .h files are included, so that _GL_ARG_NONNULL is defined in time.
461         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
462         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
464 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
466         getopt-gnu: omit some duplicate code
467         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
468         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
469         gnulib-tool already does this.
470         * modules/getopt-gnu (configure.ac): Omit code duplicated from
471         getopt-posix, which we depend on.
473         getopt-posix: use angle-bracket include
474         * lib/getopt1.c: Include <config.h>, not "config.h".
476 2017-04-06  Zack Weinberg  <zackw@panix.com>
478         getopt: annotate files with relationship to glibc
480         As the final act in this patchset, adjust the message at the top of
481         each file to indicate which files are synced with glibc.  (This has
482         already been done for most of the headers.)
484         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
485         Mention in top-of-file boilerplate that these files are shared
486         between glibc and gnulib.
489         getopt: split up getopt.in.h and eliminate __need_getopt
491         Over in glibc, all of the __need macros are being phased out in favor
492         of small headers that declare only the necessary components, as this
493         is much simpler and less prone to bugs.  As getopt is shared with
494         glibc, gnulib needs to do the same for __need_getopt.
496         __need_getopt is misnamed; what it really means is "we want only the
497         getopt features specified in POSIX, not the GNU extensions".  glibc
498         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
499         these files can be shared verbatim with gnulib.  The portability
500         wrapper, on the other hand, they have renounced altogether; glibc's
501         getopt.h will no longer be shared with gnulib at all.  In exchange,
502         certain glibc-specific quirks (having to do with __posix_getopt) no
503         longer need appear in gnulib's headers at all.
505         This patch merges getopt_core.h and getopt_ext.h from glibc, and
506         splits up the current gnulib-side portability wrapper into three
507         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
508         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
509         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
510         unistd.in.h just use them.  All new files are clearly marked with
511         whether they are shared with glibc.
513         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
514         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
515         with glibc, and ...
516         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
517         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
518         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
519         instead of defining __need_getopt and including the full getopt.h.
521         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
522         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
523         * modules/getopt-posix (Files): Add new headers and sort list.
524         (Depends-on): No longer need snippet/arg-nonnull.
525         (Makefile.am): Generate getopt_cdefs.h.
528         getopt: better handling of ambiguous options
530         glibc's getopt uses alloca to construct a linked list of possibilities
531         for an "ambiguous" long option.  In gnulib, malloc should be used
532         instead.  Providing for both cases complicates things a fair bit.
534         This patch rewrites ambiguous-option handling to use a boolean vector
535         instead of a linked list.  There is then only one allocation that
536         might need freeing; in glibc it can honor __libc_use_alloca as usual,
537         and in gnulib we define __libc_use_alloca to always be false, so we
538         don't need ifdefs in the middle of the function.  This should also be
539         slightly more efficient in the normal case of long options being fully
540         spelled out -- I think most people aren't even aware they _can_
541         sometimes abbreviate long options.
543         One interesting consequence is that the list of possibilities is now
544         printed in exactly the order they appear in the list of long options,
545         instead of the first possibility being shuffled to the end.
547         (The patch looks bigger than it really is because there's a fair bit
548         of reindentation and code rearrangement.)
550         * lib/getopt.c: When used standalone, define __libc_use_alloca
551         as always false and alloca to abort if called.
552         (process_long_option): Rewrite handling of ambiguous long options
553         to use a single boolean vector, not a linked list; use
554         __libc_use_alloca to decide whether to allocate this using alloca.
557         getopt: refactor long-option handling
559         There were two copies of the bulk of the code to handle long options.
560         Now there is only one.
562         This change temporarily removes the logic to avoid using alloca when
563         standalone; the next patch in the series will restore it.
565         * lib/getopt.c (process_long_option): New function split out
566         from _getopt_internal_r.
567         (_getopt_internal_r): Replace both copies of the long-option
568         processing code with calls to process_long_option.
571         getopt: tidy up _getopt_initialize a bit
573         _getopt_data.__posixly_correct is completely redundant to
574         _getopt_data.__ordering, and some work that logically belongs in
575         _getopt_initialize was being done by _getopt_internal_r, making the
576         code harder to understand.
578         As a side effect, getenv will no longer be called if the first
579         character of the options string is '+' or '-', which is probably a
580         Good Thing.  (Perhaps we should have a flag character that
581         specifically asks for the permutation behavior?)
583         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
584         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
585         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
588         getopt: merge from glibc: repetition reduction
590         The definitions of the entry point functions 'getopt' and
591         '__posix_getopt' can be made substantially less repetitive with a
592         helper macro.
594         While I was merging the const-correctness changes from gnulib into
595         glibc I noticed there are still some unnecessary casts in
596         _getopt_internal_r.
598         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
599         a macro.  Consistently cast 'argv' to 'char **' when calling
600         _getopt_internal.
601         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
604         getopt: clean up error reporting
606         getopt can print a whole bunch of error messages, and when used
607         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
608         cancellation point and getopt isn't, and also applying fprintf to a
609         stream in wide-character mode is not allowed.  So every single error
610         reporting case has an #ifdef _LIBC block in which it calls internal
611         libc functions instead.  The counterpart patch series in glibc makes
612         it possible to simplify all of that down to a set of #defines at the
613         top of the file; core code is written as if it is safe to just call
614         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
615         call any *other* stdio functions.)
617         * lib/getopt.c: When _LIBC is defined, define fprintf to
618         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
619         to _IO_funlockfile.  When neither _LIBC nor
620         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
621         funlockfile as no-ops.
622         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
623         standalone error-printing code can now be used for libc as well.
624         Add an flockfile/funlockfile pair around one case where the error
625         message is printed in several chunks.  Don't use fputc.
628         getopt: fix fencepost error in ambiguous-W-option handling
630         getopt_long contains an undocumented (AFAICT) feature in which, if you
631         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
632         treated as equivalent to '--foo'.  This is implemented with a partial
633         second copy of the code for handling long options, and that code
634         increments optind one too many times when recovering from an ambiguous
635         abbreviated option, which can cause the main loop to walk past the end
636         of argv and crash.
638         I discovered this while writing a test case that tries to exercise all
639         of getopt's error reporting paths; I wouldn't be surprised to learn
640         that this feature is never used by real applications.
642         * lib/getopt.c (_getopt_internal_r): Don't increment
643         d->optind a second time when reporting ambiguous -W options.
646         getopt: clean up getopt.c and getopt1.c file headers
648         In getopt.c, there is no need to include wchar.h at all, and it is
649         safe nowadays to assume that stdlib.h does declare getenv (several
650         other gnulib modules make this assumption).
652         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
653         by using "" inclusions consistently, and there is no actual need to
654         include stdlib.h (except in the #ifdef TEST block, where it should be
655         unconditional), nor to provide a backup definition of NULL at all.
657         * lib/getopt1.c: Simplify #ifdeffage at top of file.
658         Move inclusion of stdlib.h to #ifdef TEST block and make
659         unconditional.  Do not define NULL.
660         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
661         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
662         * modules/getopt-gnu, modules/getopt-posix: Don't call
663         gl_PREREQ_GETENV.
666         getopt: harmonize comments with glibc
668         The comments explaining how the behavior of 'getopt' varies depending
669         on whether it's the standalone version and whether there are special
670         characters at the beginning of the options string were inconsistent
671         between gnulib and glibc, and also out of sync with the code.
673         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
676         getopt: remove USE_NONOPTION_FLAGS
678         getopt includes code to parse an environment variable named
679         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
680         in decimal); but all of it has been #ifdefed out since 2001, with no
681         official way to turn it back on.
683         According to commentary in glibc's config.h.in, bash version 2.0
684         set this environment variable to indicate argv elements that were
685         the result of glob expansion and therefore should not be treated
686         as options, but the feature was "disabled later" because "it
687         caused problems".  According to bash's CHANGES file, "later" was
688         release 2.01; it gives no more detail about what the problems
689         were.
691         Version 2.0 of bash was released on the last day of 1996, and version
692         2.01 in June of 1997.  Twenty years later, I think it is safe to
693         assume that this environment variable isn't coming back.
695         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
696         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
697         __libc_argc and __libc_argv externs, which were only used by
698         #ifdef USE_NONOPTION_FLAGS blocks.
701         getopt: tabify, in preparation for merge with glibc
703         glibc sticks to the GNU default of indenting with a mix of
704         8-column tabs and spaces; make the gnulib copy match.
706         getopt.h is not included because it is *not* going to be merged in its
707         present form.
709         * getopt.c, getopt1.c, getopt_int.h: Tabify.
711 2017-04-02  Bruno Haible  <bruno@clisp.org>
713         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
714         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
715         like it was done in modules/relocatable-lib on 2011-05-21 and in
716         modules/relocatable-prog on 2011-08-15.
717         Reported by Reuben Thomas <rrt@sc3d.org>.
719 2017-03-31  Bruno Haible  <bruno@clisp.org>
721         glob: Fix invalid free() call.
722         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
723         static storage to home_dir.
724         Reported by Coverity via Tim Rühsen.
726 2017-03-31  Bruno Haible  <bruno@clisp.org>
728         glob: Fix memory leaks.
729         * lib/glob.c (glob): Free allocated memory before returning.
730         Reported by Coverity via Tim Rühsen.
732 2017-03-31  Bruno Haible  <bruno@clisp.org>
734         md5, sha1, sha256, sha512: Add comments regarding correctness.
735         * lib/md5.h (buflen): Add comments regarding range.
736         * lib/sha1.h (buflen): Likewise.
737         * lib/sha256.h (buflen): Likewise.
738         * lib/sha512.h (buflen): Likewise.
739         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
740         * lib/sha1.c (sha1_process_bytes): Likewise.
741         * lib/sha256.c (sha256_process_bytes): Likewise.
742         * lib/sha512.c (sha512_process_bytes): Likewise.
743         Reported by Coverity via Tim Rühsen.
745 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
747         getopt: merge from glibc
748         This does not change anything substantial; it merely simplifies
749         hypothetical merges back to glibc.
750         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
751         Change copyright notice to match what is in glibc.
752         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
753         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
754         __open_memstream rather than open_memstream and __glibc_likely
755         instead of __builtin_expect.
756         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
758 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
760         dfa: make [0-9] faster in non-C locales
761         Problem reported by John P. Linderman (Bug#26193).
762         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
763         If both ends of the range are ASCII digits, do not worry about
764         multi-character collating sequences and the like.  Be consistent
765         about using isalpha as a precondition for setbit_case_fold_c.
767 2017-03-19  Bruno Haible  <bruno@clisp.org>
769         lock: Fix compilation error with HP-UX IA64 cc.
770         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
771         weak on non-glibc platforms.
773 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
775         stdalign: tweak version# and test for HP-UX IA64
776         Problems reported by Bruno Haible in:
777         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00078.html
778         * lib/stdalign.in.h (_Alignas):
779         * m4/stdalign.m4 (gl_STDALIGN_H):
780         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
781         used octal (as that is how they document it), but it is decimal in
782         practice now and the ancient implementations no longer matter.
783         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
785 2017-03-19  Bruno Haible  <bruno@clisp.org>
787         vma-iter: Add support for Solaris.
788         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
789         approach.
790         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
791         * lib/get-rusage-as.c: Update comment about Solaris.
792         * lib/get-rusage-data.c: Likewise.
794 2017-03-19  Bruno Haible  <bruno@clisp.org>
796         vma-iter: Prefer HP-UX specific API on HP-UX.
797         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
798         * lib/vma-iter.h: Update.
799         Just in case HP-UX ever implements mquery().
801 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
803         stdalign: restore previous behavior for HP-UX IA64
804         See Bruno Haible's email in:
805         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
806         which cites p 150 of a manual saying that 'aligned' works on Itanium.
807         * lib/stdalign.in.h (_Alignas):
808         Assume the '061200' applies to Itanium, not to PA-RISC.
809         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
811 2017-03-17  Bruno Haible  <bruno@clisp.org>
813         stat-time, timespec: Support use of the header files in C++ mode.
814         * lib/stat-time.h: Add "C" linkage declaration.
815         * lib/timespec.h: Likewise.
817 2017-03-17  Bruno Haible  <bruno@clisp.org>
819         stdalign: Make it work with HP-UX cc.
820         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
821         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
822         for HP-UX cc.
824 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
826         flexmember: try to detect HP-UX 11.31 cc bug
827         Problem reported by Bruno Haible in:
828         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
829         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
830         Attempt to detect bug in HP-UX 11.31 cc.
832 2017-03-16  Bruno Haible  <bruno@clisp.org>
834         stdint: Fix test compilation failure with HP-UX 11 cc.
835         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
836         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
837         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
838         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
840 2017-03-14  Bruno Haible  <bruno@clisp.org>
842         gnulib-tool: Don't produce a tests directory with only snippet .h files.
843         * gnulib-tool (func_modules_transitive_closure_separately): If
844         testsrelated_modules ends up with no "real" modules, aside from
845         modules with applicability 'all', set it to empty.
847 2017-03-14  Bruno Haible  <bruno@clisp.org>
849         vma-iter: Add support for HP-UX.
850         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
851         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
852         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
853         * lib/get-rusage-as.c: Update comment about HP-UX.
854         * lib/get-rusage-data.c: Likewise.
855         (get_rusage_data): Use get_rusage_data_via_setrlimit.
857 2017-03-14  Bruno Haible  <bruno@clisp.org>
859         limits-h: Make it work with HP-UX cc.
860         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
861         defined.
863 2017-03-14  Bruno Haible  <bruno@clisp.org>
865         Fix test failures on DragonFlyBSD.
866         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
867         * tests/test-select.h (test_bad_fd): Likewise.
868         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
870 2017-03-14  Bruno Haible  <bruno@clisp.org>
872         freadahead: Silence warning on DragonFlyBSD.
873         * lib/freadahead.c (__sreadahead): Declare ourselves.
875 2017-03-14  Bruno Haible  <bruno@clisp.org>
877         vma-iter: Add comment about AIX.
878         * lib/vma-iter.c: Add comment about why this module is not implemented
879         on AIX.
881 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
883         snippets: move unadjusted snippet sources to lib
884         Problem reported by Michal Privoznik in:
885         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00039.html
886         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
887         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
888         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
889         * lib/unused-parameter.h: Rename from
890         build-aux/snippet/unused-parameter.h.
891         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
892         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
893         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
894         * modules/snippet/c++defs (Files:, CXXDEFS_H):
895         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
896         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
897         Adjust to file renamings.
899 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
901         gnulib-tool: don't automatically distribute files from top/
902         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
903         not distribute top/README-release by default, don't distribute files
904         from top/ unconditionally.
905         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
906         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
908 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
910         gnulib-tool: fix typo in comment output
911         * gnulib-tool (func_import): Fix typo with previous change.
913         snippets: work around GNU Make 3.82 VPATH
914         When using 'gnulib-tool --gnu-make' on Emacs, and building
915         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
916         an out-of-source (VPATH) build failed because the sans-copyright
917         snippet file was not built before the file that used it.
918         Presumably this is some sort of VPATH thing.  Work around the
919         problem by using the original snippet, i.e., don’t bother to
920         remove its copyright notice.
921         * modules/snippet/_Noreturn, modules/snippet/link-warning:
922         Don’t assume Automake in comments.  Omit long-incorrect comment.
923         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
924         (MOSTLYCLEANFILES):
925         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
926         (MOSTLYCLEANFILES):
927         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
928         (MOSTLYCLEANFILES):
929         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
930         (MOSTLYCLEANFILES):
931         Remove.
932         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
933         * modules/snippet/c++defs (CXXDEFS_H):
934         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
935         * modules/snippet/warn-on-use (WARN_ON_USE_H):
936         Don’t bother to remove the copyright notice; just use the
937         original snippet as-is.
939 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
941         gnulib-tool: minor --gnu-make fixups
942         * gnulib-tool (func_emit_lib_Makefile_am):
943         Remove useless code that was a blind alley during implementation.
944         Problem reported by Thien-Thi Nguyen in:
945         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00029.html
946         (func_import): Note the "--gnu-make" option in the output comment.
948 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
950         gnulib-tool: new option --gnu-make
951         This is for applications like GNU Emacs that use GNU Make
952         features instead of Automake.
953         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
954         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
955         Do not assume Automake.
956         * gnulib-tool (func_determine_path_separator)
957         (func_modules_transitive_closure, func_update_file)
958         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
959         (func_import): Add support for --gnu-make.
961 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
963         gnulib-common.m4: avoid aclocal.m4 bloat
964         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
965         Hide AM_PROG_AR from aclocal, so that aclocal does not
966         install irrelevant macro definitions into aclocal.m4.
968 2017-03-10  Bruno Haible  <bruno@clisp.org>
970         vma-iter: Let callers know about error.
971         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
972         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
974 2017-03-05  Bruno Haible  <bruno@clisp.org>
976         Fix value of LD for 64-bit compilers on AIX.
977         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
978         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
980 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
982         dtotimespec: simplify
983         * lib/dtotimespec.c (dtotimespec): Simplify.
985 2017-03-04  Bruno Haible  <bruno@clisp.org>
987         test-calloc-gnu: Reenable test also for GCC 7.
988         * tests/test-calloc-gnu.c (eight): New function.
989         (main): Don't skip test; use eight() instead.
991 2017-03-04  Jim Meyering  <meyering@fb.com>
993         test-calloc-gnu: port to GCC7
994         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
995         that attempts to calloc more than SIZE_MAX bytes, because GCC7
996         and newer would detect that at compilation time.
998 2017-03-04  Bruno Haible  <bruno@clisp.org>
1000         tests: Avoid compiler warning about uses of null_ptr.
1001         * tests/null-ptr.h: New file.
1002         * tests/test-canonicalize.c: Include null-ptr.h.
1003         (null_ptr): Remove function.
1004         * tests/test-canonicalize-lgpl.c: Likewise.
1005         * tests/test-memmem.c: Likewise.
1006         * tests/test-ptsname_r.c: Likewise.
1007         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
1008         * modules/canonicalize-lgpl-tests: Likewise.
1009         * modules/memmem-tests: Likewise.
1010         * modules/ptsname_r-tests: Likewise.
1011         Reported by Jim Meyering.
1013 2017-03-03  Bruno Haible  <bruno@clisp.org>
1015         doc: Mention Mac OS X deficiencies regarding semaphores.
1016         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
1017         * doc/posix-functions/sem_destroy.texi: Likewise.
1018         * doc/posix-functions/sem_getvalue.texi: Likewise.
1020 2017-03-03  Bruno Haible  <bruno@clisp.org>
1022         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
1023         Reported by Assaf Gordon <assafgordon@gmail.com> via
1024         Pádraig Brady <P@draigBrady.com>.
1025         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
1026         semaphores.
1027         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
1028         (atomic_int_semaphore): New macro.
1030 2017-02-28  Bruno Haible  <bruno@clisp.org>
1032         perror tests: Tweak for z/OS.
1033         Reported by Daniel Richard G. <skunk@iskunk.org>.
1034         * tests/test-perror.sh: Don't fail z/OS style perror output.
1036 2017-02-26  Bruno Haible  <bruno@clisp.org>
1038         nproc: Refactor large function.
1039         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
1040         from num_processors.
1041         (num_processors): In this function, only deal with OMP.
1043 2017-02-26  Pádraig Brady  <P@draigBrady.com>
1045         nproc: adjust handling of OpenMP environment variables
1046         to match the return value from omp_get_num_threads(), i.e.:
1047          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
1048          - Treat 0 as an invalid value and ignore
1049         Also remove the call to omp_get_num_threads() because
1050         it's ineffective without the omp pragmas in place.
1051         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
1052         so that it can be ignored.
1053         (num_processors): Honor OMP_THREAD_LIMIT even without
1054         OMP_NUM_THREADS being set.  Also fix a typo in the environment
1055         variable being checked, from the previous recent commit.
1057 2017-02-26  Pádraig Brady  <P@draigBrady.com>
1059         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
1060         * lib/nproc.c (parse_omp_threads): A new function refactored
1061         from num_processors() to support parsing both of the
1062         above environment variables.
1063         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
1064         to accurately reflect the current OpenMP nesting level.
1065         Also support the OMP_THREAD_LIMIT environment variable
1066         to limit the max value determined from OMP_NUM_THREADS.
1067         * modules/nproc: Depend on minmax header.
1068         Suggested by Oliver Heimlich.
1070 2017-02-25  Bruno Haible  <bruno@clisp.org>
1072         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
1073         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
1075 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
1077         ftoastr: port to -Wdouble-promotion
1078         Work around -Wdouble-promotion false alarm in recent GCCs.
1079         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
1080         (ftoastr_snprintf, FTOASTR): Use it.
1082 2017-02-21  Bruno Haible  <bruno@clisp.org>
1084         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
1085         Reported by Rene Saavedra <rennes@openmailbox.org> in
1086         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
1087         * lib/glthread/lock.h: On glibc systems without
1088         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
1089         implementation of rwlocks.
1090         * lib/glthread/lock.c: Likewise.
1092 2017-02-20  Bruno Haible  <bruno@clisp.org>
1094         lock tests: Fix build failure on z/OS.
1095         Reported by Daniel Richard G. <skunk@iskunk.org>.
1096         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
1097         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
1098         exist.
1100 2017-02-19  Bruno Haible  <bruno@clisp.org>
1102         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
1103         This helps when CC=clang.
1104         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
1105         of /usr/bin/gcc.
1107         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
1108         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
1110 2017-02-19  Bruno Haible  <bruno@clisp.org>
1112         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
1113         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
1114         --with-tests --single-configure is specified.
1116 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
1118         users.txt: Update links, use HTTPS where possible
1119         * users.txt: Updated to HTTPS where possible,
1120         fixed some links to new locations.
1122 2017-02-16  Bruno Haible  <bruno@clisp.org>
1124         xbinary-io: Fix inlining.
1125         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
1127 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
1129         xbinary-io: rename from xsetmode
1130         This patch is taken from suggestions by Bruno Haible in:
1131         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00060.html
1132         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00061.html
1133         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
1134         not ENOTTY, when it is an inappropriate device.
1135         * lib/binary-io.h (SET_BINARY): Resurrect.
1136         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
1137         (xset_binary_mode_error): Rename from xsetmode_error.
1138         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
1139         (xset_binary_mode): Rename from xsetmode.
1140         All uses changed.
1141         * modules/xbinary-io: Rename from modules/xsetmode.
1142         Update file names.
1143         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
1144         * NEWS: Update to match revised behavior.
1146 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
1148         tests: Adjust to recent SET_BINARY change
1149         * tests/test-binary-io.c (main):
1150         * tests/test-binary-io.sh: Remove test for SET_BINARY.
1151         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
1152         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
1153         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
1155         xsetmode: new module
1156         This is to fix a problem noted by Eric Blake.
1157         Code was using xfreopen to change files to binary mode, but this
1158         fails for stdout when in append mode.  Such code should use
1159         xsetmode instead.
1160         * NEWS: Document incompatible changes to binary-io module.
1161         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
1162         New function.
1163         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
1164         (set_binary_mode): New function, which also checks for tty.
1165         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
1167 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1169         headers: fix begin-end typos
1170         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
1171         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
1173         selinux-h: port to PGI 16.10
1174         * lib/se-selinux.in.h: Don't assume that include_next skips over
1175         duplicate -I DIR options.
1177         argp: port to PGI 16.10
1178         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
1180 2017-02-13  Darshit Shah  <darnir@gnu.org>
1182         unicase: Update function protoype to match definition.
1183         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
1184         uses 'size_t' as the datatype for the 'len' parameter in the functions
1185         it generates. Update the prototype specified here to match the newly
1186         generated function.
1188 2017-02-12  Bruno Haible  <bruno@clisp.org>
1190         times test: Avoid gcc warnings on Linux/x32.
1191         * tests/test-times.c (main): Really cast printf arguments from clock_t
1192         to 'long int'.
1194 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
1196         glob: port better to emscripten
1197         Problem reported by Bruno Haible in:
1198         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00031.html
1199         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
1201 2017-02-11  Bruno Haible  <bruno@clisp.org>
1203         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
1204         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
1205         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
1206         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
1207         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
1208         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
1209         Distinguish hppa64 from hppa.
1211 2017-02-10  Bruno Haible  <bruno@clisp.org>
1213         search: Don't assume that tsearch() exists if 'VISIT' is defined.
1214         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
1215         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
1216         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
1218 2017-02-09  Bruno Haible  <bruno@clisp.org>
1220         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
1221         * doc/gnulib.texi (Libtool and Windows): Recommend
1222         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
1223         Reported by Reuben Thomas <rrt@sc3d.org>.
1225 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1227         stddef-tests: port to SIZE_MAX <= INT_MAX
1228         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
1229         Do not assume that INT_MAX < SIZE_MAX.
1231 2017-02-01  Bruno Haible  <bruno@clisp.org>
1233         lock tests: Fix link error.
1234         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
1235         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1237 2017-01-31  Bruno Haible  <bruno@clisp.org>
1239         lock: Fix link error (regression from 2017-01-05).
1240         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
1241         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
1242         pthread_rwlockattr_destroy weak.
1243         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1245 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1247         Port to PGI 16.10 x86-64
1248         This patch fixes one real bug in gl_anylinked_list2.h, along with
1249         some minor glitches that are not bugs.  It does not silence PGI’s
1250         thousands of bogus warnings when compiling test-intprops.c.
1251         Fortunately, the warnings do not cause a failure.
1252         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
1253         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
1254         My goodness, PGI goes back a long ways - this predates C89!
1255         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
1256         For example, ASYNCSAFE (const void *) should expand to
1257         ‘const void *volatile’, not to ‘volatile const void *’.
1258         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
1259         * lib/verify.h (verify) [!__GNUC__]:
1260         Use shorter albeit meaningless string to bypass silly compiler limits.
1261         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
1262         * tests/nan.h (NaNf, NaNd, NaNl):
1263         Use static functions to avoid misguided compiler diagnostics.
1264         Is there some reason we don’t use static functions on all platforms?
1266 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
1268         parse-datetime: handle timezones reentrantly
1269         This API change was prompted by a report by Pádraig Brady in:
1270         https://bug.debian.org/851934#10
1271         To help fix the bug, make parse_datetime2 more reentrant.
1272         * NEWS: Document this incompatible change.
1273         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
1274         Add two arguments, the timezone and the timezone name.
1275         All callers changed.  If TZ="..." is specified, use it for
1276         calculating defaults.
1277         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
1278         this code should be usable in a library.
1279         (mktime_ok, get_effective_timezone):
1280         Accept timezone arg too.  All callers changed.
1281         (get_tz): Remove.
1282         (get_effective_timezone): Check for failures.
1284 2017-01-20  Eric Blake  <eblake@redhat.com>
1286         localename: port to cygwin 2.6
1287         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
1288         Cygwin.
1289         * modules/localename (Depends-on): Add extensions, since
1290         NL_LOCALE_NAME() is not visible without it.
1292 2017-01-17  Pádraig Brady  <P@draigBrady.com>
1294         parse-datetime: fix dependence on AC_PROG_SED
1295         * modules/parse-datetime: Use `sed` directly like all other modules.
1296         Reported by J William Piggott
1298 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1300         intprops: update doc URLs
1301         * doc/intprops.texi (Integer Range Overflow): Update URLs.
1303 2017-01-16  Bruno Haible  <bruno@clisp.org>
1305         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
1306         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
1307         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
1308         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
1309         distinguish s390 and s390x.
1310         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
1311         * NEWS: Mention the change regarding 'armel'.
1313 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1315         localeinfo: case_folded_counterparts and WEOF
1316         * NEWS: Document this.
1317         * lib/localeinfo.c (case_folded_counterparts):
1318         First arg is now wint_t, not wchar_t.  This generalizes the
1319         function to also work on WEOF, where it returns 0.
1321         dfa: port to gcc -fsanitize=undefined
1322         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
1323         as this runs afoul of gcc -fsanitize=undefined.
1325 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
1327         strftime: %z is -00 if unknown
1328         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
1329         the caller's responsibility to set 'negative_number'.  All uses changed.
1330         (__strftime_internal): Put '-' before a zero UTC offset if the time
1331         zone abbreviation starts with "-", which is the recently-introduced
1332         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
1333         * tests/test-strftime.c: Test for this.
1335 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1337         dfa: port to older GCC
1338         Problem reported by Assaf Gordon in:
1339         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00103.html
1340         * modules/c99: New module.  This merely attempts to use the latest
1341         C version, which should be enough to solve this particular problem.
1342         The idea is to document which Gnulib modules assume C99 or later.
1343         * modules/dfa (Depends-on): Add it.
1345 2017-01-10  Bruno Haible  <bruno@clisp.org>
1347         Update DEPENDENCIES.
1348         * DEPENDENCIES: List only https URLs. Update recommended version for
1349         autoconf, automake, gperf.
1351 2017-01-10  Jim Meyering  <meyering@fb.com>
1353         maint.mk: enforce spelling of "timestamp" (i.e., no space)
1354         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1355         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
1357 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1359         dfa: minor simplification with emptyset
1360         * lib/dfa.c (build_state): Simplify by using emptyset.
1362 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1364         dfa: shrink constraints from 4 bits to 3
1365         * lib/dfa.c (newline_constraint, letter_constraint)
1366         (other_constraint, prev_newline_dependent)
1367         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
1368         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
1369         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
1370         Constraints need only 3 bits, not 4.  Using smaller integers
1371         shrinks the code a bit and makes grep a tad faster on x86-64.
1373         dfa: omit unnecessary ptrdiff_t check
1374         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
1375         overflow, since xnmalloc does that now.
1377         dfa: omit unnecessary allocation
1378         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
1379         an all-zero follow set works just fine.
1381         dfa: omit unused local
1382         * lib/dfa.c (build_state): Fix up recent change.
1384         maint: remove stray .texi files
1385         Although these were superseded by other files like
1386         doc/posix-functions/ctime.texi, the old files were not removed.
1387         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
1389 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
1391         getprogname: fix port to IRIX
1392         * lib/getprogname.c (getprogname) [__sgi]:
1393         Don't dump core if malloc returns NULL.
1395         dfa: fix reallocation bug when matching newlines
1396         Problem reported for sed by S. Gilles (Bug#25390).
1397         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
1398         (dfastate): Reallocate before moving any newline transition ...
1399         (build_state): ... instead of reallocating here, where it is too late.
1401 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
1403         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
1404         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
1406 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
1408         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
1409         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
1411 2017-01-07  Bruno Haible  <bruno@clisp.org>
1413         stdioext: Port to Minix 3.2 and newer.
1414         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
1415         * lib/fseeko.c (fseeko): Likewise.
1416         Reported by Nelson Beebe via Paul Eggert.
1418 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1420         getprogname: port to IRIX
1421         * lib/getprogname.c (getprogname): Port to IRIX.
1422         Based on an idea by Bastien Roucariès at:
1423         http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00096.html
1424         via code from Bruno Haible at:
1425         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
1427         localename-tests: port to NetBSD 7
1428         Problem reported by Nelson H. F. Beebe.
1429         * tests/test-localename.c:
1430         Test newlocale and uselocale only if both exist.
1432         glob, intprops, xalloc: work around Clang bug
1433         Work around LLVM bug 16404, which is still not fixed.
1434         https://llvm.org/bugs/show_bug.cgi?id=16404
1435         Problem reported by Nelson H. F. Beebe.
1436         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
1437         Remove.
1438         * lib/glob.c (size_add_wrapv):
1439         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
1440         * lib/xalloc-oversized.h (xalloc_oversized):
1441         Do not use overflow builtins if Clang.
1443         dfa: fix 'return' typo
1444         Problem reported by Nelson H. F. Beebe.
1445         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
1447 2017-01-05  Pádraig Brady  <P@draigBrady.com>
1449         parse-datetime: fix generated paths for coverage files
1450         * modules/parse-datetime: Adjust the paths for parse-datetime.y
1451         within parse-datetime.c, so that gcc generates appropriate .gcno
1452         files, allowing lcov to proceed without error.  Previously it
1453         would error trying to find "lib/lib/parse-datetime.y".
1455 2017-01-05  Pádraig Brady  <P@draigBrady.com>
1457         maint.mk: support parallel execution of coverage
1458         * top/maint.mk (coverage): Run dependencies serially,
1459         thus supporting parallel processing of each one,
1460         particularly build-coverage, which builds and runs tests.
1462 2017-01-05  Bruno Haible  <bruno@clisp.org>
1464         lock tests: Prefer semaphore over mutex.
1465         * tests/test-lock.c (USE_SEMAPHORE): New constant.
1466         (struct atomic_int, init_atomic_int, get_atomic_int_value,
1467         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
1468         Suggested by Torvald Riegel <triegel@redhat.com>.
1470 2017-01-05  Bruno Haible  <bruno@clisp.org>
1472         lock: Provide guarantee to avoid writer starvation for rwlocks.
1473         The rationale is: 1) Read-preferring read-write locks are prone to
1474         writer starvation if the number of reader threads multiplied by the
1475         percentage of time they have the lock held is too high. 2) Write-
1476         preferring read-write locks are the only reliable way to avoid this.
1477         3) There have been reports of 'test-lock' hanging on glibc systems
1478         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00009.html,
1479         and glibc indeed implements read-preferring rwlocks by default, see
1480         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
1481         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
1482         * m4/pthread_rwlock_rdlock.m4: New file.
1483         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
1484         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
1485         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
1486         of rwlock initialization on glibc systems without
1487         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
1488         of rwlocks altogether on non-glibc systems without
1489         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
1490         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
1491         * lib/glthread/lock.c [USE_POSIX_THREADS]
1492         (glthread_rwlock_init_for_glibc): New function.
1493         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
1494         comment.
1495         [USE_PTH_THREADS]: New implementation of rwlocks.
1496         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
1497         readers.
1498         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
1499         (Depends-on): Add 'extensions'.
1500         * tests/test-rwlock1.c: New file.
1501         * lock-tests (Files): Add it.
1502         (Depends-on): Add usleep.
1503         (Makefile.am): Add test-rwlock1 to the tests.
1505 2017-01-05  Bruno Haible  <bruno@clisp.org>
1507         thread: Fix pth port.
1508         * lib/glthread/thread.h (pth_init): Declare weak.
1509         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
1510         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
1511         function.
1513 2017-01-04  Assaf Gordon <assafgordon@gmail.com>
1515         parse-datetime: fix debug message on lone year number
1516         Input dates such as
1517           date -d "Apr 11 22:59:00 2011"
1518         are parsed as date (Apr 11, with default year 2016), then time, then a
1519         number (2011). Based on the combination of previously seen tokens,
1520         'digits_to_date_time' determines 2011 to be a year value.
1521         This fixes the debug messages to correctly show the updated year.
1522         Before:
1523             $ date --debug -d 'Apr 11 22:59:00 2011'
1524             date: parsed date part: (Y-M-D) 2016-04-11
1525             date: parsed time part: 22:59:00
1526             date: parsed number part: today/this/now
1527         After:
1528             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
1529             date: parsed date part: (Y-M-D) 2016-04-11
1530             date: parsed time part: 22:59:00
1531             date: parsed number part: year: 2011
1532         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
1533         'debug_year_seen' member fields.
1534         (digits_to_date_time): Update 'year_seen' as needed.
1535         (debug_print_current_time): Inform about year updates.
1536         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
1538         parse-datetime: fix local timezone debug messages
1539         "Local timezones" are strings that affect only DST relative to the
1540         default timezone. The debug messages in parse-datetime.y printed
1541         wrong information when encountering local timezones.
1542         Examples:
1543         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
1544              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
1545              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
1546         When the default timezone relates to the zone strings, EET/EEST are
1547         parsed as local timezones (tLOCAL_ZONE), and only change the DST
1548         value (0/1, respectively):
1549              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
1550              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
1551         * lib/parse-datetime.y (debug_print_current_time): If local timezone
1552         was seen, inform about DST change, don't print actual timezone.
1553         (debug_strfdatetime): If local timezone was seen, use default timezone
1554         (and adjust as needed) instead of using incorrect timezone.
1555         (parse_datetime2): Use correct time-zone source string, and adjust
1556         default timezone as needed.
1558         parse-datetime: add debug warning about DST changes
1559         Incorrect date arithmetic due to daylight saving time (DST) are a
1560         common (false) bug report in coreutils.
1561         Detect two such cases and print a warning:
1562         1. year/month/day adjustments (performed on 'struct tm'),
1563            where 'mktime' returns a different isdst value.
1564         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
1565            where the result of 'localtime(3)' on the value will return a
1566            different isdst value.
1567         Note: DST changes could be harmless or unnoticeable.
1568         Examples (with 'TZ=America/New_York'):
1569         Unnoticeable: result is 2016-Dec-14
1570            $ date -d '2016-06-15 EDT + 6 months' +%b
1571            Dec
1572         Unnoticeable: result is 2016-Dec-15 11:00:00
1573            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
1574            2016-12-15
1575         This is unexpected:
1576            $ date -d '2016-06-01 EDT + 6 months' +%F
1577            2016-11-30
1578         The new debug warnings will show:
1579            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
1580            ...
1581            date: warning: daylight saving time changed after date adjustment
1582            ...
1583         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
1584         print an appropriate warning message.
1586         parse-datetime: add debug warning about date arithmetic
1587         Date arithmetic are done directly on the fields of 'struct tm',
1588         which can result in invalid dates. Normalization with 'mktime(3)'
1589         will then produce a different date - which might cause unexpected
1590         results.
1591         Examples:
1592           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
1593           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
1594         Note that date normalization is not inherently wrong and not rejected,
1595         as it has legitimate uses:
1596           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
1597         If the user asked to adjust months but 'mday' changed,
1598         or user asked to adjust years but 'month' changed - warn about it.
1599             $ ./src/date --debug -d '2016-10-31 - 1 month'
1600             ...
1601             date: warning: when adding relative months/years, \
1602                            it is recommended to specify the 15th of the month
1603             ...
1604             date: warning: month/year adjustment resulted in shifted dates:
1605             date:      adjusted Y M D: 2016 09 31
1606             date:    normalized Y M D: 2010 10 01
1607             ...
1608         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
1609         a warning message. Improve recommendation of when to use 15 of the
1610         month or noon for date arithmetic.
1612         parse-datetime: fix debug message of relative part after timezone
1613         Relative part (e.g '+8 days') after a timezone string was not
1614         reported (was only reported after a timezone number). Due to the
1615         parser's structure, timezone strings with numbers were handled
1616         separately.
1617         before:
1618              # Timezone number + relative part: OK
1619              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
1620              ...
1621              date: parsed relative part: -8 day(s)
1622              # Timezone string + relative part: missing
1623              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
1624              [ missing message ]
1625         After: messages are printed in both cases.
1626         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
1628         parse-datetime: fix incorrect debug message on lone number
1629         A lone number is an absolute value, not a relative time part.
1630         before:
1631            $ date --debug -d '20130101'
1632            date: parsed number part: today/this/now
1633         After:
1634            $ ./src/date --debug -d '20130101'
1635            date: parsed number part: (Y-M-D) 2013-01-01
1636         * lib/parse-datetime.y ('item'/'number' tokens): Call
1637         'debug_print_current_time' instead of 'debug_print_relative_time'.
1639 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
1641         doc: modernize for C11 etc.
1642         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
1643         for C11, MinGW, etc.  This responds to Paul Smith's question in:
1644         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00014.html
1646         dfa: prefer functions to FETCH_WC macro
1647         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
1648         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
1649         wint_t result into DFA->lex.wctok instead of to a separate arg.
1650         All callers changed.  Move more local decls closer to where
1651         they're used.
1653         dfa: narrow more local var scopes
1654         * lib/dfa.c: Move more local decls to be more local.
1656         dfa: remove duplicate assignment
1657         Problem reported by Bruno Haible in:
1658         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00007.html
1659         * lib/dfa.c (parse_bracket_exp): Simplify.
1661 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1663         dfa: simplify constraint-dependency checking
1664         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
1665         (prev_other_constraint): Remove.
1666         (prev_newline_dependent, prev_letter_dependent):
1667         Simplify, to avoid an unnecessary bitwise AND operation.
1669         dfa: prefer functions and constants to macros
1670         * lib/dfa.c: Prefer constants to macros where either will do.
1671         (streq, isasciidigit, newline_constraint)
1672         (letter_constraint, other_constraint, succeeds_in_context)
1673         (prev_newline_constraint, prev_letter_constraint)
1674         (prev_other_constraint, prev_newline_dependent)
1675         (prev_letter_dependent, accepting, accepts_in_context):
1676         Now static functions instead of function-like macros.
1677         Use lower-case names accordingly.  All uses changed.
1679         dfa: narrow more local var scopes
1680         * lib/dfa.c: Move some more local decls down to nearer where
1681         they're needed.
1683 2016-12-31  Jim Meyering  <meyering@fb.com>
1685         dfa: narrow the scope of many local variables
1686         * lib/dfa.c: Now that we are no longer constrained to c89, move
1687         declarations of many variables (often indices) "down" into the
1688         scope(s) where used or to the point of definition.  This is a
1689         no-semantic-change diff.
1691 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1693         version-etc: new year
1694         * build-aux/gendocs.sh (version):
1695         * doc/gendocs_template:
1696         * doc/gendocs_template_min:
1697         * doc/gnulib.texi:
1698         * lib/version-etc.c (COPYRIGHT_YEAR):
1699         Update copyright dates by hand in templates and the like.
1700         * all files: Run 'make update-copyright'.
1702 2016-12-31  Eric Blake  <eblake@redhat.com>
1704         do-release-commit-and-tag: avoid shell syntax error
1705         * build-aux/do-release-commit-and-tag (curr_br): $branch can
1706         contain spaces when rebasing.
1708         maint.mk: hoist gnulib_dir definition earlier
1709         * top/maint.mk (gnulib_dir): Move near top of file.
1711 2016-12-31  Jim Meyering  <meyering@fb.com>
1713         maint.mk: do not always evaluate intprops-related shell
1714         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
1715         using gnulib_dir undefined (gnulib_dir is defined later in the
1716         file, which will be fixed separately), and besides, there is no
1717         need to incur the cost of this shell invocation for every single
1718         use of this .mk file.  Reported by Eric Blake in
1719         https://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00137.html
1721 2016-12-30  Jim Meyering  <meyering@fb.com>
1723         maint.mk: improve sc_prohibit_intprops_without_use
1724         * top/maint.mk (_intprops_names): Don't hard-code the list of
1725         symbol names.  Instead, derive it on the fly.
1727 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1729         dfa: shorten sbit, success
1730         * lib/dfa.c (struct regex_syntax.sbit):
1731         (struct dfa.success): Use char, not int, for array elements, since
1732         they are all in the range 0..7.
1734         dfa: simplify multibyte_prop etc.
1735         This follows up on a change made when dfa.c was in grep, namely grep
1736         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
1737         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
1738         That earlier simplification allows for some more simplification
1739         and trimming down here.
1740         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
1741         (struct lexer_state): New mamber brack.
1742         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
1743         since they must be in the range 0..3 now.
1744         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
1745         the brack member now supersedes them.
1746         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
1747         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
1748         (dfaparse): Remove unnecessary initializations of already-0 storage.
1749         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
1750         (dfassbuild): No need to clear sup->mbcsets.
1752         dfa: minor performance tweak
1753         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
1755         dfa: wrap charclass inside a struct
1756         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
1757         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
1758         about 5% faster, where list.txt is generated by 'aspell dump
1759         master | head -n 100000 >list.txt'.  See Bug#22239.
1760         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
1761         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
1762         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
1763         Adjust to this, e.g., by using charclass * rather than charclass.
1764         All callers changed as needed.
1765         (copyset): Remove.  All uses changed to simple assignment.
1766         (parse_bracket_exp): Use zeroset instead of memset.
1768 2016-12-30  Jim Meyering  <meyering@fb.com>
1770         maint.mk: update list of intprops.h symbol names
1771         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
1772         This avoids a false failure of the sc_prohibit_intprops_without_use
1773         rule in grep.
1775 2016-12-29  Eric Blake  <eblake@redhat.com>
1777         getopt: fix parallel test failure
1778         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
1779         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
1780         * tests/test-getopt-main.h (main): Use different file names
1781         in case test-getopt-gnu and test-getopt-posix run in parallel.
1783 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1785         xalloc: x2nrealloc check for ptrdiff_t overflow
1786         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
1787         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
1789 2016-12-24  Bruno Haible  <bruno@clisp.org>
1791         lock test: Fix performance problem on multi-core machines.
1792         * tests/test-lock.c (USE_VOLATILE): New macro.
1793         (struct atomic_int): New type.
1794         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
1795         functions.
1796         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
1797         as 'struct atomic_int'.
1798         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
1799         reclock_checker_thread, test_recursive_lock): Use the new functions.
1800         Reported by Eric Blake in
1801         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
1802         and by Pádraig Brady in
1803         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00117.html.
1805 2016-12-19  Bruno Haible  <bruno@clisp.org>
1807         vma-iter: Fix endless loop on 64-bit Windows.
1808         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
1809         'unsigned long'.
1811 2016-12-19  Bruno Haible  <bruno@clisp.org>
1813         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
1814         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
1815         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
1816         Invoke gt_TYPE_WINT_T instead.
1817         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
1818         * modules/stdint (Files): Add m4/wint_t.m4.
1819         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
1820         * modules/wctype-h (Makefile.am): Likewise.
1821         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
1822         not only on MSVC.
1823         * lib/wctype.in.h (wint_t): Likewise.
1825 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1827         getopt-posix-tests: fix Makefile typo
1828         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
1829         Fix typo: the last ‘_’ was missing in the name.
1830         I suspect that the typo explains this build failure:
1831         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
1832         although I can’t reproduce the problem on Solaris 10 sparc.
1834 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1836         dfa: improve worst-case 'replace' performance
1837         See my note in Bug#22357#71.
1838         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
1839         (merge_constrained): New function, which is like
1840         the old 'merge' function, except with a new argument C2.
1841         Simplify the body by avoiding the need for different sections
1842         of code depending on whether one input is exhausted.
1843         (merge): Use the new function.
1844         (delete): Return the constraint of the deleted position,
1845         not the entire position.  Caller changed.
1846         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
1848 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1850         dfa: performance improvement for removal of epsilon closure
1851         See Bug#22357#32.
1852         * lib/dfa.c (delete): Use binary search to find deleted index.
1853         (replace): New function.  It replaces a position with the followed set.
1854         (epsclosure): Replace it with a new algorithm.  Update caller.
1856 2016-12-18  Bruno Haible  <bruno@clisp.org>
1858         Split tests for getopt-posix and getopt-gnu.
1859         * tests/test-getopt-posix.c: New file.
1860         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
1861         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
1862         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
1863         GNULIB_TEST_GETOPT_GNU.
1864         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
1865         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
1866         (Makefile.am): Test test-getopt-posix instead of test-getopt.
1867         * modules/getopt-gnu-tests: New file.
1868         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
1870 2016-12-18  Bruno Haible  <bruno@clisp.org>
1872         posix-modules: Add options for specific platforms.
1873         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
1874         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
1875         Invoke func_tmpdir. Filter out the excludes.
1877 2016-12-18  Bruno Haible  <bruno@clisp.org>
1879         getopt: Fix link error for users of getopt() in <unistd.h>.
1880         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
1881         __need_getopt is defined. Undefine all macros before defining them.
1882         * modules/getopt (Include): Clarify that including <unistd.h> is also
1883         OK.
1884         * tests/test-getopt.c: Add comment.
1886 2016-12-17  Bruno Haible  <bruno@clisp.org>
1888         getaddrinfo tests: Avoid compilation error on MSVC.
1889         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
1890         getaddrinfo on native Windows.
1892 2016-12-17  Bruno Haible  <bruno@clisp.org>
1894         getlogin, getlogin_r: Fix link errors on MSVC.
1895         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
1896         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
1897         (Link): New section.
1898         * modules/getlogin_r (Files): Add m4/getlogin.m4.
1899         (configure.ac): Require gl_LIB_GETLOGIN.
1900         (Link): New section.
1901         * NEWS: Mention the new link requirements.
1902         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
1903         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
1905 2016-12-17  Bruno Haible  <bruno@clisp.org>
1907         Un-deprecate the 'progname' module.
1908         * NEWS: Describe the appropriate use-cases of 'progname' versus
1909         'getprogname'. Based on discussion summary at
1910         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00105.html
1912 2016-12-17  Bruno Haible  <bruno@clisp.org>
1914         Reorganize NEWS a bit.
1915         * NEWS: Move some not so important changes away from section
1916         "Important Notes".
1918 2016-12-17  Bruno Haible  <bruno@clisp.org>
1920         tanhf: Avoid redefinition error on MSVC.
1921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
1922         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
1923         may be defined as an inline function.
1924         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
1925         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
1927 2016-12-17  Bruno Haible  <bruno@clisp.org>
1929         tanf: Avoid redefinition error on MSVC.
1930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
1931         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
1932         may be defined as an inline function.
1933         * modules/math (Makefile.am): Substitute REPLACE_TANF.
1934         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
1936 2016-12-17  Bruno Haible  <bruno@clisp.org>
1938         sqrtf: Avoid redefinition error on MSVC.
1939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
1940         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
1941         may be defined as an inline function.
1942         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
1943         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
1945 2016-12-17  Bruno Haible  <bruno@clisp.org>
1947         sinhf: Avoid redefinition error on MSVC.
1948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
1949         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
1950         may be defined as an inline function.
1951         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
1952         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
1954 2016-12-17  Bruno Haible  <bruno@clisp.org>
1956         sinf: Avoid redefinition error on MSVC.
1957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
1958         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
1959         may be defined as an inline function.
1960         * modules/math (Makefile.am): Substitute REPLACE_SINF.
1961         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
1963 2016-12-17  Bruno Haible  <bruno@clisp.org>
1965         logf: Avoid redefinition error on MSVC.
1966         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
1967         may be defined as an inline function.
1969 2016-12-17  Bruno Haible  <bruno@clisp.org>
1971         log10l: Avoid redefinition error on MSVC.
1972         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
1973         may be defined as an inline function.
1975 2016-12-17  Bruno Haible  <bruno@clisp.org>
1977         log10f: Avoid redefinition error on MSVC.
1978         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
1979         may be defined as an inline function.
1981 2016-12-17  Bruno Haible  <bruno@clisp.org>
1983         hypotl: Avoid redefinition error on MSVC.
1984         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
1985         may be defined as an inline function.
1987 2016-12-17  Bruno Haible  <bruno@clisp.org>
1989         hypotf: Avoid redefinition error on MSVC.
1990         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
1991         may be defined as an inline function.
1993 2016-12-17  Bruno Haible  <bruno@clisp.org>
1995         fmodl: Avoid redefinition error on MSVC.
1996         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
1997         may be defined as an inline function.
1999 2016-12-17  Bruno Haible  <bruno@clisp.org>
2001         fmodf: Avoid redefinition error on MSVC.
2002         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
2003         may be defined as an inline function.
2005 2016-12-17  Bruno Haible  <bruno@clisp.org>
2007         expf: Avoid redefinition error on MSVC.
2008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
2009         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
2010         may be defined as an inline function.
2011         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
2012         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
2014 2016-12-17  Bruno Haible  <bruno@clisp.org>
2016         coshf: Avoid redefinition error on MSVC.
2017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
2018         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
2019         may be defined as an inline function.
2020         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
2021         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
2023 2016-12-17  Bruno Haible  <bruno@clisp.org>
2025         cosf: Avoid redefinition error on MSVC.
2026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
2027         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
2028         may be defined as an inline function.
2029         * modules/math (Makefile.am): Substitute REPLACE_COSF.
2030         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
2032 2016-12-17  Bruno Haible  <bruno@clisp.org>
2034         atan2f: Avoid redefinition error on MSVC.
2035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
2036         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
2037         may be defined as an inline function.
2038         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
2039         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
2041 2016-12-17  Bruno Haible  <bruno@clisp.org>
2043         atanf: Avoid redefinition error on MSVC.
2044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
2045         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
2046         may be defined as an inline function.
2047         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
2048         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
2050 2016-12-17  Bruno Haible  <bruno@clisp.org>
2052         asinf: Avoid redefinition error on MSVC.
2053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
2054         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
2055         may be defined as an inline function.
2056         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
2057         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
2059 2016-12-17  Bruno Haible  <bruno@clisp.org>
2061         acosf: Avoid redefinition error on MSVC.
2062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
2063         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
2064         may be defined as an inline function.
2065         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
2066         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
2068 2016-12-17  Bruno Haible  <bruno@clisp.org>
2070         Avoid redefinition errors on MSVC.
2071         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
2072         the function may be defined as an inline function.
2073         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
2074         the function may be defined as an inline function.
2076 2016-12-17  Bruno Haible  <bruno@clisp.org>
2078         Avoid redefinition errors on MSVC.
2079         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
2080         * lib/unistd.in.h: Include <stdio.h> when necessary.
2082 2016-12-17  Bruno Haible  <bruno@clisp.org>
2084         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
2085         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
2086         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
2087         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
2088         WINT_MAX.
2090 2016-12-17  Bruno Haible  <bruno@clisp.org>
2092         Avoid autoconf warning.
2093         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
2094         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
2096 2016-12-17  Bruno Haible  <bruno@clisp.org>
2098         fpending: Revert workaround against Emacs bug.
2099         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
2100         The Emacs bug is fixed by Eli Zaretskii in
2101         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00715.html
2103 2016-12-17  Bruno Haible  <bruno@clisp.org>
2105         getlogin_r tests: Port to mingw.
2106         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
2107         regression introduced on 2014-05-19.
2109 2016-12-17  Bruno Haible  <bruno@clisp.org>
2111         getlogin: Port to newer mingw.
2112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
2113         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
2114         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
2115         HAVE_GETLOGIN.
2116         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
2117         HAVE_GETLOGIN.
2118         * doc/posix-functions/getlogin.texi: Mention the issue.
2119         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
2120         regression introduced on 2014-05-14.
2122 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
2124         builtin-expect: improve port to IBM XL C
2125         Problem reported for z/OS by Daniel Richard G. in:
2126         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00079.html
2127         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
2128         Test for <builtins.h> directly.
2130         builtin-expect: port to IBM XL C
2131         Problem reported for z/OS by Daniel Richard G. in:
2132         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00074.html
2133         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
2134         Also allow __builtin_expect defined via a standard include file.
2136         regex: fix dependency
2137         Problem reported by Bruno Haible in:
2138         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00073.html
2139         * modules/regex: Depend on builtin-expect.
2141         builtin-expect: new module
2142         Fix fnmatch to use it.
2143         Problem reported for z/OS by Daniel Richard G.
2144         * lib/fnmatch.c (__builtin_expect):
2145         * lib/glob.c (__builtin_expect):
2146         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
2147         * lib/memmem.c (__builtin_expect) [!_LIBC]:
2148         * lib/scandir.c (__builtin_expect):
2149         * lib/strstr.c (__builtin_expect) [!_LIBC]:
2150         Remove macro; config.h now does this.
2151         * lib/gl_anytreehash_list1.h (add_to_bucket):
2152         * lib/regex_internal.h (BE):
2153         Assume __builtin_expect.
2154         * m4/builtin-expect.m4, modules/builtin-expect: New files.
2155         * modules/avltreehash-list, modules/fnmatch, modules/glob:
2156         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
2157         * modules/scandir, modules/strstr-simple:
2158         Depend on builtin-expect.
2160 2016-12-15  Bruno Haible  <bruno@clisp.org>
2162         init.sh: Add possibility to not delete temporary files.
2163         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
2164         to yes, don't erase the temporary directory.
2166 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
2168         regex: fix integer-overflow bug in never-used code
2169         Problem reported by Clément Pit–Claudel in:
2170         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00654.html
2171         * lib/regex_internal.h: Include intprops.h.
2172         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
2173         behavior on integer overflow.
2174         * modules/regex (Depends-on): Add intprops.
2176         fpending: fix port to MinGW on Emacs
2177         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
2178         Problem reported by Eli Zaretskii in:
2179         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00642.html
2180         Is Plan 9 still a valid porting target, anyway?
2182 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2184         safe-alloc: use xalloc-oversized
2185         * lib/safe-alloc.c: Include xalloc-oversized.h.
2186         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
2187         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
2189         xalloc: do not exceed PTRDIFF_MAX
2190         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
2191         xalloc_oversized check, since objects larger than PTRDIFF_MAX
2192         bytes have pointer-subtraction problems.
2194         malloca: do not exceed PTRDIFF_MAX
2195         * lib/malloca.h: Include xalloc-oversized.
2196         (nmalloca): Use xalloc_oversized instead of rolling our own.
2197         * modules/malloca (Depends-on):
2198         * modules/relocatable-prog-wrapper (Depends-on):
2199         Add xalloc-oversized.
2201         quotearg: pacify GCC better
2202         * modules/quotearg (Depends-on): Add minmax, stdint.
2203         * lib/quotearg.c: Include minmax.h, stdint.h.
2204         (nslots): Now int, as there seems little point to going to extra
2205         work merely to support the INT_MAX slot, which nobody ever uses.
2206         (quotearg_n_options): Redo size-overflow checks to pacify GCC
2207         and to catch (mostly-theoretical) ptrdiff_t problems too.
2208         This can be done via one comparison.
2210 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
2212         xalloc-oversized: check for PTRDIFF_MAX too
2213         This avoids undefined behavior when subtracting pointers to
2214         objects containing more than PTRDIFF_MAX bytes.
2215         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
2216         Also return 1 if the result would exceed PTRDIFF_MAX>
2217         * modules/xalloc-oversized (Depends-on):
2218         Add stdint.
2220         dfa: fix glitches in previous commit
2221         Sorry, I don't know how I managed to commit the wrong version.
2222         * lib/dfa.c (MIN): Move up.
2223         (xpalloc): Now static.
2225         dfa: fix some unlikely integer overflows
2226         I found these while reviewing the recent Coverity-related fix.
2227         This patch changes part of dfa.c to prefer ptrdiff_t instead of
2228         size_t for object counts.  Using ptrdiff_t is the style typically
2229         used in Emacs; although it wastes a sign bit as sizes can never be
2230         negative, it makes -fsanitize=undefined more likely to catch
2231         integer overflows in index calculation, and nowadays the upside is
2232         typically more important than the downside.  Although perhaps the
2233         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
2234         of dfa.c already does, since it uses state_num which is signed),
2235         that is a bigger change and is not needed to fix the bugs I found.
2236         * lib/dfa.c: Include stdint.h and intprops.h.
2237         (TOKEN_MAX): New macro.
2238         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
2239         (charclass_index, parse_bracket_exp, addtok, insert, merge)
2240         (realloc_trans_if_necessary, free_mbdata):
2241         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
2242         This is safe because xpalloc checks that the sizes do not exceed
2243         either SIZE_MAX or PTRDIFF_MAX.
2244         (xpalloc): New function, mostly taken from Emacs.
2245         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
2246         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
2247         (charclass_index): Check for integer overflow in computing
2248         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
2249         added to it later.
2250         (alloc_position_set): Check for integer overflow.  On typical
2251         platforms this check has zero overhead, since the constant
2252         expression is false.
2253         (realloc_trans_if_necessary):
2254         Remove assertion, which I hope Coverity no longer needs.
2256         * modules/dfa (Depends-on): Add intprops, stdint.
2258 2016-12-12  Jim Meyering  <meyering@fb.com>
2260         dfa: add an assertion to avoid coverity false positive
2261         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
2262         warned that "newalloc1 - 2" could overflow.
2264 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
2266         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
2267         * dfa.h (DFA_CASE_FOLD): Remove.
2268         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
2270 2016-12-13  John W. Eaton  <gnu@jweaton.org>
2272         link: fix test to declare use of rename()
2273         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
2274         -Werror=implicit-function-declaration
2276 2016-12-12  Bruno Haible  <bruno@clisp.org>
2278         fpending: Port to native Windows with MSVC.
2279         * lib/fpending.c: Include stdio-impl.h.
2280         (__fpending): Include all known implementations. Err out if it's not
2281         ported.
2282         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
2283         * modules/fpending (Files): Add lib/stdio-impl.h.
2284         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
2286 2016-12-12  Bruno Haible  <bruno@clisp.org>
2288         stdioext: Port to native Windows with MSVC.
2289         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
2290         (struct _gl_real_FILE): New type.
2291         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
2292         Windows.
2293         * lib/fbufmode.c (fbufmode): Add code for native Windows.
2294         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
2295         other SystemV derived implementations.
2296         * lib/fpurge.c (fpurge): Likewise.
2297         * lib/freadable.c (freadable): Likewise.
2298         * lib/freadahead.c (freadahead): Likewise.
2299         * lib/freading.c (freading): Likewise.
2300         * lib/freadptr.c (freadptr): Likewise.
2301         * lib/freadseek.c (freadptrinc): Likewise.
2302         * lib/fseeko.c (fseeko): Likewise.
2303         * lib/fseterr.c (fseterr): Likewise.
2304         * lib/fwritable.c (fwritable): Likewise.
2305         * lib/fwriting.c (fwriting): Likewise.
2306         Reported by Gisle Vanem <gvanem@yahoo.no>.
2308 2016-12-11  Jim Meyering  <meyering@fb.com>
2310         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
2311         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
2312         to work with most shells, but not with the one provided by many
2313         Solaris 10 systems, so running configure with such a /bin/sh evokes
2314         e.g., "./configure: syntax error at line 33602: `(' unexpected".
2315         Reported by Assaf Gordon in
2316         https://lists.gnu.org/archive/html/sed-devel/2016-12/msg00002.html
2318 2016-12-10  Bruno Haible  <bruno@clisp.org>
2320         threadlib: Optimize out runtime test on Solaris >= 10.
2321         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
2322         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
2323         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
2325 2016-12-10  Bruno Haible  <bruno@clisp.org>
2327         stdint: Update doc about Solaris 9.
2328         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
2330 2016-12-09  Bruno Haible  <bruno@clisp.org>
2332         c-ctype tests: Fix link error on Solaris 9.
2333         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
2334         Reported at <https://savannah.gnu.org/bugs/?46827>.
2336 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
2338         dfa: fix performance bug that recomputes trans
2339         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
2340         25 on-demand changes.  The bug caused build_state to reset all
2341         d->trans elements to -2 even when d->trans was already non-null.
2342         Use C99 style decls after statements in this function.
2344         same-inode: port to MinGW
2345         Here st_ino is always 0, so change the definition of SAME_INODE so
2346         that 1 means the two files are the same, 0 with st_ino != 0 means
2347         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
2348         reported by Bruno Haible (Bug#25146).
2349         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
2350         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
2352 2016-12-04  Bruno Haible  <bruno@clisp.org>
2354         javacomp: Support Java 7 and 8.
2355         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
2356         target-version 1.7, 1.8.
2358 2016-12-02  Daiki Ueno  <ueno@gnu.org>
2360         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
2361         GPLv2" rewriting.
2363 2016-12-02  Nikos Mavrogiannopoulos <nmav@gnutls.org>
2365         * gnulib-tool (func_import): Adhere to the license guideline when
2366         rewriting the license text to "LGPLv3+ or GPLv2":
2367         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
2369 2016-12-02  Bruno Haible  <bruno@clisp.org>
2371         localcharset: Avoid theoretical buffer overrun.
2372         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
2373         return value from setlocale if it would lead to a buffer overrun.
2375 2016-12-01  Bruno Haible  <bruno@clisp.org>
2377         Relicense some modules under LGPLv2+.
2378         Kevin Cernekee's approval is in
2379         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00090.html.
2380         * modules/fseterr (License): Change to LGPLv2+.
2381         * modules/mbchar (License): Likewise.
2382         * modules/mbiter (License): Likewise.
2383         * modules/mbsnlen (License): Likewise.
2384         * modules/wcwidth (License): Likewise.
2386 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
2388         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
2389         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
2390         OS/2 kLIBC.
2392 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
2394         alphasort, scandir: Port to OS/2 kLIBC
2395         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
2396         declaration.
2397         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
2399 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
2401         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
2402         * lib/relocatable.c (relocate): Do not touch pathname if it is started
2403         with '/@unixroot'.
2405 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
2407         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
2408         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
2409         OS/2 kLIBC unless TCPV40HDRS is defined.
2411 2016-11-29  Jim Meyering  <meyering@fb.com>
2413         dfa: avoid new infinite loop
2414         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
2415         * lib/dfa.c (dfastate): When constructing a new state table, we could
2416         initially declare that we had found a match, and later find that
2417         constraints eliminate that possibility, yet continue to use the
2418         now stale "matched" indicator.  That would lead to an infinite loop.
2419         The solution is to update "matched" when necessary.
2420         Introduced by commit v0.1-983-g403adf1.
2422 2016-11-27  Norihiro Tanaka <noritnk@kcn.ne.jp>
2424         dfa: avoid match middle in multibyte character
2425         * lib/dfa.c (transit_state): If fails in matching single byte characters
2426         on a state including period expression in non-UTF8 multibyte locales,
2427         skip trailing bytes.
2428         (dfa_supported): Revert previous change.
2430 2016-11-27  Jim Meyering  <meyering@fb.com>
2432         dfa: avoid false match in non-UTF8 multibyte locales
2433         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
2434         as "not supported" so that callers will resort to using regex-based
2435         matcher.  This will surely hurt performance, but correctness trumps
2436         performance here, and the affected locales are less and less relevant,
2437         these days.  See grep's bug report https://bugs.gnu.org/24975.
2439 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
2441         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
2442         * lib/ptsname_r.c: Include the appropriate headers.
2443         [__sun]: Delete sys/sysmacros.h include.
2444         [_AIX || __osf__]: Likewise.
2445         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
2447 2016-11-27  Pádraig Brady  <P@draigBrady.com>
2449         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
2450         * lib/md4.c (md4_process_bytes): The existing define is made internal
2451         in recent versions of glibc, so also use this new public define.
2452         * lib/md5.c (md5_process_bytes): Likewise.
2453         * lib/sha1.c (sha1_process_bytes): Likewise.
2454         * lib/sha256.c (sha256_process_bytes): Likewise.
2455         * lib/sha512.c (sha512_process_bytes): Likewise.
2457 2016-11-27  Pádraig Brady  <P@draigBrady.com>
2459         maint: use a more standard return from mbrtowc test
2460         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
2461         from the test program as this often indicates an
2462         unhandled case in the test program.
2463         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
2464         (gl_MBRTOWC_SANITYCHECK): Likewise.
2465         (gl_MBRTOWC_NULL_ARG2): Likewise.
2466         (gl_MBRTOWC_NUL_RETVAL): Likewise.
2468 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
2470         freopen: work around glibc bug with closed fd
2471         Work around glibc bug#15589, where freopen mishandles the case
2472         where stdin etc. are already closed.
2473         * doc/posix-functions/freopen.texi (freopen): Document the bug.
2474         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
2475         instead of __need_FILE, as the latter does not work with glibc.
2476         Include <fcntl.h>, for open flags.
2477         (rpl_freopen): Work around glibc bug.
2478         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
2479         * modules/freopen (Depends-on): Add fcntl-h.
2480         * tests/test-freopen.c (main): Test for bug.
2482 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
2484         fnmatch: fix typo introduced on 2016-08-17
2485         This fixes the port to non-GCC compilers that lack __builtin_expect.
2486         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
2488         dfa: simplify with new function fillset
2489         * lib/dfa.c (fillset): New function.
2490         Use it for clarity when applicable.
2492         dfa: fix glitches with on-demand states
2493         Also, adjust commentary to better match new code.
2494         Some of these glitches predate the recent change.
2495         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
2496         only non-initial states.
2497         (dfastate): Rename locals to better match new roles.
2498         Move them into nested scopes if this is easy.
2499         Omit unnecessary calls to zeroset.
2500         Simplify test for whether to throw in the positions of state 0.
2501         Omit C99-ism (decl after statement) since Gawk still wants C89.
2502         (build_state): Omit unnecessary test and assignment.
2503         Fix some confusion that counted transition tables inaccurately
2504         and could cause a memory leak.
2505         (dfaexec_main): Redo to make it clearer to the compiler that
2506         -1 and -2 are the only negative state numbers here.
2508 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2510         dfa: addition of new state on demand
2511         * src/dfa.c (dfastate): Add argument UC, the current input character.
2512         Fill only a group including the character in transition table.
2513         (realloc_trans_if_necessary): Add the dummy state which means that a
2514         transition table is assigned but the next state is not assigned.
2515         (build_state): Return the next state.  All callers updated.
2516         (transit_state_singlebyte): If we get the dummy state,
2517         fill the transition table.
2518         (dfaexec_main): Handle the dummy state.
2519         (free_mbdata, dfafree): Consider the dummy state.
2521 2016-11-24  Daiki Ueno  <ueno@gnu.org>
2523         srclist: sync with released gettext
2524         * config/srclist.txt: Set "release" option to the files under
2525         $GETTEXT.
2527 2016-11-24  Daiki Ueno  <ueno@gnu.org>
2529         srclist: add "release" option
2530         * config/srclist.txt: Change the format so that the first column
2531         of each line points to the top-level directory of the source
2532         archive.
2533         * config/srclist-update: Accept "release" option that checks files
2534         from the most recently tagged revision in the source archive.
2536 2016-11-21  Bruno Haible  <bruno@clisp.org>
2538         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
2539         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
2540         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
2541         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
2542         Inline and remove member function 'rpl ()' of the wrapper struct.
2544 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2546         dfa: fix logic typo
2547         Problem reported by Stephane Chazelas (Bug#24973).
2548         * lib/dfa.c (using_simple_locale): Fix typo that caused some
2549         non-simple locales like fr_FR to be treated as simple.
2551 2016-11-20  Jim Meyering  <meyering@fb.com>
2553         fix test driver leaks: exclude, malloc, realloc
2554         * tests/test-exclude.c (main): Fix trivial leak.
2555         * tests/test-malloc-gnu.c (main): Likewise.
2556         * tests/test-realloc-gnu.c (main): Likewise.
2557         With these changes, grep's tests are now leak free.
2558         I.e., running them with ASAN elicits no failure:
2559           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
2560             AM_LDFLAGS='-fsanitize=address -static-libasan' check
2562 2016-11-11  Bruno Haible  <bruno@clisp.org>
2564         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
2565         * modules/libunistring: (License): Change from LGPL to
2566         "LGPLv3+ or GPLv2".
2567         * modules/libunistring-optional: Likewise.
2568         * modules/unicase/*: Likewise.
2569         * modules/uniconv/*: Likewise.
2570         * modules/unictype/*: Likewise.
2571         * modules/unigbrk/*: Likewise.
2572         * modules/unilbrk/*: Likewise.
2573         * modules/uniname/*: Likewise.
2574         * modules/uninorm/*: Likewise.
2575         * modules/unistdio/*: Likewise.
2576         * modules/unistr/*: Likewise.
2577         * modules/uniwbrk/*: Likewise.
2578         * modules/uniwidth/*: Likewise.
2580 2016-11-12  Bruno Haible  <bruno@clisp.org>
2582         Relicense some modules under LGPLv2+.
2583         Paul Eggert's approval is in
2584         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00037.html.
2585         Eric Blake's approval is in
2586         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00042.html.
2587         Ludovic Courtès's approval is in
2588         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00038.html.
2589         * modules/isnand-nolibm (License): Change to LGPLv2+.
2590         * modules/isnanf-nolibm (License): Likewise.
2591         * modules/isnanl-nolibm (License): Likewise.
2593 2016-11-19  Bruno Haible  <bruno@clisp.org>
2595         Relicense some modules under LGPLv2+.
2596         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
2597         modules/vasnprintf.
2598         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
2599         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00074.html.
2600         All other significant changes to the files in lib/ of these modules
2601         are from me.
2602         * modules/memcmp2 (License): Change to LGPLv2+.
2603         * modules/amemxfrm (License): Likewise.
2604         * modules/fpieee (License): Likewise.
2605         * modules/fpucw (License): Likewise.
2606         * modules/frexp-nolibm (License): Likewise.
2607         * modules/frexpl-nolibm (License): Likewise.
2608         * modules/printf-frexp (License): Likewise.
2609         * modules/printf-frexpl (License): Likewise.
2610         * modules/printf-safe (License): Likewise.
2611         * modules/signbit (License): Likewise.
2613 2016-11-17  Bruno Haible  <bruno@clisp.org>
2615         Enable Unicode decoder safety unconditionally.
2616         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
2617         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
2618         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
2619         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
2620         * lib/unistr/u8-prev.c (u8_prev): Likewise.
2621         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
2622         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
2623         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
2624         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
2625         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
2626         * lib/unistr/u16-prev.c (u16_prev): Likewise.
2627         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
2628         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
2629         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
2630         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
2631         * lib/unistr/u32-prev.c (u32_prev): Likewise.
2632         * lib/unistr/u32-next.c (u32_next): Likewise.
2633         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
2634         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
2635         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
2636         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
2637         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
2638         CONFIG_UNICODE_SAFETY tests unconditionally.
2639         * tests/unistr/test-u32-mblen.c (main): Likewise.
2640         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
2641         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
2642         * tests/unistr/test-u32-next.c (main): Likewise.
2643         * tests/unistr/test-u32-strmblen.c (main): Likewise.
2644         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
2645         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
2646         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
2647         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
2648         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
2649         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
2650         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
2651         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
2652         * lib/unistr/u16-check.c (u16_check): Update comment.
2653         * NEWS: Mention the changes that callers should be aware of.
2655 2016-11-19  Bruno Haible  <bruno@clisp.org>
2657         relocatable-prog-wrapper: Fix breakage on Cygwin.
2658         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
2659         (Depends-on): Remove intprops.
2660         * lib/relocwrapper.c: Update dependency tree.
2661         (strerror): Undefine.
2662         * build-aux/install-reloc (func_create_wrapper): Do not compile
2663         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
2665 2016-11-19  Bruno Haible  <bruno@clisp.org>
2667         strerror: Make it compile in C++ mode.
2668         * lib/strerror.c (strerror): Ignore the return value of memcpy().
2670 2016-11-15  Pedro Alves  <palves@redhat.com>
2672         sys_time: add gnulib::timeval for C++
2673         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
2674         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
2675         timeval macro.
2677 2016-11-14  Pedro Alves  <palves@redhat.com>
2679         snippet/c++defs: fix real-floating arg functions in C++ mode
2680         Also, define isfinite, isinf, isnan, signbit in the gnulib
2681         namespace instead of in the global namespace.
2682         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
2683         (_GL_END_NAMESPACE): New.
2684         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
2685         (isfinite, isinf, isnan, signbit) [__cplusplus &&
2686         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
2687         instead of in the global namespace.
2688         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
2689         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
2690         of in the global namespace.
2692 2016-11-13  Jim Meyering  <meyering@fb.com>
2694         strftime: don't use __THROW
2695         Each use of __THROW would provoke this from gcc-7-to-be:
2697           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
2698             on unit local functions [-Wattributes]
2699           static int iso_week_days (int, int) __THROW;
2700           ^~~~~~
2701         * lib/strftime.c (__THROW): Don't define.
2702         Remove each use of __THROW.
2703         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
2704         (tm_diff, iso_week_days, __strftime_internal): Likewise.
2706 2016-11-14  Paul Eggert  <eggert@union>
2708         obstack: port to gcc -fcheck-pointer-bounds
2709         Problem found by 'make check' failure on bleeding-edge coreutils
2710         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
2711         6.2.0-5ubuntu12), configured via "./configure
2712         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
2713         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
2714         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
2715         New macro, copied from fts_.h.
2716         (struct _obstack_chunk.contents): Use it.
2718 2016-11-14  Eric Blake  <eblake@redhat.com>
2720         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
2721         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
2722         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
2724 2016-11-14  Pádraig Brady  <P@draigBrady.com>
2726         strptime: fix compile error in recent change
2727         * lib/strptime.c (__strptime_internal): Fix ported code.
2729 2016-11-11  Bruno Haible  <bruno@clisp.org>
2731         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
2732         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
2733         (func_import): Extend determination of license_incompatibilities.
2734         (func_create_testdir): Extend table of license compatibility. Handle
2735         also the licenses GPLv3+, GPL, LGPLv3+.
2737 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
2739         strftime: tune %q
2740         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
2742         Merge strftime.c changes from glibc
2743         This incorporates:
2744         2007-10-16 [BZ #5184] Add tzset_called argument
2745         2008-06-13 [BZ #6612] pass reference to tzset_called around
2746         2009-10-30 Implement Burmese language locale for Myanmar
2747         2010-01-09 Add support for XPG7 testing
2748         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
2749         2015-10-20 Convert miscellaneous function definitions to prototype style
2750         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
2751         it anyway and this lessens the difference between gnulib and glibc.
2752         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
2753         (__THROW): Define if standard headers do not.
2754         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
2755         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
2756         Declare with __THROW.
2757         (__strftime_internal): Rename from strftime_case_. Add arg for
2758         whether tzset is called.  All uses changed.  Call tzset at most
2759         once.  Allow %OC, for Burmese.
2760         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
2761         Don't assume values are in range.
2763 2016-11-12  Eric Blake  <eblake@redhat.com>
2765         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
2766         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
2767         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
2768         different value.
2770 2006-11-12  Pedro Alves  <palves@redhat.com>
2772         Fix gnulib C++ namespace support and std::frexp
2773         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
2774         _GL_CXXALIASWARN.
2776 2006-11-12  Pedro Alves  <palves@redhat.com>
2778         GNULIB_NAMESPACE::func need not pull in rpl_func
2779         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
2780         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
2781         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
2782         struct instead of a function pointer.
2784 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
2786         manywarnings: fix -Wno-missing-field-initializers detection
2787         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
2788         to be independent of -Wunused-variable.  I.E. ensure the latter
2789         warning doesn't occur so that detection of the former is accurate.
2791 2016-11-05  Pádraig Brady  <pbrady@fb.com>
2793         strftime,strptime: support %q to represent the quarter
2794         * lib/strftime.c (strftime_case_): Add %q case.
2795         * lib/strptime.c (__strptime_internal): Likewise.
2796         * tests/test-strftime.c (quarter_test): A new test case.
2798 2016-11-03  Eric Blake  <eblake@redhat.com>
2800         bootstrap: Fix get_version() for AIX 5.3
2801         * build-aux/bootstrap (get_version): Factor out sed script, since
2802         indented comments choke AIX 5.3 sed.
2803         Reported-by: Michael Felt <aixtools@gmail.com>
2805 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
2807         intprops: port to older XL C
2808         Problem reported by Alexander Samoilov in:
2809         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00166.html
2810         http://savannah.nongnu.org/bugs/?49448
2811         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
2812         Define to 1 only for XL C 12.1 or later, since this bug
2813         occurs in XL C for AIX 6.0 but not in 12.1.
2815 2016-11-02  Pádraig Brady  <P@draigBrady.com>
2817         backupfile: initialize default suffix within the implementation
2818         * lib/backupfile.c (find_backup_file_name): Initialize the
2819         global variable here, to simplify usage, and to only call
2820         getenv() when needed.
2822 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2824         futimens: remove FIXME for old Linux kernels
2825         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
2826         this in 2012" FIXME, like that for utimensat.
2828         utimensat: remove FIXME for old Linux kernels
2829         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
2830         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
2831         this in 2012" FIXME, by assuming the file system bug is absent
2832         unless demonstrated to be present.  We no longer need to worry
2833         about Linux kernel 2.6.32 when building with newer kernels.
2835 2016-10-16  Bruno Haible  <bruno@clisp.org>
2837         qsort_r: Fix macrology for platforms that lack the function.
2838         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
2839         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
2840         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
2841         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
2842         not exist.
2843         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
2844         the function exists.
2845         * modules/qsort_r: Add comments.
2847 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2849         sys_types: fix Texinfo typos
2850         * doc/glibc-functions/gnu_dev_major.texi:
2851         * doc/glibc-functions/gnu_dev_makedev.texi:
2852         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
2854 2016-10-26  John David Anglin  <dave.anglin@bell.net>
2856         getprogname: port to HP-UX
2857         See Bug#24805.
2858         * lib/getprogname.c (getprogname) [__hpux]: Port.
2859         * tests/test-getprogname.c (STREQ) [__hpux]:
2860         Special-case for HP-UX limitations on program name length.
2862 2016-10-20  Bruno Haible  <bruno@clisp.org>
2864         Update doc about target platforms.
2865         * doc/gnulib-intro.texi (Target Platforms): Update list.
2867 2016-10-15  Bruno Haible  <bruno@clisp.org>
2869         opendir, readdir, closedir: Relicense under LGPLv2+.
2870         * modules/opendir (License): Change to LGPLv2+.
2871         * modules/readdir (License): Likewise.
2872         * modules/closedir (License): Likewise.
2874 2016-10-16  Bruno Haible  <bruno@clisp.org>
2876         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
2877         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
2878         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
2879         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
2880         HAVE_DECL_STRERROR_R.
2882 2016-10-16  Bruno Haible  <bruno@clisp.org>
2884         Make the 'argp' module work without the 'error' module.
2885         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
2887 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
2889         diffseq: restore TOO_EXPENSIVE heuristic
2890         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
2891         (Bug#24715).  The simplest solution is to restore the
2892         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
2893         using a higher threshold to avoid Bug#16848 on smaller files.
2894         * lib/diffseq.h (struct context): Restore member too_expensive.
2895         (struct partition): Restore members lo_minimal, hi_minimal.
2896         (diag, compareseq): Restore arg find_minimal.  All uses changed.
2897         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
2898         1993 to make 'diff' run faster (but not as well) on large inputs,
2899         but use a threshold of 4096 instead of the old 256.
2900         * lib/fstrcmp.c (strcmp_bounded):
2901         * lib/git-merge-changelog.c (compute_differences):
2902         Adjust to diffseq.h changes.
2904 2016-10-22  Bruno Haible  <bruno@clisp.org>
2906         iconv: Avoid compilation error when bootstrapping GNU libiconv.
2907         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
2908         declaration yet, define ICONV_CONST to empty.
2910 2016-10-15  Bruno Haible  <bruno@clisp.org>
2912         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
2913         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
2914         module.
2916 2016-10-16  Bruno Haible  <bruno@clisp.org>
2918         system-quote tests: Avoid compiler warning on AIX.
2919         * tests/test-system-quote-child.c (fopen): Redefine like the system's
2920         <stdio.h> does.
2922 2016-10-16  Bruno Haible  <bruno@clisp.org>
2924         Fix some "gcc -Wall" warnings.
2925         * tests/test-ffsl.c (main): Use variable x, not i.
2926         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
2927         freopen.
2928         * tests/test-sethostname1.c (main): Explicitly ignore the return value
2929         of sethostname.
2931 2016-10-16  Bruno Haible  <bruno@clisp.org>
2933         gnulib-tool: Make --create-testdir on all modules work again.
2934         * gnulib-tool (func_create_testdir): Don't include the
2935         non-recursive-gnulib-prefix-hack module.
2937 2016-10-21  Daiki Ueno  <ueno@gnu.org>
2939         libunistring: change the maintainer to 'all'
2940         * modules/gen-uni-tables, modules/libunistring:
2941         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
2942         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
2943         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
2944         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
2945         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
2946         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
2947         * modules/uniwidth/*: Change the maintainer to 'all'.
2949 2016-10-16  Bruno Haible  <bruno@clisp.org>
2951         Simplify "configure: checking ..." messages.
2952         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
2953         AC_MSG_NOTICE.
2954         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
2956 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
2958         quotearg-tests: pacify gcc -Wall
2959         Problem reported by Bruno Haible in:
2960         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00066.html
2961         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
2962         * tests/test-quotearg.h: ... from here.
2964 2016-10-20  Pádraig Brady  <P@draigBrady.com>
2966         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
2967         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
2968         Needed on Centos <= 4.
2970 2016-10-20  Jim Meyering  <meyering@fb.com>
2972         printf.m4: fix a bug in detecting printf %j support
2973         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
2974         uintmax_t is defined in neither stdint.h nor inttypes.h.
2975         Before, this macro might have mistakenly set
2976         gl_cv_func_printf_sizes_c99=yes on such a system.
2977         Spotted by Zev Weiss.
2979 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
2981         sched: substitute HAVE_SYS_CDEFS_H too
2982         Problem reported by Tom G. Christensen in:
2983         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00084.html
2984         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
2985         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
2987 2016-10-19  Pádraig Brady  <P@draigBrady.com>
2989         quotearg: never write beyond the returned length
2990         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
2991         scan of the string when we initially encounter a single quote when
2992         shell quoting, so that if we then switch to a more concise quoting method
2993         we will not have written beyond that returned length.
2994         This is significant for sh-quote, which has separate routines
2995         to determine the length and do the actual quoting.
2996         * tests/test-quotearg.h: Reinstate the buffer bounds checking
2997         now that we never write more than the returned length.
2999 2016-10-18  Bruno Haible  <bruno@clisp.org>
3001         getprogname tests: Avoid failure in packages that use libtool.
3002         * tests/test-getprogname.c (main): Strip "lt-" prefix.
3003         Based on a patch by Jim Meyering.
3005 2016-10-16  Bruno Haible  <bruno@clisp.org>
3007         getprogname: Fix test failure on Cygwin. Comments.
3008         * lib/getprogname.h: Add comments.
3009         * lib/getprogname.c: Add comments. Fix #elif indentation.
3010         * tests/test-getprogname.c (main): On Cygwin, expect a result without
3011         ".exe" suffix.
3013 2016-10-16  Bruno Haible  <bruno@clisp.org>
3015         Make sure the libunistring detection rejects older versions with a
3016         known bug.
3017         * modules/unistr/u8-strtok (configure.ac): Bump required version.
3018         * modules/unistr/u16-strtok (configure.ac): Likewise.
3019         * modules/unistr/u32-strtok (configure.ac): Likewise.
3021 2016-10-18  Bruno Haible  <bruno@clisp.org>
3023         sh-quote, system-quote: revert regression of unit test.
3024         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
3025         * tests/test-system-quote-main.c (check_one): Likewise.
3027 2016-10-16  Pádraig Brady  <P@draigBrady.com>
3029         quotearg: fix stale tests
3030         * tests/test-quotearg.c [locale_results]: Add the missing str7
3031         entries to the expected results.
3032         * tests/test-system-quote-main.c (check_one): Don't enforce that we
3033         don't write beyond the returned length, since that's no longer the
3034         case if we switch to a more concise quoting style.
3035         * tests/test-sh-quote.c (check_one): Likewise.
3036         (main): Adjust for the new more concise quoting style.
3037         Reported by Bruno Haible.
3039 2016-10-16  Jim Meyering  <meyering@fb.com>
3041         non-recursive-gnulib-prefix-hack: fix inconsequential typo
3042         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
3043         to "$1".  This macro is always invoked with $1 == lib.
3044         Spotted by Bruno Haible
3046 2016-10-16  Bruno Haible  <bruno@clisp.org>
3048         Fix a test crash.
3049         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
3050         fails.
3052 2016-10-16  Pádraig Brady  <P@draigBrady.com>
3054         test-limits-h: suppress -Woverlength-strings
3055         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
3057 2016-10-15  Bruno Haible  <bruno@clisp.org>
3059         gettime, timespec, utimens: Relicense under LGPL.
3060         * modules/gettime (License): Change to LGPL.
3061         * modules/timespec (License): Likewise.
3062         * modules/utimens (License): Likewise.
3064 2016-10-14  Bruno Haible  <bruno@clisp.org>
3065             Pádraig Brady  <P@draigBrady.com>
3067         canonicalize-lgpl: Support the case path_max > INT_MAX.
3068         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
3069         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
3071 2016-10-13  Jim Meyering  <meyering@fb.com>
3073         getprogname: IBM z/OS: avoid NULL-dereference
3074         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
3075         upon strdup failure.
3077 2016-10-12  Jim Meyering  <meyering@fb.com>
3079         test-stdint: use _GL_VERIFY rather than "verify" for some tests
3080         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
3081         and an abbreviated diagnostic rather than verify with the full one,
3082         because the full-length strings would evoke warnings from gcc with
3083         -Woverlength-strings.
3085 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
3087         stdint: port SIZE_MAX to glibc s390
3088         Problem reported by Eric Blake in:
3089         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00031.html
3090         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
3091         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
3092         correct type, if possible.
3094 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
3096         getprogname: port to IBM z/OS
3097         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
3099 2016-10-11  Jim Meyering  <meyering@fb.com>
3101         maint: remove stray space after "." in AC_DEFINE comment.
3102         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
3103         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3105 2016-10-05  Jim Meyering  <meyering@fb.com>
3107         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
3108         * lib/long-options.c (parse_long_options): Add a break statement
3109         to avoid this new warning/failure:
3110         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
3111           --create-testdir --dir=/t/x --with-tests --test long-options
3112         ../../gllib/long-options.c: In function 'parse_long_options':
3113         ../../gllib/long-options.c:66:12: error: this statement may \
3114           fall through [-Werror=implicit-fallthrough]
3115                    (*usage_func) (EXIT_SUCCESS);
3116                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
3118 2016-10-05  Jim Meyering  <meyering@fb.com>
3120         utimecmp: avoid new GCC 7 warning from -Wbool-operation
3121         Testing this module would fail when using GCC 7 like this:
3122         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
3123           --dir=/tmp/x --with-tests --test utimecmp
3124         ../../gllib/utimecmp.c: In function ‘utimecmp’:
3125         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
3126           [-Werror=bool-operation]
3127                          time_t s = src_s & ~ (res == 2 * BILLION);
3128                                             ^
3129         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
3130           [-Werror=bool-operation]
3131                src_s &= ~ (res == 2 * BILLION);
3132                         ^
3133         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
3134         Instead, make it explicit that we intend to apply it to 0 or 1.
3136 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3138         dfa: save memory for states
3139         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
3140         states if dfa has a lot of caches.
3142 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
3144         wchar, wctype-h: fix for MinGW 3.22.2
3145         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
3146         special invocation, to fix issues with MinGW 3.22.2 wchar.h
3147         when included from <string.h>.
3148         * lib/wctype.in.h [__MINGW32__]: Add special invocation
3149         convention for MinGW 3.22.2, to solve issues with their
3150         wctype.h when included from <ctype.h>.
3152 2016-10-05  Jim Meyering  <meyering@fb.com>
3154         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
3155         * lib/long-options.c (parse_long_options): Add a break statement
3156         to avoid this new warning/failure:
3157         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
3158           --create-testdir --dir=/t/x --with-tests --test long-options
3159         ../../gllib/long-options.c: In function ‘parse_long_options’:
3160         ../../gllib/long-options.c:66:12: error: this statement may \
3161           fall through [-Werror=implicit-fallthrough]
3162                    (*usage_func) (EXIT_SUCCESS);
3163                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
3165         utimecmp: avoid new GCC 7 warning from -Wbool-operation
3166         Testing this module would fail when using GCC 7 like this:
3167         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
3168           --dir=/tmp/x --with-tests --test utimecmp
3169         ../../gllib/utimecmp.c: In function ‘utimecmp’:
3170         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
3171           [-Werror=bool-operation]
3172                          time_t s = src_s & ~ (res == 2 * BILLION);
3173                                             ^
3174         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
3175           [-Werror=bool-operation]
3176                src_s &= ~ (res == 2 * BILLION);
3177                         ^
3178         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
3179         Instead, make it explicit that we intend to apply it to 0 or 1.
3181 2016-10-03  Pádraig Brady  <P@draigBrady.com>
3183         quotearg: minimize shell quoting using double quotes
3184         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
3185         quote in encountered then use double quotes (c style quoting)
3186         when possible, as it simplifies the quoting.
3187         * tests/test-quotearg-simple.c: Add test cases.
3188         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
3189         for the fact we now may write beyond the returned length.
3191 2016-10-02  Jim Meyering  <meyering@fb.com>
3193         vasnprintf.c: avoid spurious warning from GCC 7
3194         The presence of cpp directives renders this "FALLTHROUGH" comment
3195         ineffective, so does not suppress the -Wimplicit-fallthrough warning
3196         from GCC 7 built from git on 2016-10-02.
3197         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
3198         directives, so that it takes effect once again.  This is clearly
3199         not a proper change, and I will revert it once this bug is fixed:
3200         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
3202 2016-10-01  Jim Meyering  <meyering@fb.com>
3204         getprogname: correct the test for a __progname variable
3205         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
3206         and AC_LINK_IFELSE to check for a global __progname.  If found,
3207         define HAVE_VAR___PROGNAME.
3208         * lib/getprogname.c (getprogname): Reflect the new name of the
3209         feature- checked preprocessor symbol:
3210         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
3212 2016-09-28  Jim Meyering  <meyering@fb.com>
3214         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
3215         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
3216         fall-through case with a /* fallthrough */ comment.
3218         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
3219         * lib/dfa.c (dfassbuild): Mark the end of this case with a
3220         /* fallthrough */ comment.
3222         getprogname: avoid __progname vs program_invocation_short_name pitfall
3223         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
3224         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
3225         not with Fedora 24's glibc-2.23.1-10.
3226         * lib/getprogname.c (__progname): Move this declaration down...
3227         (getprogname): ... into the #elif block where used, and make it
3228         explicitly "extern".
3230         getprogname: port to OpenBSD 5.1
3231         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
3232         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
3233         * modules/getprogname (configure.ac): Move most of this code...
3234         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
3235         increment serial number, and add a test for __progname.
3236         https://bugs.gnu.org/24562
3237         Reported by Nelson H. F. Beebe.
3239 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3241         sched: port to GCC 6.2.1 on macOS Sierra
3242         Problem reported by Denis Davydov in:
3243         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00056.html
3244         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
3245         Include <sys/cdefs.h> before <sched.h>.
3246         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
3247         so that we needn’t worry about the sched.h include bug here.
3248         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
3249         and include it before <sched.h> if it exists, when
3250         checking for <sched.h>.
3252         tests/init.sh: port Alpine fix to AIX 7.1
3253         * tests/init.sh (compare_): When attempting to use diff -U3,
3254         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
3255         diff -u not outputting a space after leading '+', as the users
3256         of 'compare' should not be that picky about its output format.
3257         In the AIX 7.1 case, return with diff exit status (or with 2 if
3258         trouble), instead of some random nonzero exit status.
3259         * tests/test-init.sh (test_compare): Remove space after leading
3260         '+', so that AIX 7.1 'diff' passes the test.
3262 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3264         nl_langinfo: pacify GCC
3265         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
3266         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
3268         stdint: also set GL_GENERATE_LIMITS_H
3269         Problem reported by Jim Meyering in:
3270         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00052.html
3271         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
3273         limits-h, stdint: Don't assume extensions, fix typo
3274         * m4/limits-h.m4 (gl_LIMITS_H):
3275         * m4/stdint.m4 (gl_STDINT_H):
3276         Don't assume AC_USE_SYSTEM_EXTENSIONS.
3277         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
3278         reported by Jim Meyering in:
3279         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00050.html
3281 2016-09-21  Jim Meyering  <meyering@fb.com>
3283         getprogname: port to AIX
3284         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
3285         and strdup to obtain a short program name string.  Using code from
3286         Bruno Haible and an idea from Bastien ROUCARIÈS, in
3287         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
3288         Assaf Gordon reported that this new file would fail to compile on
3289         AIX-7.1 32bit.
3291 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3293         extensions: fix typo in comment
3294         * m4/extensions.m4: Sync from Autoconf master.
3296         stdint: support new _WIDTH macros
3297         * doc/posix-headers/stdint.texi: Document this.
3298         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
3299         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
3300         support for INTMAX_WIDTH, etc. as well as for support for just C99.
3301         * modules/stdint (Depends-on): Add limits-h.
3302         (Makefile.am): Substitute HAVE_C99_STDINT_H.
3303         * modules/stdint-tests (Depends-on): Add extensions, so that
3304         INTMAX_MAX etc. are defined.
3305         * tests/test-stdint.c: Verify the new macros.
3307         limits-h: new module
3308         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
3309         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
3310         * doc/posix-headers/limits.texi: Document new module.
3311         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
3312         * modules/limit-h-tests, tests/test-limits-h.c: New files.
3314         stdio: don't redefine __USE_MINGW_ANSI_STDIO
3315         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
3316         if it is already defined.  Apparently GNU Emacs relies on this.  See:
3317         http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00416.html
3319 2016-09-15  Eric Blake  <eblake@redhat.com>
3321         sys_types: avoid glibc 2.25 warnings about major()
3322         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
3323         older autoconf.
3324         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
3325         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
3326         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
3327         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
3329         mountlist: include sysmacros.h for glibc
3330         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
3331         AC_HEADER_MAJOR.
3332         * lib/mountlist.c (includes): Use correct headers.
3334 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
3336         extensions: port to more ISO C TSes
3337         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
3338         master, to add support for more recent ISO C TRs and TSes.
3340 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3342         intprops: new macro TYPE_WIDTH
3343         * lib/intprops.h (TYPE_WIDTH): New macro.
3344         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
3345         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
3346         * lib/parse-datetime.y (parse_datetime2):
3347         Use it.
3349         extensions: port to recent ISO C TRs
3350         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
3351         Sync from Autoconf master, to add support for recent ISO C TRs.
3352         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
3353         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
3354         the MinGW option is not an extension.
3356 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
3358         dfa: port to Solaris 9
3359         Problems reported by Tom G. Christensen in:
3360         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00031.html
3361         * modules/dfa (Depends-on): Add isblank.
3362         * modules/dfa-tests (dfa_match_aux_LDADD):
3363         Rename from test_stat_LDADD, to fix typo.
3364         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
3366 2016-09-10  Jim Meyering  <meyering@fb.com>
3368         strverscmp: avoid link failure on OS X
3369         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
3370         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
3372 2016-08-16  Jim Meyering  <meyering@fb.com>
3374         dfa: new module, importing grep's DFA matcher
3375         Since grep's DFA matcher is now being used by two gnulib-enabled
3376         projects, grep and sed, it makes sense to version-control its
3377         sources and unit tests in one place: here.
3378         * modules/dfa: New module.
3379         * modules/dfa-tests: New file.
3380         * lib/dfa.c: New file, from grep.
3381         * lib/dfa.h: Likewise.
3382         * lib/localeinfo.c: Likewise.
3383         * lib/localeinfo.h: Likewise.
3384         * tests/dfa-match-aux.c: Likewise.
3385         * tests/dfa-invalid-char-class.sh: Likewise.
3386         * tests/dfa-match.sh: Likewise, with minor changes.
3387         * MODULES.html.sh (Misc): Add "dfa" to this list.
3389 2016-09-09  Jim Meyering  <meyering@fb.com>
3391         getprogname-tests: don't depend on assert-h
3392         * modules/getprogname-tests (Depends-on): Remove assert-h.
3393         It was not needed, and in fact would cause build failure for
3394         coreutils on some systems.  Reported by Assaf Gordon in https:
3395         //lists.gnu.org/archive/html/coreutils/2016-09/msg00016.html
3397 2016-09-07  Jim Meyering  <meyering@fb.com>
3399         getprogname-tests: work also when EXEEXT is nonempty
3400         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
3401         * tests/test-getprogname.c (main): Use it.
3402         Suggested by Gisle Vanem.
3404 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
3406         getprogname: fix errors in previous change
3407         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
3408         s/program_invocation_name/base/
3409         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
3411 2016-09-08  Pádraig Brady  <P@draigBrady.com>
3413         parse-datetime: restrict debug output to input string
3414         * lib/parse-datetime.y (parse_datetime2): If we parse
3415         all of the input but determine it's invalid, ensure
3416         we don't output the now invalid input pointer.
3417         This issue was seen with `date -d 'now +1'`.
3419 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
3421         flexmember: new macro FLEXALIGNOF
3422         * lib/flexmember.h: Include <stddef.h>, for offsetof.
3423         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
3424         this macro.  Update comments.
3426 2016-09-07  Jim Meyering  <meyering@fb.com>
3428         getprogname: port to systems with __argv (mingw, msvc)
3429         * lib/getprogname.c (getprogname): Include "dirname.h" and use
3430         last_component: more general than open coding it with hard-coded "/".
3431         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
3432         * modules/getprogname (Depends-on): Add dirname-lgpl.
3433         (configure.ac): Check for __argv in <stdlib.h>.
3434         * modules/getprogname-tests: New file.
3435         * tests/test-getprogname.c: New file.
3436         Suggested by Gisle Vanem in
3437         https://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00014.html
3439 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
3441         flexmember: port better to GCC + valgrind
3442         With a char[] flexible array member in a struct with nontrivial
3443         alignment, GCC-generated code can access past the end of the
3444         array, because GCC assumes there are padding bytes to get the
3445         struct aligned.  So the common idiom of malloc (offsetof (struct
3446         s, m), n) does not properly allocate an n-byte trailing member, as
3447         malloc’s argument should be the next multiple of alignof (struct s).
3448         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
3449         Although C11 apparently permits this GCC optimization (i.e., there
3450         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
3451         See the thread containing:
3452         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
3453         * lib/flexmember.h: New file.
3454         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
3455         * lib/localename.c, lib/time_rz.c:
3456         Include flexmember.h.
3457         * lib/fnmatch_loop.c (struct patternlist):
3458         * lib/localename.c (struct hash_node):
3459         Use FLEXIBLE_ARRAY_MEMBER.
3460         * lib/fnmatch_loop.c (EXT):
3461         * lib/fts.c (fts_alloc):
3462         * lib/glob.c (glob_in_dir):
3463         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
3464         * lib/localename.c (gl_lock_define_initialized):
3465         * lib/time_rz.c (tzalloc):
3466         Use FLEXSIZEOF instead of offsetof.
3467         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3468         Check that the size of the struct can be taken.
3469         * modules/flexmember (Files): Add lib/flexmember.h.
3470         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
3471         Add flexmember.
3473 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
3475         getprogname: port to Solaris 10
3476         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
3477         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
3478         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
3480         stdalign: correct mistake in alignof doc
3481         Problem reported by Joseph Myers in:
3482         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
3483         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
3484         alignof(S) where S is a structure containing a flexible array
3485         member.  The Gnulib substitute does not support this, but C11 does.
3487 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
3489         main.mk: remove sc_program_name, since there is no more need to
3490         use set_program_name in tools (getprogname is enough for most
3491         of the cases).
3492         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
3493         * top/maint.mk (sc_program_name): Remove.
3495 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
3497         Port tests away from progname, since modules that need the
3498         program name already depend on getprogname.
3499         * modules/acl-tests (Depends-on): Remove progname.
3500         * modules/argmatch (Depends-on): Likewise.
3501         * modules/argmatch-tests (Depends-on): Likewise.
3502         * modules/argp-tests (Depends-on): Likewise.
3503         * modules/argp-version-etc-tests (Depends-on): Likewise.
3504         * modules/array-list-tests (Depends-on): Likewise.
3505         * modules/array-oset-tests (Depends-on): Likewise.
3506         * modules/avltree-list-tests (Depends-on): Likewise.
3507         * modules/avltree-oset-tests (Depends-on): Likewise.
3508         * modules/avltreehash-list-tests (Depends-on): Likewise.
3509         * modules/carray-list-tests (Depends-on): Likewise.
3510         * modules/copy-file-tests (Depends-on): Likewise.
3511         * modules/exclude-tests (Depends-on): Likewise.
3512         * modules/fchownat-tests (Depends-on): Likewise.
3513         * modules/fdopendir-tests (Depends-on): Likewise.
3514         * modules/filenamecat-tests (Depends-on): Likewise.
3515         * modules/fstatat-tests (Depends-on): Likewise.
3516         * modules/fstrcmp-tests (Depends-on): Likewise.
3517         * modules/linked-list-tests (Depends-on): Likewise.
3518         * modules/linkedhash-list-tests (Depends-on): Likewise.
3519         * modules/mkdirat-tests (Depends-on): Likewise.
3520         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
3521         * modules/nonblocking-socket-tests (Depends-on): Likewise.
3522         * modules/obstack-printf-tests (Depends-on): Likewise.
3523         * modules/openat-tests (Depends-on): Likewise.
3524         * modules/parse-datetime-tests (Depends-on): Likewise.
3525         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
3526         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
3527         * modules/quotearg-simple-tests (Depends-on): Likewise.
3528         * modules/quotearg-tests (Depends-on): Likewise.
3529         * modules/rbtree-list-tests (Depends-on): Likewise.
3530         * modules/rbtree-oset-tests (Depends-on): Likewise.
3531         * modules/rbtreehash-list-tests (Depends-on): Likewise.
3532         * modules/spawn-pipe-tests (Depends-on): Likewise.
3533         * modules/system-quote-tests (Depends-on): Likewise.
3534         * modules/uniname/uniname-tests (Depends-on): Likewise.
3535         * modules/uninorm/nfc-tests (Depends-on): Likewise.
3536         * modules/uninorm/nfd-tests (Depends-on): Likewise.
3537         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
3538         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
3539         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
3540         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
3541         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
3542         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
3543         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
3544         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
3545         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
3546         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
3547         * modules/unlinkat-tests (Depends-on): Likewise.
3548         * modules/version-etc-tests (Depends-on): Likewise.
3549         * modules/xalloc-die-tests (Depends-on): Likewise.
3550         * modules/xmemdup0-tests (Depends-on): Likewise.
3551         * modules/xprintf-posix-tests (Depends-on): Likewise.
3552         * modules/xvasprintf-tests (Depends-on): Likewise.
3553         * tests/test-argmatch.c: Do not include progname.h.
3554         (main) Stop calling set_program_name.
3555         * tests/test-argp-version-etc.c: Likewise.
3556         * tests/test-argp.c: Likewise.
3557         * tests/test-argv-iter.c: Likewise.
3558         * tests/test-array_list.c: Likewise.
3559         * tests/test-array_oset.c: Likewise.
3560         * tests/test-avltree_list.c: Likewise.
3561         * tests/test-avltree_oset.c: Likewise.
3562         * tests/test-avltreehash_list.c: Likewise.
3563         * tests/test-carray_list.c: Likewise.
3564         * tests/test-copy-acl.c: Likewise.
3565         * tests/test-copy-file.c: Likewise.
3566         * tests/test-exclude.c: Likewise.
3567         * tests/test-fchownat.c: Likewise.
3568         * tests/test-fdopendir.c: Likewise.
3569         * tests/test-filenamecat.c: Likewise.
3570         * tests/test-fstatat.c: Likewise.
3571         * tests/test-fstrcmp.c: Likewise.
3572         * tests/test-linked_list.c: Likewise.
3573         * tests/test-linkedhash_list.c: Likewise.
3574         * tests/test-mkdirat.c: Likewise.
3575         * tests/test-nonblocking-pipe-main.c: Likewise.
3576         * tests/test-nonblocking-socket-main.c: Likewise.
3577         * tests/test-obstack-printf.c: Likewise.
3578         * tests/test-openat.c: Likewise.
3579         * tests/test-parse-datetime.c: Likewise.
3580         * tests/test-pipe-filter-gi1.c: Likewise.
3581         * tests/test-pipe-filter-gi2-main.c: Likewise.
3582         * tests/test-pipe-filter-ii1.c: Likewise.
3583         * tests/test-pipe-filter-ii2-main.c: Likewise.
3584         * tests/test-quotearg-simple.c: Likewise.
3585         * tests/test-quotearg.c: Likewise.
3586         * tests/test-rbtree_list.c: Likewise.
3587         * tests/test-rbtree_oset.c: Likewise.
3588         * tests/test-rbtreehash_list.c: Likewise.
3589         * tests/test-sameacls.c: Likewise.
3590         * tests/test-set-mode-acl.c: Likewise.
3591         * tests/test-spawn-pipe-main.c: Likewise.
3592         * tests/test-system-quote-main.c: Likewise.
3593         * tests/test-unlinkat.c: Likewise.
3594         * tests/test-version-etc.c: Likewise.
3595         * tests/test-xalloc-die.c: Likewise.
3596         * tests/test-xfprintf-posix.c: Likewise.
3597         * tests/test-xmemdup0.c: Likewise.
3598         * tests/test-xprintf-posix.c: Likewise.
3599         * tests/test-xvasprintf.c: Likewise.
3600         * tests/uniname/test-uninames.c: Likewise.
3601         * tests/uninorm/test-u32-nfc-big.c: Likewise.
3602         * tests/uninorm/test-u32-nfd-big.c: Likewise.
3603         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
3604         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
3605         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
3606         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
3607         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
3608         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
3609         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
3610         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
3611         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
3612         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
3613         * tests/test-c-stack.c: (program_name): Do not define.
3614         (main): Do not set program_name.
3615         * tests/test-closein.c: Likewise.
3616         * tests/test-xstrtol.c: Likewise.
3617         * tests/test-yesno.c: Likewise.
3619 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
3621         Port modules to use getprogname explicitly, instead of requiring
3622         progname to be used (or program_name to be provided).
3623         * lib/argmatch.c: Do not include progname.h.
3624         [TEST] (program_name): Do not define.
3625         [TEST] (main): Call getprogname instead of using program_name.
3626         * lib/c-stack.c: Do not include progname.h.
3627         (program_name): Do not define.
3628         (die): Call getprogname instead of using program_name.
3629         * lib/chdir-long.c: Do not include progname.h.
3630         [TEST_CHDIR] (main): Do not set program_name.
3631         * lib/error.c [!_LIBC]: Include progname.h.
3632         [!_LIBC] (program_name): Define using getprogname.
3633         * lib/euidaccess.c: Do not include progname.h.
3634         [TEST] (main): Do not set program_name.
3635         * lib/git-merge-changelog.c: Include getprogname.h instead of
3636         progname.h.
3637         (usage): Call getprogname instead of using program_name.
3638         (main): Likewise.  Stop calling set_program_name.
3639         * lib/group-member.c: Do not include progname.h.
3640         [TEST] (main): Do not set program_name.
3641         * modules/argmatch (Depends-on): Add getprogname.
3642         * modules/c-stack (Depends-on): Likewise.
3643         * modules/error (Depends-on): Likewise.
3644         * modules/git-merge-changelog (Depends-on): Likewise.
3645         Also remove progname.
3647 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
3649         * NEWS: Document the deprecation of the 'progname' module.
3651 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
3653         getprogname: new module
3654         This provides a LGPL module for getting the name of the current
3655         program, using the same API found on *BSD systems.
3656         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
3657         * modules/getprogname: New files.
3658         * MODULES.html.sh (Misc): Add getprogname.
3660 2016-09-02  Jim Meyering  <meyering@fb.com>
3662         manywarnings: add -fno-common
3663         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
3664         to the list.  Quoting the manual, "Compiling with -fno-common is
3665         useful on targets for which it provides better performance, or if
3666         you wish to verify that the program will work on other systems that
3667         always treat uninitialized variable declarations this way [putting
3668         it in the data section]."  If diffutils had been using this sooner,
3669         it would have prevented this duplicate declaration issue:
3670         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
3672 2016-08-31  Simon Josefsson  <simon@josefsson.org>
3674         parse-datetime: Fix typo.
3675         * lib/parse-datetime.y (parse_datetime2): Fix typo.
3677 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3679         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
3680         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
3681         GCC 5 and 6 that have __builtin_sub_overflow but not
3682         __builtin_sub_overflow_p.  With the recent changes, these
3683         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
3684         implementation than with INT_SUBTRACT_OVERFLOW implementation,
3685         since the former needs just one runtime comparison whereas the
3686         latter needs two.
3688         strverscmp: sync with glibc
3689         Although this doesn't exactly synchronize with glibc
3690         byte-for-byte, it makes the code behave the same as glibc.
3691         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
3692         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
3693         difference shouldn't matter in practical use.  All uses changed
3694         back to isdigit.
3695         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
3696         (next_state): Now unsigned char array; redo elements.
3697         (result_type): Now signed char array; redo elements.
3698         (__strverscmp): Fix glibc bug 9913 by using new states.
3699         * tests/test-strverscmp.c (main): Test glibc bug 9913.
3701 2016-08-29  Jim Meyering  <meyering@fb.com>
3703         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
3704         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
3705         similarly to how it was done to intprops.h.
3707 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3709         intprops.h: port recent changes to GCC 6.2.0
3710         * lib/intprops.h (__has_builtin): Move earlier.
3711         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
3712         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
3713         the last argument can be null.  All uses changed.
3714         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
3715         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
3716         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
3717         and it's not clear which GCC versions it works for.
3718         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
3719         its definiens.
3721         intprops.h: use __typeof__ with GCC 7
3722         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
3723         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
3724         This avoids computing the expression's value (which might overflow!).
3726 2016-08-29  Jim Meyering  <meyering@fb.com>
3728         intprops.h, xalloc-oversized.h: work with gcc 7
3729         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
3730         __builtin_mul_overflow each accept a NULL pointer as the third
3731         argument.  However in gcc 7, that is no longer accepted.
3732         Instead, one must use the "_p"-suffixed names, with which, the
3733         third parameter is no longer a pointer.
3734         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
3735         the definition: not true for gcc 7 and subsequent.
3736         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
3737         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
3738         Provide new definitions for gcc 7 and subsequent.
3739         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
3740         that works with gcc-7.
3742         intprops.h: fix missing-backslash problems
3743         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
3744         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
3746 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3748         intprops: fix paren typo on old platforms
3749         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
3750         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
3751         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
3752         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
3753         && !defined LLONG_MAX]:
3754         Remove stray paren.
3756         intprops: port to OpenVMS
3757         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
3758         * doc/posix-headers/limits.texi: Document the problem.
3759         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
3760         Define if not already defined.
3762 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
3764         parse-datetime: improve debug implementation
3765         Follow-up to commit 12ad79069 ("add optional debug printing").
3766         Improve parse-datetime's debug implementation: remove macros,
3767         replace global debug flag variable with a function parameter,
3768         use nstrftime for formatting.
3769         See: https://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00021.html
3770         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
3771         (parse_datetime2): New function, accepts 'flags' parameter, supporting
3772         debug flag. Existing interface 'parse_datetime' left unmodified.
3773         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
3774         (struct parser_control): add 'parse_datetime_debug' member variable.
3775         (parse_datetime): Call new function 'parse_datetime2' without debug.
3776         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
3777         pc.parse_datetime_debug variable as needed.
3778         (to_year): Accept new flags parameter, instead of using global variable.
3779         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
3780         use struct 'debug' variable instead of global variable.
3781         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
3782         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
3783         correspnding functions directly instead of using macros.
3784         * modules/parse-datetime: Add gnulib's strftime module.
3786 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
3788         c-strcase-tests: port to EBCDIC
3789         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
3790         which assume ASCII encoding semantics to run only in ASCII
3791         mode, as they fail in EBCDIC.
3793         sigpipe-tests: fix typo
3794         * tests/test-sigpipe.sh: C, not B.
3796 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3798         canonicalize-lgpl: fix errno after malloca fails
3799         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
3800         http://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00039.html
3801         * lib/canonicalize-lgpl.c (__realpath):
3802         Don't assume malloca sets errno on failure.
3804 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3806         strtod: port errno handling to z/OS
3807         * lib/strtod.c (strtod): Save and restore errno more reliably.
3809 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
3811         strtod: port to z/OS
3812         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
3813         implementation.
3815 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3817         strtod: port to z/OS
3818         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
3819         implementation.
3821         regex, string: rename to avoid '__string'
3822         * lib/regex.h, lib/string.in.h: Do not use the identifier
3823         '__string', as it is effectively reserved by string.h on z/OS.
3825         c-strcase-tests, wcwidth-tests: depend on c-ctype
3826         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
3827         Add c-ctype.
3829 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
3831         thread: port to z/OS
3832         * lib/glthread/thread.c, lib/glthread/thread.h:
3833         Rudimentary gl_thread support for z/OS.
3835         maint: port tests to z/OS errno behavior
3836         * tests/test-nonblocking-reader.h:
3837         * tests/test-nonblocking-writer.h:
3838         Accommodate z/OS errno code preferences. (I believe this should
3839         still be within spec; IBM is good at following the letter if not
3840         the spirit of such things.)
3842         maint: preprocessor changes to support z/OS
3843         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
3844         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
3845         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
3846         * tests/test-nonblocking-pipe.h:
3848         fclose, strstr-simple, wchar: port to z/OS
3849         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
3850         Changes to the Autoconf M4 code to support z/OS.  Note that
3851         fclose() is broken in a different way on z/OS than it is on other
3852         systems, thus the special-case in fclose.m4.
3854         iconv_open-utf-tests, iconv-tests: port to EBCDIC
3855         * tests/test-iconv-utf.c, tests/test-iconv.c:
3856         Added appropriately conditional #pragmas so that the test strings
3857         in test-iconv-utf.c are correctly interpreted in ASCII instead of
3858         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
3859         addressed in a more portable way by simply rewriting all the ASCII
3860         literal characters as octal escapes, but then you would lose the
3861         partial readability that the strings have now. Also, iconv_open()
3862         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
3864         c-strcase-tests, wcwidth-tests: port to EBCDIC
3865         * tests/test-c-strcasecmp.c: Include c-ctype.h.
3866         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
3867         * tests/test-wcwidth.c: Likewise.
3869 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3871         stdbool: don't require _Bool for C++
3872         Problem reported by David Seifert in:
3873         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00005.html
3874         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
3875         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
3876         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
3877         stricter about checking that bool and _Bool are compatible in C.
3879 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3881         getdelim: remove dependency on realloc-posix
3882         * lib/canonicalize-lgpl.c (alloc_failed)
3883         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
3884         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
3885         Use __set_errno where needed, for consistency.
3886         * lib/getdelim.c (alloc_failed): New function.
3887         (getdelim): Use it.
3889 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
3891         parse-datetime: add optional debug printing
3892         Print parsing information, warnings, and errors to stderr.
3893         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
3894         * lib/parse-datetime.y:
3895         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
3896         (PROGRESS*): Same as DEBUG, for progress reporting.
3897         (dbg_printf): Print message to stderr, with 'date' prefix.
3898         (struct parser_control): Add 'debug_*_seen' variables.
3899         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
3900         (debug_print_current_time, debug_print_relateive_time): Prints the
3901         current/relative date/time value of parser_control.
3902         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
3903         (to_year): Warn about 2-digit year parsing.
3904         (yylex):   Warn about unrecognized words.
3905         (get_effective_timezone): Returns current timezone in minutes.
3906         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
3907         clearly and unambigiously as possible.
3908         (debug_mktime_not_ok): Print detailed information about failed
3909         date/time values.
3910         (parse_datetime): Add DEBUG messages for failures, warnings. Add
3911         PROGRESS messages for status messages.
3912         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
3914 2016-08-06  Jim Meyering  <meyering@fb.com>
3916         tests/init.sh: exclude dash with bad "local" semantics
3917         * tests/init.sh (gl_shell_test_script_): Add a function to
3918         eliminate a shell like "dash" (unlike bash, zsh) that has
3919         surprising/risky "local var='...'" semantics.  Inspired by
3920         the problem and discussion in https://bugs.gnu.org/24116#11.
3922 2016-08-02  Ján Tomko  <jtomko@redhat.com>
3924         maint.mk: expand the prohibit_doubled_word regex
3925         This check has a static list of words that are checked for
3926         repetitions.  Expand it before running the perl script to
3927         avoid using expensive captures.  This decreases the cost
3928         for libvirt from 1.66s to 0.66s.
3929         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
3930         (sc_prohibit_doubled_word): Use it.
3932 2016-07-26  Ján Tomko  <jtomko@redhat.com>
3934         useless-if-before-free: skip non-matching lines early
3935         * build-aux/useless-if-before-free: First match each line with the
3936         simple/quick /\bif\b/ and reject if there is no match. This often
3937         saves the cost of the much more involved regular expression.
3938         For libvirt, this decreases the cost from 1.44s to 1.02s.
3940 2016-07-26  Ján Tomko  <jtomko@redhat.com>
3942         maint.mk: speed up sc_po_check
3943         sc_po_check would skip files based on their names, or on the
3944         existence of files with derived names. Rewrite it to use perl
3945         instead of shell to make the check faster.
3946         * top/maint.mk (perl_translatable_files_list_): Define.
3947         (sc_po_check): Use it.
3949 2016-07-30  Ján Tomko  <jtomko@redhat.com>
3951         maint.mk: speed up require_config_h_first
3952         Instead of spawning three processes per file,
3953         rewrite the check in perl and run it once for all the files.
3954         * top/maint.mk (perl_config_h_first_): Define.
3955         (sc_require_config_h_first): Use it in place of shell code.
3957 2016-07-26  Ján Tomko  <jtomko@redhat.com>
3959         maint.mk: speed up sc_po_check
3960         sc_po_check would skip files based on their names, or on the
3961         existence of files with derived names. Rewrite it to use perl
3962         instead of shell to make the check faster.
3963         * top/maint.mk (perl_translatable_files_list_): Define.
3964         (sc_po_check): Use it.
3966 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3968         obstack: pacify GCC 6 with -Wnull-dereference
3969         Problem reported by Assaf Gordon in:
3970         http://lists.gnu.org/archive/html/bug-gnulib/2016-07/msg00028.html
3971         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
3972         Declare with __attribute_noreturn__.
3973         * lib/obstack.h (__attribute_noreturn__): New macro.
3975 2016-07-13  Eric Blake  <eblake@redhat.com>
3977         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
3978         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
3979         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
3981 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
3983         doc: mention glibc SSIZE_MAX buglet
3984         * doc/posix-headers/limits.texi (limits.h): Document the bug.
3986 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
3988         printf-posix: Fix mingw build
3989         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
3990         expression for detecting C symbol prefixes but forgot to qoute square
3991         brackets in the command line arguments for grep.  That way when
3992         building with mingw the condition was false although it ought to be
3993         true instead.  In particular scenarios this led to the following
3994         compile error:
3996             Cannot export rpl_printf: symbol not found
3997             Cannot export rpl_scanf: symbol not found
3998             collect2: error: ld returned 1 exit status
4000         Fix this by properly quoting square brackets.
4002 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4004         mktime: call tzset as per POSIX
4005         Problem reported by Ludovic Courtès in:
4006         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00068.html
4007         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
4008         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
4010 2016-06-26  Pádraig Brady  <P@draigBrady.com>
4012         fts: handle readdir() errors
4013         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
4014         but also upon error when it will also set errno.  Therefore
4015         flag the error case from readdir().  We treat the case where
4016         no items are read the same as if the dir can't be accessed,
4017         i.e. by setting fts_errno to FTS_DNR.
4019 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
4021         intprops: port better to GCC 7
4022         GCC 7 __builtin_add_overflow supports a new usage form, where the
4023         last argument is a null pointer, and which merely returns 1 if an
4024         overflow would occur.  This is a constant expression if all
4025         arguments are constants, and should generate faster code when code
4026         needs to be generated.
4027         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
4028         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
4029         Use builtin operations if available.
4030         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
4031         operations are available, as it's almost surely faster.
4033 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4035         intprops-test: port to GCC 6
4036         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
4037         since the bug is not fixed in GCC 6.1.
4039 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
4041         xalloc-oversized: port to GCC 7; fewer warnings
4042         GCC 7 will have a better way to deal with integer overflow.
4043         Plus, fix a warnings problem reported by Tim Ruehsen in:
4044         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00022.html
4045         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
4046         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
4047         For GCC 5, use __xalloc_oversized if both args are constants,
4048         or if pedantic.
4050 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
4052         regex: port to Sun C
4053         Reported by Daiki Ueno.
4054         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
4055         __restrict, in prototype.  This fixes a problem I introduced in
4056         the 2016-02-19 merge from glibc.
4058 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
4060         stdbool: Restore __bool_true_false_are_defined check
4061         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
4062         __bool_true_false_are_defined is still defined, even with C++11.
4064 2016-05-31  David Seifert <soap@gentoo.org>  (tiny change)
4066         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
4067         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
4069 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
4071         Use GCC_LINT, not lint
4072         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
4073         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
4074         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
4075         Document problem with lint and _Noreturn.
4076         * lib/diffseq.h (IF_LINT, IF_LINT2):
4077         * lib/fts.c (sccsid):
4078         * lib/getndelim2.c (IF_LINT):
4079         * lib/gl_anylinked_list2.h (gl_linked_iterator)
4080         (gl_linked_iterator_from_to):
4081         * lib/gl_anytree_list2.h (gl_tree_iterator)
4082         (gl_tree_iterator_from_to):
4083         * lib/gl_anytree_oset.h (gl_tree_iterator):
4084         * lib/gl_array_list.c (gl_array_iterator)
4085         (gl_array_iterator_from_to):
4086         * lib/gl_array_oset.c (gl_array_iterator):
4087         * lib/gl_carray_list.c (gl_carray_iterator)
4088         (gl_carray_iterator_from_to):
4089         * lib/idcache.c:
4090         * lib/inet_ntop.c (IF_LINT):
4091         * lib/regcomp.c (build_charclass_op, create_tree):
4092         * lib/regex_internal.c (re_acquire_state)
4093         (re_acquire_state_context):
4094         * lib/trigl.c (rcsid):
4095         * lib/trim.c (IF_LINT):
4096         * lib/vasnprintf.c (IF_LINT):
4097         * lib/verify.h (assume):
4098         Treat GCC_LINT like lint.
4100 2016-05-29  Bruno Haible  <bruno@clisp.org>
4102         secure_getenv: Port to many more platforms.
4103         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
4104         functions.
4105         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
4106         for non-BSD Unix platforms and for native Windows.
4107         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
4108         Prompted by a request from Nikos Mavrogiannopoulos.
4110 2016-05-27  Eric Blake  <eblake@redhat.com>
4112         canonicalize: Fix broken probe for realpath.
4113         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
4114         in logic introduced in 54615b95.
4116 2016-05-26  Eric Blake  <eblake@redhat.com>
4118         unsetenv: relax to LGPLv2+
4119         * modules/unsetenv (License): Match setenv license.
4121 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
4123         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
4124         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
4125         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
4126         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
4127         (commonarg, dirargs, dirs, infoarg, generate_ascii)
4128         (generate_html, generate_info, generate_tex, outdir)
4129         (source_extra, split, srcfile, texarg): Move above 'version'.
4130         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
4132 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4134         manywarnings: update for GCC 6.1
4135         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
4136         Add GCC 6.1 options that apply to C.
4137         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
4138         do not apply to C, are obsolescent, etc.
4140 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
4142         glob: size_t overflow checks
4143         * lib/glob.c (__has_builtin): New macro.
4144         (size_add_wrapv, glob_use_alloca): New static functions.
4145         (glob, glob_in_dir): Check for size_t overflow in several places,
4146         and fix some size_t checks that were not quite right.
4148         glob: don't assume INT_MAX < SIZE_MAX
4149         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
4150         latter is not portable to (probably theoretical) hosts where
4151         SIZE_MAX <= INT_MAX.
4153 2016-05-09  Bruno Haible  <bruno@clisp.org>
4155         Fix undefined behaviour in gettext.h.
4156         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
4157         pointer's value after the storage it points to has been freed.
4158         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
4159         Spotted by Coverity.
4161 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4163         git-version-gen: avoid undefined shift
4164         Problem reported by Mosè Giordano in:
4165         http://lists.gnu.org/archive/html/bug-gnulib/2016-05/msg00012.html
4166         * build-aux/git-version-gen: Avoid undefined behavior if invoked
4167         with --prefix or --fallback but without a later argument.  While
4168         we're at it, omit unnecessary quotes.
4170 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
4172         glob: merge glibc changes into lib/glob.c
4173         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
4174         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
4175         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
4176           struct dirent [BZ #19779]
4177         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
4178           callback gl_readdir
4179         2015-10-20 Convert miscellaneous function definitions to prototype style
4180         2015-10-20 Convert 113 more function definitions to prototype style
4181           (files with assertions)
4182         2015-06-12 Fix getlogin_r namespace (bug 18527).
4183         2014-02-10 Use glibc_likely instead __builtin_expect.
4184         2013-10-20 When glob pattern contains a trailing slash match only
4185           directories. Fixes bug 10278.
4186         2013-09-04 glob: silence -Wattribute warnings
4187         2013-06-07 Avoid use of "register" as optimization hint.
4188         2012-09-25 Use size_t instead of int for internal variables in glob
4189           (bug 14621)
4190         2011-07-20 Check for overflows in expressions
4191         2011-05-28 Remove unused variable
4192         2011-05-22 Add a few more alloca size checks
4193         2010-03-27 Whitespace fixes
4194         2010-03-27 Fix one more issue with the glob patch
4195         2010-03-24 Fix glob with empty pattern
4196         2008-05-27 Remove useless more "if" tests before "free"
4197         * modules/glob (Depends-on): Add stdint.
4199 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
4201         mktime: port to stricter signed overflow checking
4202         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
4203         (long_int): Require width for INT_MAX * 3 * (seconds per year),
4204         instead of merely for INT_MAX * 2.  In practice platforms that
4205         do the latter also do the former.
4206         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
4207         (shr): New static function, replacing SHR.  All uses changed.
4208         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
4209         and TIME_T_MAX.  All uses changed.
4210         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
4211         Use long_int, not time_t.
4212         (long_int_avg): New static function, replacing time_t_avg.
4213         All uses changed.  Round toward positive infinity, as that
4214         generates slightly better code.
4215         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
4216         by INT_ADD_WRAPV.
4217         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
4218         (convert_time): New static function.
4219         (ranged_convert): Use it
4220         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
4221         Use simpler test for loop exit.
4222         (__mktime_internal): Store negative of guessed offset, to simplify
4223         overflow checking.  Remove no-longer-needed test for small time_t
4224         overflows.
4226         mktime: speed up DEBUG_MKTIME benchmarks
4227         Call tzset just once, at the start, rather than for every test
4228         case.  This lets us measure the CPU cost of mktime as opposed to
4229         that of tzset.  This is relevant when TZ is not set and glibc is
4230         being used.  This speeds up tests by a factor of 40 on my Fedora
4231         23 x86-64 platform.
4232         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
4233         to call tzset and as a sanity check.  Later on, use localtime_r
4234         instead of localtime.
4236         mktime: resurrect DEBUG_MKTIME testing
4237         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
4238         Include <string.h>, for strcmp.
4240         mktime: simplify DEBUG_MKTIME
4241         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
4242         Simplify later usage accordingly.
4244         Port mktime_internal offset to unsigned time_t
4245         This avoids some assumptions about wraparound arithmetic on
4246         signed integer overflow.
4247         * lib/mktime-internal.h (mktime_offset_t): New type.
4248         (mktime_internal): Use it in decl.
4249         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
4251         * lib/mktime.c (__mktime_internal, localtime_offset):
4252         * lib/timegm.c (timegm): Use it.
4253         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
4254         (gl_FUNC_MKTIME): Require it.
4256 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
4258         xstrtol: prohibit monstrosities like "1bB"
4259         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
4260         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
4261         "B" only if the first suffix needs a base.
4262         * tests/test-xstrtol.sh: Test this.
4264 2016-04-21  Pádraig Brady  <P@draigBrady.com>
4266         xstrtod: reinstate setting of *result upon ERANGE
4267         * lib/xstrtod.c (XSTRTOD): The user may decide to use
4268         the returned limits upon ERANGE, so allow and document that.
4270 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
4272         xstrtod: modify *result only if no errors
4273         * lib/xstrtod.c (XSTRTOD).
4275 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
4277         btowc: document problems in C locale
4278         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
4279         with mbrtowc.  See: http://bugs.gnu.org/23269#32
4281 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
4283         mktime: improve integer overflow checking
4284         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
4285         (WRAPV): Remove; no longer needed.
4286         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
4287         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
4288         Remove.  Use intprops.h defns instead.
4289         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
4290         Use bool for Boolean, for clarity.
4291         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
4292         detect integer overflow.
4293         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
4295         intprops: check two's complement assumption
4296         Suggested by Eric Blake in:
4297         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00016.html
4298         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
4299         short, int, long, and (if available) long long are two's complement.
4300         * modules/intprops (Depends-on): Add 'verify'.
4302         intprops, mktime, strtol: assume two's complement
4303         These macros were not portable to every conforming C11 ones'
4304         complement platform.  It's not worth the hassle of porting to some
4305         platforms that use ones' complement or signed magnitude, as such
4306         platforms are almost purely theoretical nowadays and porting even
4307         to some of them makes the code harder to review for little
4308         practical benefit.  Problem reported by Florian Weimer in:
4309         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
4310         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
4311         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
4312         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
4313         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
4314         (TYPE_SIGNED_MAGNITUDE):
4315         Remove.  All uses rewritten to assume two's complement, which is
4316         all we can reasonably test nowadays anyway.
4317         * top/maint.mk (_intprops_names): Remove the removed macros.
4319 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
4321         stdint: port to strict C11 left shift
4322         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
4323         Pacify clang -Wshift-negative-value, which should be an issue only
4324         on clang setups where stdint.h does not conform to C11 or to C++11.
4325         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
4327 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
4329         mbrtowc: work around glibc bug#19932
4330         Fix mbrtowc so that it never returns -1 in the C locale,
4331         as this conflicts with a future version of POSIX
4332         http://austingroupbugs.net/view.php?id=663#c2738
4333         and causes problems with GNU grep: http://bugs.gnu.org/23234
4334         See glibc bug 19932:
4335         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
4336         * doc/posix-functions/mbrlen.texi (mbrlen):
4337         * doc/posix-functions/mbrtowc.texi (mbrtowc):
4338         Document the glibc bug.
4339         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
4340         Include hard-locale.h, locale.h.
4341         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
4342         if the bug is possible.
4343         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
4344         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
4345         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
4346         * modules/mbrtowc (Depends-on): Add hard-locale.
4347         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
4348         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
4349         * tests/test-mbrtowc5.sh: New file.
4351 2016-04-03  Pedro Alves  <palves@redhat.com>
4353         stdint: detect good enough pre-C++11 stdint.h in C++ mode
4354         When gnulib is configured in C++ mode for a system with a working C99
4355         implementation of stdint.h that predates C++11, gnulib ends up
4356         substituting stdint.h anyway.  This works on most targets, but on e.g.,
4357         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
4358         MinGW is LLP64.  Instead of trying to detect the right types, detect
4359         good-enough-pre-C++11 stdint.h and in such case define
4360         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
4361         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
4362         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
4363         conforms to C99.  If it does, check whether it hides symbols
4364         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
4365         does, define those macros in config.h.
4367 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
4369         argp: merge changes from glibc
4370         Among other things, this should fix problems found by a Coverity
4371         scan and reported by Andrei Borzenkov:
4372         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00015.html
4373         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00016.html
4374         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
4375         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
4376         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
4377         * lib/argp.h:
4378         Merge changes from glibc.
4379         * tests/test-argp-2.sh: Adjust to match new behavior.
4381 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
4383         stddef: support configuring with g++
4384         Problem reported by Ángel González in:
4385         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00003.html
4386         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
4387         Do not define if _GCC_MAX_ALIGN_T is defined.
4389 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
4391         test-framework-sh: minor cleanups
4392         * tests/init.sh (testdir_prefix_): Output a trailing newline,
4393         since strictly speaking POSIX requires this.
4394         (setup_): Do not use the variable 'fail', as that makes the
4395         trace output harder to read ('fail' is typically used by
4396         tests to mean the test failed).  Treat // portably.
4397         Check that new directory is not merely a sibling of the tmp dir.
4398         Avoid unnecessary invocation of tr.
4400         test-framework-sh: revert port to NetBSD 7.0
4401         It was a false alarm; I misinterpreted Assaf Gordon's report.
4402         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
4403         Restore.
4404         (test_dir_): Adjust to mktempd_ change.
4405         (mktempd_): Restore 2nd arg.  Use -t again.
4406         (base_template_, template_, nx_): Resurrect old code.
4408         Port better to Alpine Linux
4409         Its diff implementation does not support -c, but does support -U3.
4410         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
4411         * tests/init.sh (diff_opt_): New var.
4412         (compare_): Prefer diff -U3 to diff -c to plain diff.
4414 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
4416         test-framework-sh: port to NetBSD 7.0
4417         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
4418         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
4419         Remove.  All uses removed.
4420         (test_dir_): Adjust to mktempd_ change.
4421         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
4422         (base_template_, template_, nx_): Simplify by hardcoding.
4424 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
4426         gitlog-to-changelog: suppress ignored chatter
4427         * build-aux/gitlog-to-changelog: Do not warn about skipping
4428         an SHA if it would have been ignored anyway.
4430 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
4432         setlocale: add "sv" to Windows language table
4433         * lib/setlocale.c (language_table) [W32]: Add "sv".
4434         Reported in <https://savannah.gnu.org/bugs/?44588>.
4436 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
4438         sys_select: port to new Cygwin
4439         Problem reported by Ken Brown in:
4440         https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00054.html
4441         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
4442         diagnostics.
4444 2016-03-17  Jim Meyering  <meyering@fb.com>
4446         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
4447         * tests/test-userspec.c (main): Remove unnecessary braces and fix
4448         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
4449           test-userspec.c:176:9: error: statement is indented as if it were \
4450             guarded by... [-Werror=misleading-indentation]
4451                    {
4452                    ^
4453           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
4454                  if (!diag && !T[i].result)
4455                  ^~
4457 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
4459         time_rz: port to clang -Wunused-const-variable
4460         * lib/time_rz.c (TZ): Remove.  All uses removed.
4462         std-gnu11: improve clang support
4463         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
4464         2016-03-15 Also try clang
4465         2016-03-15 Port C11 and C++11 testing to clang
4467         select: port more to Intel 2016.1.150 compiler
4468         Problem reported by Balázs Hajgató in:
4469         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00036.html
4470         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
4472 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
4474         select: try to port to 2016.1.150 compiler
4475         Problem reported by Balázs Hajgató in:
4476         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00026.html
4477         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
4478         POSIX specifies 'restrict'.
4480 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
4482         localename-tests: memory allocation fixes
4483         * tests/test-localename.c (test_locale_name)
4484         (test_locale_name_thread): Don't call freelocale on a locale
4485         that was the base of a successful newlocale, as that
4486         results in a double free.  Problem reported by Assaf Gordon.
4487         (test_locale_name_thread): Free saved names after use, to pacify
4488         gcc -fsanitize=address.
4490 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4492         intprops: make .h file license match module
4493         * lib/intprops.h: Change the license wording to match glibc format.
4494         This is what is in modules/intprops anyway.  See:
4495         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
4497 2016-03-08  Eric Blake  <eblake@redhat.com>
4499         acl: fix missing return on Cygwin
4500         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
4501         fall off end of function. Fixes http://bugs.gnu.org/22949
4503 2016-03-05  Bruno Haible  <bruno@clisp.org>
4505         extern-inline: port to PGI CC
4506         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
4507         keyword 'inline'.
4508         Reported by Adam James Stewart in:
4509         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00006.html
4511 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4513         signbit: port back to pre-C++11 GCC
4514         * lib/math.in.h (signbit): Do previous change only if
4515         __cplusplus < 201103.  See Jonathan Wakely in:
4516         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
4518 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
4520         mountlist: recognize autofs-mounted remote file systems, too
4521         Originally reported at: https://bugzilla.redhat.com/1309247
4522         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
4523         "-hosts" because it is used by autofs to mount remote file systems.
4525 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4527         signbit: port to C++ with GCC 6
4528         * lib/math.in.h (signbit) [__cplusplus]:
4529         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
4530         http://lists.gnu.org/archive/html/bug-gnulib/2016-02/msg00005.html
4532         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
4534         regex: make it closer to libc
4535         Make Idx a signed type, rather than possibly unsigned.
4536         The unsignedness was not really buying us anything, since the code
4537         overflows for other reasons before getting to PTRDIFF_MAX.  Making
4538         it signed allows us to use -1 and -2 with abandon, like libc does,
4539         thus lessening the number of differences between gnulib and libc.
4540         Also, it should help avoid gratuitous warnings like the one
4541         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
4542         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
4545         regex: merge patches from libc
4547         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
4548         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
4549         Convert miscellaneous function definitions to prototype style.
4550         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
4551         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
4552         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
4553         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
4554         (re_search_internal):
4555         Convert to prototype-style function definition.
4556         Use internal_function for internal functions.
4558 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
4560         stdalign: port to older HP and IBM cc
4561         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
4562         C compilers, by checking their version numbers.  These version
4563         numbers appear in MariaDB and in Qt code that dates way back and
4564         that conditiionally uses the 'aligned' attribute.
4566 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4568         stdalign: port to clang 3.7.0
4569         Problem reported by Herbert J. Skuhra in:
4570         http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg00476.html
4571         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
4572         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
4573         https://llvm.org/bugs/show_bug.cgi?id=26547
4575 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4577         readdir_r: now obsolescent
4578         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
4579         * lib/mountlist.c (read_file_system_list): Add a FIXME.
4581 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
4583         misc: port better to gcc -fsanitize=address
4584         Without these patches, ./configure CFLAGS='-fsanitize=address'
4585         would compute incorrect values.  This patch fixes some (but not all)
4586         test failures with recent glibc, with this configuration.
4587         * m4/acl.m4 (gl_ACL_GET_FILE):
4588         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
4589         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
4590         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
4591         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
4592         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
4593         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
4594         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
4595         * m4/getline.m4 (gl_FUNC_GETLINE):
4596         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
4597         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
4598         * m4/regex.m4 (gl_REGEX):
4599         * m4/strndup.m4 (gl_FUNC_STRNDUP):
4600         * tests/test-calloc-gnu.c (main):
4601         * tests/test-duplocale.c (main):
4602         * tests/test-getgroups.c (main):
4603         * tests/test-getline.c (main):
4604         * tests/test-inttostr.c (main):
4605         * tests/test-localename.c (test_locale_name)
4606         (test_locale_name_thread, test_locale_name_environ)
4607         (test_locale_name_default):
4608         * tests/test-regex.c (main):
4609         * tests/test-setlocale1.c (main):
4610         * tests/test-stat.h (test_stat_func):
4611         Free heap-allocated storage before exiting.
4612         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
4613         Don't match *_foo symbols inserted by AddressSanitizer.
4614         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
4616 2016-02-02  Jim Meyering  <meyering@fb.com>
4618         verify-tests: also remove stray test-verify.Tpo
4619         * modules/verify-tests (Makefile.am): Arrange for "make clean"
4620         to remove the test-verify.Tpo file that is left behind by
4621         the automake-generated rule upon compilation failure.
4622         Otherwise, that .Tpo file would cause a failed "make distcheck"
4623         at least for grep.
4625 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
4627         std-gnu11: new module
4628         This makes it easier for applications to prefer C11 and C++11
4629         to older variants, when compiling C and C++ code.
4630         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
4631         a nontrivial chunk of GPLed Autoconf source code.
4632         * COPYING: Mention the m4/*.m4 copyright situation.
4633         * MODULES.html.sh (std-gnu11): New module.
4634         * m4/std-gnu11.m4, modules/std-gnu11: New files.
4636 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4638         get-permissions, strftime: fix grammar in comments
4639         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
4640         some grammar fixes Alan Mackenzie made to GNU Emacs.
4642 2016-01-25  Daiki Ueno  <ueno@gnu.org>
4644         gettext: mark as obsolete
4645         Suggested by Paul Eggert in:
4646         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00101.html
4647         * modules/gettext (Status): Mark as obsolete.
4648         (Notice): Suggest to use 'gettext-h' instead.
4649         * modules/gettext-h (Description): Suggest GNU gettext, instead of
4650         the 'gettext' module.
4652 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
4654         gnulib-tool: don't give up on ln -s so easily
4655         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
4656         because an earlier one failed.  The targets could be on different
4657         file systems.  Problem reported by KO Myung-Hun in:
4658         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00081.html
4660         closedir: fix OS/2-related typos
4661         Problem reported by KO Myung-Hun in:
4662         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00107.html
4663         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
4664         in the last couple of changes.
4666 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
4668         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
4669         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
4670         copying a directory.
4672 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
4674         regex: treat [x] as x if x is a unibyte encoding error
4675         Problem reported by Aharon Robbins in:
4676         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00091.html
4677         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
4678         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
4680         closedir, dirfd, opendir: port to OpenSolaris 5.10
4681         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
4682         * m4/dirfd.m4 (gl_FUNC_DIRFD):
4683         * m4/opendir.m4 (gl_FUNC_OPENDIR):
4684         Don't use ${word##pat} substitution, as it doesn't work in
4685         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
4686         http://bugs.gnu.org/22443#11
4688 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4690         bootstrap: use American spelling
4691         * build-aux/bootstrap: Honor American spelling.
4693 2016-01-22  Karl Berry  <karl@freefriends.org>
4695         * doc/posix-functions/localtime.texi,
4696         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
4698 2016-01-21  Bruno Haible  <bruno@clisp.org>
4700         hash-pjw-bare: fix comment
4701         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
4703         wcwidth: Replace also on OpenBSD 5.8
4704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
4705         * doc/posix-functions/wcwidth.texi: Update.
4707 2016-01-20  Pádraig Brady  <P@draigBrady.com>
4709         gnu-web-doc-update: fix addition of new files
4710         If there were already added (emnpty) dirs,
4711         then cvs aborts the add with the message:
4712           cvs [add aborted]: there is a version in <./dirname> already
4713         * build-aux/gnu-web-doc-update: Add directories separately
4714         to the addition of files, to avoid the above issue
4715         impacting the addition of files.
4717 2016-01-19  Daiki Ueno  <ueno@gnu.org>
4719         utimens-tests: avoid pulling gettext .m4 files
4720         Although this is not the right fix to the original problem:
4721         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html
4722         it makes it possible again for consumer projects to use arbitrary
4723         version of gettext, through the steps described at:
4724         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
4725         See here for details:
4726         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00079.html
4727         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
4728         'gettext'.
4729         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
4730         'gettext'.
4732 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4734         regex: pacify static checkers
4735         Problem and draft fix reported by Aharon Robbins in:
4736         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
4737         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
4738         Clear memory to pacify static checkers.
4740         regex: fix [ diagnostic
4741         Problem and fix reported by Aharon Robbins in:
4742         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
4743         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
4745         regex: fix memory leaks
4746         Problem and draft fix reported by Aharon Robbins in:
4747         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
4748         * lib/regcomp.c (build_range_exp, build_charclass_op)
4749         * lib/regex_internal.c (re_dfa_add_node):
4750         Fix memory leak on failure.
4752 2016-01-18  Pádraig Brady  <P@draigBrady.com>
4754         fts: don't unconditionally use leaf optimization for NFS
4755         NFS st_nlink are not accurate on all implementations,
4756         leading to aborts() if that assumption is made.
4757         See <https://bugzilla.redhat.com/1299169>
4758         * lib/fts.c (leaf_optimization_applies): Remove NFS from
4759         the white list, and document the issue.
4761 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
4762             KO Myung-Hun  <komh@chollian.net>
4764         gnulib-tool: don't assume ln -s works
4765         * gnulib-tool (func_ln_s): New function.
4766         (func_ln): Use it.
4768 2016-01-15  KO Myung-Hun  <komh@chollian.net>
4770         utimes: detect utimes() correctly on OS/2 kLIBC
4771         utimes() of OS/2 kLIBC has some limitations.
4772         1. OS/2 itself supports a file date since 1980 year in local time.
4773         2. OS/2 itself supports only even seconds for a file time.
4774         3. utimes() of OS/2 kLIBC does not work on an opened file.
4775         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
4776         * doc/posix-functions/utimes.texi: Document the above limitations of
4777         utimes() on OS/2 kLIBC.
4779 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
4780             KO Myung-Hun  <komh@chollian.net>
4782         openat_proc_name: port to OS/2 kLIBC
4783         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
4784         instead of /proc/self/fd.
4785         * lib/openat-proc.c (openat_proc_name):
4786         Don't assume file name length is less than INT_MAX.
4787         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
4789 2016-01-14  KO Myung-Hun  <komh@chollian.net>
4791         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
4792         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
4793         definitions of intptr_t and uintptr_t (which use int and unsigned)
4794         to avoid clashes with declarations of system functions like sbrk.
4795         * lib/stdint.in.h (intptr_t, uintptr_t): Check
4796         _INTPTR_T_DECLARED before defining them.
4798         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
4799         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
4800         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
4801         Declare on kLIBC.
4802         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
4803         fd associated with dirp.
4804         (_gl_register_dirp_fd): New. Register fd associated with dirp to
4805         dirp_fd_list.
4806         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
4807         (dirfd): Implemented for kLIBC.
4808         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
4809         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
4810         succeeds.
4811         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
4812         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4813         (REPLACE_DIRFD): Define to 1 if replaced.
4814         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
4815         * modules/closedir (Depends-on): Add dirfd.
4816         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
4817         condition.
4818         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
4819         * modules/opendir (Depends-on): Add dirfd.
4821         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
4822         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
4823         * lib/dup.c (dup_nothrow): New.
4824         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
4825         (klibc_dup2): New.
4826         * lib/fcntl.c (klibc_fcntl): New.
4827         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
4828         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
4829         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
4830         fd.
4832         pipe_filter_ii_execute: port to OS/2 kLIBC
4833         Pipes on kLIBC do not support O_NONBLOCK like Win32.
4834         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
4835         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
4836         Reuse Win32 code on OS/2 kLIBC.
4837         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
4838         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
4840         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
4841         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
4842         static inline function.  The implementation of wcwidth in wcwidth.c
4843         causes a "conflicting types" error.
4844         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
4846         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
4847         spawn() on OS/2 kLIBC is not silly like one on Windows
4848         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
4849         empty string on OS/2 kLIBC.
4851         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
4852         On OS/2 kLIBC, select() works only on sockets.
4853         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
4855         binary-io: don't put fd in binary mode if it is a console on EMX
4856         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
4857         a console on EMX.
4859 2016-01-15  Pádraig Brady  <P@draigBrady.com>
4861         doc: mention unfixed issues with unsupported localtime() values
4862         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
4863         returns nonsense for localtime(2^56).
4864         * doc/posix-functions/localtime_r.texi: Likewise.
4866 2016-01-14  Pádraig Brady  <P@draigBrady.com>
4868         doc: mention setlocale() issues on OpenBSD
4869         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
4870         never fails, and the need to check categories individually.
4872 2016-01-14  Pádraig Brady  <P@draigBrady.com>
4874         sig2str: list all signals on FreeBSD >= 7
4875         FreeBSD >= 7 is contravening POSIX by not defining NSIG
4876         to the maximal statically defined signal value.
4877         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
4878         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
4879         where available, even when NSIG is defined.
4881 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
4883         acl-permissions: port to USE_ACL==0 platforms
4884         I ran into this problem when building bleeding-edge GNU Emacs
4885         with gcc -fsanitize=address on Fedora 23.  On this platform
4886         the ACL library does not pass the 'configure' test and Emacs
4887         then does not build due in part to what appear to be typos in the
4888         ACL part of Gnulib.
4889         * lib/acl-internal.c (free_permission_context):
4890         * lib/acl-internal.h (struct permission_context):
4891         Test whether USE_ACL is nonzero, not whether it is defined.
4893 2016-01-12  Martin Sebor  <msebor@redhat.com>
4895         mktime: rename macro to avoid glibc clash
4896         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
4897         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
4899 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
4901         Port "$@" to OpenIndiana ksh93
4902         In http://lists.gnu.org/archive/html/bug-autoconf/2015-12/msg00000.html
4903         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
4904         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
4905         bug long-dead shells, so remove the workaround.
4906         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
4907         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
4908         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
4909         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
4910         Use "$@" instead of ${1+"$@"}.
4912         Port Universal Time settings to strict POSIX
4913         * build-aux/announce-gen, build-aux/bootstrap:
4914         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
4915         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
4916         * build-aux/gnupload, build-aux/mkinstalldirs:
4917         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
4918         * build-aux/update-copyright, build-aux/useless-if-before-free:
4919         * build-aux/vc-list-files, tests/test-strftime.c:
4920         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
4921         but POSIX says the behavior of TZ="UTC" is undefined.
4923 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4925         msvc-inval: fix problem with unset shell var
4926         Problem reported by Karl Berry in:
4927         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00004.html
4928         * modules/msvc-inval (Depends-on):
4929         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
4930         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
4932 2016-01-01  Pádraig Brady  <P@draigBrady.com>
4934         tests: for compare_(), use cmp -s where available
4935         * tests/init.sh (compare_): Only fall back to cmp without
4936         the POSIX defined -s option, where this is not available.
4938 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4940         version-etc: new year
4941         * build-aux/gendocs.sh (version):
4942         * doc/gendocs_template:
4943         * doc/gendocs_template_min:
4944         * doc/gnulib.texi:
4945         * lib/version-etc.c (COPYRIGHT_YEAR):
4946         Update copyright dates by hand in templates and the like.
4947         * all files: Run 'make update-copyright'.
4949 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4951         human: fix output buffer overrun by 1
4952         * lib/human.c (human_readable): Fix off-by-one typo in buffer
4953         calculation that could lead to a one-byte buffer overrun.
4955 2015-12-28  Daiki Ueno  <ueno@gnu.org>
4957         maint: fix operator precedence in mbrtowc test
4958         This is a fix for test breakage introduced by commit 45228d96; the
4959         equality expression must be parenthesized when negated with '!',
4960         otherwise we always get:
4962           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
4964         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
4965         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
4967 2015-12-23  James Youngman  <jay@gnu.org>
4969         regexprops-generic: update from regex.h
4970         * doc/regexprops-generic.texi: update by running the regexprops binary
4971         from findutils (the command line is 'regexprops "Regular Expressions"
4972         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
4973         gnulib with GNU grep had made this document out-of-date.
4975 2015-12-23  Pádraig Brady  <P@draigBrady.com>
4977         strftime-tests: avoid false failure on OS X
4978         * tests/test-strftime.c (struct localtime_rz_test): Add an
4979         ahistorical member which is used to warn rather than fail
4980         when tm_isdst isn't set for such entries.  This is the case for
4981         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
4983 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
4985         fts: ensure leaf optimization is used for NFS
4986         NFS provides usable dirent.d_type but not necessarily for all entries
4987         of large directories.  See <https://bugzilla.redhat.com/1252549>
4988         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
4990 2015-12-20  Pádraig Brady  <P@draigBrady.com>
4992         fts: enable leaf optimization for XFS
4993         XFS provides usable dirent.d_type only for DT_DIR,
4994         but the noleaf optimization still applies.
4995         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
4997 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
4999         intprops: comment fix
5000         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
5001         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00013.html
5003         intprops-test: work around GCC bug 68971
5004         Problem reported by Pádraig Brady in:
5005         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00011.html
5006         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
5007         (main): Add a case that better tests 64-bit long in this area.
5009 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
5011         gnulib-tool: allow multiple --local-dir usage
5012         * gnulib-tool: Use --local-dir to construct compound
5013         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
5014         PATH_SEPARATOR early.
5015         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
5016         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
5017         func_determine_path_separator because that needs to be detected
5018         earlier now.
5019         (func_determine_path_separator): New function.
5020         (func_path_foreach, func_path_foreach_inner): New functions.
5021         (func_path_prepend, func_path_append): Likewise.
5022         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
5023         (func_lookup_file, func_all_modules): Use new functions to work
5024         with local_gnulib_path.
5025         (func_modules_in_dir, func_exists_module): New callbacks for
5026         func_path_foreach.
5027         (func_exists_module, func_get_tests_module): Likewise.
5028         (func_is_local_file, func_should_symlink): New helper methods.
5029         (func_add_file, func_update_file): Use new func_should_symlink
5030         instead, DRY.
5031         (func_reconstruct_cached_local_gnulib_path): New helper.
5032         (func_reconstruct_cached_dir): New callback.
5033         (func_import): The cached_local_gnulib_dir renamed to
5034         cached_local_gnulib_path similarly to local_gnulib_dir.
5035         Use new func_reconstruct_cached_local_gnulib_path.
5036         (func_count_relative_local_gnulib_path): New sub-method.
5037         (func_create_testdir): Use func_should_symlink, DRY.
5038         (func_create_megatestdir): Use new functions to work with
5039         local_gnulib_path correctly.
5040         (func_append_local_dir): New helper.
5042 2015-12-08  Pádraig Brady  <P@draigBrady.com>
5044         fix freadptr to work with ungetc on all uClibc configs
5045         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
5046         where GNU coreutils cut(1) generates invalid output on uClibc
5047         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
5048         * lib/freadptr.c (freadptr): Return NULL if there are
5049         ungotten chars.  In this case freadseek() will iterate
5050         again to process the ungotten character.
5052 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
5054         xalloc-oversized: improve performance with GCC 5
5055         * lib/xalloc-oversized.h (xalloc_oversized):
5056         Improve performance with GCC 5 by using __builtin_mul_overflow.
5058 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
5060         intprops: new public macro EXPR_SIGNED
5061         Emacs can use this macro, so make it public.
5062         * doc/intprops.texi (Arithmetic Type Properties): Rename from
5063         'Integer Type Determination', since some of these macros apply
5064         to non-integer types.  Clarify what kinds of constant expressions
5065         these macros return.  Say when the arguments can be non-integers.
5066         Mention newly published macro EXPR_SIGNED.
5067         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
5068         make it public.  All uses changed.
5070         intprops: fix typo in clang port
5071         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
5072         '__builtin_add_overflow' that is not caught by compiler.
5074 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
5076         test-timespec: fix typo in previous change
5077         * tests/test-timespec.c (main): Fix typo that reduced test quality.
5079         timespec-sub: fix overflow bug; add tests
5080         * lib/timespec-add.c (timespec_add):
5081         * lib/timespec-sub.c (timespec_sub):
5082         Work even if time_t is narrower than int (a theoretical
5083         possibility).  Redo code for a bit more clarity.
5084         * lib/timespec-sub.c (timespec_sub):
5085         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
5086         * modules/timespec-tests, tests/test-timespec.c: New files.
5088         intprops-test: suppress -Woverlength-strings
5089         Problem reported by Pádraig Brady in:
5090         http://lists.gnu.org/archive/html/bug-gnulib/2015-11/msg00008.html
5091         It is not worth the hassle to port this test to compilers that
5092         cannot handle long strings in diagnostics.
5093         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
5095 2015-11-03  Pádraig Brady  <P@draigBrady.com>
5097         quotearg: add quotearg_n_style_colon()
5098         This quotes with default options of the specified style,
5099         but with quoting enabled for instances of ':'.
5100         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
5101         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
5103 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5105         intprops: revise _WRAPV macros, revert _OVERFLOW
5106         The incompatible changes to the _OVERFLOW macros were too much of
5107         a hassle in practice, so revert them.  Instead, change the new
5108         _WRAPV macros to make them closer in behavior to GCC 5's new
5109         builtin_add_overflow etc. functions.  No other software was using
5110         these newly-added macros yet, so this should be OK.
5111         * NEWS: Revert previous change, since the incompatible change
5112         has been reverted, and nobody used the incompatible version.
5113         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
5114         Document revised behavior.
5115         (Integer Range Overflow): Adjust example to match above revisions.
5116         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
5117         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
5118         these can be used in integer constant expressions again.
5119         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
5120         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
5121         needed.
5122         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
5123         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
5124         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
5125         Remove, as they did not seem that useful.
5126         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
5127         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
5128         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
5129         Support new semantics.
5130         (__has_builtin): New macro, if not alreay defined.
5131         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
5132         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
5133         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
5134         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
5135         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
5136         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
5137         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
5138         New macros.
5139         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
5141 2015-11-03  Jim Meyering  <meyering@fb.com>
5143         intprops: add parentheses for when OP has precedence lower than "-"
5144         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
5145         "a OP b" must be parenthesized for when OP is like "<<", which has
5146         lower precedence than the following "-". Reported by Pádraig Brady.
5148 2015-11-03  Pádraig Brady  <P@draigBrady.com>
5150         quotearg: constify get_quoting_style parameters
5151         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
5152         * lib/quotearg.c (get_quoting_style): Likewise.
5154 2015-11-02  Pádraig Brady  <P@draigBrady.com>
5156         quotearg: add support for $'' shell escaping
5157         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
5158         items and descriptions.
5159         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
5160         above types by quoting like "shell", but using $'...' syntax
5161         for non printable characters, which should provide unambiguous
5162         printable output for any input.
5163         * tests/test-quotearg-simple.c: Update accordingly.
5165 2015-11-02  Pádraig Brady  <P@draigBrady.com>
5167         maint: use a more standard return from mbrtowc test
5168         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
5169         from the test program as this is non standard and often
5170         indicates an unhandled case in the test program.
5171         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
5173 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
5175         intprops: add WRAPV and const flavors for GCC 5
5176         If available, use GCC 5's builtin functions for efficient integer
5177         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
5178         and safely compute the low-order bits of the correct answer.
5179         A downside of these efficient functions is that they cannot be
5180         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
5181         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
5182         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
5183         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
5184         Document the changes.
5185         (Wraparound Arithmetic): New section.
5186         (Integer Range Overflow):
5187         Put this subsection last, since it's least useful.
5188         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
5189         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
5190         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
5191         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
5192         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
5193         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
5194         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
5195         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
5196         New macros.
5197         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
5198         Generate calls to GCC builtins if available, for speed.
5199         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
5200         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
5201         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
5202         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
5203         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
5204         (CHECK_QUOTIENT, CHECK_REMAINDER):
5205         Test WRAPV and CONST flavors (when available) too.
5207 2015-10-30  Pádraig Brady  <P@draigBrady.com>
5209         doc: use extended timezone format in iso-8601 example
5210         * doc/parse-datetime.texi: The standard states that extended format
5211         is to be used consistently throughout.
5212         Note that lib/parse-datetime.y can handle either tz format.
5214 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
5216         stdalign: port to Sun C 5.9
5217         * doc/posix-headers/stdalign.texi: Document this.
5218         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
5219         __attribute__ ((__aligned__ (...))).
5221 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
5223         time_rz: fix comment about tzalloc
5224         * lib/time_rz.c (tzalloc): Fix comment.
5226 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
5228         stdalign: work around pre-4.9 GCC x86 bug
5229         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
5230         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
5231         http://lists.gnu.org/archive/html/bug-gnulib/2015-10/msg00038.html
5233 2015-10-18  Pádraig Brady  <P@draigBrady.com>
5235         maint.mk: sc_tight_scope: remove extraneous expressions
5236         * top/maint.mk (tight_scope): This is not really required since
5237         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
5238         that matches all nm entries.  But it does remove extraneous entries
5239         that may be confusing or cause issue in future maintenance.
5241 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
5243         time_rz: return NULL if localtime_r fails
5244         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
5245         while still attempting to pacify bleeding-edge GCC.
5247         fts: port to C11 alignof
5248         * doc/posix-headers/stdalign.texi (stdalign.h):
5249         Document the C11 restriction.
5250         * lib/fts.c: Include stddef.h, for max_align_t.
5251         (fts_alloc): Align using max_align_t, not FTSENT.
5252         * modules/fts (Depends-on): Add stddef.
5254 2015-10-18  Jim Meyering  <meyering@fb.com>
5256         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
5257         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
5258         would see this:
5260         lib/time_rz.c: In function 'localtime_rz':
5261         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
5262           [-Werror=nonnull]
5263                    if (tm && !save_abbr (tz, tm))
5264                        ^
5266         That was complaining about "tm" because it is a parameter that was
5267         declared with the __nonnull__ attribute.
5268         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
5269         result of localtime_r.
5271 2015-10-17  Jim Meyering  <meyering@fb.com>
5273         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
5274         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
5275         name-extraction regexp mistakenly used \S+, and would mistakenly
5276         extract "*F" from "extern int *F()" rather than the desired "F".
5277         Use \w+ instead.
5279 2015-10-17  Jim Meyering  <meyering@fb.com>
5281         maint.mk: sc_tight_scope: factor and support OS X
5282         * top/maint.mk (_gl_tight_scope): Address three issues:
5283         - factor out four instances of code that wraps a string in "^...$"
5284         - allow nm-reported symbol names to have an optional leading "_"
5285         - add "main" to the list of ignored variable names, because on os x,
5286         "main" has nm-reported type "S" in the variable-checking section.
5288 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
5290         safe-alloc-tests: fix typo in license header
5291         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
5293 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
5295         copy-file: fix mem leak in error case
5296         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
5297         upon error opening or performing I/O to the src and dest files.
5299 2015-10-15  Mike Frysinger  <vapier@chromium.org>
5301         localename: control langinfo.h inclusion
5302         This header is only used to work around buggy behavior in old
5303         versions of glibc, so do not include it all the time.  Otherwise
5304         we get build failures on systems that do not provide langinfo.h.
5305         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
5306         in the source later on.
5307         The patch was originally submitted to gettext as:
5308         https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00011.html
5310 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
5312         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
5313         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
5314         * lib/u64.c, lib/unistd.c:
5315         Append 'typedef int dummy;', to pacify compilers that are picky
5316         about empty translation units.
5318 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
5320         accept4-tests: fix to avoid non portable flags
5321         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
5322         as they are the only documented ones, and passing others may trigger
5323         EINVAL (seen on FreeBSD 10.1-RELEASE).
5324         * doc/glibc-functions/accept4.texi: Mention that we don't provide
5325         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
5327 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
5329         gnulib-tool: fix tests of 'extensions' module
5330         This complements f8fe25fab60e3c687a124 commit.
5331         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
5332         emitting of initial gl_EARLY macros.
5333         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
5334         replaced with func_emit_pre_early_macros call.
5336 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
5338         unicase/locale-language: fix typo in utf-8 cookie
5339         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
5340         Problem reported by Zbigniew Jędrzejewski-Szmek.
5342 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
5344         xalloc: do not worry about GCC 5 warning on 32 bit
5345         * lib/xalloc.h: Revert previous change.
5346         I found a better way to fix this in coreutils.
5348 2015-10-02  Pádraig Brady  <P@draigBrady.com>
5350         xalloc: avoid GCC 5.1 warning on 32 bit
5351         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
5352         xalloc_oversized(), which was seen to give this warning
5353         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
5354         when simplifying conditional".
5356 2015-10-02  Daiki Ueno  <ueno@gnu.org>
5358         uniname/uniname-tests: avoid compiler warnings
5359         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
5360         unused local variables.
5361         (test_alias_lookup): Fix alias name display in failure cases.
5363 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5365         c-ctype: do not worry about EBCDIC + char signed
5366         Drop support for EBCDIC with char being signed, as this breaks too
5367         many programs.  Problem reported by Ben Pfaff in:
5368         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00053.html
5369         * lib/c-ctype.h: Verify that we are not using EBCDIC with
5370         char being signed.
5371         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
5372         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
5373         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
5374         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
5375         * tests/test-c-ctype.c (test_all):
5376         Simplify by assuming standard char values cannot be negative.
5377         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
5379 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5381         c-ctype: port better to z/OS EBCDIC
5382         Problems reported by Daniel Richard G. in:
5383         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00050.html
5384         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
5385         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
5386         (_C_CTYPE_OTHER_CNTRL): New macro.
5387         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
5388         from SCHAR_MIN, as the functions are defined only from values
5389         promoted from char or from unsigned char, not necessarily from
5390         signed char.
5392 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
5394         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
5396         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
5397         and ARFLAGS variables.  Doing this unconditionally could break
5398         later Automake's AM_PROG_AR invocation (at least it's
5399         AC_CHECK_TOOLS call to detect correct 'ar' binary).
5401         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
5402         Amsterdam Compiler Kit, so make the previous code to have effects
5403         only on ACK, and rather automatically call the Automake's
5404         AM_PROG_AR as soon as possible to decide other cases.
5406         References:
5407         http://lists.gnu.org/archive/html/bug-gnulib/2015-07/msg00001.html
5409         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
5410         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
5411         is possible, keep setting AR/ARFLAGS to reasonable defaults.
5412         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
5413         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
5414         'extensions' module is used.
5415         * modules/extensions (configure.ac-early): Remove as this snippet
5416         is added to gnulib-comp.m4 earlier anyway.
5418 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5420         sockets: MS Windows initalization fixes
5421         Problem reported by Test User in:
5422         http://lists.gnu.org/archive/html/help-shishi/2015-09/msg00001.html
5423         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
5424         Correct the endianness.
5425         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
5426         number mismatch, not just on <.  Cleanup before any such failure.
5428 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
5430         gc: fix detection of installed libgcrypt version
5431         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
5432         at least as recent as 1.4.4.  The previously used macro is not
5433         available now, since modules were removed in version 1.6.0.
5435 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5437         c-ctype: rewrite to use inline functions
5438         This simplifies maintenance, since it makes for just one
5439         implementation of each function, letting the compiler have the fun
5440         of optimization.  In practice this works well nowadays with GCC.
5441         E.g., c_isascii might need only three instructions even though the
5442         source code lists every ASCII character individually in a large
5443         switch statement.
5444         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
5445         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00037.html
5446         * NEWS: Document the API change.
5447         * lib/c-ctype.c: Drastically simplify, since this now just expands
5448         inline functions.
5449         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
5450         (C_CTYPE_INLINE): New macro.
5451         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
5452         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
5453         Verify that either ASCII or EBCDIC is being used.
5454         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
5455         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
5456         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
5457         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
5458         New private macros.
5459         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
5460         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
5461         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
5462         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
5463         (c_tolower, c_toupper): When converting, return the unsigned char,
5464         as that is what z/OS does.
5465         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
5466         of some c-ctype.h macros.
5467         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
5468         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
5469         c_tolower promotion to be compatible with z/OS.
5471 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
5473         gitlog-to-changelog: trim only trailing whitespaces
5474         This is fix for --format regression introduced by commit
5475         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
5476         doubled %n string) had no effect anymore.  This format
5477         specification has been used e.g. by GNU paxuitils (commit
5478         edfd8bcc3).
5480         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
5481         newlines in commmit messages.
5483 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5485         Test that c_iscntrl agrees with iscntrl, etc.
5486         Suggested by Daniel Richard G. in:
5487         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00034.html
5488         * modules/c-ctype-tests (Depends-on): Add ctype.
5489         * tests/test-c-ctype.c: Include <ctype.h>.
5490         (NCHARS): New constant.
5491         (test_agree_with_C_locale): New function.
5492         (main): Use it.
5493         (test_all): Use named constants.
5495         c-ctype: improve c_isascii testing
5496         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
5497         Add a test to count the number of ASCII characters.
5499 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
5501         savewd: remove SAVEWD_CHDIR_READABLE
5502         It was problematic in the light of file systems that ignore umask.
5503         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
5504         * NEWS: Document this.
5505         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
5506         successful, -1 (setting errno) on failure, rather than something
5507         more complicated than that.
5508         * lib/mkdir-p.c (make_dir_parents):
5509         Do not use SAVEWD_CHDIR_READABLE.
5510         * lib/savewd.c (savewd_chdir):
5511         Remove support for SAVEWD_CHDIR_READABLE.
5512         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
5514         c-ctype: port better to EBCDIC
5515         Problems reported by Daniel Richard G. in
5516         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00020.html
5517         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
5518         Include "verify.h".
5519         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
5520         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
5521         Define as enum constants with value false, if not defined, so that
5522         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
5523         code more portable, as both branches of the 'if' are compiled on
5524         all platforms.
5525         (C_CTYPE_EBCDIC): New constant.
5526         Verify that the character set is either ASCII or EBCDIC.
5527         (to_char): New static function.
5528         (c_isascii, c_iscntrl):
5529         Assume standard control-character assignments for EBCDIC.
5530         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
5531         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
5532         Rewrite to use 'if' instead of 'ifdef'.
5533         Use to_char if non-ASCII.  Prefer <= to >=.
5534         Prefer true and false to 1 and 0, for booleans.
5535         (c_iscntrl): Use 'if', not 'ifdef'.
5536         * modules/c-ctype (Depends-on): Add verify.
5537         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
5538         (to_char): New function.
5539         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
5541 2015-09-21  Pádraig Brady  <P@draigBrady.com>
5543         nanosleep: fix return code for interrupted replacement
5544         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
5545         that we return -1 in the case the call is interrupted by a signal,
5546         rather than the current value of 1.
5547         Diagnosed and tested by Daniel Richard G.
5549 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
5551         Diagnose ERE '()|\1'
5552         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
5553         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
5554         track of the set of previously-completed subexpressions available
5555         before the first alternative, and restore this set just before
5556         parsing each subsequent alternative.  This lets us diagnose the
5557         invalid back-reference in the ERE '()|\1'.
5559         regex: merge patches from libc
5561         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
5562         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
5563         * lib/regex_internal.h:
5564         Include <libc-lock.h> instead of <bits/libc-lock.h>.
5566         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
5567         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
5568         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
5569         wcscoll.
5570         * lib/regexec.c (check_node_accept_bytes): Likewise.
5572         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
5573         Fix regex wcrtomb namespace (bug 18496).
5574         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
5575         instead of wcrtomb.
5577         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
5578         Fix regex wctype namespace (bug 18495).
5579         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
5580         instead of towlower.
5581         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
5582         instead of iswlower.  Call __towupper instead of towupper.
5583         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
5584         instead of iswalnum.
5586         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
5587         * lib/regcomp.c (parse_bracket_exp): Initialize type to
5588         COLL_SYM in a couple of places to avoid uninitialized variable
5589         wanings on tilegx gcc 4.8.2.
5591         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
5592         * lib/regex_internal.h: Remove NOT_IN_libc.
5594         2014-11-17  Andreas Schwab  <schwab@suse.de>
5595         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
5597         2014-09-11  Roland McGrath  <roland@hack.frob.com>
5598         Move findidx nested functions to top-level.
5599         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
5600         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
5601         Pass new arguments to findidx.
5602         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
5603         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
5604         Don't #include it inside the function.  Pass new arguments to findidx.
5605         * lib/regex_internal.h:
5606         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
5607         (re_string_elem_size_at): Don't #include it inside the function.
5608         Pass new arguments to findidx.
5610         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
5611         Check if DEBUG is defined in regex_internal.c
5612         * lib/regex_internal.c: Check if DEBUG is defined and is set.
5614 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
5616         ceill: detect buggy OpenBSD implementation
5617         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
5618         which returns zero for small values.  Discussed here:
5619         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00010.html
5621 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
5623         mountlist: add me_mntroot field on Linux machines
5624         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
5625         mount_entry so Linux machines based on /proc/self/mountinfo can
5626         distinguish between bind mounts and original mounts.  In reality bind
5627         mounts aren't treated differently than mountroot=/ mounts by the
5628         kernel, but the user often wants these bind mounts distinguished.
5629         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
5630         More details at https://pad.lv/1432871
5632 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
5634         doc: Describe to use multiple instances of gnulib
5635         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
5636         instances of gnulib with different modules can be used, for example one
5637         for a lib and another one for associated tools.
5639 2015-09-01  Pádraig Brady  <P@draigBrady.com>
5641         base32: mark function as __attribute__ const
5642         * lib/base32.h (isbase32): Mark __attribute__ const as
5643         suggested by GCC, and consistent with the base64 module.
5645 2015-08-20  Daiki Ueno  <ueno@gnu.org>
5647         gnulib-tool: don't transform binary files with sed
5648         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
5649         .mo and .class files.
5650         Reported by Denis Denisov.
5652 2015-08-10  Daiki Ueno  <ueno@gnu.org>
5654         gperf: respect silent rules
5655         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
5656         V_GPERF_0 for silent rules.
5657         * modules/iconv_open (Makefile.am): Use V_GPERF.
5658         * modules/unicase/locale-language (Makefile.am): Likewise.
5659         * modules/unicase/special-casing (Makefile.am): Likewise.
5660         * modules/unictype/category-byname (Makefile.am): Likewise.
5661         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
5662         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
5663         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
5664         * modules/unictype/property-byname (Makefile.am): Likewise.
5665         * modules/unictype/scripts (Makefile.am): Likewise.
5666         * modules/uninorm/composition (Makefile.am): Likewise.
5668 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
5670         Improve port of stdalign to C++11
5671         Problem reported by Sundaram in:
5672         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00003.html
5673         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
5674         (__alignas_is_defined): Define if C++11 or newer.
5676 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
5678         pmccabe2html: fix gawk regex escaping
5679         * build-aux/pmccabe2html: Add one more backslash to properly
5680         escape the gsub replacement value.  Fixes this error:
5681         gawk: ./build-aux/pmccabe2html:425: \
5682         warning: escape sequence `\&' treated as plain `&'
5684 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
5686         time_rz: port to pedantic memcpy
5687         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
5688         that reject memcpy (..., NULL, 0).
5690 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
5692         time_rz: port better to MinGW
5693         Don't change tzname, as this makes MinGW dump core (Bug#21020).
5694         Instead, store the tzname copy in the struct tm_zone object.
5695         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
5696         * lib/strftime.c [!_LIBC]:
5697         * lib/time_rz.c: Include time-internal.h.
5698         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
5699         name from *TZ rather than from TZNAME, doable because *TZ now has
5700         a tzname_copy member.
5701         * lib/time-internal.h: New file, with contents taken from
5702         lib/time_rz.c.  It's separate because strftime.c now accesses
5703         struct tm_zone members.
5704         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
5705         New member tzname_copy.
5706         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
5707         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
5708         Initialize tzname_copy member.
5709         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
5710         in tzname_copy member.
5711         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
5712         (restore_tzname): Remove; no longer needed.  All calls removed.
5713         * modules/time_rz (Files): Add lib/time-internal.h.
5715         time: port __need_time_t to MinGW
5716         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
5717         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
5719 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5721         strftime: fix newly-introduced bug on Solaris
5722         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
5723         consistently at the start, rather than doing some of the setup at
5724         the start and some in the %Z format spec.  This is cleaner, and
5725         works better with time_rz on platforms like Solaris where struct
5726         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
5727         mktime_z and localtime_rz can mess up the tzname cache.
5729         test-strftime: test for Solaris bug
5730         * modules/strftime-tests (Depends-on): Add strerror.
5731         * tests/test-strftime.c: Include <errno.h>.
5732         (posixtm_test): New function, containing the old 'main'.
5733         (struct tzalloc_test, struct localtime_rz_test): New types.
5734         (TZ, LT): New static vars.
5735         (tzalloc_test): New function.
5736         (main): Rewrite in terms of posixtm_test and tzalloc_test.
5738         time_rz: port to Solaris etc.
5739         Works around a tzname problem on platforms like Solaris that have
5740         tzname but not tm_zone, by setting tzname at the appropriate time
5741         and restoring it later.
5742         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
5743         New static vars.
5744         (save_abbr) [HAVE_TZNAME]: Set them.
5745         (revert_tz) [HAVE_TZNAME]: Clear or use them.
5746         (restore_tzname): New function.
5747         (localtime_rz, mktime_z): Use it.
5749         time_rz: now LGPL
5750         * modules/time_rz (License): Now LGPL, because strftime depends on it.
5752         time_rz: make a constant 'const'
5753         * lib/time_rz.c (local_tz): Now const.
5755         time_rz: fix off-by-one typo
5756         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
5758 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
5760         fprintftime, strftime: use timezone_t args
5761         * NEWS: Document the change.
5762         * lib/fprintftime.h (fprintftime):
5763         * lib/strftime.c (extra_args) [my_strftime]:
5764         * lib/strftime.h (nstrftime):
5765         Time zone arg is now of type timezone_t, not int.
5766         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
5767         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
5768         (my_strftime) [emacs && !my_strftime]:
5769         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
5770         Remove; Emacs doesn't need this any more.
5771         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
5772         fprintftime and nstrftime to call tzset.
5773         (ut) [!my_strftime]: Remove, replacing with ...
5774         (tz) [!my_stftime]: ... this new macro.  All uses changed.
5775         (strftime_case_): Use localtime_rz and mktime_z instead
5776         of localtime_r and mktime.
5777         * modules/fprintftime (Depends-on): Add time_rz.
5778         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
5779         * tests/test-strftime.c (main): Adjust to new nstrftime API.
5781         time_rz: new module
5782         * MODULES.html.sh: Add time_rz.
5783         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
5784         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
5785         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
5786         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
5787         New var HAVE_TIMEZONE_T (default 0).
5788         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
5789         New var GNULIB_TIME_RZ (default 0).
5790         * modules/time (time.h): Substitute the new vars.
5792         flexmember: license is now unlimited
5793         * modules/flexmember (License): Change to unlimited,
5794         since its only source file gives an unlimited license.
5796 2015-07-15  Eric Blake  <eblake@redhat.com>
5798         maint: update copyright paper procedures
5799         * config/srclist.txt: Drop outdated files.
5800         * doc/Copyright/conditions.txt: Update to latest.
5801         * doc/Copyright/assign.changes.manual: Delete.
5802         * doc/Copyright/assign.future.manual: Likewise.
5803         * doc/Copyright/assign.manual: Likewise.
5804         * doc/Copyright/assign.translation.manual: Likewise.
5805         * doc/Copyright/disclaim.changes.manual: Likewise.
5806         * doc/Copyright/disclaim.manual: Likewise.
5807         * doc/Copyright/disclaim.program: Likewise.
5809 2015-07-07  Daiki Ueno  <ueno@gnu.org>
5811         localename: fix link error on Illumos
5812         Illumos defines __sun, but does not have getlocalename_l nor the
5813         equivalent.  This partially reverts commit 387c214.
5814         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
5815         available, as well as uselocale.
5816         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
5817         use getlocalename_l if it is not available.
5819 2015-07-07  Daiki Ueno  <ueno@gnu.org>
5821         unistr/uN-strtok-tests: avoid a trivial leak
5822         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
5823         input and delim after the multibyte delimiter tests.
5825 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
5827         file-has-acl, acl-permissions: fix HP-UX typos
5828         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
5829         * lib/file-has-acl.c (file_has_acl):
5830         * lib/set-permissions.c (context_acl_from_mode)
5831         (context_aclv_from_mode, set_acls):
5832         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
5833         They were introduced by the recent ACL changes.
5835         regex: match current GNU grep behavior
5836         These symbols have not matched GNU grep behavior for quite some time.
5837         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
5838         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
5839         Change to match current GNU behavior.
5840         Simplify by expressing it as differences from POSIX BREs and EREs.
5841         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
5843 2015-07-03  Jim Meyering  <meyering@fb.com>
5845         set-permissions.c: adjust acl_from_mode's cpp guard
5846         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
5847         directives identical to those guarding the sole use.
5848         Otherwise, on some systems, we'd get a warning about
5849         the function being defined but not used.
5850         Also, filter through cppi to correct misleading indentation
5851         of cpp directives.
5853 2015-07-03  Pádraig Brady  <P@draigBrady.com>
5855         tests: restrict shells to those that support 'local'
5856         The local keyword is very widely supported and used
5857         in tests in coreutils and grep at least.  Therefore
5858         restrict to testing with shells that support it.
5859         This mainly excludes /bin/sh on Solaris.
5860         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
5862 2015-07-03  Seiya Kawashima <skawashima@uchicago.edu>  (tiny change)
5863         and Daiki Ueno  <ueno@gnu.org>
5865         unistr/uN-strtok: handle multibyte delimiters
5866         Previously, uN_strtok moved PTR to the next unit to the token end.
5867         When DELIM contained a multibyte character, the new position could
5868         be a middle of a multibyte character.
5869         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
5870         after the token.
5871         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
5872         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
5873         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
5874         * modules/unistr/u8-strtok (Depends-on): Depend on
5875         unistr/u8-strmblen.
5876         * modules/unistr/u16-strtok (Depends-on): Depend on
5877         unistr/u16-strmblen.
5878         * modules/unistr/u32-strtok (Depends-on): Depend on
5879         unistr/u32-strmblen.
5880         * tests/unistr/test-u-strtok.h: New file.
5881         * tests/unistr/test-u8-strtok.c: New file.
5882         * tests/unistr/test-u16-strtok.c: New file.
5883         * tests/unistr/test-u32-strtok.c: New file.
5884         * modules/unistr/u8-strtok-tests: New file.
5885         * modules/unistr/u32-strtok-tests: New file.
5886         * modules/unistr/u16-strtok-tests: New file.
5888 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
5890         update-copyright: fix test failure with perl >= 5.22 (trivial)
5891         * build-aux/update-copyright: Escape a literal left curly bracket,
5892         required with perl >= 5.22
5894 2015-07-02  Daiki Ueno  <ueno@gnu.org>
5896         u{16,32}-strstr-tests: relax timeout condition
5897         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
5898         tests can take longer than 5 seconds to complete.
5899         Reported by Dagobert Michelsen in:
5900         https://lists.gnu.org/archive/html/bug-libunistring/2015-06/msg00006.html
5901         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
5902         seconds to 10 seconds.
5903         * tests/unistr/test-u32-strstr.c (main): Likewise.
5905 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
5907         gnulib-common.m4: change the ARFLAGS default to 'cr'
5908         In some GNU/Linux distributions people started to compile 'ar'
5909         binary with --enable-deterministic-archives (binutils project).
5910         That, however, in combination with previous autotools long time
5911         working default AR{_,}FLAGS=cru causes warnings on such
5912         installations:
5913         ar: `u' modifier ignored since `D' is the default (see `U')
5914         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
5915         set already.
5917 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
5919         selinux-h: avoid double free after *getfilecon()
5920         Originally reported by Ben Shelton on bug-tar:
5921         http://lists.gnu.org/archive/html/bug-tar/2015-04/msg00009.html
5922         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
5923         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
5924         param should be freed by freecon(3) (regardless the return value).
5926 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
5928         fix pty related tests issues on Windows (trivial)
5929         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
5930         however it's still present in tests/ subdirectory of the final project.
5931         Therefore avoid it to pass `make check`.
5932         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
5933         will just return -ENOSYS, so avoid this non applicable test allowing
5934         the build to proceed.
5936 2015-07-01  Pádraig Brady  <P@draigBrady.com>
5938         acl: fix definition of acl_from_mode on FreeBSD
5939         This was causing basic coreutils copy operations to fail
5940         with ENOTSUP or ENOENT error messages.
5941         * lib/acl-internal.h (acl_from_mode): Only define when
5942         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
5943         of acl_from_mode() defined in lib/set-permissions.c to
5944         be used on FreeBSD at least.
5945         * lib/set-permissions.c: Fix up comment spelling,
5946         and a redundant variable assignment; noticed in passing.
5948 2015-06-30  Pádraig Brady  <P@draigBrady.com>
5950         readutmp: port to FreeBSD >= 9
5951         * lib/readutmp.h: Map utmpxname() to setutxdb().
5952         With that coreutils who(1) and pinky(1) tests pass.
5954 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5956         mgetgroups: port to strict OS X
5957         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
5958         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
5959         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
5960         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
5962 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
5964         mgetgroups: port to strict OS X
5965         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
5966         Document the getgrouplist problem.
5967         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
5968         New macro.
5969         (mgetgroups): Use it.
5970         * m4/mgetgroups.m4 (gl_MGETGROUPS):
5971         Check for OS X signature for getgrouplist.
5973 2015-06-29  Jim Meyering  <meyering@fb.com>
5975         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
5976         It started like this when building coreutils' latest on OS X,
5977         invoking ./configure with a nonempty --cache=.cache:
5979           lib/linkat.c:46:42: error: operator '||' has no right operand
5980           lib/linkat.c: In function 'rpl_linkat':
5981           lib/linkat.c:330:27: error: #if with no expression
5983         Here's linkat.c's line 46:
5985           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
5987         Here's some context:
5989           $ grep linkat_nofoll .cache
5990           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
5991           $ grep LINKAT_SYM lib/config.h
5992           #define LINKAT_SYMLINK_NOTSUP
5994         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
5995         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
5996         but that violates a tenet of AC_CACHE_CHECK: it must
5997         have no side effect other than setting its cache variable.
5999         What happens is that when the cache is set, we'd skip the
6000         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
6001         defined to whatever value it happened to have in configure's
6002         environment.  In my case, it was not defined, so this later code:
6004           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
6005             [Define to 1 if linkat can create hardlinks to symlinks])
6007         would emit code with an empty RHS.
6009         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
6010         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
6012 2015-06-28  Jim Meyering  <meyering@fb.com>
6014         mountlist: avoid an unused-label warning on OS X
6015         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
6016         Building on OS X, I saw a warning about the "free_then_fail" label
6017         being unused.  Give it the _GL_UNUSED_LABEL attribute.
6019         error.c: correct printf-style format: %d -> %u
6020         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
6021         rather than %d, to match the type of "line_number", unsigned int.
6023 2015-06-25  Pádraig Brady  <P@draigBrady.com>
6025         fts: avoid reading beyond the heap allocation
6026         GCC 5.1.1 with -O2 and -fsanitize=address reports
6027         a read of size 4 from a heap object of size 3 is indeed invalid,
6028         though this may be due to incorrect padding assumptions by GCC, see:
6029         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
6030         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
6031         * modules/fts: Depend on stdalign.
6033 2015-06-24  Pádraig Brady  <P@draigBrady.com>
6035         savedir: avoid undefined behavior in qsort call
6036         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
6037         "runtime error: null pointer passed as argument 1,
6038          which is declared to never be null"
6039         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
6041 2015-06-24  Pádraig Brady  <P@draigBrady.com>
6043         userspec: avoid undefined behavior in gettext call
6044         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
6045         "runtime error: null pointer passed as argument 2,
6046          which is declared to never be null"
6047         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
6049 2015-06-20  Glenn Morris  <rgm@gnu.org>
6051         gitlog-to-changelog: improve gitmerge.el commits
6052         Let the Emacs ChangeLog generation process exclude "skipped"
6053         messages from merge commits (Bug#20717).
6054         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
6056 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6058         wchar: fix MinGW compilation warnings
6059         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
6060         http://lists.gnu.org/archive/html/bug-gnulib/2015-06/msg00050.html
6061         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
6063 2015-06-20  Daiki Ueno  <ueno@gnu.org>
6065         uniname/uniname-tests: use pristine data files
6066         For copyright and maintenance reasons, use the data files from UCD
6067         without modification.
6068         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
6069         (getfield): Remove.
6070         (aliases_count): New global variable.
6071         (fill_names): Skip comments and empty lines in the input.  Don't
6072         use getfield.
6073         (fill_aliases): Likewise.
6074         (main): Change the expected command line arguments to:
6075         NAMES... ["--" ALIASES...].
6076         * tests/uniname/test-uninames.sh: Adjust to the change in
6077         test-uninames.c.
6078         * tests/uniname/UnicodeDataNames.txt: Remove.
6079         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
6080         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
6081         file from Unicode 8.0.0.
6083 2015-06-19  Pádraig Brady  <P@draigBrady.com>
6085         linked-list, linkedhash-list: avoid compiler warnings
6086         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
6087         -Werror=suggest-attribute=pure (from GCC 5.1.1).
6089 2015-06-19  Daiki Ueno  <ueno@gnu.org>
6091         libunistring: bump minimum version to 0.9.6
6092         * all modules depending on updated Unicode data: Regenerate.
6093         The modules are listed by a script that does:
6094         - for each file listed by: git show --oneline --name-only 705f4efc
6095           - deduce the containing modules, based on "Files:"
6096         - deduce the modules which depend on the containing modules, based
6097           on "Depends-on:"
6099 2015-06-18  Daiki Ueno  <ueno@gnu.org>
6101         uniname/uniname: update to Unicode 8.0.0
6102         * lib/uniname/uninames.h: Regenerate.
6103         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
6104         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
6106 2015-06-18  Daiki Ueno  <ueno@gnu.org>
6108         libunistring: update to Unicode 8.0.0
6109         * lib/gen-uni-tables.c (SIZEOF): New macro.
6110         (output_numeric): Increase the maximum number of fractions from
6111         128 to 160.  Increase the level3 value width from 7 bits to 8
6112         bits.  Use SIZEOF instead of a hard-coded integer.
6113         (output_blocks): Decrease the cut-off threshold from 0x30000 to
6114         0x28000.
6115         (fill_blocks): Increase the maximum number of blocks from 256 to
6116         384.  Use SIZEOF instead of a hard-coded integer.
6117         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
6118         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
6119         value width.
6120         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
6121         a new case added to LBP22.
6122         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
6123         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
6124         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
6125         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
6126         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
6127         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6128         lib/uniwidth/width.c.
6129         * all generated files under lib/uni* and tests/uni*: Regenerate.
6131 2015-06-16  Pádraig Brady  <P@draigBrady.com>
6133         gnu-web-doc-update: add --mirror to remove stale files
6134         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
6135         out of date files from the CVS server.  Since this is usually
6136         appropriate, a prompt is given when the option is not specified,
6137         along with the `cvs remove` command that would be run.
6139 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
6141         acl-permissions: pacify -Wsuggest-attribute=const
6142         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
6143         * lib/acl-internal.h (free_permission_context):
6144         Declare with attribute const if ! (defined USE_ACL &&
6145         (HAVE_ACL_GET_FILE || defined GETACL)).
6147         fsync: document AIX misbehavior
6148         * doc/posix-functions/fsync.texi (fsync):
6149         Document failure on AIX with read-only file descriptor.
6151 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
6153         stdio: Don't redefine gets when using C++
6154         * lib/stdio.in.h (gets): Disable warning on C++.
6156 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
6158         acl-permissions: port to AIX, C89 HP-UX
6159         Problems reported by Michael Felt.
6160         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
6161         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
6162         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
6163         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
6164         Add cast for AIX, whose system calls are declared to accept
6165         char * even though the arguments are really char const *.
6166         * lib/get-permissions.c (get_permissions):
6167         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
6168         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
6169         that broke a build.
6170         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
6171         Rework types to pacify xlc.
6173 2015-06-03  Pádraig Brady  <P@draigBrady.com>
6175         vasprintf-posix: avoid compiling vasnprintf where possible
6176         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
6177         module where not required.  For example on a GNU/Linux system
6178         when gnulib-tool is run with the --conditional-dependencies option.
6180 2015-06-02  Pádraig Brady  <P@draigBrady.com>
6182         file-has-acl: fix build on Mac OS X 10
6183         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
6184         which has an incompatible 6 parameter getxattr() call.
6185         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
6186         call on Mac OS X >= 10.4.
6187         * doc/glibc-functions/fgetxattr.texi: Likewise.
6188         * lib/file-has-acl.c: Revert to more complete combined check.
6189         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
6190         Reported by Jack Howarth.
6192 2015-06-02  Pádraig Brady  <P@draigBrady.com>
6194         prefix-gnulib-mk: remove no longer needed special case
6195         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
6196         continued lib_SOURCES lines are no longer present,
6197         so special case handling of such entries is not required.
6199 2015-06-01  Pádraig Brady  <P@draigBrady.com>
6201         acl: don't depend on the deprecated qacl module
6202         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
6204 2015-06-01  Pádraig Brady  <P@draigBrady.com>
6206         gnulib-tool: concatenate lib_SOURCES to a single line
6207         * gnulib-tool: Refactor the line merging sed logic,
6208         and use that to output a single lib_SOURCES line for each module.
6209         gnulib using projects often postprocess this output to prepend
6210         subdir paths to each item, and having a single line simplifies this
6211         processing allowing better decoupling from the gnulib-tool output.
6213 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
6215         pthread_sigmask: discount system version if a simple macro (trivial)
6216         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
6217         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
6218         function to ensure it's available.
6220 2015-05-31  Pádraig Brady  <P@draigBrady.com>
6222         readlinkat: avoid OS X 10.10 trailing slash bug
6223         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
6224         has this bug.
6225         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
6226         that OS X 10.10 has this function.
6227         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
6228         as done for readlink().
6229         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
6230         trailing slash bug, and assume readlinkat() has the same issue.
6231         Also fix a typo where $gl_cv_decl_readlink_works was tested,
6232         rather than the correct $gl_cv_decl_readlinkat_works.
6234 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
6236         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
6237         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
6238         module rewrite.
6240         acl-permissions: Fix build on Solaris and Cygwin
6241         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
6242         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
6243         ace_entries variables have moved into struct permission_context but
6244         they were still accessed as local variables here.
6246 2015-05-29  Pádraig Brady  <P@draigBrady.com>
6248         linkat: avoid OS X 10.10 trailing slash with symlink bug
6249         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
6250         causes the symlink to be dereferenced, and if it points
6251         to a non existent file, that file will be created as
6252         a hard link to "path1".
6253         This fixes a test failure in test-linkat.c.
6254         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
6255         this case.  The existing workaround in linkat.c for
6256         trailing slash issues, suffices for this case.
6257         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
6258         the list of platforms with trailing slash issues.
6260 2015-05-28  Pádraig Brady  <P@draigBrady.com>
6262         unlinkat: handle ignoring of ".." on Darwin 14
6263         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
6264         on Mac OS X 10.10, where it ignores paths with a trailing "..",
6265         so handle in the same manner.
6266         * m4/unlinkat.m4: Comment on this Darwin issue.
6267         * doc/posix-functions/unlink.texi: Update the latest version
6268         where the issue was seen.
6269         * doc/posix-functions/unlinkat.texi: Mention this issue.
6270         Fixes a test failure in test-unlinkat.c.
6272 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
6274         qacl: split into qcopy-acl and qset-acl
6275         Emacs needs the former, but not the latter.
6276         * modules/acl-permissions: New file, containing most of the old qacl.
6277         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
6278         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
6279         * modules/qcopy-acl, modules/qset-acl: New files.
6280         * MODULES.html.sh (File system functions):
6281         Mention the new modules, and mention qacl while we're at it.
6283 2015-05-27  Glenn Morris  <rgm@gnu.org>
6285         gitlog-to-changelog: new option --ignore-line
6286         (This patch is imported from the GNU Emacs master.)
6287         This option ignores individual commit lines matching a pattern.
6288         * build-aux/gitlog-to-changelog: Add --ignore-line option.
6290 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
6292         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
6293         Implement get_permissions and set_permissions primitives for getting all
6294         the permissions of a file, storing them, and later setting them. (In the
6295         minimal case, the permissions consist only of a file mode.) Reimplement
6296         qset_acl and qcopy_acl based on these new primitives: this avoids code
6297         duplication and makes error handling more consistent.
6298         The Solaris and Cygwin code still uses duplicate code paths for setting
6299         a file mode while making sure that no acls exist and setting an explicit
6300         acl; this is no worse than before, but could be cleaned up.  The AIX
6301         code still doesn't read ACLs, it only makes sure that acls don't get in
6302         the way when setting a file mode.
6303         * lib/acl-internal.h (struct permission_context): New data structure.
6304         (get_permissions, set_permissions, free_permission_context): Declare.
6305         * lib/acl-internal.c (free_permission_context): New helper function.
6306         * lib/get-permissions.c (get_permissions): New helper function split off
6307         from qcopy_acl.
6308         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
6309         AIX, set a file's permissions based only on a file mode.
6310         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
6311         other platforms construct a temporary acl from the file mode and set
6312         that acl in the same way as setting an acl read from the source file.
6313         This should help avoid code duplication and inconsistent / buggy
6314         behavior.
6315         (set_acls): New helper function Split off from qcopy_acl.
6316         (chmod_or_fchmod): Moved here from qset-acl.c.
6317         (set_permissions): New helper function.
6318         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
6319         set_permissions.
6320         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
6321         * modules/qacl: Add get-permissions.c and set-permissions.c.
6323         file-has-acl: Split feature tests again (Bug#20667)
6324         * lib/file-has-acl.c: Instead of testing for
6325         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
6326         define them when needed.
6327         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
6328         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
6330 2015-05-27  Pádraig Brady  <P@draigBrady.com>
6332         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
6333         This avoids a conflict with "FORTIFY_SOURCE" variants
6334         of the string functions when they're replaced on NetBSD-6.0.1
6335         and Darwin-14.3.0 at least.
6336         * lib/string.in.h: Avoid including our "lib/string.h" while
6337         including the system <string.h>.
6339 2015-05-26  Eric Blake  <eblake@redhat.com>
6341         stdio: limit __gnu_printf__ witness to gcc 4.4+
6342         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
6343         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
6345         error: use correct printf attributes on mingw
6346         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
6348         inttypes: force correct mingw PRIdMAX even without <stdio.h>
6349         * modules/inttypes (Depends-on): Require extensions, so that mingw
6350         always uses GNU style inttypes.
6351         * lib/inttypes.in.h: On mingw, include <stdio.h>.
6353         stdio: fix probe on mingw under gcc 5.1
6354         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
6355         around new gcc preprocessor rules.
6357 2015-05-07  Glenn Morris  <rgm@gnu.org>
6359         gitlog-to-changelog: parse "Tiny-change"
6360         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
6361         "Copyright-paperwork-exempt".  (Bug#20324)
6363 2015-05-06  Pádraig Brady  <P@draigBrady.com>
6365         doc: document glibc posix_fallocate() issues
6366         * doc/posix-functions/posix_fallocate.texi: Mention the
6367         glibc efficiency problems and issues with NFS.
6369 2015-05-05  Karl Berry  <karl@freefriends.org>
6371         * build-aux/gendocs.sh (usage): document new css default
6372         for HTML (--htmlarg).
6374 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
6376         extern-inline: no need for workaround in GCC 5.1
6377         * doc/extern-inline.texi (extern inline):
6378         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
6379         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
6380         around these bugs in GCC 5.1 and later.  Maybe in a decade or
6381         two we can remove these workarounds.
6383 2015-04-28  Pádraig Brady  <P@draigBrady.com>
6385         eealloc, pagealign_alloc, xalloc: avoid clang warnings
6386         Avoid [-Wunknown-attributes] warnings like:
6387         warning: unknown attribute '__alloc_size__' ignored
6388         * lib/xalloc.h: Don't use the __alloc_size__  attribute
6389         with clang, as support has been fully removed as of clang 3.5:
6390         https://github.com/llvm-mirror/clang/commit/c047507a
6391         * lib/eealloc.h: Likewise.
6392         * lib/pagealign_alloc.h: Likewise.
6394 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
6396         tests: pacify GCC 5.1's stricter printf checking
6397         * tests/test-dirname.c (main):
6398         * tests/test-getaddrinfo.c (simple):
6399         * tests/test-getlogin.c (main):
6400         * tests/test-getndelim2.c (main):
6401         * tests/test-inttostr.c (CK):
6402         * tests/test-md5.c (main):
6403         * tests/test-read-file.c (main):
6404         * tests/test-sha1.c (main):
6405         Fix mismatches between printf format and value signedness.
6406         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
6407         Remove, as CAST_VAL always returned a value of type uintmax_t.
6409         fts: port to GCC 5.1 with --enable-gcc-warnings
6410         Without this fix, GCC 5.1 (correctly) warns about a subscript
6411         error on the fts_name component of FTSENT.  It's actually a
6412         flexible member, so define it that way on C99 or later hosts.
6413         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
6414         structure that now has a flexible array member.
6415         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
6416         (FTSENT): fts_name is now flexible on C99-or-later platforms.
6417         * modules/fts (Depends-on): Add flexmember.
6419 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6421         file-has-acl: port to CentOS 6
6422         Problem reported by Tom G. Christensen in:
6423         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00074.html
6424         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
6425         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
6426         HAVE_GETXATTR.
6427         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
6428         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
6429         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what what
6430         file-has-acl.c actually needs.
6432 2015-04-26  Pádraig Brady  <P@draigBrady.com>
6434         file-has-acl: always return false when ACLs aren't supported
6435         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
6436         change the GNU/Linux getxattr path, to transform "not supported"
6437         errors to a false return rather than an error.  This is handled
6438         within file_has_acl() due to the platform specific tests to
6439         determine if ACLs are not supported.
6441 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6443         gettext: propagate po/Makefile.in.in too
6444         * build-aux/po/Makefile.in.in: Copy from latest gettext.
6445         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
6446         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
6447         between Makefile.in.in and the gettext-runtime m4 files.
6449 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
6451         file-has-acl: new module, split from acl
6452         And add a new module file-has-acl-tests to match.
6453         I ran into a problem with the recent changes to the acl module,
6454         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
6455         When using the fixed version with Emacs, I discovered that
6456         file-has-acl wasn't separated out well enough for Emacs (e.g., it
6457         had multiple libraries, but needed only one), so I fixed that too.
6458         * NEWS: Document this incompatible change.
6459         * modules/file-has-acl, modules/file-has-acl-tests: New files.
6460         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
6461         Initialize gl_need_lib_has_acl.
6462         (gl_FUNC_ACL): Require it.
6463         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
6464         Move the file-has-acl.c-relevant stuff to ...
6465         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
6466         use_xattrs = 0' typo, and omit some needless work.  Set
6467         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
6468         when gl_FUNC_ACL is called.
6469         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
6470         (Link): Remove $(LIB_HAS_ACL).
6471         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
6472         (check_PROGRAMS): Move stuff relevant to file-has-acl to
6473         modules/file-has-acl-tests.
6474         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
6476         manywarnings: add GCC 5.1 warnings
6477         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
6478         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
6479         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
6480         -Wsuggest-override, -Wuse-without-only.  Change
6481         -Wnormalized=... operands to match 5.1.
6482         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
6483         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
6484         -Wdiscarded-qualifiers, -Wformat-signedness,
6485         -Wincompatible-pointer-types, -Wint-conversion,
6486         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
6487         -Wshift-count-negative, -Wshift-count-overflow,
6488         -Wsizeof-array-argument, -Wsuggest-final-methods,
6489         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
6490         and add -Warray-bounds=2 as a special case.
6492 2015-04-21  Simon Josefsson  <simon@josefsson.org>
6494         doc: update FDL template to match FDL examples.
6495         * doc/alloca-opt.texi:
6496         * doc/alloca.texi:
6497         * doc/c-ctype.texi:
6498         * doc/c-strcase.texi:
6499         * doc/c-strcaseeq.texi:
6500         * doc/c-strcasestr.texi:
6501         * doc/c-strstr.texi:
6502         * doc/c-strtod.texi:
6503         * doc/c-strtold.texi:
6504         * doc/ctime.texi:
6505         * doc/error.texi:
6506         * doc/gcd.texi:
6507         * doc/gnulib-tool.texi:
6508         * doc/inet_ntoa.texi:
6509         * doc/intprops.texi:
6510         * doc/lib-symbol-visibility.texi:
6511         * doc/maintain.texi:
6512         * doc/parse-datetime.texi:
6513         * doc/quote.texi:
6514         * doc/regexprops-generic.texi:
6515         * doc/standards.texi: Remove spurious 'with' in FDL license
6516         template.
6518 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
6520         lstat: fix cross-compilation 'ln -s' problem
6521         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6522         Have the test program call 'symlink' rather than a separate
6523         script run 'ln -s'; this is more likely to work in
6524         cross-compilation environments.  Reported by Pavel Fedin in:
6525         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00060.html
6527 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
6529         gendocs.sh: default to a common CSS style sheet for HTML output
6530         * build-aux/gendocs.sh (htmlarg): Change default value.
6532 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
6534         gnulib-tool: output bold attribute more portably
6535         * gnulib-tool (func_show_module_list): Change hexadecimal
6536         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
6537         encoded numbers as arguments to `printf' is not portable,
6538         and is not claimed by POSIX.  This is the case with FreeBSD.
6540 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
6542         qacl: Simplify HP-UX acl_nontrivial check
6543         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
6544         acl_nontrivial. Check if the acl has at most three entries instead (it must
6545         have exactly three entries according to the HP-UX documentation). Ignore
6546         uids and gids as long as an entry is either for a user (i.e., the owner),
6547         a group (i.e., the owning group), or others.
6548         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
6549         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
6551 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
6553         acl: On Linux, check for acls without libacl
6554         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
6555         library function to check for the presence of acls, avoiding a library.
6556         * lib/file-has-acl.c: Include xattr headers if we have them.
6557         (file_has_acl): On Linux, use getxattr().
6558         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
6559         file_has_acl(). Check for xattr headers and getxattr().
6561 2015-04-14  Ángel González  <keisial@gmail.com>
6563         tempname: avoid unused parameter warnings (trivial)
6564         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
6565         (try_nocreate): Likewise.
6567 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
6569         fseeko: fix build failure on NetBSD >= 6 (trivial)
6570         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
6571         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
6573 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6575         gitlog-to-changelog: port to MS-Windows
6576         * build-aux/gitlog-to-changelog (git_dir_option):
6577         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
6578         MS-Windows Perl.  Reported by Eli Zaretskii in:
6579         http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00504.html
6581 2015-04-07  Karl Berry  <karl@gnu.org>
6583         gendocs: new option --tex for passing args to texi2dvi.
6584         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
6585         (TEXI2DVI): cut to just command name.
6586         (usage): mention new option, and update copyright.
6587         <generate_tex>: use it.
6589 2015-04-07  Karl Berry  <karl@gnu.org>
6591         * config/srclistvars.sh (GETTEXT): new definition.
6592         * config/srclist.txt: use it for gettext .m4 files.
6593         Thread starting at http://lists.gnu.org/archive/html/bug-gnulib/201
6594         and confirmed at http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00146.html
6595         and continuing into April.
6597 2015-04-07  Daiki Ueno  <ueno@gnu.org>
6599         uniname/uniname-tests: fix failure due to alias
6600         Reported by Jack Howarth in:
6601         <https://lists.gnu.org/archive/html/bug-libunistring/2015-04/msg00000.html>.
6602         * tests/uniname/test-uninames.c (name_has_alias): New function.
6603         (test_inverse_lookup): Exclude character name with valid alias,
6604         from randomly generated character names.
6605         (main): Fill unicode_aliases before calling test functions.
6607 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
6609         hash: remove deprecated hash_insert0 function
6610         * lib/hash.h (hash_insert0): Remove deprecated function.
6611         * lib/hash.c (hash_insert0): Likewise.
6613 2015-04-02  Pádraig Brady  <P@draigBrady.com>
6615         mountlist: remove dependency on libmount
6616         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
6617         directly, rather than depending on libmount, which has many
6618         dependencies due to its dependence on libselinux, as detailed at:
6619         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00063.html
6620         Note we restrict this to __linux__ as that's probably where this
6621         interface will remain.  If ever porting, it would be best
6622         to first pull the makedev() wrapper from coreutils to a gnulib module.
6623         Note also we don't add a getline dependency to the mountlist module,
6624         as all Linux versions are sufficient.
6626 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
6628         stddef: port to pre-C11 GCC on x86
6629         On this platform, max_align_t should have an alignment of 8 even
6630         though the storage alignments of double, long, etc. max out at 4.
6631         Inspired by a comment of Andreas Schwab's here:
6632         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
6633         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
6634         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
6635         * tests/test-stddef.c: Test __alignof__ too, if available.
6637 2015-03-24  Pádraig Brady  <P@draigBrady.com>
6639         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
6640         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
6642 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
6644         yesno: make EOL optional in ENABLE_NLS case also (trival)
6645         * lib/yesno.c (yesno): Check for EOL before replacing.
6646         * tests/test-yesno.sh: Add a test case (test along with gettext).
6648 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
6650         fdopendir-tests: test it does not close its arg
6651         * tests/test-fdopendir.c (main): Test that fdopendir does not
6652         close its argument.  From a suggestion by David Grayson in:
6653         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00039.html
6655 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6657         gitlog-to-changelog: trim trailing white space
6658         * build-aux/gitlog-to-changelog (main):
6659         Trim trailing white space from commit message lines.
6660         This is helpful for processing the GNU Emacs repository,
6661         which dates back to 1985 and contains a lot of such lines.
6663         gitlog-to-changelog: new option --ignore-matching
6664         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
6665         Support new option --ignore-matching=PAT, which ignores all
6666         commit messages whose first line matches PAT.
6668 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6670         fdopendir: port better to MinGW
6671         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
6672         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
6673         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00033.html
6674         * modules/fdopendir (Depends-on): Add dirfd.
6676 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
6678         fdopendir: fix typo in comment
6679         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
6681 2015-03-09  Eric Blake  <eblake@redhat.com>
6683         error: document all entry points provided
6684         * doc/glibc-functions/error_print_progname.texi
6685         (error_print_progname): Mention the error module.
6686         * doc/glibc-functions/error_at_line.texi (error_at_line):
6687         Likewise.
6688         * doc/glibc-functions/error_message_count.texi
6689         (error_message_count): Likewise.
6690         * doc/glibc-functions/error_one_per_line.texi
6691         (error_one_per_line): Likewise.
6693 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
6695         vasnprintf: pacify clang 3.5.0
6696         Problem reported by Werner Lemberg in:
6697         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00000.html
6698         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
6699         The casts aren't needed, since the characters in question are ASCII.
6701 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6703         glob, etc.: port to MSVC v18 on MS-Windows 8.1
6704         * lib/dirent--.h (GNULIB_defined_opendir):
6705         * lib/dirent.in.h (GNULIB_defined_opendir)
6706         (GNULIB_defined_closedir):
6707         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
6708         #undef only if Gnulib defined it.
6710         poll: port to MSVC v18 on MS-Windows 8.1
6711         Problem reported by Gisle Vanem in:
6712         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00139.html
6713         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
6714         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
6715         Add sys_socket.
6717 2015-02-24  Pádraig Brady  <P@draigBrady.com>
6719         tests: support stderr verification with returns_()
6720         * tests/init.sh (returns_): Disable tracing for this wrapper
6721         function, so that stderr of the wrapped command is unchanged,
6722         allowing for verification of the contents.
6724 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
6726         passfd: avoid valgrind uninitalised data warning
6727         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
6728         to include just the fd we've initialized, rather than including
6729         the extra space used for alignment.
6731 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
6733         uniwbrk/u32-wordbreaks-tests: fix copyright
6734         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
6736         dup2: doc and test for Android bug
6737         Reported by Kevin Cernekee in:
6738         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00125.html
6739         * doc/posix-functions/dup2.texi (dup2): Document the bug.
6740         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
6742 2015-02-23  Kevin Cernekee  <cernekee@google.com>
6744         Replace dup2() on Android
6745         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
6746         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
6747         fails.  Using rpl_dup2() fixes this because it has an explicit test
6748         for this condition.
6750 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
6752         Android doesn't define RLIM_SAVED_*
6753         Portability problem reported by Kevin Cernekee in:
6754         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00122.html
6755         * doc/posix-headers/sys_resource.texi (sys/resource.h):
6756         Mention the portability problem.
6757         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
6758         Define if not defined.
6759         * m4/dup2.m4 (gl_FUNC_DUP2):
6760         * m4/fcntl.m4 (gl_FUNC_FCNTL):
6761         Likewise.
6763 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
6765         vasnprintf-posix-tests: use consistent test
6766         * tests/test-vasnprintf-posix.c (test_function):
6767         Use "<" in assert instead of "<=", for consistency with other tests.
6769 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6771         printf, isinf, etc.: noncanonical != NaN
6772         Do not require that isinf, printf, etc. treat noncanonical
6773         values as NaNs.  Instead, require only that they do not crash.
6774         Problem reported by Joseph Myers in:
6775         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
6776         * doc/posix-functions/dprintf.texi (dprintf):
6777         * doc/posix-functions/fprintf.texi (fprintf):
6778         * doc/posix-functions/isfinite.texi (isfinite):
6779         * doc/posix-functions/isinf.texi (isinf):
6780         * doc/posix-functions/isnan.texi (isnan):
6781         * doc/posix-functions/printf.texi (printf):
6782         * doc/posix-functions/snprintf.texi (snprintf):
6783         * doc/posix-functions/sprintf.texi (sprintf):
6784         * doc/posix-functions/vdprintf.texi (vdprintf):
6785         * doc/posix-functions/vfprintf.texi (vfprintf):
6786         * doc/posix-functions/vprintf.texi (vprintf):
6787         * doc/posix-functions/vsnprintf.texi (vsnprintf):
6788         * doc/posix-functions/vsprintf.texi (vsprintf):
6789         Document this.
6790         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
6791         * m4/isinf.m4 (gl_ISINFL_WORKS):
6792         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
6793         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
6794         * tests/test-isfinite.c (test_isfinitel):
6795         * tests/test-isinf.c (test_isinfl):
6796         * tests/test-isnan.c (test_long_double):
6797         * tests/test-isnanl.h (main):
6798         * tests/test-snprintf-posix.h (test_function):
6799         * tests/test-sprintf-posix.h (test_function):
6800         * tests/test-vasnprintf-posix.c (test_function):
6801         * tests/test-vasprintf-posix.c (test_function):
6802 o       Test only that noncanonical values do not cause crashes, not that
6803         they are treated as NaNs.  In some cases this means a larger
6804         output buffer is needed.
6806 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
6808         fts: remove redundant close() (trivial)
6809         * lib/fts.c (fts_read): Remove redundant call to close().
6810         Spotted by coverity.
6812 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6814         getdtablesize: port better for Android
6815         Problem reported by Kevin Cernekee in:
6816         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00112.html
6817         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
6818         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
6819         Instead, just use getrlimit, taking care to avoid Cygwin bug.
6821         poll: fixes for large fds
6822         * lib/poll.c (poll): Don't check directly for NFD too large.
6823         Don't rely on undefined behavior in FD_SET when an arg exceeds
6824         FD_SETSIZE.  Always set revents afterwards, even if to zero.
6825         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
6826         as that makes the test a bit stricter.
6828 2015-02-19  Kevin Cernekee  <cernekee@google.com>
6830         fcntl: Fix cross compiling
6831         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
6832         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
6834 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6836         dup2, fcntl: cross-compile better for Android
6837         Problem reported by Kevin Cernekee in:
6838         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00109.html
6839         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
6840         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
6841         there's little need to cross-compile for older kernels nowadays.
6842         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
6843         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
6845 2015-02-18  Pádraig Brady  <P@draigBrady.com>
6847         getopt: don't crash on memory exhaustion
6848         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
6849         memory exhaustion.  In the _LIBC case we use alloca() as is
6850         already done in glibc, so we don't need to consider the separate
6851         error path in that awkward case.  Also fix a memory leak when
6852         ambiguous options are present.
6853         Reported by Tobias Stoeckmann
6855 2015-02-17  Mike Miller  <mtmiller@ieee.org>
6857         tempname: allow compilation with C++ (trivial)
6858         * lib/tempname.h [C++]: Specify extern "C" linkage.
6859         * lib/tempname.h (try_tempname):
6860         * lib/tempname.c (__try_tempname, __gen_tempname):
6861         Rename 'try' to 'tryfunc'.
6863 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6865         dup2, fcntl: port to AIX
6866         * m4/dup2.m4 (gl_FUNC_DUP2):
6867         * m4/fcntl.m4 (gl_FUNC_FCNTL):
6868         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
6869         The former works on AIX 7.1 but the latter does not.
6870         Also, this may work better with Android; see:
6871         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00100.html
6873 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6875         getdtablesize, dup2, fcntl: port to Android
6876         Problem reported by Kevin Cernekee in:
6877         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00092.html
6878         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
6879         Mention that getdtablesize doesn't work on Android.
6880         * lib/getdtablesize.c: Use getrlimit substitute only if
6881         getdtablesize is declared.  This should suffice for Cygwin
6882         while not breaking Android.
6883         * m4/dup2.m4 (gl_FUNC_DUP2):
6884         * m4/fcntl.m4 (gl_FUNC_FCNTL):
6885         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
6886         standardized but the latter is not, and sysconf works on Android.
6887         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
6888         Also check that getdtablesize is declared.
6889         This removes the need for a special case for Android.
6891 2015-02-16  Kevin Cernekee  <cernekee@google.com>
6893         localename: Implement gl_locale_name_thread_unsafe for Android
6894         * lib/localename.c: Android API level >= 21 supports two hardcoded
6895         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
6896         the internal __locale_t struct.
6898 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
6900         fts: avoid crash when a cycle is added while traversing
6901         This could be triggered by auto-mounting a recursive bind mount.
6902         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
6903         * lib/fts.c (fts_read): Avoid removing the original hash table item
6904         when leaving a directory that caused a cycle, and preserve the FTS_DC
6905         flag.
6907 2015-02-16  Daiki Ueno  <ueno@gnu.org>
6909         uniname/uniname: support character alias
6910         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
6911         Generate one-way mapping from aliases to codepoints in the
6912         generated tables.  Special case variation selectors to reduce
6913         table size.
6914         * lib/uniname/uniname.c (unicode_character_name): Special case
6915         variation selectors.
6916         (unicode_name_character): Special case variation selectors and
6917         their aliases.
6918         * lib/uniname/uninames.h: Regenerate.
6919         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
6920         * modules/uniname/uniname-tests (Files): Add
6921         tests/uniname/NameAliases.txt.
6922         * tests/uniname/test-uninames.c: Mark as static.
6923         (ALIASLEN): Define.
6924         (struct unicode_alias): New struct.
6925         (unicode_aliases): New variable.
6926         (fill_aliases): New function.
6927         (test_alias_lookup): New test function.
6928         (main): Run the 'test_alias_lookup' test if the second argument is
6929         given.
6930         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
6931         second argument.
6933 2015-02-11  Kevin Cernekee  <cernekee@google.com>
6935         Fix FILE struct compatibility with Android API level >= 21
6936         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
6937         __sferror.  Recent versions of Bionic's stdio.h no longer define
6938         __sferror.
6939         * lib/fbufmode.c: Likewise.
6940         * lib/fflush.c: Likewise.
6941         * lib/fpurge.c: Likewise.
6942         * lib/freadable.c: Likewise.
6943         * lib/freadahead.c: Likewise.
6944         * lib/freading.c: Likewise.
6945         * lib/freadptr.c: Likewise.
6946         * lib/freadseek.c: Likewise.
6947         * lib/fseeko.c: Likewise.
6948         * lib/fseterr.c: Likewise.
6949         * lib/fwritable.c: Likewise.
6951         Assume unbroken ungetc() on Android
6952         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
6953         test case passed when running on an Android host, and the code
6954         hasn't really changed since 2009.
6956         getdtablesize: Fix Android build
6957         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
6958         versions have this symbol in the .so library (at least 32-bit
6959         platforms) but are missing the declaration in the header file,
6960         causing the m4 logic to guess incorrectly.
6962         localename: Fix Android build
6963         * modules/localename (Depends-on): Add langinfo.
6965         getugroups: Fix Android build
6966         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
6967         functions.
6969         euidaccess: Fix Android build
6970         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
6971         AT_EACCESS gets declared.
6973         linkat_nofollow: Add fallback case for cross compiling
6974         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
6976         net_if: Handle content-free <net/if.h> system headers
6977         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
6978         struct if_nameindex.  If not, enable the replacement header.
6980         signal_h: Fix Android build
6981         * lib/signal.in.h: Add Android to the list of platforms that declare
6982         pthread_sigmask() in <pthread.h> instead of <signal.h>.
6984         duplocale: Fix Android build of duplocale-tests
6985         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
6986         is included by test-duplocale.c (but not by duplocale.c).
6987         * modules/duplocale-tests (configure.ac): Check for monetary.h.
6988         * tests/test-duplocale.c: Skip test if monetary.h is absent.
6989         * doc/posix-headers/monetary.texi: Add Android to the list of
6990         platforms missing monetary.h.
6992 2015-02-11  Pádraig Brady  <P@draigBrady.com>
6994         tests: avoid recent -Werror=unused-variable regression in test-locale
6995         * tests/test-locale.c (main): Reference the variable to avoid the
6996         "unused variable" warning.
6998 2015-02-11  Pádraig Brady  <P@draigBrady.com>
7000         maint: various whitespace cleanups in tempname
7001         * lib/tempname.c: Normalize spacing and line length.
7002         * lib/tempname.h: Likewise.
7003         * modules/tempname: Likewise.
7005 2015-02-11  Pádraig Brady  <P@draigBrady.com>
7007         tests: provide returns_() to simplify exit status checking
7008         * tests/init.sh (returns_): A new function for use in tests,
7009         to allow for easier checking of return values, where you expect
7010         a command to exit with failure status.  By checking for a particular
7011         exit code, you don't hide any crashes for example.
7013 2015-02-11  Pádraig Brady  <P@draigBrady.com>
7015         mountlist: only use libmount when specified
7016         There are currently many shared libs dependencies introduced by
7017         libmount with associated runtime and virt mem overhead.
7018         Therefore don't enable by default.
7019         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
7021 2015-02-08  Daiki Ueno  <ueno@gnu.org>
7023         uniname/unimame-tests: don't link with -lunistring
7024         * modules/uniname/uniname-tests (Makefile.am): Don't link against
7025         $(LIBUNISTRING).  Document the rationale why we need to
7026         conditionalize the test.
7028 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7030         fstrcmp: don't assume strlen < INT_MAX
7031         * lib/fstrcmp.c: Include stddef.h and stdint.h.
7032         (uintptr_t): Remove, as we're now assuming stdint.
7033         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
7034         Prefer ptrdiff_t to int when the value could exceed INT_MAX
7035         if the input string is long.
7036         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
7037         uintptr_t to size_t when the underlying value is a pointer casted
7038         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
7039         * modules/fstrcmp (Depends-on): Add stdint.
7041         diffseq: prefer ptrdiff_t to ssize_t
7042         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
7043         ptrdiff_t is the natural type for signed indexes.
7044         On a few older platforms, ssize_t is narrower than size_t.
7046         xalloc: fix typo that suppressed warnings
7047         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
7048         This typo, introduced a couple of years ago, mistakenly suppressed
7049         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
7050         -Wmissing-declarations warnings.
7052         full-read: fix license notice typo
7053         * lib/full-read.h: Remove a stray line in the license notice.
7054         Reported by Sam Ellis in: http://bugs.gnu.org/19808
7056         crypto/gc: fix a -Wswitch warning
7057         Reported by Bruce Korb in:
7058         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00046.html
7059         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
7061 2015-02-03  Pádraig Brady  <P@draigBrady.com>
7063         gnulib-tool: fix handling of patch(1) diagnostics
7064         * gnulib-tool: Send diagnostics from patch(1) to stderr,
7065         as otherwise gnulib-tool will reparse that output and attempt
7066         to lookup modules.
7068 2015-02-03  Pádraig Brady  <P@draigBrady.com>
7070         bootstrap: exit immediately upon gnulib-tool failure
7071         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
7072         This was noticed when gnulib-tool exited early due to failure
7073         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
7074         but various confusing errors were then given as the build proceeded.
7076 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
7078         symlinkat: include all required header files
7079         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
7080         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
7081         Reported at https://savannah.gnu.org/bugs/index.php?44151
7082         and by Jack Howarth.
7084 2015-01-29  Pádraig Brady  <P@draigBrady.com>
7086         localename: support Solaris 12 and illumos
7087         * lib/localename.c (gl_locale_name_thread_unsafe): call
7088         getlocalename_l() on newer __sun platforms.
7089         Reported by Alexander Pyhalov.
7090         Fix suggested by Rich Burridge.
7092 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
7094         locale: fix tests on illumos (trivial)
7095         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
7096         so move from global scope to main().
7098 2015-01-24  Daiki Ueno  <ueno@gnu.org>
7100         unictype: avoid undefined left-shift behavior
7101         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
7102         gcc's -fsanitize=shift and running its tests triggered:
7103           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
7104             places cannot be represented in type 'int'
7105         Cast LHS to 'unsigned int' after integer promotion.
7106         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
7107         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
7109 2015-01-20  Daiki Ueno  <ueno@gnu.org>
7111         libunistring: bump version of unitypes dependants
7112         Due to the header file search order, all the headers which depend
7113         on unitypes.h need to be generated, when the preinstalled
7114         libunistring is older.
7115         * modules/unicase/base (configure.ac): Bump minimum version to
7116         0.9.4.
7117         * modules/uniconv/base (configure.ac): Likewise.
7118         * modules/unilbrk/base (configure.ac): Likewise.
7119         * modules/uninorm/base (configure.ac): Likewise.
7120         * modules/unistdio/base (configure.ac): Likewise.
7121         * modules/unistr/base (configure.ac): Likewise.
7122         * modules/uniwbrk/base (configure.ac): Likewise.
7123         * modules/uniwidth/base (configure.ac): Likewise.
7125 2015-01-20  Daiki Ueno  <ueno@gnu.org>
7127         unictype/category-none: fix link with libunistring
7128         Since _UC_CATEGORY_NONE is not a public symbol, it will be
7129         prefixed with "libstring_" when compiled as part of libunistring.
7130         To avoid undefined symbol at link time, increase the minimum
7131         version when the dependant modules are updated.
7132         * modules/unictype/category-none (configure.ac): Bump minimum
7133         version to 0.9.5.
7135 2015-01-20  Daiki Ueno  <ueno@gnu.org>
7137         unitypes: fix build with installed libunistring
7138         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
7139         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
7140         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
7142 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7144         time: port to MinGW32 3.21
7145         Problem reported by Eli Zaretskii in:
7146         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00042.html
7147         * lib/time.in.h:
7148         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
7149         * modules/time (Depends-on):
7150         Fall back on unistd.h if the other include files don't define
7151         struct timespec.
7153         update-copyright: apply to self
7154         * build-aux/update-copyright: Fix copyright date.  How ironic!
7156 2015-01-15  Daiki Ueno  <ueno@gnu.org>
7158         libunistring: update to Unicode 7.0.0
7159         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
7160         Manichaean names.
7161         * lib/unictype/joininggroup_name.h: Likewise.
7162         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
7163         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
7164         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
7165         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
7166         (fill_arabicshaping, joining_group_as_c_identifier): Support those
7167         enum values.
7168         (is_property_alphabetic): Accept newly added characters to
7169         cuneiform numeric signs.
7170         (is_property_default_ignorable_code_point): Reject U+0605.
7171         (FIELDLEN): Increase from 120 to 160.
7172         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
7173         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
7174         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
7175         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
7176         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
7177         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
7178         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
7179         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
7180         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
7181         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
7182         U+1E8D0..U+1E8D6.
7183         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
7184         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7185         lib/uniwidth/width.c.
7186         * all generated files under lib/uni* and tests/uni*: Regenerate.
7188 2015-01-14  Daiki Ueno  <ueno@gnu.org>
7190         libunistring: update to Unicode 6.3.0
7191         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
7192         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
7193         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
7194         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
7195         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
7196         Update WB5, WB9, WB10, WB13a, and WB13b.
7197         * tests/uniwbrk/test-uc-wordbreaks.c
7198         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
7199         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
7200         (UC_BIDI_PDI): New enumeration values.
7201         (bidi_category_byname): Support those enum values.
7202         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
7203         dedicated property assigned.
7204         (is_property_case_ignorable): Check 0x0027.
7205         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
7206         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
7207         (output_wbp): Support those enum values.
7208         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
7209         (UC_BIDI_PDI): New enumeration values.
7210         * lib/unictype/bidi_byname.gperf: Add those property names.
7211         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
7212         U+180E, U+1A1B, and U+2066..U+2069.
7213         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7214         lib/uniwidth/width.c.
7215         * all generated files under lib/uni* and tests/uni*: Regenerate.
7217 2015-01-14  Daiki Ueno  <ueno@gnu.org>
7219         libunistring: update to Unicode 6.2.0
7220         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
7221         (unilbrk_table): Adjust table size.
7222         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
7223         for LBP_RI.
7224         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
7225         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
7226         Normalize table index skipping ignored properties.
7227         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
7228         WBP_EXTEND and WBP_FORMAT, which are now computed without using
7229         the table.
7230         * lib/uniwbrk/wbrktable.h: Adjust table size.
7231         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
7232         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
7233         Support rule GB8a.
7234         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
7235         * tests/unigbrk/test-uc-is-grapheme-break.c
7236         (graphemebreakproperty_to_string): Support GBP_RI.
7237         * tests/uniwbrk/test-uc-wordbreaks.c
7238         (wordbreakproperty_to_string): Support WBP_RI.
7239         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
7240         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
7241         (output_lbp): Support LBP_RI.  Adjust some characters changed from
7242         LBP_AL to LBP_ID.
7243         (output_lbp): Support LBP_RI.
7244         (WBP_RI): New enumeration value.
7245         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
7246         (output_wbp): Support WBP_RI.
7247         (GBP_RI): New enumeration value.
7248         (output_gbp_test, fill_org_gbp): Support GBP_RI.
7249         * all generated files under lib/uni* and tests/uni*: Regenerate.
7251 2015-01-14  Daiki Ueno  <ueno@gnu.org>
7253         libunistring: update to Unicode 6.1.0
7254         * lib/gen-uni-tables.c (output_joining_group): Switch to
7255         3-level table to accommodate joining groups defined with higher
7256         codepoint value.  Since there are only 88 groups defined in
7257         Unicode 7.0.0, use 7-bit packed format for level3 entries.
7258         (get_lbp): Update for Unicode 6.1.0.
7259         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
7260         3-level table.
7261         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
7262         joining group name.
7263         * lib/unictype/joininggroup_name.h: Likewise.
7264         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
7265         (unilbrk_table): Adjust table size.
7266         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
7267         for LBP_HL.
7268         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
7269         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
7270         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
7271         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
7272         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
7273         U+302E..U+302F.
7274         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7275         lib/uniwidth/width.c.
7276         * all generated files under lib/uni* and tests/uni*: Regenerate.
7277         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
7279 2015-01-15  Daiki Ueno  <ueno@gnu.org>
7281         uniwbrk/u32-wordbreaks-tests: add conformance test
7282         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
7283         tests/uniwbrk/test-uc-wordbreaks.c,
7284         tests/uniwbrk/test-uc-wordbreaks.sh, and
7285         tests/uniwbrk/WordBreakTest.txt.
7286         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
7287         test-uc-wordbreaks to $(check_PROGRAMS), and define
7288         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
7289         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
7290         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
7292 2015-01-15  Daiki Ueno  <ueno@gnu.org>
7294         uniwbrk: ignore Extended/Format characters at BOL not BOS
7295         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
7296         characters if the previous character property is one of
7297         WBP_NEWLINE, WBP_CR, and WBP_LF.
7299 2015-01-11  Jim Meyering  <meyering@fb.com>
7301         test-strstr.c: avoid a trivial leak
7302         * tests/test-strstr.c (main): Free haystack.
7304         update-copyright: recognize groff's \(co marker
7305         * build-aux/update-copyright (circle_c_re): Also accept
7306         uses of \(co, as found in gzip.1.
7308 2015-01-08  Pádraig Brady  <P@draigBrady.com>
7310         maint.mk: fix compatibility with OS X nm
7311         * top/maint.mk (_gl_tight_scope): Use the -g option to
7312         show exported items rather than the -e option which is
7313         ignored on all platforms except OS X where it gives an error.
7314         Reported by Assaf Gordon.
7316 2015-01-07  KO Myung-Hun  <komh@chollian.net>
7318         localcharset: improve charset detection on OS/2
7319         Use system codepage when appropriate.  Map OS/2 codepages to
7320         GNU canonical charset names if possible.
7321         * lib/config.charset: Don't output aliases if "$os" is os2*.
7322         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
7323         result for OS/2.
7324         (locale_charset) [OS2]: Use system codepage if codeset is omitted
7325         from the locale name which is neither "C" nor "POSIX".
7327 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7329         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
7330         This reverts the last patch but one, as it shouldn't be needed now
7331         that the typo is fixed.
7332         * lib/count-leading-zeros.h (count_leading_zeros_ll):
7333         * lib/count-trailing-zeros.h:
7334         * lib/count-one-bits.h:
7335         Go back to using 64-bit intrinsics.
7337         count-leading-zeros: fix pragma typos
7338         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
7339         Fix typos in declaration of intrinsics when _MSC_VER.
7341 2015-01-06  Pádraig Brady  <P@draigBrady.com>
7343         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
7344         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
7345         intrinsics in this case.
7346         * lib/count-trailing-zeros.h: Likewise.
7347         * lib/count-one-bits.h: Likewise.
7349 2015-01-06  Daiki Ueno  <ueno@gnu.org>
7351         uniname/uniname: update to Unicode 7.0.0
7352         To accommodate new characters added since Unicode 5.1.0, this
7353         changes the internal representation of codepoint ranges.
7354         Previously, we grouped codepoint ranges by manually assigned 4-bit
7355         tag, which only allowed 16 groups.  This removes the limitation by
7356         switching to binary search on a table.  For the detail rationale
7357         and the benchmark results, see:
7358         https://lists.gnu.org/archive/html/bug-libunistring/2014-06/msg00001.html
7359         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
7360         to INDEX, as it no longer represents a codepoint.
7361         (range): New struct.
7362         (main): Switch to intervals list from a bit-pattern based
7363         classification.
7364         * lib/uniname/uninames.h: Regenerate.
7365         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
7366         * modules/uniname/base (configure.ac): Bump minimum version to
7367         0.9.5.
7368         * modules/uniname/uniname (configure.ac): Bump minimum version to
7369         0.9.5.
7371 2015-01-05  Eric Blake  <eblake@redhat.com>
7373         doc: update INSTALL from autoconf
7374         * doc/install.texi: Resync from autoconf.
7375         * doc/INSTALL: Reflect recent autoconf update.
7376         * doc/INSTALL.ISO: Likewise.
7377         * doc/INSTALL.UTF-8: Likewise.
7379         stdio: fix use of PRIdMAX on modern mingw
7380         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
7381         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
7382         to work with modern mingw.
7384 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
7386         pthread: detect git mingw builds with only partial pollution
7387         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
7388         pollution, as seen temporarily in Fedora 21.
7390 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7392         lib-symbol-versions: cache script check
7393         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
7394         Cache the check for linker version scripts.
7395         From a suggestion by Christophe Curis in:
7396         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00011.html
7398 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
7400         maint: fix grammar nits in propername (trivial change)
7401         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
7402         and use an adequate verb and tense.
7404 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
7406         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
7407         * module/gendocs: Add 'doc/gendocs_template_min'.
7409         * build-aux/gendocs.sh: Change email addresses and upstream URLs
7410         from to Gnulib's.
7411         (scripturl, templateurl): Adjust accordingly.
7413 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7415         gendocs: copyright date and version fix
7416         Reported by Karl Berry in:
7417         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00002.html
7418         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
7419         Fix copyright date.
7420         * build-aux/gendocs.sh (scriptversion): Update.
7422 2015-01-01  Karl Berry  <karl@gnu.org>
7424         * doc/install.texi,
7425         * build-aux/mdate-sh,
7426         * build-aux/depcomp,
7427         * build-aux/config.guess,
7428         * build-aux/config.sub,
7429         * build-aux/ar-lib,
7430         * build-aux/compile: revert copyright updates (some from last
7431         year) in slaved files.
7433 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7435         version-etc: new year
7436         * doc/gnulib.texi:
7437         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
7438         * all files: Run 'make update-copyright'.
7440 2014-12-30  Pádraig Brady  <P@draigBrady.com>
7442         xstrtol: ensure errno is reset
7443         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
7444         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
7446         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
7448 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7450         utimens: fix dependency typo
7451         * modules/utimens (Depends-on): Remove 'assure'.
7452         This bug was introduced in the recent 'assure' patch.
7454 2014-12-22  Eric Blake  <eblake@redhat.com>
7456         docs: mention why libgen.h is bad
7457         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
7459 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
7461         assure: new module
7462         This works better than 'assert' when compiling with -DNDEBUG,
7463         as it avoids some compiler diagnostics in that case.
7464         Reported by Norihiro Tanaka in:
7465         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00215.html
7466         * MODULES.html.sh (func_all_modules): Add 'assure'.
7467         * lib/assure.h, modules/assure: New files.
7468         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
7469         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
7470         Prefer 'assure' to 'assert'.
7471         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
7472         * modules/chdir-long, modules/cycle-check, modules/fchdir:
7473         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
7474         Depend on 'assure'.
7476 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7478         stdalign: port better to HP compilers
7479         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
7480         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
7482         stdalign: work around Apple GCC 4.0 bug
7483         Reported by David Fang in:
7484         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00194.html
7485         * lib/stdalign.in.h (_Alignas):
7486         * m4/stdalign.m4 (gl_STDALIGN_H):
7487         Do not use aligned attribute with GCC 4.0 on Apple.
7489 2014-12-16  Pádraig Brady  <P@draigBrady.com>
7491         getcwd: fix test failure on OS X 10.9
7492         * m4/getcwd-path-max.m4: Avoid the replacement if it
7493         won't be effective due to the PATH_MAX limitation of lstat().
7494         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
7495         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
7496         for this case for use in tests, and also exclude this
7497         case when setting REPLACE_GETCWD.
7498         * tests/test-getcwd.c (test_long_name): Restrict the
7499         tested path length so that lstat() will not be passed
7500         a path greater than PATH_MAX.
7501         Also key a test condition on HAVE_OPENAT_SUPPORT rather
7502         than AT_FDCWD, since the latter is set unconditionally
7503         since Sep 2009 in commit 52c658e9.
7505 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
7507         parse-datetime: avoid a compiler warning with byacc (trivial)
7508         * lib/parse-datetime.y (yylex): Use the same prototype in the
7509         function definition as the declaration, to avoid a -Wstrict-prototypes
7510         warning seen when using byacc.
7512 2014-12-12  Daiki Ueno  <ueno@gnu.org>
7514         unicase/locale-language-tests: fix LOCALE_FR test
7515         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
7516         a French locale with traditional encoding.
7517         Reported by umerqayam in:
7518         http://lists.gnu.org/archive/html/bug-libunistring/2014-12/msg00000.html
7520 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7522         stddef: support C11's max_align_t
7523         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
7524         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
7525         Do not undef, as that might cause max_align_t to be defined twice.
7526         Instead, change use to check for _GL_STDDEF_WINT_T too.
7527         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
7528         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
7529         Check for max_align_t.
7530         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
7531         * modules/stddef-tests (Depends-on): Add stdalign.
7532         * tests/test-stddef.c: Test max_align_t.
7534 2014-12-11  Daiki Ueno  <ueno@gnu.org>
7536         unistd: fix iOS check conditional
7537         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
7538         as 0 or 1 in <TargetConditionals.h>, and the previous check always
7539         yielded true on non-iOS environment.
7540         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
7541         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
7542         they are defined.
7544 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
7546         posixtm: avoid compiler warning in a better way
7547         * lib/posixtm.c (IF_LINT): Remove.
7548         (year, posix_time_parse):
7549         Return true (not 0) if successful.  All callers changed.
7550         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
7552 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
7554         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
7555         started with '/' on EMX.
7557 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
7559         freopen: workaround freopen() on OS/2 kLIBC
7560         * lib/freopen.c (rpl_freopen): Workaround.
7561         * m4/freopen.m4: Add os2* case.
7563         get_shared_library_fullname: port to EMX
7564         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
7565         on EMX, respectively.
7566         (_DLL_InitTerm): New on EMX.
7567         (get_shared_library_fullname): Implement on EMX.
7569         find_executable: port to EMX
7570         * lib/progreloc.c (find_executable): Implement on EMX.
7572         sched: check struct sched_param in spawn.h as well
7573         * lib/sched.in.h: Include spawn.h on kLIBC.
7574         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
7576 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
7578         bootstrap: Allow perl modules in $buildreq
7579         * build-aux/bootstrap: Add case for perl modules.
7581 2014-12-08  Pádraig Brady  <P@draigBrady.com>
7583         apply _GL_ATTRIBUTE_PURE to some inline functions
7584         clang 3.4.2 flagged these inline functions as pure
7585         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
7586         * lib/sig-handler.h (get_handler): Likewise.
7587         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
7588         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
7590 2014-12-06  Pádraig Brady  <P@draigBrady.com>
7592         vasnprintf: fix potential use after free
7593         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
7594         flagged by clang-analyzer 3.4.2.
7596 2014-12-05  Pádraig Brady  <P@draigBrady.com>
7598         filevercmp, posixtm: avoid compiler warnings with -O3
7599         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
7600         * lib/posixtm.c: (IF_LINT): Define.
7601         (posix_time_parse): Use it to void a "may be used uninitialized"
7602         warning, seen only with -O3.
7604 2014-12-05  Bruno Haible  <bruno@clisp.org>
7606         Fix LDBL80_WORDS macro on big endian platforms.
7607         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
7608         LDBL80_WORDS macro.
7609         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
7610         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7611         * tests/test-isfinite.c (test_isfinitel): Likewise.
7612         * tests/test-isinf.c (test_isinfl): Likewise.
7613         * tests/test-isnan.c (test_long_double): Likewise.
7614         * tests/test-isnanl.h (main): Likewise.
7615         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
7616         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
7617         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
7618         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
7619         Reported by Pádraig Brady.
7621 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
7623         git-version-gen: do not print new line characters
7624         * build-aux/git-version-gen: Use printf instead of echo and tr.
7626         gnulib-tool: recognize x:* as an absolute path
7627         * gnulib-tool (func_gnulib_dir): Add ?:* case.
7628         (func_relconcat): Likewise.
7630 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
7632         argp: avoid extraneous translation and mem leak with empty pre doc
7633         * lib/argp-help.c (argp_doc): Never translate the empty string,
7634         when "\v" is the first or last character of the string, as that
7635         has a reserved meaning to return the header info from a po file.
7636         This also fixes a small memory leak in the !post case.
7637         The issue can be seen with this command for example:
7638         LC_MESSAGES=en_US grub2-mknetdir --help
7640 2014-11-27  Daiki Ueno  <ueno@gnu.org>
7642         uniname/uniname-tests: skip if system's libunistring is used
7643         * modules/uniname/uniname-tests (Makefile.am): Skip test if
7644         uniname/uniname module is not compiled.
7646 2014-11-27  Pádraig Brady  <P@draigBrady.com>
7648         printf: fix configure check on big endian systems
7649         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
7651 2014-11-22  Daiki Ueno  <ueno@gnu.org>
7653         pipe-filter-gi, pipe-filter-ii: port to AIX
7654         On AIX 7.1, 'select' is defined as static and cannot be referred
7655         to from inline function.
7656         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
7657         the definition...
7658         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
7659         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
7661 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
7663         gitlog-to-changelog: add --until
7664         * build-aux/gitlog-to-changelog: Support new --until option.
7665         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
7667 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
7669         extern-inline: update commentary about GCC bugs
7670         * m4/extern-inline.m4: Add another GCC bug number to comments.
7672 2014-11-13  Daiki Ueno  <ueno@gnu.org>
7674         gen-uni-tables: untabify
7675         * lib/gen-uni-tables.c: Untabify.
7677 2014-11-13  Daiki Ueno  <ueno@gnu.org>
7679         gen-uni-tables: check out-of-range values added to 3-level tables
7680         * lib/gen-uni-tables.c (output_category, output_bidi_category)
7681         (output_joining_type, output_ident_category): Check out-of-range
7682         values added to 3-level tables.
7684 2014-11-13  Daiki Ueno  <ueno@gnu.org>
7686         gen-uni-tables: utilize 'assert'
7687         * lib/gen-uni-tables.c: Include <assert.h>.
7688         (output_category, output_combclass, output_decimal_digit_test)
7689         (output_decimal_digit, output_digit_test, output_digit)
7690         (output_numeric, get_mirror_value, fill_properties)
7691         (fill_property30, is_property_alphabetic)
7692         (is_property_default_ignorable_code_point)
7693         (is_property_uppercase, is_property_lowercase)
7694         (is_property_cased, is_property_case_ignorable)
7695         (is_property_changes_when_lowercased, is_property_iso_control)
7696         (is_property_math, fill_arabicshaping, output_joining_group)
7697         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
7698         (output_wbp, fill_org_gbp, get_decomposition)
7699         (output_decomposition, fill_composition_exclusions)
7700         (debug_output_composition_tables, output_composition_tables)
7701         (redistribute_casefolding_rules, output_casing_rules): Use
7702         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
7703         reporting.
7705 2014-11-13  Daiki Ueno  <ueno@gnu.org>
7707         gen-uni-tables: cosmetic improvements
7708         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
7709         variables specification.
7710         (is_outdigit): Remove unused function.
7712 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
7714         fcntl-h-tests: port to PA-RISC GNU/Linux
7715         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
7717 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
7719         fts: port to C89
7720         Problem reported for MSVC 16 by Gisle Vanem in:
7721         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00027.html
7722         * lib/fts.c (fts_build): Avoid declaration before statement.
7724 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7726         unistd: port to iOS
7727         Problem reported by André Klitzing in:
7728         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00013.html
7729         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
7731 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
7733         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
7734         Problem reported by Alan Modra in:
7735         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00007.html
7736         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
7737         Always cast the function arg, reverting this part of the previous
7738         change.
7740 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7742         obstack: avoid potentially-nonportable function casts
7743         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
7744         Remove, replacing with ...
7745         (call_chunkfun, call_freefun): New static functions.
7746         All uses changed.  Avoid potentially-nonportable casts.
7747         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
7748         (_obstack_begin_worker): Omit last two args, since they
7749         rely on potentially-nonportable casts.  All callers changed.
7750         * lib/obstack.h (_OBSTACK_CAST): New macro.
7751         Use it everywhere the old API used a potentially-nonportable cast.
7752         The new API doesn't cast.
7753         (struct obstack): Use unions rather than requiring
7754         potentially-nonportable casts.
7755         (obstack_chunkfun, obstack_freefun): Return void.
7757 2014-11-03  Alan Modra  <amodra@gmail.com>
7759         obstack: fix macro return values
7760         * lib/obstack.h (obstack_next_free): Return void *.
7761         (obstack_1grow_fast, obstack_blank_fast): Return void.
7762         For __GNUC__ macros:
7763         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
7764         For !__GNUC__ macros:
7765         (obstack_make_room, obstack_grow, obstack_grow0)
7766         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
7768 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
7770         obstack: do not assume system-supplied obstack is size_t safe
7771         * m4/obstack.m4: New file.
7772         * modules/obstack (Files): Add it.
7774         obstack: port to platforms that #define __alignof__
7775         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
7776         not if !_LIBC.  We don't know of any platforms that #define
7777         __alignof__, but it might be useful in tests.  Conversely,
7778         glibc assumes GCC.
7780 2014-11-03  Pádraig Brady  <P@draigBrady.com>
7782         linkat: don't unconditionally replace on GNU/Linux
7783         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
7784         was redundant for a few reasons.  It was present to support compiling
7785         on new systems but running on the old narrow window of Linux 2.6.1[67].
7786         It setup and cleaned up test files which weren't actually used.
7787         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
7788         implicit in the following check.
7790 2014-11-03  Pádraig Brady  <P@draigBrady.com>
7792         linkat: wrap to handle symlinks on OS X 10.10
7793         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
7794         but not usable because it doesn't support creating hardlinks
7795         to symlinks.  Therefore add a generic test for this capability
7796         and fallback to our emulation if linkat() fails with ENOTSUP.
7798 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
7800         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
7801         * doc/posix-functions/open.texi (open):
7802         * doc/posix-functions/openat.texi (openat):
7803         Document that these functions do not set errno to ELOOP when
7804         a symlink is opened with O_NOFOLLOW.
7806 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7808         obstack: add NEWS entry for recent incompatible changes
7809         * NEWS: Describe recent changes.
7811 2014-10-30  Pádraig Brady  <P@draigBrady.com>
7813         mountlist: don't use libmount to decide on dummy/remote
7814         * lib/mountlist.c (read_file_system_list): Don't use the libmount
7815         routines to determine whether a file system is dummy or remote,
7816         as they're not currently compatible.  For example the remoteness
7817         is determined on file system type (for which the list seems incomplete),
7818         rather than simply checking for a ':' in the device name.
7819         Also libmount currently determines that 'tmpfs' is a dummy file system
7820         even though it has associated storage.
7822 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
7824         obstack: prefer __alignof__ to alignof
7825         This is for portability to pre-4.7 GCC when compiling glibc.
7826         See Joseph S. Myers in:
7827         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
7828         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
7829         New macro, defined by including and using <alignof.h>.
7830         (MAX): New macro.
7831         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
7832         Do not use enums as they are not portable to some broken compilers.
7833         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
7835         obstack: prefer alignof to calculating alignments by hand
7836         * lib/obstack.c: Include <stdalign.h>.
7837         (struct fooalign): Remove.
7838         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
7839         * modules/obstack (Depends-on): Add stdalign.
7841 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
7843         obstack: use size_t alignments and check for overflow
7844         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
7845         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
7846         * lib/obstack.h (struct obstack.alignment_mask):
7847         Use _OBSTACK_SIZE_T, not int, for alignments.
7848         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
7849         overflows, e.g., when adding the alignment.
7851 2014-10-29  Alan Modra  <amodra@gmail.com>
7853         obstack: 64-bit obstack support, part 3
7854         This finally enables full 64-bit obstack support.  The glibc
7855         shared library specific code is removed from obstack.c too, and
7856         the error handling code conditionally compiled under control of
7857         another macro, _OBSTACK_NO_ERROR_HANDLER.
7858         * lib/obstack.h: Include string.h earlier.
7859         (_OBSTACK_INTERFACE_VERSION): Define.
7860         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
7861         * lib/obstack.c: Don't include shlib-compat.h.
7862         (OBSTACK_INTERFACE_VERSION): Delete.
7863         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
7864         glibc code is compatible with version 2.  Don't include stdio.h for
7865         __GNU_LIBRARY.
7866         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
7867         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
7868         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
7869         glibc shared library specific source.
7871         obstack: 64-bit obstack support, part 2
7872         This gets us 4G obstack support, without changing ABI
7873         compatibility, apart from possibly introducing some
7874         signed/unsigned comparison warnings in code that uses obstack.h.
7875         a) Replace "int" size parameters, return values, and macro local vars
7876            with _OBSTACK_SIZE_T, an "unsigned int" for now.
7877         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
7878         c) Make all obstack macros checking available room use obstack_room.
7879            "next_free + desired > chunk_limit" may wrap the lhs for chunks
7880            allocated near the top of memory.
7881         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
7882         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
7883         in place of "int" size parameters, return values and local vars.
7884         (_CHUNK_SIZE_T): Define.
7885         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
7886         union use an _OBSTACK_SIZE_T integer type.
7887         For __GNUC__ versions of the following macros...
7888         (obstack_room): Rename local var.
7889         (obstack_make_room): Use obstack_room.
7890         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
7891         obstack_int_grow, obstack_blank): Likewise.
7892         (obstack_finish): Use unsigned comparison when comparing aligned
7893         next_free against chunk_limit.
7894         (obstack_free): Cast OBJ to remove possible const qualifier.
7895         For !__GNUC__ versions of the following macros...
7896         (obstack_make_room): Use obstack_room.
7897         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
7898         obstack_int_grow, obstack_blank): Likewise.
7899         (obstack_finish): Use unsigned comparision when comparing aligned
7900         next_free against chunk_limit.
7901         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
7902         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
7903         _OBSTACK_SIZE_T.
7904         (_obstack_begin, _obstack_begin_1): Likewise.
7905         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
7906         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
7908         obstack: 64-bit obstack support, part 1
7909         a) Correct calls to alloc function, to use a size_t arg.  "long" is
7910            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
7911            and "size_t" 64 bits.
7912         b) Consolidate _obstack_begin and _obstack_begin1 code.
7913         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
7914         use "size_t" rather than "long".
7915         (_obstack_begin, _obstack_begin1): Likewise.
7916         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
7917         obstack_chunkfun): Update alloc function casts.
7918         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
7919         (chunkfun_type, freefun_type): New typdefs.
7920         (_obstack_begin_worker): Split out from ..
7921         (_obstack_begin, _obstack_begin_1): ..here.
7923         obstack: tidy part 2
7924         a) Don't be concerned about "not polluting the namespace with stddef.h
7925            symbols" in obstack.h, since gnulib string.h includes stddef.h
7926            anyway, and it seems unlikely that anyone would care.
7927         b) Don't roll our own slow memcpy in _obstack_newchunk.
7928         c) Rename obstack_free to _obstack_free.  This makes the naming
7929            consistent with other obstack functions and obviates the need for
7930            __obstack_free.  Ancient obstack.c defined both obstack_free and
7931            _obstack_free.  We continue to do that for _LIBC via an alias.
7932         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
7933            is clever, but nowadays gcc warns on undefined macros.  You'll get
7934            an undefined macro warning if simulating an old gcc with -U__GNUC__
7935            -U__GNUC_MINOR__ -D__GNUC__=1.
7936         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
7937         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
7938         (__obstack_free): Delete, update refs.
7939         (_obstack_free): Rename from obstack_free.
7940         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
7941         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
7942         * lib/obstack.c: Don't include stddef.h.
7943         (COPYING_UNIT): Delete.
7944         (_obstack_begin): Formatting fix.
7945         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
7946         (_obstack_free): Rename from __obstack_free, update alias.  Move
7947         undef of obstack_free to where it is needed.
7949         obstack: tidy part 1
7950         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
7951            to me, and result in overlong lines after later patches.
7952         b) Move error handling code, to avoid a forward declaration and to
7953            simplify later patches in this series.
7954         * lib/obstack.h (struct obstack <temp>): Rename fields of union
7955         and update all uses.
7956         * lib/obstack.c: Include stdlib.h earlier.
7957         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
7958         in file.
7959         (print_and_abort): Remove now redundant forward declaration.
7961 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
7963         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
7964         Without this change, in bleeding-edge fileutils Autoconf complains
7965         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
7966         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
7967         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
7968         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
7970 2014-10-24  Daiki Ueno  <ueno@gnu.org>
7972         iconv: avoid false detection of non-working iconv
7973         The INBUF arguments of iconv can be either 'const char **'
7974         or 'char **'.  If CC is g++, the difference causes a compile error
7975         and thus leads to a false detection of non-working iconv.
7976         Reported by Eli Zaretskii and Werner LEMBERG in:
7977         <https://lists.gnu.org/archive/html/bug-gnulib/2014-10/msg00023.html>.
7978         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
7979         iconv.  Bump serial number.
7981 2014-10-23  Pádraig Brady  <P@draigBrady.com>
7983         bootstrap: print more diagnostics for missing programs
7984         * build-aux/bootstrap: only suppress stderr when checking for
7985         alternative program names.  This supports programs issuing non
7986         standard error messages.
7988 2014-10-23  Pádraig Brady  <P@draigBrady.com>
7990         bootstrap: only update the gnulib submodule
7991         * build-aux/bootstrap: Restrict the "submodule update" command
7992         to the gnulib path.
7994 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
7996         symlinkat: port to AIX 7.1
7997         * doc/posix-functions/symlinkat.texi (symlinkat):
7998         Mention AIX porting problem.
7999         * lib/symlinkat.c: Always include errno.h.
8000         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
8001         * lib/unistd.in.h (symlinkat): Add replacement machinery.
8002         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
8003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
8004         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
8005         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
8006         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
8008         readlinkat: port to AIX 7.1
8009         * doc/posix-functions/readlink.texi (readlink):
8010         * doc/posix-functions/readlinkat.texi (readlinkat):
8011         Mention AIX porting problem.
8012         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
8013         New function.
8014         * lib/unistd.in.h (readlinkat): Add replacement machinery.
8015         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
8016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
8017         * modules/readlinkat (configure.ac): Also compile replacement
8018         if REPLACE_READLINKAT.
8019         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
8021 2014-10-12  Karl Berry  <karl@gnu.org>
8023         * doc/posix-functions/dirname.texi: remove spurious {.
8025 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
8027         basename, dirname: Improve documentation.
8028         * doc/posix-functions/basename.texi: Mention dirname module and
8029         base_name() function.
8030         * doc/posix-functions/dirname.texi: Mention dir_name() and
8031         mdir_name() functions.
8032         Suggested by Werner LEMBERG <wl@gnu.org>.
8034 2014-09-24  Jim Meyering  <meyering@fb.com>
8036         exclude: declare exclude_patopts static
8037         * lib/exclude.c (exclude_patopts): Declare static,
8038         to avoid triggering a -Wmissing-prototypes warning.
8039         The alternative (declaring it in the .h file) would
8040         require publicizing the private "struct patopts".
8042 2014-09-21  Werner Lemberg  <wl@gnu.org>
8044         dirname: support compilation with C++
8045         * lib/dirname.h: Add necessary C linkage declarations.
8047 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
8049         qsort_r: include <config.h>
8050         Problem reported by Tom G. Christensen in:
8051         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00071.html
8052         * lib/qsort.c [!_LIBC]: Include <config.h> first.
8054 2014-09-16  Dylan Cali  <calid1984@gmail.com>
8056         avltree-list: avoid compiler warnings (trivial)
8057         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
8058         -Werror=suggest-attribute=pure.
8059         * lib/gl_array_list.c: Likewise.
8060         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
8061         declaration to avoid -Werror=missing-prototypes.  This is not added
8062         to a header as only exported for tests.  Add (void) to the
8063         check_invariants() call to indicate we're discarding the result
8064         in this context which avoids -Werror=unused-value.  Note we don't
8065         use ignore_value here to avoid a dependency as we know we'll not
8066         be adding __attribute__((warn_unused_result)) to check_invariants().
8067         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
8069 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
8071         qsort_r: new module, for GNU-style qsort_r
8072         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
8074 2014-09-15  Werner LEMBERG  <wl@gnu.org>
8076         strerror_r-posix: support compilation with C++
8077         * lib/strerror_r.c: Add necessary C linkage declarations.
8079 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
8081         fcntl-h: fix compilation with Intel C++ compiler (trivial)
8082         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
8084 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
8086         mountlist: use /proc/self/mountinfo when available
8087         Use libmount to propagate device IDs provided by Linux in
8088         /proc/self/mountinfo.  This will give more accurate output when
8089         using df in chroot'ed environments as the device IDs are not
8090         determined by stat() which may be inaccurate within the chroot.
8091         * lib/mountlist.c (read_file_system_list): Use the libmount routines
8092         from util-linux to parse "/proc/self/mountinfo" or fall back to
8093         standard getmntent() processing.
8094         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
8095         getmntent() is used, as is the case on GNU/Linux.
8097 2014-09-07  Eric Wong  <normalperson@yhbt.net>
8099         users.txt: add cmogstored
8100         cmogstored has used gnulib since the beginning in 2012 to support
8101         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
8103 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
8105         Trivial change.
8106         * gnulib-tool: Use same options as build-aux/bootstrap to download
8107         PO files.
8109 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
8111         Trivial change.
8112         * gnulib-tool: Fallback to wget when rsync of PO files fails.
8114 2014-09-04  Eric Blake  <eblake@redhat.com>
8116         maintainer-makefile: add syntax check for useless ';;'
8117         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
8119 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
8121         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
8122         Problem reported by Assaf Gordon in:
8123         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
8124         Apparently Ubuntu is doing some fancy link-time optimization
8125         that doesn't work with -lpthread but does work with -pthread.
8126         Work around the bug by preferring -pthread to -lpthread.
8127         * m4/pthread.m4 (gl_PTHREAD_CHECK):
8128         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
8129         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8130         Treat -pthread like -lpthread.
8132 2014-09-04  Eric Blake  <eblake@redhat.com>
8134         error: drop spurious semicolon
8135         * lib/error.c (__error_at_line): Fix ';;'.
8137 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8139         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
8140         * m4/gnulib-common.m4 (AC_C_RESTRICT):
8141         Override AC_C_RESTRICT unconditionally.
8142         Update from autoconf, incorporating:
8143         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
8144         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
8146 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8148         manywarnings: add GCC 4.9 warnings
8149         Also, make it easier to maintain this in the future.
8150         * build-aux/gcc-warning.spec: Add -Wabi-tag,
8151         -Wconditionally-supported, -Wdelete-incomplete,
8152         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
8153         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
8154         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
8155         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
8156         only for older GCC versions that need them.  Handle
8157         -Wnormalized=nfc specially, so that the 'comm' command used
8158         for maintenance doesn't get confused.
8160 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
8162         vasnprintf: fix bugs in width computation
8163         * lib/vasnprintf.c (VASNPRINTF):
8164         Rework previous change, which introduced a bug,
8165         to avoid the warning in a different way.
8166         Avoid undefined behavior if the width arg is less than -INT_MAX.
8167         Avoid unnecessary use of HAS_WIDTH local.
8169 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
8171         vasnprintf: Avoid signed/unsigned comparison warning.
8172         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
8173         compare end addr of generated string w/ maximum end addr.
8175 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
8177         parse-datetime: Avoid pointer difference.
8178         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
8179         instead of calculating difference of pointers.  This removes an
8180         annoying warning, devoid of any use.
8182 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
8184         qsort_r: new module, for GNU-style qsort_r
8185         This works even on FreeBSD, which has an incompatible qsort_r API.
8186         * MODULES.html.sh: Add it.
8187         * doc/glibc-functions/qsort_r.texi: It's now supported.
8188         * lib/qsort.c: New file, taken from glibc with minor changes
8189         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
8190         removed.
8191         * lib/qsort_r.c: New file, compiled only on FreeBSD.
8192         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
8193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
8194         * modules/qsort_r, modules/qsort_r-tests: New files.
8195         * modules/stdlib (Makefile): Set up its defaults.
8196         * tests/test-qsort_r.c: New file.
8198 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
8200         vla: new module
8201         GNU RCS can use this, mostly for documentation I expect.  See:
8202         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00025.html
8203         * MODULES.html.sh: Add vla.
8204         * lib/vla.h, modules/vla: New files.
8206 2014-08-07  Daiki Ueno  <ueno@gnu.org>
8208         localename: make gl_locale_name_thread really thread-safe on Windows
8209         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
8210         "glthread/lock.h".
8211         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
8212         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
8214 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
8216         getpass: don't assume struct termios
8217         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
8218         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00015.html
8219         * lib/getpass.c (getpass): Port to systems lacking struct termios.
8221         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
8222         Problem reported by Jonas 'Sortie' Termansen in:
8223         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00023.html
8224         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
8225         Implement via sysconf for platforms that lack getdtablesize.
8227         vararrays: modernize AC_C_VARARRAYS for C11
8228         This backports a change I recently made to Autoconf.
8229         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
8230         VLAs are not supported, as this is what C11 does.  The old macro
8231         HAVE_C_VARARRAYS is still defined if they are supported, but is
8232         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
8234 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
8236         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
8237         * build-aux/install-reloc (func_create_wrapper): Also wrap
8238         strerror-override, stat, stat.
8240 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
8242         sys_select: fix FD_ZERO problem on Solaris 10
8243         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
8244         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
8245         to expand to an expression that invoked memset without necessarily
8246         including <string.h>.  The problem was that the first include
8247         defined _SYS_TIME_H, causing the second include to short-circuit.
8248         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
8249         Also, fix what appears to be a cut-and-paste typo, by replacing
8250         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
8251         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
8253         accept: document Solaris 10 type glitch
8254         * doc/posix-functions/accept.texi (accept): Mention that
8255         Solaris 10 'accept' takes void * last arg, not socklen_t *.
8257 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
8259         extern-inline: port to FreeBSD, DragonFly
8260         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
8261         is present if either __DragonFly__ or __FreeBSD__ is defined.
8262         FreeBSD problem reported by Andrey Borzenkov in:
8263         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00104.html
8264         Also, worry about __APPLE__ only if __MACH__ is also defined,
8265         as this is more consistent with the rest of gnulib.
8266         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
8267         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
8269 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
8271         regex: Make #if/#ifdef usage consistent for DEBUG
8272         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
8273         of the inconsistent usage of #if and #ifdef as that works with
8274         both Glibc and Gnulib's style.
8276 2014-07-31  Eric Blake  <eblake@redhat.com>
8278         openat-die: use _Noreturn markup
8279         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
8280         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
8281         _Noreturn.
8283 2014-07-30  Eric Blake  <eblake@redhat.com>
8285         test-open: port to cygwin, which lacks Fortify
8286         * tests/test-open.h (ALWAYS_INLINE): New macro.
8287         (__always_inline): Don't abuse internal symbol on non-glibc.
8289 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
8291         localename: Enforce declarations before statements.
8292         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
8293         first statement.
8295 2014-07-18  Jim Meyering  <meyering@fb.com>
8297         test-userspec: don't look up numeric user names
8298         * tests/test-userspec.c: I found a system for which getpwnam("0")
8299         returned a pointer to a non-root user's entry, and that made the
8300         test fail.
8301         (T): Prefix each numeric input with "+", to inhibit lookup.
8303 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
8305         localcharset, localename: MS-Windows support for non-default locales
8306         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
8307         falling back on the default system codepage, try extracting
8308         the codepage from what 'setlocale' returns.  This allows to
8309         take into account changes of the codeset due to non-default
8310         locale set by a previous call to 'setlocale'.
8311         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
8312         Define if not already defined.
8313         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
8314         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
8315         current locale by calling 'setlocale', then converting the
8316         locale name into LCID by calling 'get_lcid'.  This allows to
8317         take into account changes in the current locale from the
8318         default one, in contrast to GetThreadLocale.
8320 2014-07-14  Daiki Ueno  <ueno@gnu.org>
8322         announce-gen: avoid failure when Digest::SHA is installed
8323         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
8324         Digest::SHA1->new in print_checksums fails.
8325         * build-aux/announce-gen (digest_classes): New associative array
8326         for available message digest implementations.
8327         (print_locations): Use it.
8329 2014-07-13  Pádraig Brady  <P@draigBrady.com>
8331         gettext: revert "update macros to version 0.19"
8332         This reverts commit 9b9370ca, as it currently requires that
8333         developers of any project that explicitly uses the gettext module
8334         or implicitly uses it through the utimens-tests or
8335         futimens-tests modules, use gettext >= 0.19.
8336         However there are some stability and availablity issues with
8337         that version at present.  We can reinstate this soon, when stability
8338         is addressed and packages are more readily available.
8340 2014-07-12  Jim Meyering  <meyering@fb.com>
8342         regex: don't deref NULL upon heap allocation failure
8343         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
8344         failure in one more place.
8345         To trigger the segfault, configure grep -with-included-regex,
8346         build it, and run these commands:
8347         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
8348         I discovered this while replying to a private report from
8349         Jens Schleusener about excessive memory consumption by grep
8350         when using a regular expression like the one above.
8352 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
8354         regex: fix memory leak in compiler
8355         Fix by Andreas Schwab in:
8356         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
8357         * lib/regcomp.c (parse_reg_exp): Deallocate partially
8358         constructed tree before returning error.
8360 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
8362         announce-gen: avoid perl warnings
8363         * build-aux/announce-gen: add two minor checks to avoid
8364         "use of uninitialized value" warnings when command-line parameters are
8365         missing.
8367 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
8369         localename: avoid -Wsuggest-attribute={const,pure} warnings
8370         * lib/localename.c (string_has): Tag internal function as pure.
8371         * lib/localename.h (gl_locale_name_default): Tag extern declaration
8372         as const when appropriate.
8374 2014-07-10  Eli Zaretskii <eliz@gnu.org>
8376         nl_langinfo: Fix last change.
8377         * lib/nl_langinfo.c (includes): Drop redundant include.
8379 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8381         error: Fix -Wundef warnings in glibc
8382         * lib/error.c [_LIBC]: Define default macros for
8383         glibc.
8384         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
8385         Check _LIBC before STRERROR_R_CHAR_P.
8387         error: Sync from glibc master
8388         * lib/error.c [_LIBC]: Remove INTUSE usage.
8389         (error_tail): Remove unused macro ALLOCA_LIMIT.
8390         Fix potential buffer overflow.  Fix potential NULL dereference
8391         in strcmp.
8393 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
8395         nl_langinfo: fix build under mingw
8396         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
8398 2014-07-09  Andrew D Warshall  <warshall@99main.com>
8400         mountlist: do not classify a bind-mounted dir entry as "dummy"
8401         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
8402         1-argument getmntent() (instead of assuming absence).
8404 2014-07-08  Eric Blake  <eblake@redhat.com>
8406         maint.mk: less syntax-check noise when SIGPIPE is ignored
8407         * top/maint.mk (_sc_header_without_use)
8408         (sc_require_config_h_first): Parse full list.
8410 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
8411             Paul Eggert  <eggert@cs.ucla.edu>
8413         nl_langinfo: CODESET on MS-Windows and more items from localeconv
8414         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
8415         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
8416         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
8417         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
8418         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
8419         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
8420         Include <stdio.h> if Microsoft Windows.
8421         Include <time.h> if !REPLACE_NL_LANGINFO.
8422         (ctype_codeset): New function, taken from rpl_nl_langinfo,
8423         and with improvements for Microsoft Windows.
8424         (rpl_nl_langinfo): Use it.
8425         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
8426         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
8427         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
8428         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
8429         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
8430         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
8431         corresponding values returned by 'localeconv'.  Compute the values
8432         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
8433         'strftime' with a suitable struct tm value.
8435 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8437         Bruno Haible has stepped down as maintainer.
8438         See Karl Berry in:
8439         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00004.html
8440         Daiki Ueno has volunteered to maintain libunistring; see:
8441         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00005.html
8442         * modules/gen-uni-tables, modules/libunistring:
8443         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
8444         * modules/unicase/base, modules/unicase/cased:
8445         * modules/unicase/empty-prefix-context:
8446         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
8447         * modules/unicase/locale-language, modules/unicase/special-casing:
8448         * modules/unicase/tocasefold, modules/unicase/tolower:
8449         * modules/unicase/totitle, modules/unicase/toupper:
8450         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
8451         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
8452         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
8453         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
8454         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
8455         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
8456         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
8457         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
8458         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
8459         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
8460         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
8461         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
8462         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
8463         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
8464         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
8465         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
8466         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
8467         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
8468         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
8469         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
8470         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
8471         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
8472         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
8473         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
8474         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
8475         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
8476         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
8477         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
8478         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
8479         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
8480         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
8481         * modules/unicase/ulc-casexfrm, modules/unicodeio:
8482         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
8483         * modules/uniconv/u16-conv-to-enc:
8484         * modules/uniconv/u16-strconv-from-enc:
8485         * modules/uniconv/u16-strconv-from-locale:
8486         * modules/uniconv/u16-strconv-to-enc:
8487         * modules/uniconv/u16-strconv-to-locale:
8488         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
8489         * modules/uniconv/u32-strconv-from-enc:
8490         * modules/uniconv/u32-strconv-from-locale:
8491         * modules/uniconv/u32-strconv-to-enc:
8492         * modules/uniconv/u32-strconv-to-locale:
8493         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
8494         * modules/uniconv/u8-strconv-from-enc:
8495         * modules/uniconv/u8-strconv-from-locale:
8496         * modules/uniconv/u8-strconv-to-enc:
8497         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
8498         * modules/unictype/bidicategory-all:
8499         * modules/unictype/bidicategory-byname:
8500         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
8501         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
8502         * modules/unictype/bidiclass-byname:
8503         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
8504         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
8505         * modules/unictype/block-all, modules/unictype/block-list:
8506         * modules/unictype/block-of, modules/unictype/block-test:
8507         * modules/unictype/category-C, modules/unictype/category-Cc:
8508         * modules/unictype/category-Cf, modules/unictype/category-Cn:
8509         * modules/unictype/category-Co, modules/unictype/category-Cs:
8510         * modules/unictype/category-L, modules/unictype/category-LC:
8511         * modules/unictype/category-Ll, modules/unictype/category-Lm:
8512         * modules/unictype/category-Lo, modules/unictype/category-Lt:
8513         * modules/unictype/category-Lu, modules/unictype/category-M:
8514         * modules/unictype/category-Mc, modules/unictype/category-Me:
8515         * modules/unictype/category-Mn, modules/unictype/category-N:
8516         * modules/unictype/category-Nd, modules/unictype/category-Nl:
8517         * modules/unictype/category-No, modules/unictype/category-P:
8518         * modules/unictype/category-Pc, modules/unictype/category-Pd:
8519         * modules/unictype/category-Pe, modules/unictype/category-Pf:
8520         * modules/unictype/category-Pi, modules/unictype/category-Po:
8521         * modules/unictype/category-Ps, modules/unictype/category-S:
8522         * modules/unictype/category-Sc, modules/unictype/category-Sk:
8523         * modules/unictype/category-Sm, modules/unictype/category-So:
8524         * modules/unictype/category-Z, modules/unictype/category-Zl:
8525         * modules/unictype/category-Zp, modules/unictype/category-Zs:
8526         * modules/unictype/category-all, modules/unictype/category-and:
8527         * modules/unictype/category-and-not, modules/unictype/category-byname:
8528         * modules/unictype/category-longname, modules/unictype/category-name:
8529         * modules/unictype/category-none, modules/unictype/category-of:
8530         * modules/unictype/category-or, modules/unictype/category-test:
8531         * modules/unictype/category-test-withtable:
8532         * modules/unictype/combining-class:
8533         * modules/unictype/combining-class-all:
8534         * modules/unictype/combining-class-byname:
8535         * modules/unictype/combining-class-longname:
8536         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
8537         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
8538         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
8539         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
8540         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
8541         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
8542         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
8543         * modules/unictype/digit, modules/unictype/joininggroup-all:
8544         * modules/unictype/joininggroup-byname:
8545         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
8546         * modules/unictype/joiningtype-all:
8547         * modules/unictype/joiningtype-byname:
8548         * modules/unictype/joiningtype-longname:
8549         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
8550         * modules/unictype/mirror, modules/unictype/numeric:
8551         * modules/unictype/property-all, modules/unictype/property-alphabetic:
8552         * modules/unictype/property-ascii-hex-digit:
8553         * modules/unictype/property-bidi-arabic-digit:
8554         * modules/unictype/property-bidi-arabic-right-to-left:
8555         * modules/unictype/property-bidi-block-separator:
8556         * modules/unictype/property-bidi-boundary-neutral:
8557         * modules/unictype/property-bidi-common-separator:
8558         * modules/unictype/property-bidi-control:
8559         * modules/unictype/property-bidi-embedding-or-override:
8560         * modules/unictype/property-bidi-eur-num-separator:
8561         * modules/unictype/property-bidi-eur-num-terminator:
8562         * modules/unictype/property-bidi-european-digit:
8563         * modules/unictype/property-bidi-hebrew-right-to-left:
8564         * modules/unictype/property-bidi-left-to-right:
8565         * modules/unictype/property-bidi-non-spacing-mark:
8566         * modules/unictype/property-bidi-other-neutral:
8567         * modules/unictype/property-bidi-pdf:
8568         * modules/unictype/property-bidi-segment-separator:
8569         * modules/unictype/property-bidi-whitespace:
8570         * modules/unictype/property-byname:
8571         * modules/unictype/property-case-ignorable:
8572         * modules/unictype/property-cased:
8573         * modules/unictype/property-changes-when-casefolded:
8574         * modules/unictype/property-changes-when-casemapped:
8575         * modules/unictype/property-changes-when-lowercased:
8576         * modules/unictype/property-changes-when-titlecased:
8577         * modules/unictype/property-changes-when-uppercased:
8578         * modules/unictype/property-combining:
8579         * modules/unictype/property-composite:
8580         * modules/unictype/property-currency-symbol:
8581         * modules/unictype/property-dash:
8582         * modules/unictype/property-decimal-digit:
8583         * modules/unictype/property-default-ignorable-code-point:
8584         * modules/unictype/property-deprecated:
8585         * modules/unictype/property-diacritic:
8586         * modules/unictype/property-extender:
8587         * modules/unictype/property-format-control:
8588         * modules/unictype/property-grapheme-base:
8589         * modules/unictype/property-grapheme-extend:
8590         * modules/unictype/property-grapheme-link:
8591         * modules/unictype/property-hex-digit:
8592         * modules/unictype/property-hyphen:
8593         * modules/unictype/property-id-continue:
8594         * modules/unictype/property-id-start:
8595         * modules/unictype/property-ideographic:
8596         * modules/unictype/property-ids-binary-operator:
8597         * modules/unictype/property-ids-trinary-operator:
8598         * modules/unictype/property-ignorable-control:
8599         * modules/unictype/property-iso-control:
8600         * modules/unictype/property-join-control:
8601         * modules/unictype/property-left-of-pair:
8602         * modules/unictype/property-line-separator:
8603         * modules/unictype/property-logical-order-exception:
8604         * modules/unictype/property-lowercase, modules/unictype/property-math:
8605         * modules/unictype/property-non-break:
8606         * modules/unictype/property-not-a-character:
8607         * modules/unictype/property-numeric:
8608         * modules/unictype/property-other-alphabetic:
8609         * modules/unictype/property-other-default-ignorable-code-point:
8610         * modules/unictype/property-other-grapheme-extend:
8611         * modules/unictype/property-other-id-continue:
8612         * modules/unictype/property-other-id-start:
8613         * modules/unictype/property-other-lowercase:
8614         * modules/unictype/property-other-math:
8615         * modules/unictype/property-other-uppercase:
8616         * modules/unictype/property-paired-punctuation:
8617         * modules/unictype/property-paragraph-separator:
8618         * modules/unictype/property-pattern-syntax:
8619         * modules/unictype/property-pattern-white-space:
8620         * modules/unictype/property-private-use:
8621         * modules/unictype/property-punctuation:
8622         * modules/unictype/property-quotation-mark:
8623         * modules/unictype/property-radical:
8624         * modules/unictype/property-sentence-terminal:
8625         * modules/unictype/property-soft-dotted:
8626         * modules/unictype/property-space:
8627         * modules/unictype/property-terminal-punctuation:
8628         * modules/unictype/property-test, modules/unictype/property-titlecase:
8629         * modules/unictype/property-unassigned-code-value:
8630         * modules/unictype/property-unified-ideograph:
8631         * modules/unictype/property-uppercase:
8632         * modules/unictype/property-variation-selector:
8633         * modules/unictype/property-white-space:
8634         * modules/unictype/property-xid-continue:
8635         * modules/unictype/property-xid-start:
8636         * modules/unictype/property-zero-width, modules/unictype/scripts:
8637         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
8638         * modules/unictype/syntax-c-whitespace:
8639         * modules/unictype/syntax-java-ident:
8640         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
8641         * modules/unigbrk/u16-grapheme-breaks:
8642         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
8643         * modules/unigbrk/u32-grapheme-breaks:
8644         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
8645         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
8646         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
8647         * modules/unigbrk/uc-is-grapheme-break:
8648         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
8649         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
8650         * modules/unilbrk/u16-width-linebreaks:
8651         * modules/unilbrk/u32-possible-linebreaks:
8652         * modules/unilbrk/u32-width-linebreaks:
8653         * modules/unilbrk/u8-possible-linebreaks:
8654         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
8655         * modules/unilbrk/ulc-possible-linebreaks:
8656         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
8657         * modules/uniname/uniname, modules/uninorm/base:
8658         * modules/uninorm/canonical-decomposition:
8659         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
8660         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
8661         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
8662         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
8663         * modules/uninorm/nfkc, modules/uninorm/nfkd:
8664         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
8665         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
8666         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
8667         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
8668         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
8669         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
8670         * modules/unistdio/base, modules/unistdio/u-printf-args:
8671         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
8672         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
8673         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
8674         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
8675         * modules/unistdio/u16-u16-sprintf:
8676         * modules/unistdio/u16-u16-vasnprintf:
8677         * modules/unistdio/u16-u16-vasprintf:
8678         * modules/unistdio/u16-u16-vsnprintf:
8679         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
8680         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
8681         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
8682         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
8683         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
8684         * modules/unistdio/u32-u32-asnprintf:
8685         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
8686         * modules/unistdio/u32-u32-sprintf:
8687         * modules/unistdio/u32-u32-vasnprintf:
8688         * modules/unistdio/u32-u32-vasprintf:
8689         * modules/unistdio/u32-u32-vsnprintf:
8690         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
8691         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
8692         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
8693         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
8694         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
8695         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
8696         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
8697         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
8698         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
8699         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
8700         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
8701         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
8702         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
8703         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
8704         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
8705         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
8706         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
8707         * modules/unistr/u16-check, modules/unistr/u16-chr:
8708         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
8709         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
8710         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
8711         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
8712         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
8713         * modules/unistr/u16-move, modules/unistr/u16-next:
8714         * modules/unistr/u16-prev, modules/unistr/u16-set:
8715         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
8716         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
8717         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
8718         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
8719         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
8720         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
8721         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
8722         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
8723         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
8724         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
8725         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
8726         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
8727         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
8728         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
8729         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
8730         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
8731         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
8732         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
8733         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
8734         * modules/unistr/u32-next, modules/unistr/u32-prev:
8735         * modules/unistr/u32-set, modules/unistr/u32-startswith:
8736         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
8737         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
8738         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
8739         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
8740         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
8741         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
8742         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
8743         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
8744         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
8745         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
8746         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
8747         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
8748         * modules/unistr/u8-check, modules/unistr/u8-chr:
8749         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
8750         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
8751         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
8752         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
8753         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
8754         * modules/unistr/u8-next, modules/unistr/u8-prev:
8755         * modules/unistr/u8-set, modules/unistr/u8-startswith:
8756         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
8757         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
8758         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
8759         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
8760         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
8761         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
8762         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
8763         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
8764         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
8765         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
8766         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
8767         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
8768         * modules/uniwbrk/base, modules/uniwbrk/table:
8769         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
8770         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
8771         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
8772         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
8773         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
8774         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
8775         * modules/uniwidth/width, modules/utf16-ucs4:
8776         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
8777         * modules/utf8-ucs4-unsafe:
8778         Change maintainer from Bruno Haible to Daiki Ueno.
8779         This is my guess at the libunistring modules; please feel free
8780         to fix if I guessed incorrectly.
8781         * modules/accept4, modules/acl, modules/acos, modules/acosf:
8782         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
8783         * modules/areadlink, modules/array-list, modules/array-mergesort:
8784         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
8785         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
8786         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
8787         * modules/binary-io, modules/bison-i18n, modules/btowc:
8788         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
8789         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
8790         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
8791         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
8792         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
8793         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
8794         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
8795         * modules/closedir, modules/concat-filename, modules/copy-file:
8796         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
8797         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
8798         * modules/csharpcomp-script, modules/csharpexec:
8799         * modules/csharpexec-script, modules/ctype, modules/diffseq:
8800         * modules/dprintf, modules/dprintf-posix, modules/dup:
8801         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
8802         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
8803         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
8804         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
8805         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
8806         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
8807         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
8808         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
8809         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
8810         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
8811         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
8812         * modules/findprog, modules/findprog-lgpl, modules/floor:
8813         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
8814         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
8815         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
8816         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
8817         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
8818         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
8819         * modules/freadable, modules/freadahead, modules/freadptr:
8820         * modules/freadseek, modules/freopen, modules/frexp:
8821         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
8822         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
8823         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
8824         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
8825         * modules/ftello, modules/full-read, modules/full-write:
8826         * modules/fwritable, modules/fwriteerror, modules/gcd:
8827         * modules/get-rusage-as, modules/get-rusage-data:
8828         * modules/getdtablesize, modules/getrusage, modules/gettext:
8829         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
8830         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
8831         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
8832         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
8833         * modules/iconv, modules/iconv-h, modules/iconv_open:
8834         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
8835         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
8836         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
8837         * modules/integer_length_ll, modules/ioctl, modules/isatty:
8838         * modules/isblank, modules/isnand, modules/isnand-nolibm:
8839         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
8840         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
8841         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
8842         * modules/javaexec, modules/javaexec-script, modules/javaversion:
8843         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
8844         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
8845         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
8846         * modules/lib-symbol-visibility, modules/libsigsegv:
8847         * modules/linked-list, modules/linkedhash-list, modules/list:
8848         * modules/localcharset, modules/locale, modules/localeconv:
8849         * modules/localename, modules/lock, modules/log, modules/log-ieee:
8850         * modules/log10, modules/log10-ieee, modules/log10f:
8851         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
8852         * modules/log1p, modules/log1p-ieee, modules/log1pf:
8853         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
8854         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
8855         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
8856         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
8857         * modules/logf, modules/logf-ieee, modules/login_tty:
8858         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
8859         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
8860         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
8861         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
8862         * modules/mbscspn, modules/mbsinit, modules/mbslen:
8863         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
8864         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
8865         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
8866         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
8867         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
8868         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
8869         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
8870         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
8871         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
8872         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
8873         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
8874         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
8875         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
8876         * modules/posix_spawn, modules/posix_spawn-internal:
8877         * modules/posix_spawn_file_actions_addclose:
8878         * modules/posix_spawn_file_actions_adddup2:
8879         * modules/posix_spawn_file_actions_addopen:
8880         * modules/posix_spawn_file_actions_destroy:
8881         * modules/posix_spawn_file_actions_init:
8882         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
8883         * modules/posix_spawnattr_getpgroup:
8884         * modules/posix_spawnattr_getschedparam:
8885         * modules/posix_spawnattr_getschedpolicy:
8886         * modules/posix_spawnattr_getsigdefault:
8887         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
8888         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
8889         * modules/posix_spawnattr_setschedparam:
8890         * modules/posix_spawnattr_setschedpolicy:
8891         * modules/posix_spawnattr_setsigdefault:
8892         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
8893         * modules/pow, modules/powf, modules/printf-frexp:
8894         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
8895         * modules/progname, modules/propername, modules/pselect:
8896         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
8897         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
8898         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
8899         * modules/read, modules/readdir, modules/readlink:
8900         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
8901         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
8902         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
8903         * modules/relocatable-script, modules/remainder:
8904         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
8905         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
8906         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
8907         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
8908         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
8909         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
8910         * modules/setlocale, modules/sh-quote, modules/shutdown:
8911         * modules/signal, modules/signbit, modules/sigpipe:
8912         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
8913         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
8914         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
8915         * modules/snippet/link-warning, modules/snippet/unused-parameter:
8916         * modules/snprintf, modules/snprintf-posix, modules/spawn:
8917         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
8918         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
8919         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
8920         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
8921         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
8922         * modules/streq, modules/strerror_r-posix, modules/striconv:
8923         * modules/striconveh, modules/striconveha, modules/strncat:
8924         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
8925         * modules/sublist, modules/sys_resource, modules/sys_utsname:
8926         * modules/sys_wait, modules/system-posix, modules/system-quote:
8927         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
8928         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
8929         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
8930         * modules/truncf, modules/truncf-ieee, modules/truncl:
8931         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
8932         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
8933         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
8934         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
8935         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
8936         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
8937         * modules/wait-process, modules/waitpid, modules/wcpcpy:
8938         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
8939         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
8940         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
8941         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
8942         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
8943         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
8944         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
8945         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
8946         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
8947         * modules/write, modules/xconcat-filename, modules/xlist:
8948         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
8949         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
8950         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
8951         * modules/y0, modules/y1, modules/yn:
8952         Remove Bruno Haible as maintainer; if he's the sole maintainer,
8953         change the maintainer to 'all'.  Let's hope someone volunteers.
8955 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
8957         mktime: merge #if/#ifdef usage from glibc
8958         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
8959         as that works with both Glibc's and Gnulib's style.
8960         See thread starting at Siddhesh Poyarekar's bug report at:
8961         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
8963 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
8965         git-version-gen: improve option descriptions
8966         * build-aux/git-version-gen: Mention that --prefix and --fallback
8967         have a mandatory argument.
8969 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
8971         regex: fix memory leak in compiler
8972         Fix by Andreas Schwab in:
8973         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
8974         * lib/regcomp.c (parse_expression): Deallocate partially
8975         constructed tree before returning error.
8977         regex: merge patch from libc
8978         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
8979         Combine __USE_BSD and __USE_SVID into __USE_MISC.
8980         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
8982 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
8984         acl: port to gcc -Wredundant-decls
8985         From a request by Dmitry Antipov in:
8986         http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html
8987         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
8988         "#ifndef _GL_ACL_H".
8990 2014-06-11  Bruce Korb  <bkorb@gnu.org>
8991         Jim Meyering  <meyering@fb.com>
8993         parse-duration: eliminate 68-year duration limit
8994         * lib/parse-duration.c: Include "intprops.h".
8995         (TIME_MAX): Rename to MAX_DURATION and define to
8996         TYPE_MAXIMUM(time_t).
8997         * modules/parse-duration (Depends-on): Add intprops.
8998         Reported by Jonas 'Sortie' Termansen.
9000 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
9002         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
9003         * modules/pthread (Depends-on): Add 'extensions', as it defines
9004         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
9005         (configure.ac-early): New section.
9006         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
9007         it is no longer needed.
9009 2014-06-14  Pádraig Brady  <P@draigBrady.com>
9011         pthread: define thread-safe macros on some platforms
9012         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
9013         for thread-safe operation on some platforms.
9015 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9017         regex: don't be multithreaded if USE_UNLOCKED_IO.
9018         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
9019         * lib/regex_internal.h: Do not use multithreaded version if
9020         USE_UNLOCKED_IO is defined.  This is a hack, but it works
9021         around a porting bug with coreutils 8.22 on AIX 7.1.
9023 2014-06-11  Daiki Ueno  <ueno@gnu.org>
9025         gettext: update macros to version 0.19
9026         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
9027         depend on gl_EXTERN_INLINE and drop support for older Bison
9028         versions.
9030 2014-06-10  Pádraig Brady  <P@draigBrady.com>
9032         select,poll: fix console handle check on windows 8
9033         lib/poll.c (IsConsoleHandle): Change from testing the lower
9034         2 bits of the handle to the more expensive but accurate syscall.
9035         lib/select.c: Likewise.
9037 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
9039         select: fix waiting on anonymous pipes on MS-Windows
9040         * lib/select.c (rpl_select): Fall back to polling when select()
9041         indicates there is nothing to check, while due to the timeout not
9042         expiring, activity is indicated on one of the handles.
9043         Also clear the TIMEOUT argument if the timer does expire.
9045 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
9047         times: fix to return non constant value on MS-Windows
9048         * lib/times.c (times): Don't use the process creation time,
9049         rather clock() which on windows returns the number of
9050         clock ticks since the process started.
9052 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
9054         isatty: fix to work on windows 8
9055         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
9056         2 bits of the handle to the more expensive but accurate syscall.
9058 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9060         maint: fix typo in fdl.texi
9061         * doc/fdl.texi: Fix typo (missing '@').
9062         Somehow this was in fdl.texi but not fdl-1.3.texi.
9064 2014-06-06  Ben Walton  <bdwalton@gmail.com>
9066         mountlist: avoid hasmntopt const type warning on solaris
9067         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
9068         with char * instead of const char *.  Passing the constant string
9069         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
9070         to avoid the warning.
9072 2014-06-04  Eric Blake  <eblake@redhat.com>
9074         maintainer-makefile: delete obsolete code
9075         * top/maint.mk (build_aux): Drop old code, as threatened.
9077         maintainer-makefile: avoid spurious error messages
9078         * top/maint.mk (syntax-check): Guard definition and use of
9079         $(shell) by whether Makefile is present.
9081 2014-06-03  Ben Walton  <bdwalton@gmail.com>
9083         rename: avoid unused-but-set-variable compiler warning
9084         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
9085         it is possible that dst_exists may be set but not used.  Mark it with
9086         the unused attribute to avoid compiler warnings.
9088 2014-06-02  Ben Walton  <bdwalton@gmail.com>
9090         rename: mark a label as potentially unused
9091         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
9092         by marking the out label as potentially unused.
9093         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
9095 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
9097         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
9098         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
9100 2014-06-02  Ben Walton  <bdwalton@gmail.com>
9102         acl: apply pure attribute to two functions
9103         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
9104         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
9106 2014-06-01  Pádraig Brady  <P@draigBrady.com>
9108         gnulib-common.m4: add _GL_UNUSED_LABEL
9109         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
9110         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
9112 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
9114         dup2, fcntl, fcntl-h: port to AIX 7.1
9115         This fixes some porting problems discovered when testing the latest
9116         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
9117         in grep but it could be important for other applications.
9118         * doc/posix-functions/dup2.texi:
9119         * doc/posix-functions/fcntl.texi:
9120         * doc/posix-headers/fcntl.texi:
9121         Document AIX bugs.
9122         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
9123         Define to 0 if outside 'int' range.
9124         * m4/dup2.m4 (gl_FUNC_DUP2):
9125         * m4/fcntl.m4 (gl_FUNC_FCNTL):
9126         Check for getdtablesize.  If it's available, test a value just
9127         outside its range instead of testing 1000000.  When cross-compiling,
9128         guess that AIX will fail this improved test.
9130 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
9132         printf, config.rpath: Port to FreeBSD 10.
9133         Problem reported by Tijl Coosemans in:
9134         http://lists.gnu.org/archive/html/bug-gnulib/2014-05/msg00078.html
9135         * build-aux/config.rpath (hardcode_libdir_flag_spec)
9136         (hardcode_direct): Simplify FreeBSD configuration.
9137         (library_names_spec): Don't mishandle FreeBSD 10+.
9138         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
9139         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
9140         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
9141         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
9142         Don't mishandle FreeBSD 10+ when cross-compiling.
9144         ftoastr: work around compiler bug in IBM xlc 12.1
9145         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
9146         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
9147         around a compiler bug in IBM xlc 12.1.0.0: it complains
9148         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
9149         _GL_FLT_PREC_BOUND.'
9151 2014-05-30  Kieran Colford  <colfordk@gmail.com>
9153         valgrind-tests: fixed misleading help message
9154         * m4/valgrind-tests.m4: The help message generated by configure
9155         implied that valgrind was disabled by default, which it wasn't.
9156         Adjusted the help message using s/enable/disable/ to clarify.
9158 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
9160         isfinite, isinf, isnan tests: fix for little-endian PowerPC
9161         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
9162         first double of a PowerPC "double double" pair.
9163         * tests/test-isinf.c (test_isinfl): Likewise.
9164         * tests/test-isnan.c (test_long_double): Likewise.
9165         * tests/test-isnanl.h (main): Likewise.
9166         * tests/test-signbit.c (test_signbitl): Likewise.
9168 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9170         exclude-tests: port to AIX 7.1
9171         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
9172         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
9173         the regex code uses locks.
9175 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
9177         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
9178         Without this fix, Emacs would sometimes call sigprocmask instead
9179         of pthread_sigmask, which is a no-no in multithreaded applications.
9180         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
9181         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
9182         Suppress check for pthread_sigmask working without -lpthread if
9183         the application always links with -lpthread.  Do not link with
9184         $LIBMULTITHREAD if gl_THREADLIB is not defined.
9185         * m4/timer_time.m4 (gl_TIMER_TIME):
9186         Require gl_THREADLIB only if it is defined.  Do not append
9187         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
9189 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
9191         gnulib-tool: wget translations using --no-verbose rather than --quiet
9192         This allows the user to see error messages if any (--quiet hides them)
9193         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
9195 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
9197         gnulib-tool: adjust translation wget to avoid a https redirection
9198         Context: http://translationproject.org/latest/gnulib redirects to
9199            https://translationproject.org/latest/gnulib/
9200         Rationale: if the user falls back to wget, she doesn't have rsync and
9201         is probably in a minimal build environment, where packages such as
9202         'ca-certificates' are missing as well, resulting in a failed (and
9203         difficult to detect since ignored) translation initial fetch.
9204         Consequently let's avoid https if possible, and add the missing
9205         trailing slash.  This also avoids an unnecessary 302 redirection.
9206         * gnulib-tool: Add trailing slash to gnulib URL.
9208 2014-05-22  Pádraig Brady  <P@draigBrady.com>
9210         getlogin_r-tests: check return value rather than errno
9211         * tests/test-getlogin_r.c (main): As per POSIX we should be
9212         verifying the return value from getlogin_r() rather than errno.
9214 2014-05-22  Pádraig Brady  <P@draigBrady.com>
9216         getlogin_r-tests: fix various issues in recent change
9217         * tests/test-getlogin_r.c: Include required headers that were
9218         missed in recent commit eec20b4e.
9219         Also consistently check the errno rather than the return value from
9220         getlogin_r as POSIX only specifies that non zero is returned on error.
9221         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
9223 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9225         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
9226         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
9227         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
9228         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
9229         * lib/spawn-pipe.c:
9230         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
9231         and then 'int open64(const char *, int, ...);', which means the
9232         declaration for 'open' gets lost if we later '#undef open'.
9233         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
9234         where the compilation reported the non-fatal error "In function
9235         'openat_proc_name' ... warning: implicit declaration of function
9236         'open'".  In this case the error is relatively harmless, but in
9237         other cases it might not be so minor.
9239 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
9241         xalloc: don't potentially generate invalid code for xmemdup calls
9242         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
9243         this function can initialize the newly-allocated storage with new
9244         pointers, which means this function is not malloc-like.  See:
9245         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
9247 2014-05-19  Pádraig Brady  <P@draigBrady.com>
9249         getlogin_r-tests: avoid false failure under sudo/ssh etc.
9250         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
9251         changes from commit 97249cf29 to not depend on environment variables.
9253 2014-05-18  Pádraig Brady  <P@draigBrady.com>
9255         getlogin-tests: avoid false failure under cron
9256         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
9257         since that's not what's under test.  Centos 6 was seen to return
9258         EINVAL for ttyname() when run from cron.
9260 2014-05-16  Jim Meyering  <meyering@fb.com>
9262         mbrtowc.m4: fix a comment typo
9263         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
9264         emitted documentation string.
9266 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9268         mbrlen, mbrtowc: fix bug with empty input
9269         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
9270         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
9271         so this is mainly for documentation.
9272         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
9273         (gl_FUNC_MBRTOWC): Use it.
9274         * tests/test-mbrtowc.c (main): Test for the bug.
9276 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
9278         doc: document mbrtowc and mbrlen problem with empty input
9279         * doc/posix-functions/mbrlen.texi (mbrlen):
9280         * doc/posix-functions/mbrtowc.texi (mbrtowc):
9281         Document portability problem when the input string is empty.  See:
9282         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
9284         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
9285         Problem reported by Eli Zaretskii in:
9286         http://lists.gnu.org/archive/html/bug-grep/2014-05/msg00118.html
9287         * doc/posix-functions/execl.texi (execl):
9288         * doc/posix-functions/execle.texi (execle):
9289         * doc/posix-functions/execlp.texi (execlp):
9290         * doc/posix-functions/execv.texi (execv):
9291         * doc/posix-functions/execve.texi (execve):
9292         * doc/posix-functions/execvp.texi (execvp):
9293         Mention spawn+exit problem on non-Cygwin Windows platforms.
9295 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
9297         getlogin-tests: avoid false failure under sudo/ssh etc.
9298         * modules/getlogin-tests (configure.ac): Check for ttyname().
9299         * tests/test-getlogin.c (main): Don't depend on environment variables
9300         to correlate with getlogin(), since sudo and ssh etc. can tamper
9301         with the LOGNAME and USER env vars.  Instead lookup the name from
9302         the uid associated with the stdin tty.
9304 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
9306         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
9307         These were found when building the latest grep snapshot on IRIX 6.5.
9308         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
9309         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
9310         never used later.
9311         * lib/quotearg.c (quoting_options_from_style):
9312         * lib/xstrtol.c (__xstrtol):
9313         Use enum instead of 0, to pacify IRIX 6.5 cc.
9315 2014-04-18  Pádraig Brady  <P@draigBrady.com>
9317         gitlog-to-changelog: revert inclusion of git-log-fix file
9318         * build-aux/git-log-fix: Delete dummy file.
9319         * modules/gitlog-to-changelog: Don't reference (overwrite)
9320         the project specific git-log-fix file.
9322 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
9324         maint.mk: Relax the copyright check to cater for non FSF projects
9325         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
9326         to not require the "Free" suffix after the copyright years.
9328 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
9330         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
9331         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
9332         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
9333         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
9334         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
9336 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
9338         exclude: port to strict C99
9339         Strict C does not allow converting a function pointer to void *
9340         and vice versa.  Pass a pointer to a function pointer instead.
9341         * lib/exclude.c (add_exclude_file):
9342         Pass the address of the function pointer.
9343         (call_addfn): And deference the address here, to match.
9345 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
9347         regex: do not depend on malloc-gnu
9348         * modules/regex (Depends-on): Remove malloc-gnu.
9349         It's no longer needed, because of the 2012-12-29 patch
9350         "regex: port to hosts where malloc (0) == NULL".
9351         Reported by Nathan Kennedy in:
9352         http://lists.gnu.org/archive/html/bug-gnulib/2014-04/msg00026.html
9354 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
9356         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
9357         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
9358         * doc/posix-functions/expl.texi: Mention the workaround.
9360 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
9362         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
9363         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
9364         size to be zero even when the pointer is nonnull.  This
9365         accommodates the use case where P is malloc (0) and *PN is 0 on a
9366         host where malloc (0) yields nonnull.
9368 2014-04-09  Eric Blake  <eblake@redhat.com>
9370         fts: avoid unnecessary strlen calls
9371         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
9373 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
9375         fts: avoid unnecessary strlen calls
9376         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
9377         when that can be faster than strlen.
9379 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
9381         fts: avoid unnecessary strlen calls
9382         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
9383         (fts_build): Store the length of the dp->d_name entry in a local variable
9384         instead of calling strlen() several times via the above, removed macro.
9385         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
9386         run by ~4%, yet this reduces the execution time by about a third if run
9387         via "ltrace -c rm -rf some-dir".
9389 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
9391         obstack: Remove ancient NeXTSTEP gcc support conditional
9392         This change will ease merging with glibc.  The "#if ... __NEXT__"
9393         causes a warning with -Wundef which glibc now enables by default.
9394         Problem reported by Will Newton in
9395         <http://lists.gnu.org/archive/html/bug-gnulib/2014-03/msg00032.html>.
9396         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
9397         so go with that.
9398         * lib/obstack.h (__extension__):
9400 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
9402         obstack: merge with glibc changes
9403         * lib/obstack.c, lib/obstack.h: Merge from glibc.
9404         This is mostly indenting and commentary changes.
9405         Instances of 'register' have been removed.
9407 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
9409         strftime: wrap macros in "do {...} while(0)"
9410         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
9411         this macro in "do {...} while(0)" to prevent false use as a
9412         single statement, e.g., in an un-braced "{}" else-block.
9413         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
9414         (strftime_case_): Remove 'else' after 'goto' - which was the
9415         only non-fatal, un-braced use of one of the above macros.
9416         Spotted by coverity (NESTING_INDENT_MISMATCH).
9418 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
9420         modechange: avoid memory leaks for invalid octal modes
9421         * lib/modechange.c (mode_compile): During the parsing of
9422         notations like +40, free the 'mc' buffer for invalid mode
9423         strings like +17777 (greater than the maximum octal mode),
9424         =18 (bad octal mode characters) or u=1 ('affected' with
9425         octal modes).
9426         Reproducer, e.g.:
9427             $ valgrind --leak-check=full chmod +17777 file
9428         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
9429         add notations +40, 00440, etc.".
9430         Spotted by coverity (RESOURCE_LEAK).
9432 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9434         gitlog-to-changelog: include a dummy git-log-fix file
9435         Problem reported by Nathan Stratton Treadway in:
9436         http://lists.gnu.org/archive/html/bug-tar/2014-03/msg00082.html
9437         * build-aux/git-log-fix: New file.
9439 2014-03-13  Jim Meyering  <meyering@fb.com>
9441         gitlog-to-changelog: also include the file, git-log-fix
9442         * modules/gitlog-to-changelog (Files): Add git-log-fix.
9443         Reported by Assaf Gordon.
9445 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
9447         regex: port to OS X 10.8.5 en_US.UTF-8 locale
9448         This fixes a bug when ignoring case and when comparing the
9449         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
9450         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
9451         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
9452         titlecase letter is neither lowercase nor uppercase, but
9453         uppercasing the titlecase letter (via towupper) yields the
9454         uppercase letter, so the two letters should match when ignoring case.
9455         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
9456         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
9457         Don't test whether a character is lowercase before uppercasing it.
9459 2014-03-04  Kevin Cernekee <cernekee@gmail.com>
9461         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
9462         This is basically one of the options Bruno Haible proposed in:
9463         http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00282.html
9464         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
9465         * lib/stdint.in.h: Use it.
9466         * modules/stdint (Depends-on): Add sys_types.
9468 2014-02-26  Pádraig Brady <P@draigBrady.com>
9470         parse-datetime: fix crash or infloop in TZ="" parsing
9471         * lib/parse-datetime.y (parse_datetime): Break out of the
9472         TZ="" parsing loop once the second significant " is found.
9473         Also skip over any subsequent whitespace to be consistent
9474         with the non TZ= case.
9475         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
9477 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
9479         savedir: new symbol for fast-read version
9480         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
9481         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
9482         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
9483         http://lists.gnu.org/archive/html/coreutils/2014-02/msg00037.html
9485 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
9487         unistd: port readlink to Mac OS X 10.3.9
9488         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
9489         around self-include problem in Mac OS X 10.3.9 when combined with
9490         readlink module.  Problem reported by Klaus Zietler in
9491         <http://bugs.gnu.org/16825>.
9493 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
9495         diffseq: remove TOO_EXPENSIVE heuristic
9496         Problem with diffutils reported by Vincent Lefevre in
9497         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
9498         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
9499         Although appropriate for circa-1993 hardware, these days the heuristic
9500         seems to be more trouble than it's worth.
9501         * lib/diffseq.h: Modernize citations.
9502         (struct context): Remove member too_expensive.
9503         All uses changed.
9504         (struct partition): Remove members lo_minimal, hi_minimal.
9505         All uses changed.
9506         (diag, compareseq): Remove arg find_minimal.  All uses changed.
9507         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
9508         1993 to make 'diff' run faster (but not as well) on large inputs.
9509         These days, computers are fast enough that it's typically better
9510         to run slower but more accurately.
9511         * lib/fstrcmp.c: Remove duplicate comment.
9512         * lib/fstrcmp.c (strcmp_bounded):
9513         * lib/git-merge-changelog.c (compute_differences):
9514         Adjust to diffseq.h changes.
9515         * NEWS: Document the change.
9517         savedir: simplify by using stpcpy
9518         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
9519         (streamsavedir): Use stpcpy instead.
9520         * modules/savedir (Depends-on): Add stpcpy.
9522 2014-02-21  Pádraig Brady <P@draigBrady.com>
9524         spawn: fix link error on uclibc
9525         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
9526         to incorporate -lrt if needed (on uclibc for example).
9527         * modules/posix_spawn: Reference the substituted LIB.
9529 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
9530         timer: fix uClibc detection of threading
9531         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
9532         enabled in uClibc.
9534 2014-02-21  Eric Blake  <eblake@redhat.com>
9536         maintainer-makefiles: provide AC_PROG_SED for older autoconf
9537         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
9539 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
9541         exclude: add support for posix regexps
9543         This commit adds support for POSIX extended regular expressions
9544         and fixes a long-standing memory leak (pattern buffer was never
9545         freed).  It also implements a new interface function to read
9546         exclude patterns from a FILE, which passes an additional parameter
9547         to its callback function, thereby allowing to preserve its state
9548         between invocations.
9550         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
9551         (pattern_buffer): New struct.
9552         (exclude): New member patbuf.
9553         (exclude_add_pattern_buffer): New function.
9554         (free_exclude_segment): Free regexps.
9555         (free_exclude): Free allocated pattern buffers.
9556         (exclude_patopts): New function.
9557         (file_pattern_matches): Use exclude_patopts.
9558         (add_exclude): support regexps.
9559         (add_exclude_fp): New function.
9560         (add_exclude_file): Rewrite using add_exclude_fp.
9561         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
9562         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
9563         (add_exclude_fp)
9564         (add_exclude_file): Rewrite using add_exclude_fp.
9565         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
9566         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
9567         (add_exclude_fp)
9568         (exclude_add_pattern_buffer): New prototypes.
9569         * modules/exclude: Depends on regex and filename.
9571 2014-02-20  Eric Blake  <eblake@redhat.com>
9573         maintainer-makefiles: use $(SED) for syntax check
9574         * modules/maintainer-makefile (configure.ac): Check for sane sed.
9575         * top/maint.mk: Change sed to $(SED).
9577 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
9578             Paul Eggert  <eggert@cs.ucla.edu>
9580         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
9581         Patch based on an idea by Dick Streefland in
9582         <https://savannah.gnu.org/patch/?7892>.
9583         * NEWS: Document this.
9584         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
9585         (direntry_t, comparison_function): New types.
9586         (direntry_cmp_name): New function.
9587         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
9588         (streamsavedir, savedir): New arg OPTION.
9589         (streamsavedir): Simplify memory allocation.
9590         (fdsavedir): Remove.
9591         * lib/savedir.h (enum savedir_option): New type.
9592         (streamsavedir, savedir): New arg OPTION.
9593         (fdsavedir): Remove.
9595 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
9597         file-type: add support for doors and other less-common file types
9598         Problem with S_ISDOOR reported by Rich Burridge.
9599         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
9600         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
9601         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
9603 2014-01-23  Eric Blake  <eblake@redhat.com>
9605         pthread: work around winpthread header pollution on mingw
9606         * lib/time.in.h: Move pthread workarounds...
9607         * lib/pthread.in.h: ...here.
9608         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
9609         detect macro pollution on mingw.
9610         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
9612 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
9614         qacl: check for fchmod
9615         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
9616         and qset-acl.c both use HAVE_FCHMOD.
9618 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9620         fdopen-tests: port to Tru64
9621         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
9622         descriptor that is not open, as POSIX doesn't specify the
9623         resulting behavior and the test does not work on Tru64.
9624         Problem reported by Steven M. Schweda in:
9625         http://lists.gnu.org/archive/html/bug-gnulib/2014-01/msg00079.html
9627         stdalign: port to HP-UX compilers
9628         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
9629         if __HP_cc or __HP_aCC are nonzero.
9631 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9633         strtoimax: port to platforms lacking 'long long'
9634         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
9635         check whether strtoll is declared, which causes the C file to
9636         wrongly report an error.  Problem reported by Steven M. Schweda in:
9637         http://lists.gnu.org/archive/html/bug-diffutils/2014-01/msg00003.html
9638         * lib/strtoimax.c (strtoull):
9639         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
9640         (strtoll): Declare only if HAVE_LONG_LONG_INT.
9642 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
9644         relocatable-perl: fix texi syntax
9645         * doc/relocatable-maint.texi: Escape braces.
9647 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
9649         relocatable-perl: like relocatable-script, but for Perl scripts
9650         * build-aux/relocatable.pl.in: Add.
9651         * doc/relocatable-maint.texi: Add documentation.
9652         * modules/relocatable-perl: Add.
9654 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
9656         tests: fix export bug in previous patch
9657         Problem reported by Jim Meyering.
9658         * tests/init.sh (re_shell): New var, which is exported instead of
9659         re_shell_.
9661         tests: simplify porting to Solaris 10 /bin/sh
9662         Some test cases in 'grep' need a shell that groks '$(';
9663         export re_shell_ for their benefit.  Problem reported for 'grep'
9664         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
9665         * tests/init.sh (re_shell_): Export if it's used.
9667 2014-01-06  Eric Blake  <eblake@redhat.com>
9669         md5, sha1, sha256, sha512: support older autoconf
9670         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
9671         for autoconf < 2.63b.
9673         include_next: port to autoconf 2.63
9674         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
9676 2014-01-04  Jim Meyering  <meyering@fb.com>
9678         maint: add a gnulib-local rule to keep non-ascii out of .texi files
9679         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
9680         so that "make sc_maint" will ding anyone who puts non-ascii
9681         in any of gnulib's .texi files.
9683 2014-01-03  Jim Meyering  <meyering@fb.com>
9685         freadable, fwritable, fwriting: declare with the "pure" attribute
9686         * lib/freadable.h (freadable): Declare with the "pure" attribute.
9687         * lib/fwritable.h (fwritable): Likewise.
9688         * lib/fwriting.h (fwriting): Likewise.
9689         Suggested by Bruno Haible.
9691         maint.mk: adapt openat.h-include-without-use test
9692         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
9693         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
9694         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
9695         With this change, running "make sc_maint" in gnulib's top-level
9696         directory now passes for me.
9698 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9700         doc: use ASCII in .texi files where UTF-8 isn't needed
9701         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
9702         * doc/posix-functions/setkey.texi, doc/regex.texi:
9703         Use ASCII input, not UTF-8.
9705 2014-01-02  Jim Meyering  <meyering@fb.com>
9707         freading: declare with the "pure" attribute
9708         * lib/freading.h (freading): Declare with the "pure" attribute.
9710         manywarnings: remove -Wmudflap
9711         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
9712         it is no longer supported in gcc-4.9-to-be.
9714 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9716         relocatable-script: remove unused code
9717         Problem reported by Reuben Thomas in:
9718         http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00117.html
9719         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
9721 2014-01-01  Jim Meyering  <meyering@fb.com>
9723         maint: fix public-submodule-commit to work with newer git
9724         * top/maint.mk (public-submodule-commit): Remove excess quoting.
9725         We were over-quoting the test arguments, and somewhere prior to
9726         version 1.8.5.2.229, git stopped removing those excess quotes,
9727         which made the test fail, since the unexpanded strings would
9728         always differ; using GIT_TRACE=1 confirmed that the git merge-base
9729         command wasn't even being run.
9731 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9733         doc: update main copyright year
9734         * doc/gnulib.texi: Update copyright date.
9736 2014-01-01  Eric Blake  <eblake@redhat.com>
9738         version-etc: new year
9739         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
9740         * all files: run 'make update-copyright'
9742 2013-12-24  Eric Blake  <eblake@redhat.com>
9744         passfd: give nicer error for recvfd at eof
9745         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
9746         * tests/test-passfd.c (main): Enhance test to cover this.
9748 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9750         gettimeofday: port recent C++ fix to Emacs
9751         Without this further patch, Emacs won't build due to
9752         the portcheck failing.  Also, this simplifies the patch a bit.
9753         * lib/time.in.h (localtime, gmtime): Don't replace unless
9754         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
9755         * lib/time.in.h (localtime, gmtime):
9756         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
9757         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
9758         * modules/time (time.h):
9759         Don't worry about about the possibility of localtime and gmtime
9760         being absent; they're present in all C libraries we know about.
9761         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
9762         Don't assume sys_time is present and has been initialized.
9763         Instead, use a hack that should work even if it hasn't been.
9764         Don't use a portcheck for gmtime or localtime; this supports
9765         the hack.
9766         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
9768 2013-12-17  John W. Eaton  <jwe@gnu.org>
9770         gettimeofday: fix C++ crosscompilation
9772         Never replace gmtime and localtime by macros when compiling with
9773         C++, this prevents <ctime> from being included.
9775         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
9776         define gmtime and localtime as preprocessor macros.  Instead
9777         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
9778         REPLACE_LOCALTIME substitutions.
9779         * lib/time.in.h: Declare gmtime and localtime when needed.
9780         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
9781         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
9782         * modules/time: Depend on gettimeofday, and substitute the above
9783         variables in time.h.
9785 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9787         qacl: port to Windows better
9788         See Eli Zaretskii in
9789         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
9790         * lib/file-has-acl.c (acl_access_nontrivial):
9791         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
9792         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
9794 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
9796         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
9797         * lib/gl_openssl.h: Cast void pointers to a specific type.
9799 2013-12-07  Pádraig Brady <P@draigBrady.com>
9801         open-tests: fix build failure with -Werror=old-style-declaration
9802         * tests/test-open.h: Reorder the inline to avoid the issue.
9804 2013-12-07  Pádraig Brady <P@draigBrady.com>
9806         md5, sha1, sha256, sha512: fix link error with partial libcrypto
9807         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
9808         init time, so that if early checks find crypto routines,
9809         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
9810         avoiding link failures.
9812 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
9814         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
9815         This provides a new way to specify the default for
9816         gl_CRYPTO_CHECK, one that is reflected in the --help message.
9817         Emacs uses this, as well as the old way.
9818         This attempts to implement a suggestion by Pádraig Brady in
9819         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
9820         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
9821         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
9823         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
9824         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
9825         Add support for a new option, --with-openssl=auto, which causes
9826         the library to be used if available and silently ignored if not.
9827         Add support to allow allow configure.ac to specify its own
9828         default, by setting with_openssl_default before invoking gl_INIT.
9830 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
9832         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
9833         Problem reported by Daiki Ueno in:
9834         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
9835         * tests/test-open.h (__always_inline):
9836         New macro, if not already defined.
9837         (test_open): Use it.
9839 2013-12-04  Eric Blake  <eblake@redhat.com>
9841         include_next: minimize code duplication
9842         * modules/include_next (Depends-on): Add absolute-header.
9843         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
9844         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
9846 2013-12-04  Pádraig Brady <P@draigBrady.com>
9848         getcwd: fix compile error in configure check
9849         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
9851 2013-12-04  Pádraig Brady <P@draigBrady.com>
9853         regex: suppress core dumps from detection code
9854         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
9855         to suppress core dumps that may well occur on glibc systems.
9856         These core dumps might not be cleaned up automatically, or could
9857         trigger some system core dump handling logic.
9859 2013-12-03  Pádraig Brady <P@draigBrady.com>
9861         md5, sha1, sha256, sha512: support mandating use of openssl
9862         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
9863         description, to list the now 3 separate options.  also don't
9864         mention the default=no, since this is implicit given the option
9865         is described as --with-openssl rather than --without-openssl.
9866         If projects change the default they're free to document that.
9867         with --with-openssl[=yes] we now error out when the specified
9868         hash algorithm is not available in libcrypto.
9870 2013-12-03  Ivailo  <xakepa10@gmail.com>
9872         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
9873         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
9874         -Wformat-nonliteral checks, as these edge cases are part of the test.
9876 2013-12-03  Eric Blake  <eblake@redhat.com>
9878         regex: avoid glibc deadlock during configure
9879         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
9880         glibc bug 15078 in turn triggers bug 16159.
9881         Reported by Michal Privoznik.
9883 2013-12-02  Pádraig Brady <P@draigBrady.com>
9885         md5, sha1, sha256, sha512: use openssl routines if available.
9886         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
9887         routines will be used if available, requiring apps to link @LIB_CRYPTO@
9888         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
9889         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
9890         in the standard system location.
9891         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
9892         * m4/sha256.m4: Likewise with SHA256.
9893         * m4/sha512.m4: Likewise with SHA512.
9894         * m4/md5.m4: Likewise with MD5.
9895         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
9896         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
9897         * lib/sha256.h: Likewise with SHA256.
9898         * lib/sha512.h: Likewise with SHA512.
9899         * lib/md5.h: Likewise with MD5.
9900         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
9901         * lib/sha256.c: Likewise with SHA256.
9902         * lib/sha512.c: Likewise with SHA512.
9903         * lib/md5.c: Likewise with MD5.
9904         * modules/crypto/sha1 (Link:): Add the new optional lib.
9905         (Depends-on:): Add dependency on extern-inline.
9906         * modules/crypto/sha256: Likewise.
9907         * modules/crypto/sha512: Likewise.
9908         * modules/crypto/md5: Likewise.
9909         * modules/crypto/sha1-tests: Reference the lib here too.
9910         * modules/crypto/md5-tests: Likewise.
9911         * modules/crypto/gc-des-tests: Likewise.
9912         * modules/crypto/gc-hmac-md5-tests: Likewise.
9913         * modules/crypto/gc-hmac-sha1-tests: Likewise.
9914         * modules/crypto/gc-hmac-sha256-tests: Likewise.
9915         * modules/crypto/gc-hmac-sha512-tests: Likewise.
9916         * modules/crypto/gc-md5-tests: Likewise.
9917         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
9918         * modules/crypto/gc-sha1-tests: Likewise.
9919         * modules/crypto/gc-tests: Likewise.
9920         * modules/crypto/hmac-md5-tests: Likewise.
9921         * modules/crypto/hmac-sha1-tests: Likewise.
9922         * modules/crypto/hmac-sha256-tests: Likewise.
9923         * modules/crypto/hmac-sha512-tests: Likewise.
9925 2013-11-29  RV1971  <rv1971@web.de>
9927         base64: (trivial) fix compilation regression on some compilers
9928         * lib/base64.c: Don't return the void function,
9929         instead split to a separate return statement.
9931 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
9933         ignore-value: revert previous code change
9934         * lib/ignore-value.h (ignore_value): Use __extension__ and
9935         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
9936         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
9937         Change the comment to try to explain this better.
9939 2013-11-27  Pádraig Brady <P@draigBrady.com>
9941         selinux-h: improve stub types and add more stub functions
9943         * lib/se-selinux.in.h: Change security_context_t to a typedef
9944         rather than a define, as it's a pointer type and so is better
9945         as a typedef to avoid issues declaring multiple variables
9946         with the comma operator.  Also add stub for string_to_security_class().
9947         * lib/se-context.in.h: Add stub functions for
9948         context_{type,range,role,user}_get().
9950 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
9952         ignore-value: prefer GCC version back through 2.0
9953         The code didn't match the comments, so I did a bit of software
9954         archaeology.  GCC 2.0 seems to support __extension__ and
9955         __typeof__, so fix both code and comments to use 2.0.
9956         * lib/ignore-value.h (ignore_value): Use __extension__ and
9957         __typeof__ for GCC 2.0 through 3.3, too.
9959 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
9961         pty: Activate the signature wrapper of forkpty.
9962         The intended preprocessor macro HAVE_FORKPTY is
9963         never defined, yet `lib/forkpty.c' depends on it.
9965         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
9966         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
9967         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
9969 2013-11-18  Jim Meyering  <meyering@fb.com>
9970         and Paul Eggert  <eggert@cs.ucla.edu>
9972         quotearg: don't attempt to store 1 << 31 into an "int"
9973         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
9974         gcc's new -fsanitize=undefined and running its tests triggered some
9975         new test failures due to undefined behavior, all with this diagnostic:
9976           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
9977             cannot be represented in type int
9978         Rather than shifting "1" left to form a mask, shift the bits right and
9979         simply use "1" as the mask.
9981 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
9983         error: depend on stdio
9984         Problem reported by Nikos Mavrogiannopoulos in
9985         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
9986         * modules/error (Depends-on): Add stdio.
9988 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
9990         * doc/relocatable-maint.texi (Supporting Relocation): Improve
9991         wording.
9992         Reported by Reuben Thomas <rrt@sc3d.org>.
9994 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
9996         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
9997         New function and macro, to work around _DARWIN_C_SOURCE problem.
9998         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
10000 2013-11-11  Pádraig Brady <P@draigBrady.com>
10002         base64: provide a fast path for encoding well sized buffers
10003         Avoid conditionals in the base64 encoding loop,
10004         which was seen to give 60% better throughput.
10005         * lib/base64.c (base64_encode_fast): A new function to be called
10006         when we don't want to NUL terminate, and we have enough space
10007         in the output to encode the given input.
10008         (base64_encode): Call the _fast() version when appropriate.
10009         Also remove a redundant mask with 0x3F on the first encoded byte.
10011 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
10013         extern-inline: port better to OS X 10.9
10014         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
10015         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
10016         OS X 10.9, except for g++ where the bug is still present.
10017         See <http://trac.macports.org/ticket/41033>.
10019 2013-11-08  Eric Blake  <eblake@redhat.com>
10021         fpending: fix regression on DragonFly BSD
10022         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
10023         * lib/fpending.h (__fpending): Don't declare twice.
10024         Reported by GW in
10025         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
10027 2013-11-05  Jim Meyering  <meyering@fb.com>
10029         hash: relax license to LGPLv2+, for libguestfs
10030         * modules/hash (License): Change from GPL to LGPLv2+.
10032 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10034         intprops: port to Oracle Studio c99
10035         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
10036         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
10038 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10040         obstack: pacify HP C
10041         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
10042         warning "conversion from pointer to smaller integer" from HP
10043         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
10044         C89 or later nowadays, so cast to void instead of int.  Privately
10045         reported by H.Merijn Brand.  Also, change header to match glibc's,
10046         to make checking against glibc easier.
10048 2013-10-29  Jim Meyering  <meyering@fb.com>
10050         maint.mk: prefer gpgv2 over gpgv
10051         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
10052         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
10053         Reported by Gary Vaughan.
10055 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
10057         isnan: port to VAX
10058         Reported by John Klos for NetBSD-5/VAX in
10059         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
10060         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
10061         (FUNC): Use it.
10063 2013-10-28  Jim Meyering  <meyering@fb.com>
10065         gnulib-tool: protect against CDPATH
10066         * gnulib-tool: Many "cd" built-in functions print a directory name
10067         to stdout when CDPATH is set, e.g.,
10068           $ bash -c 'CDPATH=/; cd tmp'
10069           /tmp
10070         Unset it, when possible.  Prompted by a comment from Bruce Korb.
10072         maint.mk: restore functionality removed by recent change...
10073         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
10074         the context of a shallow-cloned gnulib repository: "git describe"
10075         would fail in such a directory.  However, that change made it so
10076         the reported gnulib revision no longer includes the version number
10077         or a commit count, even when run from a full clone.
10078         * top/maint.mk (gnulib-version): Use the full "git describe"
10079         output when possible, e.g., the form above, rather than the
10080         abbreviated, no-tag, no-commit-count string, and fall back to
10081         using a 10-byte hash, rather than the default minimal-length
10082         hash prefix, since while the minimal-length one may be fine today,
10083         it is likely not to be unique for very long.
10085 2013-10-26  Jim Meyering  <meyering@fb.com>
10087         maint.mk: fix "release" target to build _version
10088         This fixes a bug in README-release whereby following the outlined
10089         steps, one would publish a tarball whose programs would report
10090         --version output not consistent with the package version number.
10091         This bug caused grep-2.15 to produce a grep program whose
10092         --version option made it print 2.14.56-1e3d rather than 2.15.
10093         * top/maint.mk (release): Making this target build "_version"
10094         ensures that the new version number is reflected in configure.
10096 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
10098         install-reloc: Support multi-binary installation.
10099         * build-aux/install-reloc: Support installing multiple programs in
10100         one invocation, as done by Automake starting with commit
10101         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
10102         Haible <bruno@clisp.org>, archived at
10103         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
10104         Reported by Sylvain <beuc@gnu.org>.
10106 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
10108         selinux-h: Really build without selinux when library is missing.
10109         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
10110         continue without selinux, as already told in the warning message.
10112 2013-10-21  Jim Meyering  <meyering@fb.com>
10114         regex: also remove dependency on HAVE_WCSCOLL
10115         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
10117 2013-10-21  Reuben Thomas <rrt@sc3d.org>
10119         xfreopen: Fix typo. s/frepoen/freopen/
10120         * lib/xfreopen.c: Fix description.
10121         * modules/xfreopen: Likewise.
10123 2013-10-21  Jim Meyering  <meyering@fb.com>
10125         regex: don't depend on wcscoll
10126         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
10127         It is no longer used.
10129 2013-10-20  Jim Meyering  <meyering@fb.com>
10131         error: add the printf attribute to a static function
10132         * lib/error.c (error_tail): Add the printf attribute, to placate
10133         gcc's -Werror=suggest-attribute=format option.
10135 2013-09-30  Jim Meyering  <meyering@fb.com>
10137         fpending, obstack, strerror-override: use pure+const function attrs
10138         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
10139         * lib/obstack.c (_obstack_allocated_p): Likewise.
10140         * lib/obstack.h (_obstack_memory_used): Likewise.
10141         (_obstack_memory_used): Likewise.
10142         * lib/strerror-override.h (strerror_override): Declare with
10143         the "const" attribute.
10145 2013-10-18  Eric Blake  <eblake@redhat.com>
10147         extern-inline: make safe for -Wundef usage
10148         Reported by Vladimir 'phcoder' Serbinenko in
10149         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
10150         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
10152 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10154         mkfifo-tests, etc.: allow HP-UX 11.11 bug
10155         Problem reported by Daniel Richard G. in
10156         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
10157         * doc/posix-functions/mkfifo.texi (mkfifo):
10158         * doc/posix-functions/mkfifoat.texi (mkfifoat):
10159         * doc/posix-functions/mknod.texi (mknod):
10160         * doc/posix-functions/mknodat.texi (mknodat):
10161         Document the HP-UX 11.11 bug.
10162         * tests/test-mkfifo.h (test_mkfifo):
10163         Allow the HP-UX 11.11 bug.
10165 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10167         acl: allow cross-compilation to Gentoo
10168         Problem reported by Gabriel Marcano in
10169         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
10170         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
10171         test only whether it links.
10173 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10175         mgetgroups: remove dependency on realloc-gnu
10176         The dependency violates the comment in realloc-gnu, which
10177         says that tests can't depend on realloc-gnu; some tests depend
10178         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
10179         Problem reported by Daniel Richard G. in
10180         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
10181         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
10182         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
10183         not realloc-gnu.
10185 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
10187         regex-tests: port to HP-UX 11.11
10188         Problem reported by Daniel Richard G. in
10189         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
10190         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
10192 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10194         verify: document some 'assume' pitfalls
10195         * doc/verify.texi (Compile-time Assertions):
10196         Mention that 'assume (E)' can sometimes slow things down.
10197         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
10199 2013-10-10  Eric Blake  <eblake@redhat.com>
10201         strtoumax: fix typo in previous commit.
10202         * modules/strtoumax (Depends-on): Fix typo.
10203         * modules/strtoimax (Depends-on): Likewise.
10205 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10207         strtoumax: port to Solaris 8
10208         This problem was introduced in the recent HP-UX patch.
10209         Reported by Tom G. Christensen in
10210         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
10211         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
10212         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
10214 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
10216         strtoimax, strtoumax: port to HP-UX 11.11
10217         Problem reported by Daniel Richard G. in
10218         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
10219         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
10220         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
10221         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
10222         REPLACE_STRTOUMAX.
10223         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
10224         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
10225         Replace the function if defined as a macro but not as a function.
10226         * modules/inttypes-incomplete (inttypes.h): Substitute
10227         REPLACE_STRTOUMAX.
10228         * modules/strtoumax (configure.ac): Replace strtoumax if
10229         REPLACE_STRTOUMAX.
10231 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10233         strtoimax: port to HP-UX 11.11
10234         Problem reported by Daniel Richard G.
10235         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
10236         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
10237         they might clash with inttypes.h.
10239 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10241         New module 'count-trailing-zeros'.
10242         * MODULES.html.sh: Mention it.
10243         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
10244         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
10245         * modules/count-trailing-zeros-tests:
10246         * tests/test-count-trailing-zeros.c:
10247         New files.
10249         count-leading-zeros: port to MSC; support types wider than 64 bits
10250         The ideas behind the MSC port are stolen from Emacs.
10251         * lib/count-leading-zeros.h:
10252         Don't include verify.h: it's no longer needed, as types wider than
10253         64 bits are now supported.
10254         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
10255         performance with MSC.  All uses changed.  Do not assume that TYPE
10256         has at most 64 bits.
10257         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
10258         All uses changed.  Fold the subtraction from 31 into the table.
10260         count-one-bits: port to MSC; support types wider than 64 bits
10261         The ideas behind the MSC port are stolen from Emacs.
10262         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
10263         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
10264         Don't include verify.h: it's no longer needed, as types wider than
10265         64 bits are now supported.
10266         (COUNT_ONE_BITS_GENERIC): New macro.
10267         (popcount_supported) [_MSC_VER]: New inline function.
10268         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
10269         performance with MSC.  All uses changed.  Do not assume that TYPE
10270         has at most 64 bits.
10271         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
10273 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
10275         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
10276         * lib/mountlist.c (read_file_system_list): fix leak of directory
10277         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
10279 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10281         tests: improve diagnostic when an assertion fails
10282         * tests/macros.h (ASSERT): Report the assertion that failed.
10284 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10286         verify: new macro 'assume'
10287         This is taken from Emacs, and should be generally useful.
10288         * doc/verify.texi (assume): Document it.
10289         * lib/verify.h (assume): New macro.
10290         (__has_builtin): Expand to 0 if not defined.
10292 2013-09-26  Eric Blake  <eblake@redhat.com>
10294         dup2, dup3: work around another cygwin crasher
10295         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
10296         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
10297         * tests/test-dup2.c (main): Likewise.
10298         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
10299         * lib/dup3.c (dup3): Likewise.
10300         * doc/posix-functions/dup2.texi (dup2): Document it.
10301         * doc/glibc-functions/dup3.texi (dup3): Likewise.
10303         getdtablesize: work around cygwin issue
10304         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
10305         * modules/getdtablesize (configure.ac): Build replacement.
10306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
10307         * modules/unistd (Makefile.am): Expose the witness.
10308         * lib/unistd.in.h (getdtablesize): Declare replacement.
10309         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
10310         * tests/test-getdtablesize.c (main): Test it.
10311         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
10313 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
10315         pmccabe2html: escaping of special characters
10316         Escape all '<', '>', and '&' in HTML output.
10317         * build-aux/pmccabe2html (html_fnc): Call gsub()
10318         instead of sub() to capture all '<', '>', and '&'.
10319         Neither of '<' and '>' is special in a regexp,
10320         so first arguments to gsub() are corrected. Also,
10321         in replacement strings, ampersand must be escaped.
10322         Finally, '&' must be handled first, then '<' and '>'.
10324 2013-09-24  Eric Blake  <eblake@redhat.com>
10326         manywarnings: enable nicer gcc warning messages
10327         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
10328         some -f options for optimal warnings.
10330 2013-09-21  Jim Meyering  <meyering@fb.com>
10332         timespec: use the new TIMESPEC_RESOLUTION in a few more places
10333         * lib/timespec-add.c (timespec_add): Also replace 999999999
10334         with TIMESPEC_RESOLUTION - 1.
10335         * lib/timespec-sub.c (timespec_sub): Likewise.
10337 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10339         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
10340         Problem reported by Dagobert Michelsen via Eric Blake in
10341         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
10342         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
10343         not AC_COMPILE_IFELSE.
10345 2013-09-23  Eric Blake  <eblake@redhat.com>
10347         configmake: support new --runstatedir option
10348         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
10349         even if autoconf was too old to provide the command line option.
10350         * modules/configmake (Makefile.am): Propagate it to .h file.
10352 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10354         ctype, string: depend on extern-inline
10355         This is needed to complete the recent OS X fixes.
10356         Also, fix related documentation as suggested by Eric Blake.
10357         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
10358         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
10359         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
10360         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
10361         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
10362         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
10363         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
10364         * doc/posix-functions/toupper.texi:
10365         List the 'ctype' gnulib module.
10366         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
10367         * doc/posix-functions/strncpy.texi:
10368         List the 'string' gnulib module.
10369         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
10370         Add string.
10371         * modules/ctype, modules/string (Depends-on): Add extern-inline.
10373 2013-09-19  Pádraig Brady  <P@draigBrady.com>
10375         userspec: support optional parameters to parse_user_spec()
10376         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
10377         then avoid group processing and treat the full spec as a user.
10378         (parse_with_separator): Allow the USERNAME and GROUPNAME to
10379         be optional params (NULL), in which case they're ignored.
10381 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
10383         timespec: new function make_timespec, and new constants
10384         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
10385         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
10386         (make_timespec): New function.
10387         * lib/dtotimespec.c (dtotimespec):
10388         * lib/timespec-add.c (timespec_add):
10389         * lib/timespec-sub.c (timespec_sub):
10390         * lib/utimens.c (validate_timespec):
10391         * lib/utimensat.c (rpl_utimensat):
10392         Use these new constants and functions.
10394         stdio: OS X port of putc_unlocked + extern inline
10395         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
10396         * doc/posix-functions/putc_unlocked.texi:
10397         * doc/posix-functions/putchar_unlocked.texi:
10398         Document this portability problem.
10400         signal: OS X port of sigaddset etc. + extern inline
10401         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
10402         (sigismember): #undef on problematic Apple platforms.
10403         * doc/posix-functions/sigaddset.texi:
10404         * doc/posix-functions/sigdelset.texi:
10405         * doc/posix-functions/sigemptyset.texi:
10406         * doc/posix-functions/sigfillset.texi:
10407         * doc/posix-functions/sigismember.texi:
10408         Document this portability problem.
10410         extern-inline: do not always suppress extern inline on OS X
10411         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
10412         extern inline on Apple only if the particular compile-time
10413         configuration is known to have the problem.
10414         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
10415         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
10416         other Gnulib modules.
10418         extern-inline: document fixes for ctype and wctype macros
10419         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
10420         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
10421         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
10422         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
10423         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
10424         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
10425         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
10426         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
10427         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
10428         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
10429         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
10430         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
10431         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
10432         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
10433         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
10434         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
10435         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
10436         * doc/posix-functions/strncpy.texi:
10437         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
10438         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
10439         Document that Gnulib fixes portability problems with these
10440         functions on OS X 10.8 and earlier when called from plain inline
10441         or extern inline functions.
10443 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
10445         fflush, freadahead, fseeko: Fix for Android
10446         Suggested by Bruno Haible in:
10447         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
10448         * lib/stdio-impl.h: Use local __sfileext definition.
10450 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
10452         pmccabe2html: Portability to other awk versions.
10453         The functions systime() and strftime() are available
10454         in Gawk only.  Properly close two HTML-tags 'style'
10455         and 'span'.
10456         * build-aux/pmccabe2html (BEGIN): Store timing
10457         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
10458         systime() in HTML_COMMENT.
10459         (html_header): Correctly close tag 'style'.
10460         (END): Replace strftime() by CHRONOS_TIME.  Close
10461         tag 'span' correctly, not as 'div'.
10463 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
10465         getgroups: statement without effect
10466         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
10467         Change equality conditional to expected assignment.
10469 2013-09-09  Eric Blake  <eblake@redhat.com>
10471         glob: fix compilation
10472         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
10474 2013-09-07  Eric Blake  <eblake@redhat.com>
10476         glob: fix build for platforms without __THROW
10477         * lib/glob.in.h (__THROW): Add definition again.
10479 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
10481         regex-quote: fix buffer access out of bounds
10482         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
10483         * lib/regex-quote.c (regex_quote_spec_pcre):
10484         Fix typo that resulted in an out-of-bounds read.
10486 2013-09-04  Eric Blake  <eblake@redhat.com>
10488         glob: avoid -Wattribute warnings on glibc
10489         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
10490         __THROWNL, not __THROW, on static functions.
10491         * lib/glob.in.h (__THROW): Adjust...
10492         (__THROWNL): ...accordingly.
10494 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
10496         headers: check that _GL_INLINE_HEADER_BEGIN is defined
10497         Suggested by Bruce Korb in:
10498         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
10499         * doc/extern-inline.texi (extern inline):
10500         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
10501         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
10502         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
10503         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
10504         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
10505         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
10506         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
10507         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
10508         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
10509         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
10510         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
10511         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
10512         * lib/xtime.h:
10513         Check that _GL_INLINE_HEADER_BEGIN is defined.
10515 2013-08-29  Pádraig Brady  <P@draigBrady.com>
10517         bootstrap: remove the --version requirement from ancillary tools
10518         * build-aux/bootstrap (check_exists): A new refactored function to
10519         determine if a command exists.
10520         (find_tool): Use the new function which does not require the
10521         --version option to be supported.
10522         (check_versions): Use the new function.
10524 2013-08-26  Simon Josefsson  <simon@josefsson.org>
10526         gc: support HMAC-SHA256 and HMAC-SHA512.
10527         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
10528         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
10529         functions.
10530         (gc_hmac_md5): Use symbolic constant.
10531         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
10532         (gc_hmac_sha256, gc_hmac_sha512): New functions.
10533         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
10534         * m4/sha256.m4: Protect against empty expansion.
10535         * m4/sha512.m4: Likewise.
10536         * lib/hmac-sha256.c: New file.
10537         * lib/hmac-sha512.c: Likewise.
10538         * m4/gc-hmac-sha256.m4: Likewise.
10539         * m4/gc-hmac-sha512.m4: Likewise.
10540         * m4/gc-sha256.m4: Likewise.
10541         * m4/gc-sha512.m4: Likewise.
10542         * modules/crypto/gc-hmac-sha256: Likewise.
10543         * modules/crypto/gc-hmac-sha256-tests: Likewise.
10544         * modules/crypto/gc-hmac-sha512: Likewise.
10545         * modules/crypto/gc-hmac-sha512-tests: Likewise.
10546         * modules/crypto/hmac-sha256: Likewise.
10547         * modules/crypto/hmac-sha256-tests: Likewise.
10548         * modules/crypto/hmac-sha512: Likewise.
10549         * modules/crypto/hmac-sha512-tests: Likewise.
10550         * tests/test-gc-hmac-sha256.c: Likewise.
10551         * tests/test-gc-hmac-sha512.c: Likewise
10552         * tests/test-hmac-sha256.c: Likewise.
10553         * tests/test-hmac-sha512.c: Likewise
10555 2013-08-24  Daiki Ueno  <ueno@gnu.org>
10557         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
10558         of AC_CHECK_DECLS.
10560 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10562         selinux-at: omit unnecessary include
10563         * lib/selinux-at.c: Don't include dosname.h; not needed, since
10564         this source file doesn't use its macros, and subsidiary files that
10565         use the macros already include it.
10567 2013-08-21  Eric Blake  <eblake@redhat.com>
10569         d-ino: avoid false negative on symlink
10570         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
10571         Reported by Stephane Chazelas.
10573 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
10575         bootstrap: port to OpenBSD sed
10576         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
10577         does not interpret `-' as a file argument to mean stdin.
10579 2013-08-15  Eric Blake  <eblake@redhat.com>
10581         warnings: minor optimization
10582         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
10584         warnings: check -Wfoo rather than -Wno-foo
10585         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
10586         -Wno-, test if the compiler recognizes the positive form instead.
10588 2013-08-15  Karl Berry  <karl@gnu.org>
10590         * config/srclist-update: add option "doclicense" to placate
10591         pulling *.texi files from Emacs.  Write terse usage
10592         documentation at the top.
10594 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
10596         xvasprintf-tests: port to GCC with hardening flags
10597         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
10598         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
10599         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
10601 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10603         fpending: port to recent Cygwin change to stdio_ext.h
10604         Reported by LRN in
10605         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
10606         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
10607         just declare __fpending unless it's a macro.
10608         A duplicate decl shouldn't hurt.
10609         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
10610         call compiles and links, instead of separately checking for
10611         decl and lib function.
10612         * modules/fpending (configure-ac):
10613         Adjust to fpending.m4's renaming of shell variable.
10615 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10617         sys_time: port to OpenBSD
10618         * lib/sys_time.in.h: Simply delegate to the system's header
10619         in the BSDish cases as well.  Problem reported by Mike Miller in
10620         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
10621         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
10622         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
10623         wider than time_t.
10625 2013-08-09  Pádraig Brady <P@draigBrady.com>
10627         bootstrap: support checksum utils having -c but not --status
10628         * build-aux/bootstrap: Only look for sha1sum if updating po files.
10629         Add sha1 to the list of supported checksum utils since it's now
10630         supported through adjustments below.
10631         (update_po_files): Remove the use of --status
10632         in a way that will suppress all error messages, but since this is
10633         only used to minimize updates, it shouldn't cause an issue.
10634         Exit early if there is a problem updating the po file checksums.
10635         (find_tool): Remove the check for --version support as this
10636         is optional as per commit 86186b17.  Don't even check for the
10637         presence of the command as if that is needed, it's supported
10638         through configuring prerequisites in bootstrap.conf.
10639         Prompt that when a tool isn't found, one can define an environment
10640         variable to add to the hardcoded search list.
10642 2013-08-05  Jim Meyering  <meyering@fb.com>
10644         regex: port to non-glibc/lock-using systems
10645         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
10646         system with GNULIB_LOCK would fail due to absence of the
10647         included "glthread/lock.h".  This would affect any package
10648         for which the "lock" module is used only by the regex module,
10649         and not explicitly used.
10650         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
10651         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
10652         Add a dependency on the "lock" module.
10654 2013-07-20  Daiki Ueno  <ueno@gnu.org>
10656         localecharset: make locale_charset thread-safe on Mac OS X
10657         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
10658         instead of MB_CUR_MAX.
10660 2013-07-20  Daiki Ueno  <ueno@gnu.org>
10662         gettext: update to version 0.18.3
10663         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
10664         require AC_PROG_SED to allow user to specify custom sed command when
10665         generating en@quot PO file.
10667 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
10669         bootstrap: use correct source when copying build-aux files
10670         * build-aux/bootstrap (gnulib_extra_files): This variable is
10671         relative to upstream gnulib layout, not downstream.
10673 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
10675         tmpdir: fix bug in VMS port
10676         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
10677         See Steven M. Schweda in
10678         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
10680 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10682         tmpdir: port to VMS, to // != /, and to long dirs
10683         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
10684         __secure_getenv, so that we're more like the glibc version.
10685         All uses changed.
10686         (path_search): Don't put slash after directory if __VMS.
10687         Problem reported by Steven M. Schweda in
10688         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
10689         Simplify code to add slash; no need for a loop.
10690         Do not remove trailing slash from "//".
10691         Do not assume dlen <= INT_MAX.
10693 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10695         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
10696         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
10697         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
10698         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
10700         accept4, dup3, pipe2: port to Cygwin
10701         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
10702         * lib/accept4.c (accept4) [O_BINARY]:
10703         * lib/dup3.c (dup3) [O_BINARY]:
10704         * lib/pipe2.c (pipe2) [O_BINARY]:
10705         Use set_binary_mode, not setmode.
10706         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
10707         * modules/binary-io (Depends-on): Remove module indicator.
10708         These last two bits undo the previous change to pipe2 and binary-io.
10710 2013-07-09  Pádraig Brady  <P@draigBrady.com>
10712         mountlist: add support for deallocating returned list entries
10713         * lib/mountlist.c (free_mount_entry): A new exported function
10714         to deallocate a mount list entry.
10715         (read_file_system_list): Refactor to use the new deallocation function.
10716         Suggested by Anton Ovchinnikov.
10718 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
10720         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
10721         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
10722         * lib/stdalign.in.h (_Alignas, _Alignof):
10723         Port to FreeBSD 9.1, and to C11 and C++11.
10724         (_Alignas): Also support ICC.
10725         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
10726         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
10728 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10730         fnmatch: don't goto over declaration
10731         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
10732         undefined behavior for goto over a declaration.
10733         Problem reported by Charlie Brown in
10734         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
10736         pipe2: decouple from binary-io a bit
10737         This is for Emacs, which needs pipe2 but not binary-io.
10738         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
10739         * modules/binary-io (Depends-on): Add module indicator.
10741 2013-07-03  Eric Blake  <eblake@redhat.com>
10743         mgetgroups: relax license to LGPLv2+
10744         * modules/getugroups (License): Change from GPLv3+.
10745         * modules/mgetgroups (License): Likewise.
10746         * modules/getgroups (License): Change from LGPLv3+.
10748         xalloc-oversized: relax license to LGPLv2+
10749         * modules/xalloc-oversized (License): Change from GPLv3+.
10751         nproc: relax license to LGPLv2+
10752         * modules/nproc (License): Change from LGPLv3+.
10754         bootstrap: honor --no-git
10755         * build-aux/bootstrap: Don't even try to use git when user is
10756         pointing to a static checkout.
10758 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10760         ignore-value: port to gcc -pedantic
10761         * lib/ignore-value.h (ignore_value):
10762         Port to gcc -pedantic, by using __extension__.
10763         Reindent as per usual gnulib style nowadays.
10764         Simplify GCC version check.
10766 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
10768         extern-inline: port to gcc -std=c89
10769         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
10770         Do not use __gnu_inline__ if pedantic and pre-C99.
10772 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
10774         doc: document extern-inline
10775         * doc/extern-inline.texi: New file.
10776         * doc/gnulib.texi (alloca-opt): Include it.
10777         * m4/extern-inline.m4: Move some comments to documentation,
10778         and others closer to what they describe.
10780         doc: chatter less
10781         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
10782         (updated-stamp): Use it.  This causes 'make' to output just
10783         one file name rather than zillions.
10785         fflush, fseeko: port to musl cross-compiles
10786         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
10787         on some implementation that (1) is not known to be buggy,
10788         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
10789         cross-compiled to so we can't easily check for lack of
10790         conformance.  This is for cross-compiling to musl.
10791         Reported by Rich Felker in
10792         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
10793         * m4/fclose.m4 (gl_FUNC_FCLOSE):
10794         * m4/fflush.m4 (gl_FUNC_FFLUSH):
10795         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
10796         Adjust to above change.
10797         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
10798         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
10799         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
10800         known not to work, or unknown.
10802 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10804         msvc-inval: port to mingw-w64
10805         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
10806         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
10807         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
10809 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
10811         getcwd-lgpl: port to Tru64
10812         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
10813         Problem reported by Steven M. Schweda in
10814         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
10816         tests: port large-fd POSIX spawn tests to OS X
10817         Problem reported by Daiki Ueno in
10818         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
10819         * tests/test-posix_spawn_file_actions_addclose.c:
10820         * tests/test-posix_spawn_file_actions_adddup2.c:
10821         * tests/test-posix_spawn_file_actions_addopen.c:
10822         Include <limits.h>, for OPEN_MAX, if available.
10823         (big_fd): New static function.
10824         (main): Use it.
10826 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
10828         tests/nap.h: use an adaptive delay to avoid ctime update issues
10829         The recent change in nap.h (5191133e) decreased the probability of lost
10830         races to about a third, however such problems could still be observed
10831         in virtual machines and openSUSE's OBS.
10832         Before, nap() detected the needed time once empirically and then used
10833         that delay (together with a small correction multiplier) in further
10834         calls.  This problem has been reported and discussed several times,
10835         including guesses about possible kernel issues:
10836         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
10837         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
10838         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
10839         http://bugs.gnu.org/12820
10840         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
10841         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
10842         Now, nap() avoids the race alltogether by verifying on a reference
10843         file whether a timestamp difference has happened.
10844         * tests/nap.h (nap_fd): Define file descriptor variable for the
10845         witness file.
10846         (nap_works): Change return value to bool.  Change passing
10847         the old file's status by value instead of by reference as this function
10848         does no longer update that timestamp; rename the function argument from
10849         st to old_st.  Remove the local variables cdiff and mdiff because that
10850         function now returns true/false instead of the precise delay.
10851         (guess_delay): Remove function.
10852         (clear_tmp_file): Add new function to close and unlink the witness file.
10853         (nap): Instead of re-using the delay which has been calculated during
10854         the first call, avoid the race by actually verifying that a timestamp
10855         difference can be observed on the current file system.  Use an adaptive
10856         approach for the delay to minimize execution time.  Assert that the
10857         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
10858         = 2^31 - 1 = 2.1s.
10859         Use atexit to call clear_tmp_file when the process terminates.
10861 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10863         sig2str: port to C++
10864         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
10865         Reported by Daniel J Sebald in
10866         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
10868 2013-05-30  Eric Blake  <eblake@redhat.com>
10870         docs: mention cygwin shortcoming in <sys/un.h>
10871         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
10873         vasnprintf: silence mingw compiler warning
10874         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
10876 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10878         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
10879         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
10880         This fixes a porting bug I recently reintroduced in regex, and
10881         some other instances that I discovered while testing the fix.
10882         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
10883         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
10884         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
10885         with an empty argument if this is a pedantic pre-C99 GCC.
10886         * lib/verify.h: Do not use _Static_assert if this is a pedantic
10887         pre-C11 GCC.
10889         regex: adapt to locking regime instead of depending on pthread
10890         Instead of depending on pthread, adapt to whatever thread
10891         modules are in use.  Problem reported by Ludovic Courtès in
10892         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
10893         and by Mats Erik Andersson in
10894         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
10895         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
10896         Support either the 'lock' module, or the 'pthread' module, or
10897         no module.
10898         (lock_lock, lock_unlock): New macros.
10899         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
10900         * modules/lock, modules/pthread (configure.ac): Add module indicator.
10901         * modules/regex (Depends-on): Remove pthread.
10903 2013-05-22  Eric Blake  <eblake@redhat.com>
10905         getgroups: document portability issues
10906         * doc/glibc-functions/initgroups.texi (initgroups): Mention
10907         multithread safety.
10908         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
10909         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
10910         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
10911         getugroups.
10912         * doc/posix-functions/getgroups.texi (getgroups): Mention
10913         multithread safety and mgetgroups.
10915 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
10917         test-lchown, test-chown: also skip test if chown fails with EPERM
10918         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
10919         skip this test, to handle FAT file systems.
10920         * tests/test-chown.h (test_chown): Likewise.
10922 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10924         regex: fix dfa race in multithreaded uses
10925         Problem reported by Ludovic Courtès in
10926         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
10927         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
10928         New macros.  All uses of __libc_lock_define, __libc_lock_init
10929         changed to use the first two of these.
10930         (__libc_lock_lock, __libc_lock_unlock): New macros, for
10931         non-glibc platforms.
10932         (struct re_dfa_t): Define the lock unconditionally.
10933         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
10934         '#ifdef _LIBC"s.
10935         * modules/regex (Depends-on): Add pthread, if we use the
10936         included regex.
10938         * lib/regcomp.c: Do actions that are not needed for glibc,
10939         but may be needed elsewhere.
10940         (regfree, re_compile_internal): Destroy the lock.
10941         (re_compile_internal): Check for lock-initialization failure.
10943         malloca: port to compilers that reject size-zero arrays
10944         This fixes a bug introduced in my previous patch.
10945         * lib/malloca.c (struct preliminary_header): Use an int
10946         rather than a character array of size int; that's simpler.
10947         (struct header): Remove, replacing with ...
10948         (union header): New type.  This avoids the need for declaring a
10949         character array of size zero, which is not allowed on some platforms.
10950         All uses changed.
10952 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
10954         parse-datetime, tests: don't use "string" + int
10955         Recent versions of 'clang' complain about C source code that
10956         uses expressions of the form '"string literal" + integer',
10957         I guess on the theory that it's confusing for readers who are
10958         used to C++.  On those grounds I suppose it's OK to make this
10959         minor style change.
10960         * lib/parse-datetime.y (parse_datetime):
10961         * tests/test-fchdir.c (main):
10962         * tests/test-snprintf-posix.h (test_function):
10963         * tests/test-snprintf.c (main):
10964         * tests/test-vasnprintf-posix.c (test_function):
10965         * tests/test-vasnprintf.c (test_function):
10966         * tests/test-vsnprintf.c (main):
10967         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
10968         Rewrite '"str" + E' to '&"str"[E]'.
10970 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
10972         argmatch: port to C++
10973         * lib/argmatch.h [__cplusplus]: Add extern "C".
10975         argp: typo fix
10976         * lib/argp-help.c: Typo in comment.
10978 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
10980         manywarnings: update for GCC 4.8.0
10981         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
10982         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
10983         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
10984         -Wmissing-noreturn, as they are duplicates of other warnings.
10985         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
10986         was documented to be flaky in earlier versions of GCC.
10988         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
10989         * tests/test-spawn.c (main):
10990         * tests/test-sys_socket.c (main):
10991         * tests/test-sys_wait.c (main):
10992         Don't have a switch value that isn't covered by a case.
10994         getaddrinfo-tests: port --enable-gcc-warnings to clang
10995         * tests/test-getaddrinfo.c (simple):
10996         Avoid casts from looser to stricter-aligned pointers.
10998         thread: port --enable-gcc-warnings to clang
10999         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
11000         Include <signal.h>, to pacify a warning about pthread_sigmask.
11002         stdio: use __REDIRECT for fwrite, fwrite_unlocked
11003         * lib/stdio.in.h (fwrite):
11004         When working around bug 11959, use __REDIRECT rather than '#define
11005         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
11006         fix the -Wunused-value issue with clang, and it works with GCC too.
11007         Problem with targeting reported by Eric Blake in
11008         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
11009         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
11010         debugging the fwrite issue.
11012         stdio: port --enable-gcc-warnings to clang
11013         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
11014         since the GCC workaround for fwrite does not pacify clang.
11016         sig2str: port --enable-gcc-warnings to clang
11017         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
11019         obstack: port --enable-gcc-warnings to clang
11020         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
11021         Avoid casts from looser to stricter-aligned pointers.
11023         memchr2: port --enable-gcc-warnings to clang
11024         * lib/memchr2.c (memchr2):
11025         Avoid casts from looser to stricter-aligned pointers.
11027         mbsstr: port --enable-gcc-warnings to clang
11028         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
11029         Avoid casts from looser to stricter-aligned pointers.
11031         malloca: port --enable-gcc-warnings to clang
11032         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
11033         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
11035         inttostr: port --enable-gcc-warnings to clang
11036         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
11038         warnings: port to clang
11039         Problem reported by Daniel P. Berrange via Eric Blake in
11040         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
11041         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
11042         (gl_WARN_ADD): Use it.
11044 2013-05-11  Jim Meyering  <meyering@fb.com>
11046         quotearg: do not read beyond end of buffer
11047         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
11048         end of an ARG for which no length was specified.  With an N-byte
11049         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
11050         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
11051         via coreutils' misc/sort-debug-keys.sh test and detected by running
11052         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
11053         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
11054         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
11055         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
11056         characters correctly."
11058 2013-05-11  Daiki Ueno  <ueno@gnu.org>
11060         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
11061         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
11062         compilation target is Mac OS X 10.6.
11063         Problem reported by parafin and Andoni Morales in
11064         <http://savannah.gnu.org/bugs/?37844> and
11065         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
11067 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
11069         mkdir-p: remove assumptions about umask and mode
11070         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
11071         umask is 0, or that MODE is a subset of MODE_BITS.
11073 2013-05-10  Eric Blake  <eblake@redhat.com>
11075         maint.mk: catch more abuse of HAVE_DECL in syntax-check
11076         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
11078 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
11080         deps: require Automake >= 1.9.6 in generated Makefile fragments
11082         That is the same minimal version required in the DEPENDENCIES file.
11083         Moreover, the old code generated a requirement of Automake >= 1.5,
11084         and that is an insanely outdated version.
11086         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
11087         * tests/havelib/rpathlx/Makefile.am: Likewise.
11088         * tests/havelib/rpathly/Makefile.am: Likewise.
11089         * tests/havelib/rpathlyx/Makefile.am: Likewise.
11090         * tests/havelib/rpathlz/Makefile.am: Likewise.
11091         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
11092         * tests/havelib/rpathx/Makefile.am: Likewise.
11093         * tests/havelib/rpathy/Makefile.am: Likewise.
11094         * tests/havelib/rpathz/Makefile.am: Likewise.
11096 2013-05-08  Eric Blake  <eblake@redhat.com>
11098         bootstrap: AC_INIT may have more than four parameters
11099         * build-aux/bootstrap (extract_package_name): Correctly extract
11100         non-empty tarname field.  Avoid range in regex.
11101         Based on a report by Sami Kerola <kerolasa@iki.fi>.
11103 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11105         qacl: port to MS-Windows port of GNU Emacs
11106         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
11107         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
11108         port of GNU Emacs.  Problem reported by Eli Zaretskii in
11109         <http://bugs.gnu.org/14295#14>.
11111 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
11113         acl: include quote.h
11114         * lib/copy-acl.c: Include quote.h.
11115         * lib/set-acl.c: Likewise.
11117 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
11119         fchownat, renameat, unlinkat: update statat dependencies
11120         These modules use statat and lstatat, not fstatat; so depend on
11121         the statat module, which was split out recently from fstatat.
11122         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
11123         * modules/renameat: Likewise.  Also delete fstat.
11124         URL: http://bugs.gentoo.org/468790
11126 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
11128         Assume gnulib is checked out from Git, not CVS
11130         In fact, access to the gnulib repository through CVS has been
11131         disabled, or more precisely, got broken and was never restored; see:
11132         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
11134         Note that support for CVS is not removed completely and unthinkingly
11135         by this change: only support for CVS checkouts of gnulib itself is
11136         removed.  For example, the 'bootstrap' script still cater to .cvsingore
11137         files and CVS directories, for the benefit of those poor gnulib clients
11138         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
11140         * gnulib-tool: Simplify accordingly.
11141         * posix-modules: Likewise.
11142         * MODULES.html.sh: Likewise.
11143         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
11144         repository.
11145         * doc/gnulib-intro.texi: Likewise.
11146         * doc/gnulib-readme.texi: Likewise.
11147         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
11148         sample '.gitignore' file rather than a sample '.cvsignore'.
11149         * NEWS: Update.
11150         * m4/extensions.m4: While at it, remove a comment mistakenly referring
11151         to "CVS Autoconf" rather than "git Autoconf".
11153 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
11155         utimensat-tests, etc.: try to fix some races
11156         Problem reported by Bernhard Voelker in
11157         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
11158         I don't know whether this patch fixes that race condition, but it
11159         fixes *some* race conditions, so it should be a win.
11160         * modules/chown-tests (Depends-on):
11161         * modules/fchownat-tests (Depends-on):
11162         * modules/fdutimensat-tests (Depends-on):
11163         * modules/futimens-tests (Depends-on):
11164         * modules/lchown-tests (Depends-on):
11165         * modules/stat-time-tests (Depends-on):
11166         * modules/utimens-tests (Depends-on):
11167         * modules/utimensat-tests (Depends-on):
11168         Depend on nanosleep, not usleep.
11169         * modules/chown-tests (test_chown_LDADD):
11170         * modules/lchown-tests (test_lchown_LDADD):
11171         * modules/stat-time-tests (test_stat_time_LDADD):
11172         New macro.
11173         * modules/fchownat-tests (test_fchownat_LDADD):
11174         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
11175         * modules/futimens-tests (test_futimens_LDADD):
11176         * modules/utimens-tests (test_utimens_LDADD):
11177         * modules/utimensat-tests (test_utimensat_LDADD):
11178         Add $(LIB_NANOSLEEP).
11179         * modules/stat-time-tests (Files): Add tests/nap.h.
11180         * tests/nap.h: Include <limits.h>, for INT_MAX.
11181         (lt_mtime): Remove.
11182         (diff_timespec): New function.
11183         (get_stat): Rename from get_mtime.  All callers changed.
11184         (nap_works): Determine the needed delay by inspecting the
11185         file system's timestamp jumps; this should be more reliable.
11186         Look at both mtime and ctime, and take the maximum of the two jumps.
11187         (nap_works, guess_delay):
11188         Return a nanosecond count, not a microsecond count.
11189         All callers changed.
11190         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
11191         failure.
11192         (nap): Multiply the guess by 1.125, to accommodate the case where
11193         the file system's clock is a bit slower than nanosleep's clock.
11194         * tests/test-stat-time.c (BASE): New macro.
11195         Include nap.h.
11196         (nap): Remove; nap.h now defines this.  This removes a duplicate
11197         implementation of 'nap'.
11199         utimens, utimensat: work around Solaris UTIME_OMIT bug
11200         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
11201         Linux kernel 2.6.32 does.  Work around it in the same way.
11202         * doc/posix-functions/futimens.texi (futimens):
11203         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
11204         * lib/utimens.c (fdutimens, lutimens):
11205         * lib/utimensat.c (rpl_utimensat): Work around the bug.
11207         gettext: now it's your responsibility to add -I$(top_builddir)/intl
11208         Formerly, it was your responsibility to do this for all Makefile.ams
11209         other than Gnulib's.  Now it's your responsibility to do it for
11210         Gnulib's Makefile.am, too.
11211         * NEWS: Document this.
11212         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
11214         acl: include errno.h to get errno
11215         Reported by Daiki Ueno in
11216         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
11217         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
11219 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
11221         tests: don't assume getdtablesize () <= 10000000
11222         * modules/cloexec-tests:
11223         * modules/dup2-tests:
11224         * modules/dup3-tests:
11225         * modules/nonblocking-tests:
11226         * modules/posix_spawn_file_actions_addclose-tests:
11227         * modules/posix_spawn_file_actions_adddup2-tests:
11228         * modules/posix_spawn_file_actions_addopen-tests:
11229         * modules/unistd-safer-tests:
11230         Depend on the getdtablesize module.
11231         * tests/test-cloexec.c:
11232         * tests/test-dup-safer.c:
11233         * tests/test-dup2.c:
11234         * tests/test-dup3.c:
11235         * tests/test-fcntl.c:
11236         * tests/test-nonblocking.c:
11237         * tests/test-posix_spawn_file_actions_addclose.c:
11238         * tests/test-posix_spawn_file_actions_adddup2.c:
11239         * tests/test-posix_spawn_file_actions_addopen.c:
11240         Don't assume getdtablesize () <= 10000000.
11242 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
11244         extern-inline: work around bug in Sun c99
11245         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
11246         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
11248 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
11250         qacl: new module, broken out from the acl module
11251         This is for GNU Emacs, which wants the acl functions but does
11252         not want 'error' invoked when they fail.
11253         * lib/acl-internal.h: Do not include error.h, quote.h.
11254         (ENOSYS, ENOTSUP): Remove; no longer needed.
11255         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
11256         * lib/acl.h: Include <stdbool.h>.
11257         (acl_errno_valid): New function.
11258         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
11259         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
11260         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
11261         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
11262         (ACL_INTERNAL_INLINE): Remove; no longer needed.
11263         * lib/file-has-acl.c (file_has_acl):
11264         * lib/qcopy-acl.c (qcopy_acl):
11265         * lib/qset-acl.c (qset_acl):
11266         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
11267         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
11268         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
11269         lib/file-has-acl.c, m4/acl.m4 to qacl module.
11270         Add lib/set-acl.c.
11271         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
11272         Add qacl.
11273         (configure.ac): Move gl_FUNC_ACL to qacl module.
11274         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
11275         Rename set-mode-acl.c to set-acl.c.
11276         * lib/acl-errno-valid.c: New file.
11277         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
11278         copy_acl function remains in copy-acl.c.
11279         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
11280         (_): Remove; not needed.
11281         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
11282         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
11283         * modules/qacl: New file, moved from the old modules/acl.
11284         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
11285         Remove set-mode-acl.c, copy-acl.c.
11286         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
11288         alignof, intprops, malloca: port better to IBM's C compiler
11289         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
11290         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
11291         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
11293 2013-04-25  Daiki Ueno  <ueno@gnu.org>
11295         wctype-h: fix gettext link error on mingw
11296         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
11297         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
11298         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
11299         rpl_towupper and rpl_towupper.
11301 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
11303         regex-tests, regex: allow glibc re_search behavior
11304         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
11305         re_search input data to make the multi-character collating element
11306         in it clearly visible, and treat re_search return code 0 as valid.
11307         * m4/regex.m4 (gl_REGEX): Likewise.
11309 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
11311         stdalign: doc fix
11312         * doc/posix-headers/stdalign.texi (stdalign.h):
11313         Gnulib doesn't support '_Alignof expr'.
11315 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
11317         stdalign: port to stricter ISO C11
11318         ISO C11 says that _Alignof's operand must be a parenthesized type.
11319         Problem reported by Eli Zaretskii in
11320         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
11321         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11322         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
11324 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
11326         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
11327         Problem reported by Marco Atzeri in
11328         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
11329         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
11330         Simply delegate to the system <sys/select.h> in this case too.
11331         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
11332         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
11333         be needed on Solaris either.
11334         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
11335         Simply delegate to the system <sys/time.h> in this case.
11337 2013-03-19  Karl Berry  <karl@gnu.org>
11339         * build-aux/gnupload: check for erroneous (with gnupload) use of
11340         ftp-upload.gnu.org, tweak help.
11342 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11344         copy-file, rpmatch: fix problems found by cppcheck
11345         Reported by Arno Onken in
11346         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
11347         * lib/rpmatch.c (try): Fix memory leak.
11348         * lib/copy-file.c: Include "ignore-value.h".
11349         (qcopy_file_preserving): Ignore chown value.
11350         * modules/copy-file (Depends-on): Add ignore-value.
11352 2013-01-27  Jim Meyering  <jim@meyering.net>
11354         prefix-gnulib-mk: give better diagnostics
11355         * build-aux/prefix-gnulib-mk: Don't just "die".
11356         Give better diagnostics upon failure.
11358 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
11360         putenv: port to Solaris 10
11361         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
11362         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
11363         is not what is wanted here.
11364         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
11365         declaration, not for its existence.
11367 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
11369         mktime: fix configure typo
11370         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
11372 2013-03-12  Eric Blake  <eblake@redhat.com>
11374         regex-tests: skip UTF-8 test on mingw
11375         * modules/regex-tests (Depends-on): Add localcharset.
11376         * tests/test-regex.c (main): Use it to skip test on mingw.
11378 2013-03-11  Eric Blake  <eblake@redhat.com>
11380         tests: make it easier to bypass alarm time in debugger
11381         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
11382         * tests/test-memmem.c (main): Likewise.
11383         * tests/test-passfd.c (main): Likewise.
11384         * tests/test-ptsname.c (main): Likewise.
11385         * tests/test-ptsname_r.c (main): Likewise.
11386         * tests/test-strcasestr.c (main): Likewise.
11387         * tests/test-strstr.c (main): Likewise.
11389         regex: port to mingw's recent addition of undeclared alarm
11390         * doc/posix-functions/alarm.texi (alarm): Document that alarm
11391         exists but still doesn't work in newer mingw.
11392         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
11393         not existence.  Ensure SIGALRM is not trapped.
11394         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
11395         * m4/regex.m4 (gl_REGEX): Likewise.
11396         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
11397         * tests/test-regex.c (main): Use correct probe for alarm.
11399         putenv: avoid compilation warning on mingw
11400         * lib/putenv.c (_unsetenv): Protect variable declaration.
11401         (putenv): Fix indentation.
11403 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
11405         unistd: don't prevent Tru64 Unix from using gnulib strtod.
11406         * lib/unistd.in.h: be careful not to include un-needed system
11407         stdlib.h from here, because that prevents gnulib stdlib.h from
11408         defining rpl_strtod correctly.
11410 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
11412         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
11413         changesets, but for the 'precision 0' test.
11414         * tests/test-vasprintf-posix.c (test_function): Don't insist on
11415         round-to-even, since POSIX says rounding is implementation-defined
11416         and OS X 10.8.2 rounds 1.51 to 1 here.
11418         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
11419         changeset.
11420         * tests/test-vasprintf-posix.c (test_function): Don't insist on
11421         round-to-even, since POSIX says rounding is implementation-defined
11422         and OS X 10.8.2 rounds 1.5 to 1 here.
11424 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
11426         vasnprintf-posix-tests: allow rounding 1.5 to 1
11427         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
11428         round-to-even, since POSIX says rounding is implementation-defined
11429         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
11430         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
11432         bootstrap: port to FreeBSD
11433         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
11434         that treat '--' differently.  Reported by Mats Erik Andersson in
11435         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
11437 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
11439         regex: rename remaining __attribute calls to __attribute__.
11440         2012-02-25 changed definition of __attribute, but left some uses
11441         unchanged, preventing compilation of regex module on most non-gcc
11442         environments.
11443         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
11444         (lookup_collation_sequence_value, build_range_exp)
11445         (build_collating_symbol): Set attributes with newly renamed
11446         __attribute__ decorator.
11447         * lib/regex_internal.c (re_string_peek_byte_case)
11448         (re_node_set_compare, re_node_set_contains): Likewise.
11449         * lib/regexec.c (acquire_init_state_context): Likewise.
11451 2013-03-06  Bruno Haible  <bruno@clisp.org>
11453         execute: Revert last change, but use a different condition.
11454         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
11455         on Windows.
11457 2013-03-05  Eric Blake  <eblake@redhat.com>
11459         execute: drop dead code
11460         * lib/execute.c (nonintr_close, nonintr_open): Delete.
11462 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
11464         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
11465         * m4/non-recursive-gnulib-prefix-hack.m4
11466         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
11467         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
11468         <http://bugs.gnu.org/10305#237>.
11470 2013-03-04  Eric Blake  <eblake@redhat.com>
11472         test-getsockopt: avoid compiler warning
11473         * tests/test-getsockopt.c (includes): Ensure close is declared.
11475 2013-03-02  Bruno Haible  <bruno@clisp.org>
11477         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
11478         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
11480 2013-03-02  Bruno Haible  <bruno@clisp.org>
11482         gettext: Update to version 0.18.2.
11483         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
11484         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
11485                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
11487 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11489         regex: merge patches from libc
11491         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11492         * lib/regex_internal.h (__attribute__): Rename from __attribute.
11493         All uses changed.
11494         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
11495         (re_string_wchar_at, re_string_elem_size_at):
11496         Mark function as possibly unused.
11498         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
11499         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
11500         elements compare against the byte sequence of it, not its name.
11502 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
11504         putenv: port better to native Windows
11505         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
11506         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
11507         (_unsetenv): Use _putenv if available.
11508         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
11509         a bit less likely to cause damage.
11510         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
11511         Fix the wrong value with SetEnvironmentVariable.
11512         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
11513         code better.
11515 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
11517         regex: ignore old-style-definition warnings
11518         * lib/regex.c: Add pragma to ignore these warnings.
11519         Problem reported for GNU tar by Pavel Raiskup.
11521 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
11523         getcwd: support coreutils better
11524         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
11525         but this might not be correct in coreutils, which disables
11526         the raw decl checks.  Problem reported by Nagendra in
11527         <http://bugs.gnu.org/10305#192>.
11528         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
11529         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
11530         Test the getcwd function, not any macro, since getcwd.c wants the
11531         function.
11532         * m4/getcwd.m4 (gl_FUNC_GETCWD):
11533         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
11534         compile, as might happen if there's a macro but no function.
11536         strtod: support coreutils better
11537         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
11538         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
11539         disables the raw decl checks.  This assumes there is an underlying
11540         strtod, but that's a safe assumption these days.
11541         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
11543         mountlist: port to HP NonStop
11544         Reported by Joachim Schmitz in
11545         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
11546         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
11547         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
11549 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
11551         extern-inline: avoid compilation error with HP-UX cc
11552         Reported by Richard Lloyd in
11553         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
11554         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
11555         Suppress extern inline with HP-UX cc.  This should be safe,
11556         though it may hurt performance.  Perhaps someone with some HP-UX
11557         experience can come up with a higher-performance fix.
11559 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
11561         putenv: fix heap corruption with mixed putenv/_putenv
11562         Problem reported by Michael Goffioul in
11563         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
11564         * lib/putenv.c (putenv) [HAVE__PUTENV]:
11565         Rely on _putenv to allocate the new environment.
11566         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
11567         * modules/putenv (configure.ac): Use it.
11569 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
11571         unsetenv etc.: port to Solaris 11 + GNU Emacs
11572         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
11573         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
11574         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
11575         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
11576         idea but is too painful to fix right now), and without this gnulib
11577         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
11578         compiling unsetenv.c on Solaris 11.  Fix the problem for
11579         unsetenv.c, and fix other similar occurrences.
11581 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11583         secure_getenv: fix C++ declaration typo
11584         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
11585         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
11586         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
11588 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11590         careadlinkat: stop exporting careadlinkatcwd
11591         Only Emacs used it directly, and Emacs no longer needs it.
11592         * NEWS: Document this simplification.
11593         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
11594         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
11595         for readlink.
11596         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
11597         Don't include stdlib.h; no longer needed.
11598         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
11599         * lib/relocwrapper.c: Adjust comment to match new dependencies.
11600         * modules/areadlink (Depends-on): Add readlink.
11601         (Maintainer): Add self.
11602         * modules/careadlinkat (Depends-on): Remove readlink.
11604         extensions: port better to HP-UX
11605         This is merged from git Autoconf.
11606         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
11607         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
11608         so that it's compatible with the value used when compiling.
11610         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
11611         Problem reported by Mats Erik Andersson in
11612         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
11613         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
11614         openpty function exists, not merely when we intend to replace it.
11615         This corrects the 2013-01-31 patch, which mistakenly defined
11616         HAVE_OPENPTY even on hosts that lacked it.
11618 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
11620         secure_getenv: fix include typo
11621         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
11623         secure_getenv: port better to FreeBSD and Solaris
11624         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
11625         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
11626         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
11627         This works better on BSDish platforms.
11628         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
11629         Test for issetugid if __secure_getenv is missing.
11631 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11633         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
11634         Some of these changes are merged in from git Autoconf.
11635         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
11636         When deciding whether to define _XOPEN_SOURCE, inspect the
11637         preprocessor macro __hpux instead of the more-heavyweight
11638         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
11639         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
11640         as the key for __EXTENSIONS__.
11642         unistd: avoid namespace pollution on non-glibc systems
11643         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
11644         This avoids namespace pollution on non-glibc systems, by causing
11645         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
11646         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
11647         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
11649 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11651         tmpdir: use secure_getenv
11652         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
11653         Define to secure_getenv, not getenv.
11654         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
11655         as that's now secure_getenv's job.
11656         * modules/tmpdir (Depends-on): Add secure_getenv.
11658         tempname: use secure_getenv
11659         * lib/tempname.c (__secure_getenv) [!_LIBC]:
11660         Define to secure_getenv, not getenv.
11661         * modules/tempname (Depends-on):
11662         Add secure_getenv.
11664         secure_getenv: new module
11665         * MODULES.html.sh (Extra functions based on ANSI C 89):
11666         Add secure_getenv.
11667         * doc/glibc-functions/secure_getenv.texi: New file.
11668         * doc/gnulib.texi: Include it.
11669         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
11670         New files.
11671         * lib/stdlib.in.h (secure_getenv): New decl.
11672         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
11673         * modules/stdlib (stdlib.h):
11674         Add secure_getenv checks.
11676 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
11678         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
11679         Reported for OS X 10.8.2 by Assaf Gordon in
11680         <http://bugs.gnu.org/13516>.
11681         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
11682         !HAVE_OPENAT && !HAVE_FDOPENDIR.
11683         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
11684         so that they can be kept in sync more easily.  Avoid PATH_MAX
11685         test on the Hurd.  Sync from test-getcwd.c for errno tests after
11686         mkdir or chdir failure.
11687         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
11688         lib/getcwd.c.
11689         (test_abort_bug): Do not test for the deep directory bug unless we
11690         have openat support.  Avoid PATH_MAX test on the Hurd.
11692         regex-tests, regex: fix bug: memset undeclared
11693         * tests/test-regex.c: Don't include regex.h twice.  Include
11694         string.h, to declare memset.  Christensen's report also mentioned
11695         this issue.
11696         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
11697         test-regex.c, to avoid future problems like this.  Remove
11698         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
11699         twice.
11701         regex-tests: fix link errors on older Solaris
11702         These need to link with @LIBINTL@ to get libintl_gettext.
11703         Problem reported by Tom G. Christensen in
11704         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
11705         * modules/regex-tests (test_regex_LDADD): New macro.
11707 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
11709         regex-tests: new module
11710         * modules/regex-tests, tests/test-regex.c: New files.
11712         regex: fix off-by-one error in configure test
11713         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
11715 2013-01-31  Eric Blake  <eblake@redhat.com>
11717         regex: avoid infinite configure test
11718         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
11720 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
11722         openpty: fix bug where HAVE_OPENPTY wasn't defined
11723         See the thread starting at:
11724         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
11725         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
11726         openpty function exists, not merely when we intend to replace it.
11728 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11730         sys_time: port to Solaris 2.6
11731         There is a circularity problem on Solaris 2.6, where <time.h> includes
11732         <sys/time.h> for struct timespec.  The include nesting is gnulib
11733         <time.h>, system <time.h>, gnulib <sys/time.h>, system
11734         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
11735         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
11736         <sys/siginfo.h>; the last, innermost file needs struct
11737         timestruc_t, which is defined in <sys/time.h>, which has not been
11738         fully parsed.  Problem reported by Tom G. Christensen in
11739         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
11740         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
11741         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
11742         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
11743         uses split double-inclusion guards.
11745 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11747         regex: test for buffer overrun
11748         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
11749         for the just-fixed regex bug.
11751 2013-01-29  Andreas Schwab  <schwab@suse.de>
11753         regex: fix buffer overrun in regexp matcher [BZ #15078]
11754         * lib/regexec.c (extend_buffers): Add parameter min_len.
11755         (check_matching): Pass minimum needed length.
11756         (clean_state_log_if_needed): Likewise.
11757         (get_subexp): Likewise.
11759 2013-01-28  Pádraig Brady  <P@draigBrady.com>
11761         mountlist: don't consider "devtmpfs" as dummy
11762         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
11763         as there is storage associcated with it.
11765 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
11767         futimens-tests, utimens-tests: Depend on gettext.
11768         This works around a problem introduced in my 2013-01-12 patch,
11769         which added @LIBINTL@ to these modules.
11770         * modules/futimens-tests (Depends-on):
11771         * modules/utimens-tests (Depends-on): Add gettext.
11773 2013-01-26  Eric Blake  <eblake@redhat.com>
11775         test-getpeername: fix typo
11776         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
11778 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
11780         bootstrap: remove the need for a sorted .gitignore file
11781         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
11782         rename to insert_if_absent(), so that we don't need or generate
11783         a sorted .gitignore file.  We do require a .gitignore with no
11784         existing duplicate entries and enforce that.
11785         (sort_patterns): Remove this function as we now use the simpler
11786         technigue of inserting blacklist entries at the top of the file,
11787         assuming gnulib won't be inserting !whitelist entries.
11789 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11791         readlinkat: don't depend on gl_FUNC_OPENAT
11792         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
11793         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
11794         renameat.m4, symlinkat.m4; but one thing at a time.
11796         statat: new module, split out from fstatat
11797         GNU Emacs needs the POSIX-specified fstatat, but not the
11798         gnulib-specified statat and lstat.  Split the latter two into a
11799         new module 'statat'.
11800         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
11801         * lib/openat.h, lib/statat.c (STATAT_INLINE):
11802         Rename from FSTATAT_INLINE. All uses changed.
11803         * modules/fstatat (Files): Remove lib/statat.c.
11804         (gl_MODULE_INDICATOR([fstatat])): Remove.
11805         (lib_SOURCES): Remove.
11806         (Maintainer): Add self.
11807         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
11808         * tests/test-fstatat.c (BASE): Don't define if already defined.
11809         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
11811 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
11813         tests: don't assume fd 99 is closed
11814         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
11815         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
11816         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
11817         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
11818         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
11819         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
11820         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
11821         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
11822         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
11823         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
11824         * tests/test-fwrite.c, tests/test-getpeername.c:
11825         * tests/test-getsockname.c, tests/test-getsockopt.c:
11826         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
11827         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
11828         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
11829         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
11830         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
11831         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
11832         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
11833         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
11834         * tests/test-unlinkat.c, tests/test-unlockpt.c:
11835         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
11836         Close file descriptor 99, instead of assuming it's already closed.
11838 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11840         stpncpy: port to OS X 10.8
11841         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
11842         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
11844 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
11846         unistd: port to recent mingw
11847         * lib/unistd.in.h: Remove special invocation convention for mingw,
11848         which breaks for the latest mingw version.  See John W. Eaton in
11849         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
11851         largefile: port better to Mac OS X 10.5
11852         This patch is backported from Autoconf git.
11853         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
11854         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
11855         with ino_t size being different for configuration time versus
11856         build/run time.  Problem reported by PHO in
11857         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
11859 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
11861         doc: clarify -Werror
11862         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
11863         clarify that it's intended for developers, not for ordinary builds,
11864         and mention --enable-gcc-warnings as one possible use.
11866 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
11868         stdint: fix build with Android's Bionic fox x86
11869         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
11870         was already included as _SSIZE_T_DEFINED_ might also be defined
11871         in include/machine/_types.h, which is included by stdio.h
11873 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
11875         net_if-tests: port to Solaris 7 + GCC 3.4.6
11876         Problem reported by Tom G. Christensen in
11877         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
11878         * tests/test-net_if.c (ni): Move to next the code that uses it,
11879         so that it's declared only if needed.
11881 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
11883         net_if-tests: port to older Solaris
11884         Problem reported by Tom G. Christensen in
11885         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
11886         * modules/net_if-tests (NET_IF_LIB): New substitution.
11887         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
11888         (HAVE_IF_NAMEINDEX): New C macro.
11889         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
11891         system-quote-tests: port to older Solaris
11892         Problem reported by Tom G. Christensen in
11893         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
11894         * tests/test-system-quote-child.c (fopen, fread): Undef.
11896         c-xvasprintf etc.: fix link errors on older Solaris
11897         These need to link with @LIBINTL@ to get libintl_gettext.
11898         Problem reported by Tom G. Christensen in
11899         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
11900         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
11901         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
11902         * modules/futimens-tests (test_futimens_LDADD):
11903         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
11905 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
11907         locale: port to Solaris 2.6 and 7 + GNU gettext
11908         * lib/locale.in.h: Just include_next <locale.h> when
11909         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
11910         when combining the localename module with GNU gettext 0.18.2.
11911         Problem reported by Tom G. Christensen in
11912         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
11914 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
11916         stdlib: port to Solaris 2.6
11917         Also, the code worked on Solaris 7 through 9 only by accident.
11918         Problem reported by Tom G. Christensen in
11919         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
11920         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
11921         simply include the system stdlib.h.
11922         * lib/getopt.in.h (__need_system_stdlib_h):
11923         * lib/pthread.in.h (__need_system_stdlib_h):
11924         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
11925         Define when including <stdlib.h>, to avoid problems at least for
11926         the pthread case on Solaris 2.6 and 7.  These .h files can get by
11927         with the system stdlib.h.
11929 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
11931         doc: update main copyright year
11932         * doc/gnulib.texi: Update copyright date.
11934         doc: improve ISO 8601 discussion
11935         * doc/parse-datetime.texi (Combined date and time of day items):
11936         Specify more carefully what formats are supported and what is
11937         done with excess precision.
11939 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
11941         doc: avoid small caps
11942         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
11943         they're more trouble than they're worth.  Suggested by Karl Berry
11944         in <http://bugs.gnu.org/13360>.
11946         regex: conform to strict C
11947         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
11948         From Aharon Robbins.
11950         gnulib-tool: fix incompatibility with autopoint 0.18.2
11951         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
11952         Problem reported by Tom G. Christensen in
11953         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
11955 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
11957         fprintftime: bring back and reword fwrite comment
11958         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
11960         stdio: remove now-unnecessary stdio.c
11961         Since stdio.in.h no longer uses inline functions, we no longer
11962         need to compile the extern versions.
11963         * lib/stdio.c: Remove.
11964         * modules/stdio (Files): Remove lib/stdio.c.
11965         (lib_SOURCES): Remove.
11967         unicodeio: depend on stdio, not ignore-value
11968         * lib/unicodeio.c: Do not include ignore-value.h.
11969         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
11970         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
11972         fprintftime: depend on stdio, not ignore-value
11973         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
11974         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
11975         since the stdio module arranges to silence that warning now.
11976         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
11978 2012-10-04  Simon Josefsson  <simon@josefsson.org>
11980         stdint-tests: Fix expanded-before-required-warning.
11981         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
11983 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
11985         fwrite: silence __wur only for older glibc versions
11986         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
11987         This will help us remove this workaround some time in the far future.
11989 2013-01-03  Eric Blake  <eblake@redhat.com>
11991         fwrite: silence __wur without using inline
11992         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
11993         just gcc, and in a way that avoids inline issues.
11994         * modules/stdio (Depends-on): Drop extern-inline.
11996 2013-01-03  Jim Meyering  <jim@meyering.net>
11998         update-copyright: avoid copyright notice date corruption
11999         Given a sequence of copyright year numbers in which the final
12000         one was a two-digit number that happened to be a substring of
12001         a preceding four-digit year number, we would mistakenly update
12002         the substring (from two- to four-digit) rather than the two-digit
12003         number at the end, which, combined with the addition of the current
12004         4-digit year number would yield two 5-digit year numbers, e.g.,
12005         here, it would convert the first "99" to "1999, 2013" rather than
12006         the final one:
12007           1991, 99
12008           11999, 20131, 1999
12009         * build-aux/update-copyright: Tighten a regexp.
12010         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
12011         Reported by Joseph Myers in
12012         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
12014 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12016         regex: omit needless signed-pointer casts
12017         * lib/regcomp.c (build_charclass, build_charclass_op):
12018         Use char *, not unsigned char *, for class name and extra.
12019         The char values are always nonnegative so there's no need to
12020         insist on unsigned char * here, and using char * removes the need
12021         for casts.  Reported by Aharon Robbins in
12022         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12024         regex: support Gawk, which never uses alloca
12025         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
12026         Do not include in this case.  Gawk doesn't supply a substitute
12027         alloca.h and doesn't need one.
12029         regex: port __libc_lock_define usage to C89
12030         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
12031         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
12032         does not conform to C89, as it has an empty macro argument.
12033         Reported by Aharon Robbins in
12034         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12036 2013-01-01  Eric Blake  <eblake@redhat.com>
12038         maint: update all copyright year number ranges
12039         Run "make update-copyright".
12041         version-etc: bump copyright year reported in --version
12042         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
12044 2012-12-31  Eric Blake  <eblake@redhat.com>
12046         sigprocmask-tests: skip test if pid is unexpectedly large
12047         * tests/test-sigprocmask.c (main): Add range check.
12049         git-version-gen: avoid test -z portability glitch
12050         * build-aux/git-version-gen: Prefer portable test spelling, since
12051         git-version-gen is run on more than just developer machines.
12053 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
12055         git-version-gen: add --fallback option to use if git is not present
12056         * build-aux/git-version-gen: Add support for the new option --fallback,
12057         which comes into play when there is no $tarball_version_file and
12058         git is not working.
12059         (scriptversion): Update.
12061         maint.mk: handle missing git with more grace
12062         * top/maint.mk (no-submodule-changes, public-submodule-commit):
12063         Quietly proceed if git is not present.
12065 2012-12-31  Eric Blake  <eblake@redhat.com>
12067         dup2: work around cygwin bug
12068         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
12069         * lib/dup2.c (rpl_dup2): Work around it.
12070         * doc/posix-functions/dup2.texi (dup2): Document it.
12072 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
12074         regex: remove unnecessary dependency on localcharset.h
12075         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
12076         hasn't been needed for years.
12077         * modules/regex (Depends-on): Remove localcharset.
12079         regex: revert single-byte change
12080         * lib/regexec.c (check_node_accept_bytes): Revert previous change
12081         to this function.  This was alredy fixed in a different way, at
12082         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
12083         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
12084         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
12086         regex: simplify based on Gawk version
12087         * lib/regex_internal.c (re_dfa_add_node): Simplify.
12088         Reported by Aharon Robbins in
12089         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12091 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12093         regex: check that pattern char is single-byte
12094         Reported by Aharon Robbins in
12095         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12096         * lib/regexec.c (check_node_accept_bytes):
12097         Return 0 if the pattern string has a multibyte character here.
12099         regex: implement rational ranges
12100         Reported by Aharon Robbins in
12101         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12102         * lib/regcomp.c (build_range_exp) [!_LIBC]:
12103         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
12104         Implement rational ranges.
12106         regex: avoid redefining __wctype
12107         Reported by Aharon Robbins in
12108         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12109         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
12110         #undef before defining.
12112         regex: port to hosts where malloc (0) == NULL
12113         Reported by Aharon Robbins in
12114         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12115         * lib/regex_internal.c (re_node_set_alloc):
12116         Don't assume that malloc (0) yields nonnull.
12117         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
12118         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
12119         * modules/regex (Files): Add m4/eealloc.m4.
12121         regex: port to C89
12122         Reported by Aharon Robbins in
12123         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
12124         * lib/regcomp.c (init_word_char): Declaration before statement.
12126         regex: merge glibc changes
12127         Also, copy the license wording from glibc.  This simplifies
12128         merging changes.  gnulib-tool will change the wording to GPL as
12129         appropriate, when importing it to other packages.  The only
12130         glibc change made since the last merge, which needs merging, is:
12131         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
12132         * lib/regex_internal.h (gettext): Remove use of INTUSE.
12134         * users.txt: Add Emacs.
12136         doc: omit mention of version when not needed
12137         * doc/gnulib-intro.texi (Portability and Application Code):
12138         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
12139         Don't mention particular dates or versions when not necessary, so
12140         that the documentation won't go out of date so quickly.
12142         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
12144 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
12146         bootstrap: pass --force to autoreconf.
12147         * build-aux/bootstrap (AUTORECONFFLAGS): New.
12148         Add "--force" so that Automake's ylwrap and other such tools
12149         be updated at each bootstrap invocation.
12150         Use it.
12152 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12154         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
12155         The earlier patch forgot to update one of the #if conditions, causing
12156         a problem on Debian testing i386 reported by Mats Erik Andersson
12157         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
12158         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
12159         (__argp_fmtstream_puts, argp_fmtstream_puts)
12160         (__argp_fmtstream_write, argp_fmtstream_write)
12161         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
12163         * doc/gnulib-readme.texi: Minor fixups.
12164         (Portability guidelines): Modernize URLs.  Remove some repetition.
12165         (Indent with spaces not TABs): Reword to avoid too-long lines.
12166         Remove some '@ifset standalone' stuff that isn't used.
12168         * doc/gnulib-readme.texi (Portability guidelines):
12169         ctype.h, not ctime.h.
12171         Correct name of POSIX.1-2001.
12172         * doc/posix-functions/fgetc.texi (fgetc):
12173         * doc/posix-functions/fgets.texi (fgets):
12174         * doc/posix-functions/fread.texi (fread):
12175         * doc/posix-functions/fscanf.texi (fscanf):
12176         * doc/posix-functions/getc.texi (getc):
12177         * doc/posix-functions/getchar.texi (getchar):
12178         * doc/posix-functions/scanf.texi (scanf):
12179         POSIX.1-2001, not POSIX-2001.
12181         doc: move README into manual
12182         * README: Move contents to new file doc/gnulib-readme.texi.
12183         Replace with a one-line summary.
12184         * doc/gnulib.texi (Brief Overview): New section,
12185         with old intro preface.  Include gnulib-readme.texi for contents.
12186         (Philosophy): Rename from "Introduction", since this
12187         section no longer introduces the rest.  Write a new preface.
12188         * doc/gnulib-readme.texi: New file, with the old contents of
12189         README texinfo-ized.  This way, the README info appears
12190         in the online and printed manual.
12192 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
12194         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
12195         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
12196         c_vasprintf() prototype.
12198 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
12200         c-vasprintf: Fix "empty declaration" warning reported by GCC.
12201         * lib/c-vasprintf.h: Remove stray semicolon.
12203 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
12205         gettext: avoid obsolete macro AM_PROG_MKDIR_P
12206         It is obsolete and is planned to be removed from Automake 1.14; see
12207         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
12208         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
12209         (installdirs-data, installdirs-data-yes):
12210         Use $(MKDIR_P), not $(mkdir_p).
12211         * m4/intl.m4 (AM_INTL_SUBDIR):
12212         * m4/po.m4 (AM_PO_SUBDIRS):
12213         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
12215 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12217         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
12218         On this platform, we are not optimizing but we are using
12219         the substitute for extern inlines, so compile as if
12220         C99-style extern inline, or a substitute, is available.
12221         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
12222         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
12223         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
12224         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
12225         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
12226         Declare as ARGP_FS_EI, not as extern.
12227         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
12228         (__option_is_short, _option_is_end, __option_is_end)
12229         [!_LIBC && __USE_EXTERN_INLINES]:
12230         Declare as ARGP_EI, not as extern.
12232 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
12234         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
12235         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
12236         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
12237         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
12238         ...), as the latter is fatal with older Autoconfs.
12239         Problem reported and fix suggested by Eric Blake in thread starting at
12240         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
12242 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12244         AC_PROG_MKDIR_P: don't workaround if not buggy
12245         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
12246         Define only for Autoconf versions before 2.62.
12247         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
12248         undocumented m4_PACKAGE_VERSION, for consistency with the
12249         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
12250         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
12251         was introduced in 2.62.
12253 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
12255         New 'c-*printf' modules for formatted output in C locale.
12257         New module 'c-vasnprintf'.
12258         * modules/c-vasnprintf: New file.
12259         * lib/c-vasnprintf.c: New file.
12260         * lib/c-vasnprintf.h: New file.
12262         New module 'c-snprintf'.
12263         * modules/c-snprintf: New file.
12264         * modules/c-snprintf-tests: New file.
12265         * lib/c-snprintf.c: New file.
12266         * lib/c-snprintf.h: New file.
12267         * tests/test-c-snprintf.c: New file.
12268         * tests/test-c-snprintf.sh: New file.
12270         New module 'c-vsnprintf'.
12271         * modules/c-vsnprintf: New file.
12272         * modules/c-vsnprintf-tests: New file.
12273         * lib/c-vsnprintf.c: New file.
12274         * lib/c-vsnprintf.h: New file.
12275         * tests/test-c-vsnprintf.c: New file.
12276         * tests/test-c-vsnprintf.sh: New file.
12278         New module 'c-vasprintf'.
12279         * modules/c-vasprintf: New file.
12280         * modules/c-vasprintf-tests: New file.
12281         * lib/c-asprintf.c: New file.
12282         * lib/c-vasprintf.c: New file.
12283         * lib/c-vasprintf.h: New file.
12284         * tests/test-c-vasprintf.c  +: New file.
12285         * tests/test-c-vasprintf.sh: New file.
12287         New module 'c-xvasprintf'.
12288         * modules/c-xvasprintf: New file.
12289         * modules/c-xvasprintf-tests: New file.
12290         * lib/c-xasprintf.c: New file.
12291         * lib/c-xvasprintf.c: New file.
12292         * lib/c-xvasprintf.h: New file.
12293         * tests/test-c-xvasprintf.c: New file.
12294         * tests/test-c-xvasprintf.sh: New file.
12296 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12298         argp: better 'inline'
12299         Use extern-inline module to declare extern inline functions.
12300         This avoids some bogus warning diagnostics.  Problem discovered
12301         when modifying GNU tar to use the manywarnings module.
12302         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
12303         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
12304         Define based on extern-inline.
12305         * modules/argp (Depends-on): Add extern-inline.
12307 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
12309         filemode, sys_stat: Handle MPX files a la AIX.
12310         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
12311         * lib/sys_stat.in.h (S_ISMPX): New macro.
12312         * tests/test-sys_stat.c: Add tests for MPX files.
12314 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
12316         x-to-1: honor $PERL
12317         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
12318         a chance to use his preferred version of Perl.  This is typically
12319         required by Darwin users whose default /usr/bin/perl does not have all
12320         the libraries required by help2man, and who need to use their MacPorts
12321         installation of Perl instead.
12323 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
12325         gnu-web-doc-update: add all the new files, even in new directories
12326         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
12327         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
12328         Use it.
12329         (main): Don't use cvsutils to get the list of unknown files,
12330         just add all the existing files and directories.
12332 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
12334         gnu-web-doc-update: improve --help
12335         * build-aux/gnu-web-doc-update: Move comments into --help.
12337 2012-12-07  Eric Wong  <normalperson@yhbt.net>
12339         mountlist: recognize more "dummy" file systems
12340         * lib/mountlist.c (ME_DUMMY_0):
12341         Add these dummy FS names to the list:
12342         - "debugfs" virtual filesystem for kernel debugging
12343         - "devpts" PTY slave filesystem
12344         - "devtmpfs" device filesystem on top of tmpfs/ramfs
12345         - "fusectl" control filesystem for FUSE
12346         - "mqueue" enumerates POSIX message queues
12347         - "rpc_pipefs" kernel <-> userspace bridge for NFS
12348         - "sysfs" is for exporting kernel objects
12349         - "devfs" device filesystem for Linux 2.4 and FreeBSD
12351 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
12353         extern-inline: avoid incompatibility with Darwin Libc
12354         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
12355         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
12356         Problem reported by Akim Demaille in
12357         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
12359 2012-12-11  Simon Josefsson  <simon@josefsson.org>
12361         gnupload: Work with GnuPG using gpg-agent (for smartcards).
12362         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
12363         let it handle password prompting.
12365 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
12367         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
12368         * lib/canonicalize.c (canonicalize_filename_mode):
12369         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
12370         fetching the current directory.  Don't overrun the beginning of
12371         rpath if there's no slashes after the MS-Windows drive letter.
12373 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
12375         maint.mk: avoid extra forks
12376         * top/maint.mk (_cfg_mk): The GNU make manual documents that
12377         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
12378         So use that instead of "$(shell test -f FILE && echo FILE)".
12380 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
12382         vasnprintf: fix ASCII_ONLY typo
12383         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
12384         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
12385         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
12386         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
12387         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
12389 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
12391         list, oset, xlist, xoset: fix extern inline issue with C99
12392         This was introduced by my recent changes for 'inline'.
12393         Problem reported for gettext by Daiki Ueno in
12394         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
12395         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
12396         (gl_list_nx_create, gl_list_size, gl_list_node_value)
12397         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
12398         (gl_list_previous_node, gl_list_get_at)
12399         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
12400         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
12401         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
12402         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
12403         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
12404         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
12405         (gl_list_iterator_free, gl_sortedlist_search)
12406         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
12407         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
12408         (gl_sortedlist_remove):
12409         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
12410         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
12411         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
12412         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
12413         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
12414         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
12415         (gl_list_add_at, gl_sortedlist_add):
12416         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
12417         Wrap these extern decls inside "#if 0", because they are implemented
12418         as inline functions, and extern inline is not what's wanted here.
12419         It would simplify these .h files to remove the extern decls entirely,
12420         although a downside would be less-clear separation between
12421         specification and implementation.
12423 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
12425         sys_stat: no 'static inline'
12426         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
12427         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
12429         extern-inline: no 'static inline'
12430         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
12431         Do not require AC_C_INLINE.
12432         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
12433         'static inline', for older compilers.
12435         snippet/warn-on-use: no 'static inline'
12436         * build-aux/snippet/warn-on-use.h:
12437         Remove unnecessary 'inline' in comment.
12439         rbtree-list, rbtreehash-list: no 'static inline'
12440         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
12441         * lib/gl_anytree_list2.h (node_at):
12442         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
12443         (gl_oset_first, add_nodes_to_buckets):
12444         Now static, not static inline.
12446         regex: no 'static inline'
12447         * lib/regex_internal.c (calc_state_hash):
12448         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
12449         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
12450         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
12451         Now static, not static inline.
12452         (inline) [__GNUC__ < 3 && _LIBC]:
12453         Remove macro; no longer needed.
12455         xvasprintf: no 'static inline'
12456         * lib/xvasprintf.c (xstrcat):
12457         Now static, not static inline.
12458         * m4/xvasprintf.m4 (gl_XVASPRINTF):
12459         Do not require AC_C_INLINE.
12461         parse-datetime, parse-duration: no 'static inline'
12462         * lib/parse-datetime.y (to_uchar):
12463         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
12464         (scale_n_add):
12465         Now static, not static inline.
12466         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
12467         * modules/parse-duration (configure.ac):
12468         Do not require AC_C_INLINE.
12470         getaddrinfo: no 'static inline'
12471         * lib/getaddrinfo.c (validate_family):
12472         Now static, not static inline.
12473         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
12474         Do not require AC_C_INLINE.
12476         ftruncate, fts, lstat, openat, raise: no 'static inline'
12477         * lib/ftruncate.c (chsize_nothrow):
12478         * lib/fts.c (opendirat, diropen):
12479         * lib/lstat.c (orig_lstat):
12480         * lib/openat.c (orig_openat):
12481         * lib/raise.c (raise_nothrow):
12482         Now static, not static inline.
12483         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
12484         * m4/fts.m4 (gl_FUNC_FTS_CORE):
12485         * m4/lstat.m4 (gl_PREREQ_LSTAT):
12486         * m4/openat.m4 (gl_PREREQ_OPENAT):
12487         * m4/raise.m4 (gl_PREREQ_RAISE):
12488         Do not require AC_C_INLINE.
12490         fflush, stat: no 'static inline'
12491         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
12492         (clear_ungetc_buffer, disable_seek_optimization)
12493         (restore_seek_optimization, update_fpos_cache):
12494         * lib/stat.c (orig_stat):
12495         Now static, not static inline.
12496         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
12497         (update_fpos_cache):
12498         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
12499         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
12500         * m4/stat.m4 (gl_PREREQ_STAT):
12501         Do not require AC_C_INLINE.
12503         error, filevercmp: no 'static inline'
12504         * lib/error.c (is_open, flush_stdout):
12505         * lib/filevercmp.c (order):
12506         Now static, not static inline.
12507         * m4/error.m4 (gl_PREREQ_ERROR):
12508         * modules/filevercmp (configure.ac):
12509         Do not require AC_C_INLINE.
12511         dup, execute, fatal-signal, etc.: no 'static inline'
12512         * lib/dup.c (dup_nothrow):
12513         * lib/execute.c (nonintr_close, nonintr_open):
12514         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
12515         * lib/fopen.c (orig_fopen):
12516         * lib/freadseek.c (freadptrinc):
12517         * lib/freopen.c (orig_freopen):
12518         * lib/fstat.c (orig_fstat, fstat_nothrow):
12519         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
12520         (get_rusage_as_via_iterator):
12521         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
12522         * lib/getdtablesize.c (_setmaxstdio_nothrow):
12523         * lib/isatty.c (_isatty_nothrow):
12524         * lib/open.c (orig_open):
12525         * lib/read.c (read_nothrow):
12526         * lib/sigprocmask.c (signal_nothrow):
12527         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
12528         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
12529         * lib/wait-process.c (unregister_slave_subprocess):
12530         * lib/write.c (write_nothrow):
12531         Now static, not static inline.
12532         * lib/spawn-pipe.c (nonintr_open): Define only if
12533         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
12534         * m4/dup.m4 (gl_PREREQ_DUP):
12535         * m4/execute.m4 (gl_EXECUTE):
12536         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
12537         * m4/fopen.m4 (gl_PREREQ_FOPEN):
12538         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
12539         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
12540         * m4/fstat.m4 (gl_PREREQ_FSTAT):
12541         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
12542         * m4/isatty.m4 (gl_PREREQ_ISATTY):
12543         * m4/open.m4 (gl_PREREQ_OPEN):
12544         * m4/read.m4 (gl_PREREQ_READ):
12545         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
12546         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
12547         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
12548         * m4/wait-process.m4 (gl_WAIT_PROCESS):
12549         * m4/write.m4 (gl_PREREQ_WRITE):
12550         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
12551         Do not require AC_C_INLINE.
12553         c-strtod, memcoll, readutmp: no 'static inline'
12554         * lib/c-strtod.c (c_locale):
12555         * lib/memcoll.c (strcoll_loop):
12556         * lib/readutmp.c (desirable_utmp_entry):
12557         Now static, not static inline.
12558         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
12559         * m4/memcoll.m4 (gl_MEMCOLL):
12560         * m4/readutmp.m4 (gl_READUTMP):
12561         Do not require AC_C_INLINE.
12563         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
12564         * lib/arctwo.c (to_uchar):
12565         * lib/md4.c (set_uint32):
12566         * lib/md5.c (set_uint32):
12567         * lib/sha1.c (set_uint32):
12568         * lib/sha256.c (set_uint32):
12569         * lib/sha512.c (set_uint64):
12570         Now static, not static inline.  This is a bit simpler, and doesn't
12571         affect performance with GCC and default optimization.
12572         * m4/arctwo.m4 (gl_ARCTWO):
12573         * m4/md4.m4 (gl_MD4):
12574         * m4/md5.m4 (gl_MD5):
12575         * m4/sha1.m4 (gl_SHA1):
12576         * m4/sha256.m4 (gl_SHA256):
12577         * m4/sha512.m4 (gl_SHA512):
12578         Do not require AC_C_INLINE.
12580         cond, lock, thread: better 'inline'
12581         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
12582         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
12583         New macros.  Use them instead of static inline, for header functions.
12584         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
12585         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
12586         * lib/glthread/lock.c (gl_waitqueue_init)
12587         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
12588         * lib/glthread/thread.c (get_current_thread_handle):
12589         Change 'static inline' to 'inline'.
12590         * lib/glthread/cond.h, lib/glthread/thread.h:
12591         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12592         * m4/cond.m4 (gl_COND):
12593         * m4/lock.m4 (gl_PREREQ_LOCK):
12594         * m4/thread.m4 (gl_THREAD):
12595         Do not require AC_C_INLINE.
12596         * modules/cond, modules/thread (Depends-on): Add extern-inline.
12598         chdir-long, cycle-check, savewd: better 'inline'
12599         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
12600         (find_non_slash):
12601         * lib/cycle-check.c (is_zero_or_power_of_two):
12602         * lib/savewd.c (savewd_delegating):
12603         Change 'static inline' to 'inline'.
12604         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
12605         Replace all remaining uses of 'static inline' with it.
12606         * lib/savewd.h:
12607         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12608         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
12609         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
12610         * m4/savewd.m4 (gl_SAVEWD):
12611         Do not require AC_C_INLINE.
12612         * modules/savewd (Depends-on): Add extern-inline.
12614         base32, base64: no need for 'inline'
12615         * lib/base32.c (to_uchar, get_8, decode_8):
12616         * lib/base64.c (to_uchar, get_4, decode_4):
12617         Change 'static inline' to 'inline'.
12618         * m4/base32.m4 (gl_PREREQ_BASE32):
12619         * m4/base64.m4 (gl_PREREQ_BASE64):
12620         Do not require AC_C_INLINE.
12622         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
12623         * lib/gl_array_oset.c (gl_array_nx_add_at):
12624         (gl_array_remove_at):
12625         * lib/gl_linkedhash_list.c (hash_resize_after_add)
12626         (add_to_bucket, remove_from_bucket):
12627         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
12628         Change 'static inline' to 'static', as it's simpler to omit
12629         'inline' unless there's a significant performance advantage.
12631         list, oset, xlist, xoset, xsublist: simplify via extern inline
12632         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
12633         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
12634         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
12635         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
12636         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
12637         New macro.  Replace all uses of 'static inline' with it.
12638         [HAVE_INLINE]: Implement functions as *_INLINE functions,
12639         instead of as macros FOO that are defined to static inline
12640         functions FOO_inline.
12641         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
12642         * lib/gl_xsublist.c:
12643         Reimplement from scratch, by defining the corresponding *_INLINE
12644         macro and including the corresponding .h file.  This is simpler.
12645         * modules/list, modules/oset, modules/xlist, modules/xoset:
12646         (Files): Remove m4/gl_list.m4.
12647         (configure.ac): Remove gl_LIST.
12648         * m4/gl_list.m4: Remove.
12649         * modules/list, modules/oset, modules/xlist, modules/xoset:
12650         * modules/xsublist:
12651         (Depends-on): Depend on extern-inline, not inline.
12653         xalloc: better 'inline'
12654         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
12655         New macro.  Replace all uses of 'static inline' with it.
12656         (static_inline): Remove.
12657         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
12658         Let 'extern inline' do the work automatically, instead of doing
12659         it by hand.
12660         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
12661         Remove.  All uses removed.
12662         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
12664         gethrxtime: better 'inline'
12665         * lib/xtime.c: New file.
12666         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
12667         * lib/xtime.h (XTIME_INCLUDE):
12668         New macros.  Replace all uses of 'static inline' with them.
12669         * lib/gethrxtime.c (gethrxtime): Define only if
12670         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
12671         this source file is now always compiled, because of the extern inline.
12672         * lib/gethrxtime.h, lib/xtime.h:
12673         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12674         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
12675         if gethrtime works, as they're not needed in that case.
12676         (gl_XTIME): Do not require AC_C_INLINE.
12677         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
12678         compiled now.  Move the check into gl_GETHRXTIME.
12679         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
12680         (Depends-on): Add extern-inline.
12681         (configure.ac): gethrxtime is always compiled now.
12682         (lib_SOURCES): Add gethrxtime.c.
12684         wctype-h: better 'inline'
12685         * lib/wctype-h.c: New file.
12686         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
12687         New macro.  Replace all uses of 'static inline' with it.
12688         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12689         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
12690         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
12691         (Depends-on): Add extern-inline.
12693         unistd: better 'inline'
12694         * lib/unistd.c: New file.
12695         * lib/unistd.in.h (_GL_UNISTD_INLINE):
12696         New macro.  Replace all uses of 'static inline' with it.
12697         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12698         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
12699         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
12700         (Depends-on): Add extern-inline.
12702         sys_socket: better 'inline'
12703         * lib/sys_socket.c: New file.
12704         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
12705         New macro.  Replace all uses of 'static inline' with it.
12706         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12707         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
12708         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
12709         (Depends-on): Add extern-inline.
12711         stdio: better 'inline'
12712         * lib/stdio.c: New file.
12713         * lib/stdio.in.h (_GL_STDIO_INLINE):
12714         New macro.  Replace all uses of 'static inline' with it.
12715         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12716         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
12717         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
12718         (Depends-on): Add extern-inline.
12720         sigaction: better 'inline'
12721         * lib/sig-handler.c: New file.
12722         * lib/sig-handler.h (SIG_HANDLER_INLINE):
12723         New macro.  Replace all uses of 'static inline' with it.
12724         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12725         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
12726         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
12727         (Depends-on): Add extern-inline.
12729         selinux-h: better 'inline'
12730         * lib/se-context.c, lib/se-selinux.c: New files.
12731         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
12732         * lib/se-context.in.h (SE_CONTEXT_INLINE):
12733         New macro.  Replace all uses of 'static inline' with it.
12734         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12735         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
12736         New macro.  Replace all uses of 'static inline' with it.
12737         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12738         * modules/selinux-h (Files, lib_SOURCES):
12739         Add lib/se-context.c, lib/se-selinux.c.
12740         (Depends-on): Add extern-inline.
12741         (configure.ac): Do not require AC_C_INLINE.
12743         pthread: better 'inline'
12744         * lib/pthread.c: New file.
12745         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
12746         New macro.  Replace all uses of 'static inline' with it.
12747         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12748         * m4/pthread.m4 (gl_PTHREAD_CHECK):
12749         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
12750         * modules/pthread (Files): Add lib/pthread.c.
12751         (Depends-on): Add extern-inline.
12753         math: better 'inline'
12754         * lib/math.c: New file.
12755         * lib/math.in.h (_GL_MATH_INLINE):
12756         New macro.  Replace all uses of 'static inline' with it.
12757         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12758         * m4/math_h.m4 (gl_MATH_H):
12759         Do not require AC_C_INLINE.
12760         * modules/math (Files, lib_SOURCES):
12761         Add lib/math.c.
12762         (Depends-on): Add extern-inline.
12764         count-one-bits: better 'inline'
12765         * lib/count-one-bits.c: New file.
12766         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
12767         New macro.  Replace all uses of 'static inline' with it.
12768         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12769         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
12770         Do not require AC_C_INLINE.
12771         * modules/count-one-bits (Files, lib_SOURCES):
12772         Add lib/count-one-bits.c.
12773         (Depends-on): Add extern-inline.
12775         count-leading-zeros: better 'inline'
12776         * lib/count-leading-zeros.c: New file.
12777         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
12778         New macro.  Replace all uses of 'static inline' with it.
12779         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12780         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
12781         Do not require AC_C_INLINE.
12782         * modules/count-leading-zeros (Files, lib_SOURCES):
12783         Add lib/count-leading-zeros.c.
12784         (Depends-on): Add extern-inline.
12786         bitrotate: better 'inline'
12787         * lib/bitrotate.c: New file.
12788         * lib/bitrotate.h (BITROTATE_INLINE):
12789         New macros.
12790         Replace all uses of 'static inline' with them.
12791         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
12792         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
12793         (Depends-on): Add extern-inline.
12794         (configure.ac): Do not require AC_C_INLINE.
12796 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
12798         maint.mk: avoid gratuitous failure
12799         Reported by Stefano Lattarini in
12800         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
12801         * top/maint.mk (public-submodule-commit): Quote more safely.
12803 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
12805         canonicalize, canonicalize-lgpl: support MS-Windows file names
12806         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
12807         for test cases, which it'd be nice to add at some point.
12808         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
12809         * lib/canonicalize.c (canonicalize_filename_mode):
12810         * lib/canonicalize-lgpl.c (__realpath):
12811         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
12812         slash is at the beginning of the file name.  Use ISSLASH, instead
12813         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
12814         the first character with '/'.  Test for
12815         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
12816         with a drive letter.
12817         * lib/canonicalize.c (SLASHES): New macro.
12818         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
12820 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
12822         fts: introduce FTS_VERBATIM
12823         * lib/fts_.h (FTS_VERBATIM): New bit flag.
12824         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
12825         * lib/fts.c (fts_open): Honor it.
12827 2012-11-09  Pádraig Brady  <P@draigBrady.com>
12829         getlogin-tests: allow errno == ENXIO
12830         * tests/test-getlogin.c (main): Skip tests if getlogin fails
12831         with errno == ENXIO (No controlling tty).
12832         getlogin_r-tests: Likewise. Also allow errno == ENOENT
12833         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
12834         with errno == ENOENT.  This was reported to happen in various
12835         situations on GNU/Linux.
12837 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
12839         getlogin-tests: allow errno == ENOENT
12840         * tests/test-getlogin.c (main): Skip tests if getlogin fails
12841         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
12842         when running a test in an Emacs shell buffer.
12844 2012-11-08  Jim Meyering  <jim@meyering.net>
12846         tests/nap.h: avoid warning about unused variable
12847         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
12849         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
12850         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
12851         white space before each of the special-cased file names, to avoid
12852         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
12853         in http://bugs.gnu.org/12830.
12855 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
12857         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
12858         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
12859         fails with errno == EBADF when fd is opened with O_PATH.
12860         Reported by Jim Meyering in
12861         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
12862         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
12863         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
12865 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
12867         test-utimens: speed up by taking shorter naps
12868         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
12869         New functions.
12870         (nap): Use them, to do a better job of guessing the delay.
12871         On Fedora 17 with ext4 atop md atop hard disks, this made
12872         test-utimens run 10x faster, because the test napped for
12873         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
12874         <http://bugs.gnu.org/12820#11>.
12876 2012-11-07  Jim Meyering  <jim@meyering.net>
12878         mountlist.c: fix a compilation failure
12879         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
12880         I introduced while transforming commit v0.0-7683-g613bcb6
12882 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
12884         errno: port to LynxOS 178 2.2.2
12885         Problem reported by Joel Brobecker in
12886         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
12887         * doc/posix-headers/errno.texi (errno.h): Document this.
12888         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
12889         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
12890         Supply a string for EILSEQ.
12891         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
12893 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
12895         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
12896         Linux kernel 2.6.39 introduced O_PATH (see
12897         <http://lwn.net/Articles/433854/>) and this is a better fallback
12898         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
12899         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
12900         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
12901         * lib/fcntl.in.h (O_ACCMODE):
12902         * tests/test-fcntl-h.c (main):
12903         Do not reject O_ACCMODE merely because it has more than the
12904         minimal number of bits, as POSIX allows extensions here.
12906 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
12908         mountlist: do not classify a bind-mounted dir entry as "dummy"
12909         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
12910         the "none"-testing clause.
12911         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
12912         exception for bind-mounted directories.
12914 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
12916         quote: provide a means to escape strings with nul characters
12917         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
12918         (quote, quote_n): Rename formal arguments for consistency with
12919         quotearg.
12921 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
12923         test-raise: don't assume 199 is an invalid signal
12924         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
12926         sh-quote-tests: port to Solaris 9
12927         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
12928         Problem reported by Dagobert Michelsen in
12929         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
12931 2012-10-28  Jim Meyering  <jim@meyering.net>
12933         maint.mk: rename a new configurable variable
12934         * top/maint.mk (_gl_translatable_string_re): Rename from
12935         translation-markers: _gl_ prefix to insulate from user Makefile code,
12936         and the _re suffix to inform that it's a regular expression.
12938 2012-10-26  Eric Blake  <eblake@redhat.com>
12940         maint.mk: let packages tweak sc_po_check pattern
12941         * top/maint.mk (sc_po_check): Add translation-markers, to allow
12942         finding files with other translation markers.
12944 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
12946         euidaccess: speed up 'configure' on GNU hosts
12947         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
12948         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
12949         it's needed only in this case.  Use AC_CHECK_DECLS, not
12950         AC_CHECK_DECLS_ONCE.
12951         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
12952         or AC_REQUIRE for AC_FUNC_GETGROUPS.
12954         * lib/regexec.c (re_search_internal): Fix grammar in comment.
12956 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
12958         fchmodat, fchownat, fstatat: port to non-inlining compilers
12959         Problem reported for FreeBSD 9 by Jim Meyering in
12960         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
12961         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
12962         New files, which define FCHMODAT_INLINE etc.
12963         * lib/fchmodat.c (FCHMODAT_INLINE):
12964         * lib/fchownat.c (FCHOWNAT_INLINE):
12965         * lib/fstatat.c (FSTATAT_INLINE):
12966         Remove, as chmodat.c etc. now do this.
12967         * modules/fchmodat (Files): Add lib/chmodat.c.
12968         * modules/fchownat (Files): Add lib/chownat.c.
12969         * modules/fstatat (Files): Add lib/statat.c.
12971 2012-10-15  Jim Meyering  <jim@meyering.net>
12973         fchmodat.c, fchownat.c: compile-impeding typos
12974         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
12975         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
12976         Introduced in commit v0.0-7636-gd202279.
12978 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
12980         fcntl-h: support GNU flags like O_IGNORE_CTTY
12981         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
12982         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
12983         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
12984         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
12985         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
12986         Define to 0 if not already defined.
12987         * tests/test-fcntl-h.c: Test these new flags.
12989 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
12991         faccessat, etc.: support AT_FDCWD-only use
12992         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
12993         this function only if its first argument is AT_FDCWD.
12994         Emacs wants faccessat for AT_EACCESS but not for any first-arg
12995         values other than AT_FDCWD, so it doesn't want all the openat
12996         machinery with fchdir etc.
12997         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
12998         * modules/fstatat, modules/mkdirat, modules/openat (Files):
12999         * modules/unlinkat (Files):
13000         Remove lib/openat-priv.h, as at-internal supplies this file.
13001         Removing this file here allows us to support programs like Emacs
13002         that avoid at-internal.
13004         faccessat: speed up 'configure' on mainstream hosts
13005         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
13006         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
13007         since it's only on unusual platforms that we need to check for
13008         'access', and it's better not to slow 'configure' down on all
13009         platforms.
13011         faccessat: port to Solaris 10
13012         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
13013         Needed on Solaris 10, which doesn't have AT_EACCESS,
13014         so we need the Gnulib fcntl.h, which defines it.
13016 2012-10-14  Pádraig Brady  <P@draigBrady.com>
13017         canonicalize: fix C89 compilation
13018         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
13019         declarations so C89 is supported.  Also remove the comment
13020         referencing memorty allocation as the suggested feature could
13021         not be implemented as suggested.
13022         Reported by Michael Goffioul.
13024 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
13026         group-member: omit unnecessary dependencies
13027         This is for Emacs, which has its own allocator and where we
13028         don't want to use xalloc.
13029         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
13030         since we no longer use xmalloc.  Do not include stdbool.h, since
13031         the changes below happen to remove the only use of bool.
13032         (GROUPBUF_SIZE): New constant.
13033         (struct group_info): Remove n_groups member.  Add groupbuf member.
13034         This lets us get the groups without using malloc, usually.
13035         (free_group_info, get_group_info): Adjust to this.
13036         (get_group_info): Return the number of groups found, or -1 on error.
13037         Use plain malloc not xmalloc, and treat its failure as if there
13038         are no groups, as the user already loses in case of error.
13039         (group_member): Simplify, based on changes to get_group_info.
13040         * modules/group-member (Depends-on): Remove dependencies on
13041         xalloc and stdbool.  Add dependency on xalloc-oversized.
13043 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
13045         gethrxtime: port to C++
13046         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
13048 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
13050         ptsname: fix macro-name typo
13051         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
13053 2012-10-03  Simon Josefsson  <simon@josefsson.org>
13055         inttostr: Relax license.
13056         * modules/inttostr (License): Change from LGPL to LGPLv2+.
13058 2012-10-03  Eric Blake  <eblake@redhat.com>
13060         ptsname_r: support ptys returned by FreeBSD posix_openpt
13061         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
13062         lives in /dev/pts/.
13064 2012-10-02  Eric Blake  <eblake@redhat.com>
13066         pselect: reject invalid file descriptors
13067         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
13068         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
13069         * modules/pselect (Depends-on): Add dup2.
13070         * doc/posix-functions/pselect.texi (pselect): Document this.
13072         select: reject invalid file descriptors
13073         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
13074         * lib/select.c (rpl_select) [!win32]: Work around it.
13075         * modules/select (Depends-on): Add dup2.
13076         * doc/posix-functions/select.texi (select): Document this.
13078         select: enhance test
13079         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
13080         New functions.
13081         (test_function): Enhance test.
13082         (do_select_bad_fd): Avoid any stale errno values.
13084         ptsname: reject invalid file descriptors
13085         http://www.austingroupbugs.net/view.php?id=503
13086         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
13087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
13088         * modules/stdlib (Makefile.am): Replace witness.
13089         * lib/stdlib.in.h (ptsname): Allow for replacement.
13090         * modules/ptsname (configure.ac): Trigger replacement.
13091         * doc/posix-functions/ptsname.texi (ptsname): Document this.
13093 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
13095         hash-pjw-bare: new module
13096         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
13097         * lib/hash-pjw-bare.h: Likewise.
13098         * modules/hash-pjw-bare: New file.
13099         * MODULES.html.sh (Misc): Add it.
13101 2012-10-02  Eric Blake  <eblake@redhat.com>
13103         manywarnings: cater to more gcc infelicities
13104         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
13105         -Wuninitialized without -O.
13107 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
13109         select, poll tests: Make setsockopt invocation effective.
13110         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
13111         the bind() call.
13112         * tests/test-select.h (open_server_socket): Likewise.
13114 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
13116         sockets, sys_stat: restore AC_C_INLINE
13117         This undoes the 2012-09-22 patch.
13118         * m4/sockets.m4 (gl_SOCKETS):
13119         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
13120         Restore AC_C_INLINE, since MSVC requires __inline or _inline
13121         and does not support plain 'inline'.  Reported by Bruno Haible in
13122         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
13124 2012-09-30  Bruno Haible  <bruno@clisp.org>
13126         localeconv tests: Avoid test failure on OpenIndiana.
13127         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
13128         skip the 'grouping' and 'mon_grouping' tests.
13129         Reported by Jim Meyering.
13131 2012-09-30  Bruno Haible  <bruno@clisp.org>
13133         havelib: Follow libtool developments.
13134         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
13135         Suggested by Simon Josefsson.
13137 2012-09-29  Jim Meyering  <meyering@redhat.com>
13139         fstatat.c: fix a compile-impeding typo
13140         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
13141         Introduced in commit v0.0-7636-gd202279.
13142         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
13144 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
13146         extern-inline: provide a -Wundef safe config.h
13147         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
13148         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
13149         to produce a -Wundef warning free config.h.
13151 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13153         hash-pjw: relax license to LGPLv2+
13154         * modules/hash-pjw (License): Relax, with consent of author.
13156 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
13158         maint.mk: fix strict vs. lazy variable issues with RELEASE
13159         * top/maint.mk (_equal): New function.
13160         (member_check): Strip the result to avoid spurious spaces.
13161         (url_dir_list): Do not use ifeq, which is strict, as it will
13162         require RELEASE_TYPE to be defined.
13163         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
13164         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
13165         (announcement_Cc_alpha,announcement_mail_headers_alpha)
13166         (announcement_Cc_beta,announcement_mail_headers_beta)
13167         (announcement_Cc_stable,announcement_mail_headers_stable): these.
13168         (release): Do not depend on $(release-type), as it forces its
13169         evaluation.  Bounce to it.
13171 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
13173         maint.mk: formatting changes
13174         * top/maint.mk: Indent bodies of if's.
13176 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
13178         maint.mk: factor the validation of RELEASE_TYPE
13179         With help from Jim Meyering.
13180         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
13181         * top/maint.mk (_empty, _sp): Move their definition earlier.
13182         (member-check, release-type): New.
13183         Use the latter instead of $(RELEASE_TYPE).
13184         Remove now useless local checks.
13186 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
13188         maint.mk: provide "make upload" to ease uploading
13189         See
13190         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
13191         Do not depend simply on the current $(VERSION), as there may have been
13192         new commits since the tarball generation.  Rather, rely on $(RELEASE),
13193         as "make release-commit" already does.
13195         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
13196         "make TYPE".
13198         * top/maint.mk (upload_command, upload, release): New.
13199         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
13200         (VERSION): first word of $(RELEASE) is always right.
13201         (emit_upload_commands): Adjust.
13202         * top/README-release: Update.
13204 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
13206         maint.mk: silent rules
13207         With help from Stefano Lattarini.
13208         * top/maint.mk (writable-files): Use $(AM_V_GEN).
13209         (announcement): Use $(AM_V_at).
13211 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13213         localename: port gl_locale_name_thread_unsafe to FreeBSD
13214         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
13215         and use the simpler FreeBSD implementation on Mac OS X as well.
13216         Original idea suggested by Ed Maste in
13217         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
13219 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13221         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
13222         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
13223         * lib/mbuiter.c, lib/xsize.c: New files.
13224         * lib/binary-io.h (BINARY_IO_INLINE):
13225         * lib/eealloc.h (EEALLOC_INLINE):
13226         * lib/mbfile.h (MBFILE_INLINE):
13227         * lib/mbiter.h (MBITER_INLINE):
13228         * lib/mbuiter.h (MBUITER_INLINE):
13229         * lib/xsize.h (XSIZE_INLINE):
13230         New macros.
13231         Replace all uses of 'static inline' with them.
13232         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13233         * m4/eealloc.m4 (gl_EEALLOC):
13234         * m4/mbfile.m4 (gl_MBFILE):
13235         * m4/mbiter.m4 (gl_MBITER):
13236         * m4/xsize.m4 (gl_XSIZE):
13237         Do not require AC_C_INLINE.
13238         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
13239         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
13240         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
13241         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
13242         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
13243         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
13244         * modules/binary-io, modules/eealloc, modules/mbfile:
13245         * modules/mbiter, modules/mbuiter:
13246         (Depends-on): Add extern-inline.
13248         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
13249         * lib/pipe-filter-aux.c: New file.
13250         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
13251         Replace all uses of 'static inline' with it.
13252         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13253         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
13254         (filter_retcode): No real need for inline here.
13255         * modules/pipe-filter-gi, modules/pipe-filter-ii:
13256         (Files): Add lib/pipe-filter-aux.c.
13257         (Depends-on): Add extern-inline.
13258         (configure.ac): Do not require AC_C_INLINE.
13259         (lib_SOURCES): Add pipe-filter-aux.c.
13261         fdutimensat: omit unnecessary AC_C_INLINE
13262         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
13264         fchmodat, fchownat, fstatat: use extern-inline
13265         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
13266         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
13267         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
13268         New macros.
13269         * lib/openat.h:
13270         Replace all uses of 'static inline' with them.
13271         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13272         * modules/fchmodat, modules/fchownat, modules/fstatat:
13273         * modules/openat-h:
13274         (Depends-on):
13275         Add extern-inline.
13276         (configure.ac): Remove AC_C_INLINE.
13278         acl, mbchar, priv-set: use extern-inline
13279         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
13280         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
13281         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
13282         New macros.
13283         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
13284         Replace all uses of 'static inline' with it.
13285         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13286         * m4/acl.m4 (gl_FUNC_ACL):
13287         * m4/mbchar.m4 (gl_MBCHAR):
13288         * m4/priv-set.m4 (gl_PRIV_SET):
13289         Remove AC_C_INLINE, since 'inline' is no longer used directly.
13290         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
13291         Add extern-inline.
13293         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
13294         * m4/sockets.m4 (gl_SOCKETS):
13295         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
13296         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
13297         environments where it's already guaranteed to work, so we needn't
13298         check for it at 'configure'-time.
13300         tls-tests: omit unnecessary 'inline'
13301         * tests/test-tls.c (perhaps_yield): No longer inline.
13302         Simplicity and portability trump efficiency in test cases.
13304         utimens-tests: avoid unnecessary 'inline'
13305         * modules/fdutimensat-tests (configure.ac):
13306         * modules/futimens-tests (configure.ac):
13307         * modules/utimens-tests (configure.ac):
13308         * modules/utimensat-tests (configure.ac):
13309         Remove AC_C_INLINE.
13310         * tests/test-utimens-common.h (ctime_compare):
13311         No longer inline.  Simplicity and portability trump efficiency here.
13313         misc: don't limit commentary to inline functions
13314         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
13315         * lib/xalloc-oversized.h, lib/xsize.h:
13316         Contrast macros to functions in general, not just to inline functions,
13317         when the commentary does not apply only to inline functions.
13319 2012-09-20  Jim Meyering  <meyering@redhat.com>
13321         non-recursive-gnulib-prefix-hack: new module
13322         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
13323         the file that originated in Bison.
13324         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
13325         largely copied from a snippet that resided in bison's configure.ac.
13326         * modules/non-recursive-gnulib-prefix-hack: New file.
13327         * MODULES.html.sh (Support for maintaining and releasing projects):
13328         Add it.
13330 2012-09-18  Jim Meyering  <meyering@redhat.com>
13332         maint.mk: generalize _gl_tight_scope for non-recursive make
13333         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
13334         that *.h would describe additional .h files in the directory
13335         specified by $(_gl_TS_dir).  I.e., add this...
13336         (_gl_TS_other_headers): New variable.
13338         maint.mk: exempt trailing blanks found in "binary" files
13339         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
13340         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
13341         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
13343 2012-09-17  Jim Meyering  <meyering@redhat.com>
13345         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
13346         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
13347         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
13348         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
13350 2012-09-17  Jim Meyering  <meyering@redhat.com>
13352         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
13353         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
13354         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
13355         It is not in the same category as "exit (0)" or "exit (1)", and
13356         besides, I know of no symbolic name for that 77.  Reported by
13357         Richard W.M. Jones in
13358         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
13360 2012-09-17  Jim Meyering  <meyering@redhat.com>
13362         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
13363         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
13364         all uses of #define, not just those that start in column 1.
13365         Richard W.M. Jones reported a false positive in
13366         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
13368 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
13370         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
13371         * lib/localcharset.c (locale_charset) [DARWIN7]:
13372         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
13373         as these two values are incompatible.  Problem reported by Max Horn.
13374         For more discussion, please see
13375         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
13377         doc: document sticky-EOF issue
13378         * doc/posix-functions/fgetc.texi (fgetc):
13379         * doc/posix-functions/fgets.texi (fgets):
13380         * doc/posix-functions/fread.texi (fread):
13381         * doc/posix-functions/fscanf.texi (fscanf):
13382         * doc/posix-functions/getc.texi (getc):
13383         * doc/posix-functions/getchar.texi (getchar):
13384         * doc/posix-functions/scanf.texi (scanf):
13385         Mention that glibc and default Solaris do not conform to
13386         C99 and POSIX-2001 or later, with respect to how getchar
13387         etc. behave when feof reports nonzero.
13389 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
13391         poll: fix poll(0, NULL, msec)
13392         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
13393         but nfd is 0.  In that case poll should behave like select.
13395 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
13396             Paolo Bonzini <bonzini@gnu.org>
13398         poll: fix for systems that can't recv() on a non-socket
13399         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
13400         is readable.  In this case POLLHUP will not be supported.
13401         * doc/posix-functions/poll.texi: Document this.
13403 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
13405         poll/select: document portability problems not fixed by Gnulib.
13406         * doc/posix-functions/poll.texi: poll does not work well on
13407         pipes under Windows.  It has the same limitations as select on
13408         BeOS.
13409         * doc/posix-functions/select.texi: select does not work well
13410         on pipes under Windows.
13412 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13414         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
13415         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
13416         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
13417         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
13419 2012-09-06  Eric Blake  <eblake@redhat.com>
13421         net_if: give more details about the bug being fixed
13422         * doc/posix-headers/net_if.texi: Add clarification.
13424 2012-09-05  Eric Blake  <eblake@redhat.com>
13426         net_if: new module
13427         * modules/net_if: New module, borrowing ideas from netinet_in.
13428         * m4/net_if_h.m4: New file.
13429         * lib/net_if.in.h: Likewise.
13430         * doc/posix-headers/net_if.texi (net/if.h): Document it.
13431         * MODULES.html.sh (lacking POSIX:2008): Likewise.
13432         * tests/test-net_if.c: Make function checks conditional.
13433         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
13435 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
13437         readutmp: fix non-portable UT_PID use
13438         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
13439         Use `UT_PID (u) > 0' as absolute condition.
13441 2012-09-04  Jim Meyering  <meyering@redhat.com>
13443         fts: reduce two or more trailing spaces to just one, usually
13444         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
13445         or more slashes, trim all but the final one.  But if a name consists
13446         solely of two slashes, don't modify it.  If it consists solely of
13447         three or more slashes, strip all but one.
13449         This is part of the solution to a minor problem with rm:
13450         it would print a bogus ELOOP diagnostic when failing to remove
13451         the slash-decorated name of a symlink-to-directory:
13453             $ mkdir d && ln -s d s && env rm -r s/
13454             rm: cannot remove 's': Too many levels of symbolic links
13456         With the change below and a trivial don't-trim-trailing-slashes
13457         adjustment to remove.c, it does this:
13459             $ env rm -r s/
13460             rm: cannot remove 's/': Not a directory
13462         Improved by: Eric Blake
13464         fts: when there is no risk of overlap, use memcpy, not memmove
13465         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
13467 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
13469         stdbool: be more compatible with mixed C/C++ compiles
13470         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
13471         Define to bool, true, false, respectively, as GCC's builtin
13472         stdbool.h does.  Problem reported by Michael Goffioul in
13473         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
13475 2012-08-28  Jim Meyering  <meyering@redhat.com>
13477         revert last change: it was not needed
13478         * tests/test-vc-list-files-git.sh: There's already a test for
13479         a working git, just below.
13481 2012-08-28  Jim Meyering  <meyering@redhat.com>
13483         tests: test-vc-list-files-git.sh: skip if git is not available
13484         * tests/test-vc-list-files-git.sh: Skip this test when git is
13485         not available.
13487 2012-08-26  Bruno Haible  <bruno@clisp.org>
13489         gnulib-tool: Remove no-op option --no-changelog.
13490         * gnulib-tool (func_usage): Don't mention --no-changelog.
13491         (do_changelog): Remove variable.
13492         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
13494 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13496         doc: remove fdl-1.2.texi
13497         It is no longer used or maintained, and its use of @acronym
13498         is problematic.  See the thread containing
13499         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
13500         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
13501         * doc/old-licenses/fdl-1.2.texi: Remove.
13503         execinfo: port to FreeBSD
13504         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
13505         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
13506         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
13507         * modules/execinfo (Link): Add $(LIB_EXECINFO).
13509 2012-08-23  Jim Meyering  <meyering@redhat.com>
13511         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
13512         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
13513         to placate gcc's -Wold-style-declaration.
13515 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13517         doc: do not use @acronym
13518         * doc/inet_ntoa.texi (inet_ntoa):
13519         * doc/parse-datetime.texi (Seconds since the Epoch)
13520         (Specifying time zone rules):
13521         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
13522         Don't use @acronym.  Problem reported by John Darlington in
13523         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
13525 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13527         stdnoreturn: port to newer GCCs
13528         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
13529         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
13530         Problem reported by Jim Meyering in
13531         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
13532         Also, rename the 'test' function to a void a clash with the
13533         already-supplied 'main' function; this fixes a bug that incorrectly
13534         rejected GCC 4.7.1's <stdnoreturn.h>.
13535         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
13536         Document GCC problem.
13538 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
13540         pipe-filter: fix comment typo
13541         * lib/pipe-filter.h: Mention correct function.
13543 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
13545         execinfo: new module
13546         This is for Emacs.  Currently, it provides a no-effect stub
13547         on all platforms where it does not already work.
13548         It already works on glibc-based systems, and on Solaris 11.
13549         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
13550         New files.
13551         * doc/glibc-headers/execinfo.texi (execinfo.h):
13552         * MODULES.html.sh (Misc): Document it.
13554 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
13556         extern-inline: support old GCC 'inline'
13557         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
13558         if available.  This applies to GCC versions 2.7 through 4.2, or
13559         when newer GCC is using -fgnu89-inline.  The goal is to address
13560         some of the performance issues mentioned by Bruno Haible in
13561         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
13563 2012-08-20  Eric Blake  <eblake@redhat.com>
13565         maint.mk: avoid redundant file name in message
13566         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
13567         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
13568         (sc_makefile_path_separator_check): Remove bogus $(ME).
13570 2012-08-20  Mike Frysinger <vapier@gentoo.org>
13572         timer-time: fix link order when static linking on glibc
13573         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
13574         _after_ -lrt so that it's significant.
13576 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
13578         timespec: omit unnecessary AC_C_INLINE
13579         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
13581         stat-time: omit unnecessary AC_C_INLINE
13582         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
13583         Do not require AC_C_INLINE.
13585         ignore-value: omit unnecessary AC_C_INLINE
13586         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
13588         sys_select: avoid 'static inline'
13589         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
13591         mktime: avoid 'static inline'
13592         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
13593         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
13595 2012-08-19  Bruno Haible  <bruno@clisp.org>
13597         gnulib-tool: Improve coding style.
13598         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
13599         func_emit_lib_Makefile_am.
13600         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
13602 2012-08-19  Bruno Haible  <bruno@clisp.org>
13604         gnulib-tool: Fix indentation.
13605         * gnulib-tool (func_import): Fix indentation.
13607 2012-08-19  Bruno Haible  <bruno@clisp.org>
13609         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
13610         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
13611         on the list of removed files.
13613 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
13615         test-parse-datetime: avoid glibc leap-second glitch
13616         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
13617         with the 2012 rules.  Problem reported by Bruce Dubbs in
13618         <http://bugs.gnu.org/12206>.
13620 2012-08-14  Bruno Haible  <bruno@clisp.org>
13622         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
13623         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
13624         from argument.
13625         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
13627 2012-08-14  Eric Blake  <eblake@redhat.com>
13629         ldexp: relax license
13630         * modules/ldexp (License): Trivial relax, since the module only
13631         provides a permissively licensed m4 file.
13633 2012-08-13  Bruno Haible  <bruno@clisp.org>
13635         gnulib-tool: Fix persistence of --witness-c-macro option.
13636         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
13637         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
13639 2012-08-11  Eric Blake  <eblake@redhat.com>
13641         count-leading-zeros: use a lookup table on non-gcc compilers
13642         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
13643         alternate implementation, suggested by Jim Meyering.
13645 2012-08-10  Eric Blake  <eblake@redhat.com>
13647         count-leading-zeros: new module
13648         * modules/count-leading-zeros: New module.
13649         * m4/count-leading-zeros.m4: New file.
13650         * lib/count-leading-zeros.h: Likewise.
13651         * modules/count-leading-zeros-tests: New test.
13652         * tests/test-count-leading-zeros.c: New file.
13653         * MODULES.html.sh (Integer arithmetic functions): Document it.
13655 2012-08-07  Simon Josefsson  <simon@josefsson.org>
13656             Jim Meyering  <meyering@redhat.com>
13658         maintainer-makefile: Fix syntax error with dash.
13659         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
13660         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
13662 2012-08-05  Jim Meyering  <meyering@redhat.com>
13664         extern-inline: also ignore -Wmissing-declarations
13665         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
13666         required with gcc-4.8.0-to-be.
13668         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
13669         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
13670         for /error ?([^,]*)/.  This avoids false-positives for strings like
13671         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
13673 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
13675         gnumakefile: better interaction with Automake-NG
13676         * modules/gnumakefile [Makefile.am]: The makefiles generated by
13677         Automake-NG always contain a definition of VPATH, even in non-VPATH
13678         builds (its value being simply '.' in that case).  So, in the
13679         'clean-GNUmakefile' rule, to determine whether running under a
13680         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
13681         '$(VPATH)' expands to the empty string.
13683 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
13685         base64: Use extern C scope in header file, for C++.
13686         * lib/base64.h: Add C++ namespace protection.
13688 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
13690         stat-time, timespec, u64: support naive out-of-dir builds
13691         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
13692         Use '#include "foo.h"', not '#include <foo.h>', when including
13693         one's own interface.  This works better when configuring with
13694         out-of-directory builds, since packages need not add an
13695         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
13697 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
13699         utimens: use extern-inline
13700         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
13701         * lib/utimens.h: Add copyright notice, since this is now large enough
13702         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13703         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
13704         * modules/utimens (Depends-on): Add extern-inline.
13706         u64: use extern-inline
13707         * lib/u64.c: New file.
13708         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13709         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
13710         * modules/u64 (Files): Add lib/u64.c.
13711         (Depends-on): Add extern-inline.
13712         (configure.ac): No need to require AC_C_INLINE, since extern-inline
13713         does that now.
13714         (lib_SOURCES): Add u64.c.
13716         timespec: use extern-inline
13717         * lib/timespec.c: New file.
13718         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13719         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
13720         * modules/timespec (Files): Add lib/timespec.c.
13721         (Depends-on): Add extern-inline.
13722         (lib_SOURCES): Add timespec.c.
13724         stat-time: use extern-inline
13725         * lib/stat-time.c: New file.
13726         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13727         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
13728         * modules/stat-time (Files): Add lib/stat-time.c.
13729         (Depends-on): Add extern-inline.
13730         (lib_SOURCES): Add stat-time.c.
13732         extern-inline: new module
13733         * modules/extern-inline, m4/extern-inline.m4: New files.
13734         This is for better support of 'extern inline' a la ISO C99,
13735         with a portable alternative on compilers that do not support
13736         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
13737         of the Emacs executable, when compiled with debugging disabled,
13738         which is a typical way that Emacs is built while developing.
13740 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
13742         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
13743         * build-aux/do-release-commit-and-tag: Move variable definitions
13744         together.
13745         ($branch): Instead of defaulting to "master", default to the current
13746         branch (as gnu-web-doc-update does).
13747         (help): Display the current values of the option arguments.
13748         * top/maint.mk (release-commit): New.
13749         * top/README-release: Simplify the corresponding step.
13751 2012-07-30  Eric Blake  <eblake@redhat.com>
13753         passfd: fix comment on recvfd
13754         * lib/passfd.c (recvfd): Fix comment.
13755         Reported by Jann Horn <jannhorn@googlemail.com>.
13757 2012-07-30  Jim Meyering  <meyering@redhat.com>
13759         maint.mk: avoid a sub-shell
13760         * top/maint.mk (release-prep): Remove unneeded sub-shell.
13762 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
13764         maint.mk: use silent-rules support from Automake
13765         * top/maint.mk (news-check, vc-diff-check, announcement)
13766         (no-submodule-changes, alpha beta stable, release-prep)
13767         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
13769 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
13771         maint.mk: provide a web-manual-update target
13772         * top/maint.mk: here.
13773         * top/README-release: Use it to simplify the web manual update step.
13775 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
13777         README-release: shorten the circuit to post a news
13778         * top/README-release: Point directly to the news submission form.
13780 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
13782         gnu-web-doc-update: fix --help
13783         * build-aux/gnu-web-doc-update: The information "top level" was written
13784         twice.
13786 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
13788         maint.mk: absolute VPATH issue
13789         * top/maint.mk (release-prep): Help Git find .git/.
13790         From Jim Meyering.
13792 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
13794         gitlog-to-changelog: fix previous change
13795         * build-aux/gitlog-to-changelog: Fix condition.
13796         Add missing ";".
13798 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
13800         gitlog-to-changelog: don't expect .git to be in $srcdir
13801         Reported by Bruno Haible.
13802         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
13803         * build-aux/gitlog-to-changelog (&git_dir_option): New.
13804         Use it.
13806 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
13808         maint.mk: absolute VPATH build fix
13809         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
13810         $(srcdir) is not a parent of $(builddir).
13812 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
13814         clean-temp: Fix memory leak.
13815         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
13816         'files' members of tmpdir.
13818 2012-07-27  Jim Meyering  <meyering@redhat.com>
13820         maint.mk: new rule: refresh-gnulib-patches
13821         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
13822         Use this rule to refresh them.
13823         * top/maint.mk (refresh-gnulib-patches): New rule.
13825 2012-07-24  Bruno Haible  <bruno@clisp.org>
13827         gnulib-tool: Fix handling of inctests variable.
13828         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
13829         Reported by Nick Bowler <nbowler@elliptictech.com>.
13831 2012-07-22  Bruno Haible  <bruno@clisp.org>
13833         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
13834         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
13835         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
13836         Remove exemption for getpass.h.
13837         Suggested by Eric Blake.
13839 2012-07-20  Eric Blake  <eblake@redhat.com>
13841         verify: document conflict with -Wnested-externs
13842         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
13844         maint.mk: forbid exit(-1)
13845         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
13847 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
13849         fsusage: port back to Solaris
13850         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
13851         error (fsd not declared) on Solaris 10.  Reported privately by
13852         Andrew Borodin.
13854 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
13856         gnu-web-doc-update: fix error messages
13857         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
13859         gnu-web-doc-update: check the requirements.
13860         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
13861         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
13862         * build-aux/bootstrap (find_tool): Comment change.
13864 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
13866         maint.mk: minor simplication.
13867         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
13868         for default values.
13870 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
13872         gitlog-to-changelog: VPATH build issues
13873         If builddir is not a subdirectory of srcdir, running git from it will
13874         fail.
13875         * build-aux/gitlog-to-changelog (--srcdir): New option.
13877 2012-07-15  Bruno Haible  <bruno@clisp.org>
13879         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
13880         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
13881         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
13882         Remove exemption for fpending.h.
13883         Suggested by Eric Blake.
13885 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13887         pthread_sigmask: fix bug on FreeBSD 9
13888         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
13889         Include string.h.
13890         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
13891         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
13892         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
13893         but pthread_sigmask (1729, NULL, NULL) returns zero.
13894         See <http://bugs.gnu.org/11884>.
13895         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
13896         by inspecting whether the main call changed the old mask.
13898 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
13900         README-release: make it more legible
13901         * top/README-release: Improve typography slightly.
13903 2012-07-15  Jim Meyering  <meyering@redhat.com>
13905         maint: require that each sc_... command start with "@"
13906         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
13907         "make sc_maint" helps us avoid this nit.
13909 2012-07-15  Jim Meyering  <meyering@redhat.com>
13911         maint.mk: add leading "@" to quiet new "make syntax-check" rule
13912         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
13914 2012-07-13  Eric Blake  <eblake@redhat.com>
13916         maint.mk: new syntax check for HAVE_DECL checks
13917         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
13918         * cfg.mk
13919         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
13920         Exempt some false positives.
13921         Based on a report by Karel Zak.
13923         argp: make HAVE_DECL usage consistent
13924         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
13925         macros, not whether they are defined.
13926         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
13927         convention with other declaration checks.
13928         Reported by Karel Zak, with suggestions from Paul Eggert.
13930         stat-time: relax license to LGPLv2+
13931         * modules/stat-time (License): Relax, with consent of all authors.
13933         strndup: fix m4 usage error
13934         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
13935         defined, to either 0 or 1.
13936         Reported by Karel Zak.
13938 2012-07-11  Jim Meyering  <meyering@redhat.com>
13940         maint: enable the sc_avoid_if_before_free syntax-check rule
13941         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
13942         (if_before_free_offenders_): Define.
13943         (if_before_free_basename_re_): Define.
13944         Exempt current files with useless if-before-free.
13946 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
13948         gettext: do not assume '#define ... defined ...' behavior
13949         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
13950         Do not use '#define FOO ... defined BAR ...', as the C standard says
13951         it's not portable to expect that this works after macro expansion.
13952         Problem reported for gzip by Steven M. Schweda in
13953         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
13955 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
13957         getloadavg: clean out old Emacs and Autoconf cruft
13958         See Glenn Morris in <http://bugs.gnu.org/11905>.
13959         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
13960         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
13961         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
13962         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
13964 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
13966         bootstrap: let warn be like tests/init.sh's warn_
13967         Reported by Jim Meyering.
13968         * build-aux/bootstrap (warn): Remove, replaced by...
13969         (warnf_, warn_): these.
13970         Adjust callers.
13971         Shorten messages that no longer fit in 80 columns.
13973 2012-07-09  Bruno Haible  <bruno@clisp.org>
13975         getopt: Simplify after Emacs changed.
13976         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
13977         (gl_GETOPT_IFELSE): Remove macro.
13979 2012-07-09  Jim Meyering  <meyering@redhat.com>
13981         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
13982         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
13984         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
13985         Bugs in both of those conspired to make the
13986         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
13987         _sc_search_regexp's handling of non-empty $in_files would filter
13988         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
13989         choice of in_files value meant there would be no match in most
13990         projects, due to the presence of two or more Makefile.in files.
13991         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
13992         Fix a bug in how a non-empty $$in_files was processed:
13993         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
13994         in spite of the name, it's a regexp, not a list of file names.
13996 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13998         getloadavg, getopt: fix commentary re configure.in
13999         Autoconf is deprecating the name 'configure.in', so change it to
14000         to the new name 'configure.ac' in a couple of places.
14001         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
14002         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
14003         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
14004         Emacs has renamed it to configure.ac, and it no longer refers
14005         to these macros anyway.
14007         timespec: mark functions with const attributes
14008         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
14009         Mark with _GL_ATTRIBUTE_CONST.
14011 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
14013         canonicalize[-lgpl]: handle "guessing" values when cross-building
14014         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
14015         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
14016         matches "*yes" instead of just "yes".  Regression introduced in commit
14017         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
14019 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
14020             Bruno Haible  <bruno@clisp.org>
14022         canonicalize: make the right guess when cross-compiling to GNU
14023         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
14024         determine whether cross-compiling to glibc systems, so as to
14025         include GNU/Hurd.
14027 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14029         timespec-sub: avoid duplicate include
14030         * lib/timespec-sub.c: Do not include <config.h> twice.
14031         Reported by Juanma Barranquero.
14033 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
14035         bootstrap: use a more consistent error reporting scheme
14036         * build-aux/bootstrap (warn, die): New.
14037         Use them.
14039 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14041         sys_time: allow too-wide tv_sec
14042         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
14043         timeval even if tv_sec is wider than time_t.  This allows
14044         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
14045         as without this patch gnulib replaces struct timeval
14046         and OpenBSD futimes therefore has a type mismatch.
14047         * doc/posix-headers/sys_time.texi: Mention this.
14049         pthread: check for both pthread_create and pthread_join
14050         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
14051         alter the check so that it tests for both pthread_create and
14052         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
14053         Suggested by Bruno Haible and Richard Yao in
14054         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
14056         parse-datetime: doc tuneup
14057         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
14058         spacing issues.
14060 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
14062         do-release-commit-and-tag: fix the previous commit
14063         * build-aux/do-release-commit-and-tag: Actually the test was right,
14064         but the comment and the error message were misleading.
14065         Fix comment, and improve error message.
14066         Perform check first, so that NEWS is not modified uselessly.
14068         do-release-commit-and-tag: fix typo
14069         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
14070         _not_ start with a stub.
14072 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14074         pthread: check for pthread_create, not pthread_join
14075         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
14076         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
14077         pthread_join in libc.  I hope this removes the need for all the
14078         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
14079         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
14081 2012-07-04  Jim Meyering  <meyering@redhat.com>
14083         parse-datetime: fix failure to diagnose invalid input
14084         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
14085         rather than diagnosing the invalid input.  Now it reports this:
14086         date: invalid date '\260'
14087         * lib/parse-datetime.y (to_uchar): Define.
14088         (yylex): Don't sign-extend "other" bytes.
14089         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
14090         Thanks to Bruno Haible for the patch to this file.
14091         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
14092         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
14094 2012-07-03  Jim Meyering  <meyering@redhat.com>
14096         bootstrap: do not require now-removed build-aux/missing
14097         Now that build-aux/missing is, er, missing, bootstrap would
14098         silently fail.
14099         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
14100         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
14101         no longer part of gnulib.
14102         Diagnose the failure.
14104 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
14106         alloca: add support for HP NonStop TNS/E native
14107         * lib/alloca.in.h (alloca): Support the new host.
14108         From a suggestion by Joachim Schmitz in
14109         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
14111 2012-07-02  Pádraig Brady  <P@draigBrady.com>
14113         fsusage: remove code not needed on non GNU/Linux systems.
14115         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
14116         Don't include headers no longer needed in this case.
14117         * lib/fsusage.c [STAT_STATVFS &&
14118         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
14119         STAT_STATFS2_FRSIZE to exclude code not used in this case.
14121 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
14123         fsusage: include files needed for glibc 2.6 fallback
14124         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
14125         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
14126         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
14127         Problem reported by Ludovic Courtès in
14128         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
14130         fsusage: avoid needless check on GNU/Linux
14131         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
14132         on GNU/Linux systems, since it can't possibly work.
14134 2012-07-01  Bruno Haible  <bruno@clisp.org>
14136         log: Fix an autoconf >= 2.64 warning.
14137         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
14138         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
14140 2012-06-28  Bruno Haible  <bruno@clisp.org>
14142         log10f: Fix possible configuration problem.
14143         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
14144         $LOGF_LIBM.
14145         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
14147 2012-06-28  Bruno Haible  <bruno@clisp.org>
14149         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
14150         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
14151         not gl_cv_func_unlink_works.
14152         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
14154 2012-06-27  Eric Blake  <eblake@redhat.com>
14156         config: drop scripts that automake says are not independent
14157         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
14158         * build-aux/elisp-comp: Delete.
14159         * build-aux/missing: Likewise.
14160         * build-aux/ylwrap: Likewise.
14161         * modules/elisp-comp: Likewise.
14162         * MODULES.html.sh: Drop mention of elisp-comp.
14163         * NEWS: Mention this.
14165 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
14167         root-uid: new module
14168         This is for portability to Tandem's NonStop Kernel.
14169         * lib/root-uid.h, modules/root-uid: New files.
14170         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
14171         * lib/write-any-file.c, tests/test-sethostname2.c:
14172         Include "root-uid.h".
14173         * lib/euidaccess.c (euidaccess):
14174         * lib/pt_chown.c (main):
14175         * lib/unlinkdir.c (cannot_unlink_dir):
14176         * lib/write-any-file.c (can_write_any_file):
14177         * m4/mknod.m4 (gl_FUNC_MKNOD):
14178         * tests/test-sethostname2.c (geteuid, main):
14179         Don't assume ROOT_UID == 0.
14180         * modules/euidaccess (Depends-on):
14181         * modules/pt_chown (Depends-on):
14182         * modules/sethostname-tests (Depends-on):
14183         * modules/unlinkdir (Depends-on):
14184         * modules/write-any-file (Depends-on):
14185         Add root-uid.
14187         regex: use locale-independent comparison for codeset name
14188         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
14189         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
14190         for codeset name.
14191         * lib/regex_internal.h: Do not include <strings.h>, since we
14192         no longer use strcasecmp.
14193         * modules/regex (Depends-on): Remove strcase.
14195 2012-06-23  Bruno Haible  <bruno@clisp.org>
14197         getopt-posix: No longer guarantee that option processing is resettable.
14198         * doc/posix-functions/getopt.texi: Drop description of problem with
14199         internal state. Fix info about mingw and msvc9.
14200         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
14201         option processing by getopt(). Run three test programs instead of one.
14202         Simplify cross-compilation guess.
14203         * NEWS: Mention the change.
14204         Reported by Rich Felker <dalias@aerifal.cx>.
14206 2012-06-26  Bruno Haible  <bruno@clisp.org>
14208         argp, regex: Ensure strcasecmp gets declared.
14209         * lib/argp-help.c: Include <strings.h>.
14210         * lib/regex_internal.h: Likewise.
14211         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
14213 2012-06-24  Bruno Haible  <bruno@clisp.org>
14215         ptsname_r: Make it consistent with ptsname on AIX.
14216         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
14217         implementation as for OSF/1.
14218         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
14219         a pty master.
14221         ptsname_r: Make it consistent with ptsname on OSF/1.
14222         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
14223         OSF/1.
14225 2012-06-24  Bruno Haible  <bruno@clisp.org>
14227         ttyname_r: Fix result on OSF/1, Solaris.
14228         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
14230 2012-06-24  Bruno Haible  <bruno@clisp.org>
14232         ptsname_r: Add support for Solaris.
14233         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
14234         Solaris.
14236         ptsname_r: Fix test failure on native Windows.
14237         * modules/ptsname_r (Depends-on): Add isatty.
14239         ptsname_r: Fix test failures on IRIX, Solaris.
14240         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
14241         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
14242         accordingly.
14243         * lib/ptsname_r.c: Include <fcntl.h>.
14244         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
14245         set errno if fd is invalid.
14246         * tests/test-isatty.c (main): Update comments.
14248 2012-06-24  Bruno Haible  <bruno@clisp.org>
14250         ptsname test: Extend test.
14251         * tests/test-ptsname.c: Include <errno.h>.
14252         (main): Test behaviour with invalid file descriptor.
14254 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14256         time: fix obsolete comment
14257         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
14258         reference to HAVE_STRUCT_TIMESPEC in comment.
14260 2012-06-23  Bruno Haible  <bruno@clisp.org>
14262         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
14263         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
14264         does not handle abbreviated long options with equivalent
14265         disambiguations, set gl_replace_getopt to yes.
14266         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
14268 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
14270         time_r: fix typo that always overrode localtime_r decl
14271         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
14272         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
14273         not in a standard include.
14275 2012-06-22  Bruno Haible  <bruno@clisp.org>
14277         Write "Mac OS X" instead of "MacOS X".
14278         * README: Write "Mac OS X" instead of "MacOS X".
14279         * build-aux/bootstrap: Likewise.
14280         * build-aux/install-reloc: Likewise.
14281         * lib/acl-internal.h: Likewise.
14282         * lib/acl_entries.c: Likewise.
14283         * lib/argp-ba.c: Likewise.
14284         * lib/argp-pv.c: Likewise.
14285         * lib/config.charset: Likewise.
14286         * lib/copy-acl.c: Likewise.
14287         * lib/csharpexec.c: Likewise.
14288         * lib/euidaccess.c: Likewise.
14289         * lib/fbufmode.c: Likewise.
14290         * lib/fflush.c: Likewise.
14291         * lib/file-has-acl.c: Likewise.
14292         * lib/filemode.h: Likewise.
14293         * lib/fpurge.c: Likewise.
14294         * lib/freadable.c: Likewise.
14295         * lib/freadahead.c: Likewise.
14296         * lib/freading.c: Likewise.
14297         * lib/freadptr.c: Likewise.
14298         * lib/freadseek.c: Likewise.
14299         * lib/fseeko.c: Likewise.
14300         * lib/fseterr.c: Likewise.
14301         * lib/fsusage.c: Likewise.
14302         * lib/fwritable.c: Likewise.
14303         * lib/fwriting.c: Likewise.
14304         * lib/get-rusage-as.c: Likewise.
14305         * lib/get-rusage-data.c: Likewise.
14306         * lib/getdomainname.c: Likewise.
14307         * lib/idpriv-drop.c: Likewise.
14308         * lib/idpriv-droptemp.c: Likewise.
14309         * lib/localcharset.c: Likewise.
14310         * lib/locale.in.h: Likewise.
14311         * lib/localename.c: Likewise.
14312         * lib/mbsrtowcs-state.c: Likewise.
14313         * lib/nproc.c: Likewise.
14314         * lib/passfd.c: Likewise.
14315         * lib/posix_openpt.c: Likewise.
14316         * lib/printf-parse.c: Likewise.
14317         * lib/progreloc.c: Likewise.
14318         * lib/safe-read.h: Likewise.
14319         * lib/safe-write.h: Likewise.
14320         * lib/sched.in.h: Likewise.
14321         * lib/set-mode-acl.c: Likewise.
14322         * lib/signal.in.h: Likewise.
14323         * lib/stdint.in.h: Likewise.
14324         * lib/stdio-impl.h: Likewise.
14325         * lib/stdlib.in.h: Likewise.
14326         * lib/strtod.c: Likewise.
14327         * lib/sys_select.in.h: Likewise.
14328         * lib/tcgetsid.c: Likewise.
14329         * lib/unistd.in.h: Likewise.
14330         * lib/unlockpt.c: Likewise.
14331         * lib/vasnprintf.c: Likewise.
14332         * lib/vma-iter.c: Likewise.
14333         * lib/wcsrtombs-state.c: Likewise.
14334         * m4/acl.m4: Likewise.
14335         * m4/acosl.m4: Likewise.
14336         * m4/asinl.m4: Likewise.
14337         * m4/atanl.m4: Likewise.
14338         * m4/c-stack.m4: Likewise.
14339         * m4/cosl.m4: Likewise.
14340         * m4/expl.m4: Likewise.
14341         * m4/extensions.m4: Likewise.
14342         * m4/fdatasync.m4: Likewise.
14343         * m4/fmal.m4: Likewise.
14344         * m4/frexp.m4: Likewise.
14345         * m4/frexpf.m4: Likewise.
14346         * m4/frexpl.m4: Likewise.
14347         * m4/fsusage.m4: Likewise.
14348         * m4/getdomainname.m4: Likewise.
14349         * m4/getloadavg.m4: Likewise.
14350         * m4/getopt.m4: Likewise.
14351         * m4/gettext.m4: Likewise.
14352         * m4/gnulib-common.m4: Likewise.
14353         * m4/intdiv0.m4: Likewise.
14354         * m4/intlmacosx.m4: Likewise.
14355         * m4/largefile.m4: Likewise.
14356         * m4/ldexpl.m4: Likewise.
14357         * m4/link-follow.m4: Likewise.
14358         * m4/locale-ar.m4: Likewise.
14359         * m4/locale-fr.m4: Likewise.
14360         * m4/locale-ja.m4: Likewise.
14361         * m4/locale-tr.m4: Likewise.
14362         * m4/locale-zh.m4: Likewise.
14363         * m4/locale_h.m4: Likewise.
14364         * m4/lock.m4: Likewise.
14365         * m4/logl.m4: Likewise.
14366         * m4/mathfunc.m4: Likewise.
14367         * m4/minus-zero.m4: Likewise.
14368         * m4/mktime.m4: Likewise.
14369         * m4/mmap-anon.m4: Likewise.
14370         * m4/multiarch.m4: Likewise.
14371         * m4/nanosleep.m4: Likewise.
14372         * m4/nocrash.m4: Likewise.
14373         * m4/poll.m4: Likewise.
14374         * m4/printf-frexpl.m4: Likewise.
14375         * m4/printf.m4: Likewise.
14376         * m4/signbit.m4: Likewise.
14377         * m4/sinl.m4: Likewise.
14378         * m4/sqrtl.m4: Likewise.
14379         * m4/strerror_r.m4: Likewise.
14380         * m4/tanl.m4: Likewise.
14381         * m4/threadlib.m4: Likewise.
14382         * m4/ttyname_r.m4: Likewise.
14383         * m4/unlink.m4: Likewise.
14384         * m4/visibility.m4: Likewise.
14385         * m4/wcwidth.m4: Likewise.
14386         * tests/minus-zero.h: Likewise.
14387         * tests/test-alloca-opt.c: Likewise.
14388         * tests/test-copy-acl.sh: Likewise.
14389         * tests/test-copy-file.sh: Likewise.
14390         * tests/test-fdatasync.c: Likewise.
14391         * tests/test-file-has-acl.sh: Likewise.
14392         * tests/test-flock.c: Likewise.
14393         * tests/test-fsync.c: Likewise.
14394         * tests/test-localename.c: Likewise.
14395         * tests/test-malloca.c: Likewise.
14396         * tests/test-nonblocking-pipe.h: Likewise.
14397         * tests/test-nonblocking-socket.h: Likewise.
14398         * tests/test-openpty.c: Likewise.
14399         * tests/test-posix_openpt.c: Likewise.
14400         * tests/test-ptsname.c: Likewise.
14401         * tests/test-ptsname_r.c: Likewise.
14402         * tests/test-sameacls.c: Likewise.
14403         * tests/test-select.h: Likewise.
14404         * tests/test-set-mode-acl.sh: Likewise.
14405         * tests/test-snprintf-posix.h: Likewise.
14406         * tests/test-sprintf-posix.h: Likewise.
14407         * tests/test-strtod.c: Likewise.
14408         * tests/test-time.c: Likewise.
14409         * tests/test-vasnprintf-posix.c: Likewise.
14410         * tests/test-vasprintf-posix.c: Likewise.
14411         * doc/acl-resources.txt: Likewise.
14412         * doc/**/*.texi: Likewise.
14413         Reported by Max Horn <max@quendi.de>.
14415 2012-06-22  Bruno Haible  <bruno@clisp.org>
14417         grantpt: Relax requirement regarding invalid file descriptors.
14418         * lib/grantpt.c: Don't include <fcntl.h>.
14419         (grantpt): Don't verify the validity of the file descriptor.
14420         * modules/grantpt (Depends-on): Remove fcntl-h.
14421         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
14422         file descriptors.
14423         * doc/posix-functions/grantpt.texi: Document more platforms on which
14424         grantpt succeeds for invalid file descriptors.
14425         Reported by Rich Felker <dalias@aerifal.cx>.
14427 2012-06-22  Bruno Haible  <bruno@clisp.org>
14429         fbufmode test: Don't test unportable behaviour.
14430         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
14431         (main): Invoke it three times.
14432         Reported by Szabolcs Nagy <nsz@port70.net>
14433         and Rich Felker <dalias@aerifal.cx>.
14435 2012-06-21  Bruno Haible  <bruno@clisp.org>
14437         gnulib-tool: Refactor inctests variable.
14438         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
14439         (func_modules_transitive_closure,
14440         func_modules_transitive_closure_separately,
14441         func_import, func_create_testdir): Update.
14443         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
14444         * gnulib-tool: Accept option --without-tests.
14445         (func_usage): Document --without-tests option. Rearrange.
14446         (inctests): Normalize according to the mode.
14447         * NEWS: Mention the change.
14448         Suggested by Simon Josefsson.
14450 2012-06-21  Bruce Korb  <bkorb@gnu.org>
14452         parse-duration test: Avoid spurious output.
14453         * tests/test-parse-duration.sh: Reindent with leading tabs.
14455 2012-06-21  Jim Meyering  <meyering@redhat.com>
14457         maint: disable the strncpy prohibition
14458         * cfg.mk: Do not prohibit strncpy here.
14460 2012-06-21  Bruno Haible  <bruno@clisp.org>
14462         nonblocking: Avoid compilation error on mingw64.
14463         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
14464         fscanf.
14465         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
14466         * modules/vfscanf (configure.ac): Likewise.
14467         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
14468         definition only if stdio.h has prepared it.
14469         Reported by Daniel P. Berrange <berrange@redhat.com>.
14471 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
14473         gnulib-tool: Use readlink if it is available.
14474         * gnulib-tool (func_readlink): Choose function more appropriately.
14476 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14478         posixtm-tests: port to buggy compiler
14479         Problem reported by Simon Josefsson in
14480         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
14481         * modules/posixtm-tests (Depends-on): Add stdint.
14482         * tests/test-posixtm.c (struct posixtm_test.t_expected):
14483         Now of type int_least64_t, not int64_t, both because that's
14484         what INT64_C returns and because int_least64_t works even
14485         on 72-bit hosts.
14486         (T): Use INT64_C on constants outside the traditional int range,
14487         to work around compiler bug noted by Simon.
14489         mktime: fix integer overflow in 'configure'-time test
14490         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
14491         after integer overflow.  Problem reported by Rich Felker in
14492         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
14493         Also, don't look for further instances of a bug if we've already
14494         found one instance; this helps 'configure' run faster.
14496 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
14498         tmpfile, clean-temp: Fix invocation of GetVersionEx.
14499         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
14500         GetVersionEx correctly.
14501         * lib/clean-temp.c (supports_delete_on_close): Likewise.
14503 2012-06-20  Bruno Haible  <bruno@clisp.org>
14505         fdopen: Allow implementations that don't reject invalid fd arguments.
14506         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
14507         succeeds.
14508         Reported by Rich Felker <dalias@aerifal.cx>.
14510 2012-06-20  Simon Josefsson  <simon@josefsson.org>
14512         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
14513         bring in LIBINTL.
14515 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14517         init.sh: do not rely on autoupated PWD
14518         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
14519         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
14520         Although Nelson's bug was not necessarily fixed by this patch,
14521         it seems wise to make the change for safety.
14522         * tests/init.sh (path_prepend_): Do not rely on PWD updating
14523         automagically after 'cd'; this is not reliable on older shells.
14524         (setup_): Fail if we cannot cd to temporary directory.
14526 2012-06-19  Bruno Haible  <bruno@clisp.org>
14528         stat, fstat: Avoid warnings on mingw64.
14529         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
14530         redefining.
14531         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
14532         Reported by Daniel P. Berrange <berrange@redhat.com>.
14534 2012-06-19  Bruno Haible  <bruno@clisp.org>
14536         stdioext: Add support for musl libc.
14538         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
14539         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
14541         * m4/fseterr.m4: New file.
14542         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
14543         function exists.
14544         * modules/fseterr (Files): Add m4/fseterr.m4.
14545         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
14546         __fseterr does not exist.
14547         (Makefile.am): Remove fseterr.c from lib_SOURCES.
14549         * lib/freadable.h: Update comment.
14551         * lib/fwritable.h: Update comment.
14553         * lib/freading.h: Update comment.
14555         * lib/fwriting.h: Update comment.
14557         * m4/freadahead.m4: New file.
14558         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
14559         that function exists.
14560         * modules/freadahead (Files): Add m4/freadahead.m4.
14561         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
14562         __freadahead does not exist.
14563         (Makefile.am): Remove freadahead.c from lib_SOURCES.
14565         * m4/freadptr.m4: New file.
14566         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
14567         function exists.
14568         * modules/freadptr (Files): Add m4/freadptr.m4.
14569         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
14570         __freadptr does not exist.
14571         (Makefile.am): Remove freadptr.c from lib_SOURCES.
14573         * m4/freadseek.m4: New file.
14574         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
14575         exists.
14576         * modules/freadseek (Files): Add m4/freadseek.m4.
14577         (configure.ac): Invoke gl_FUNC_FREADSEEK.
14579         * lib/fpurge.c (fpurge): Update comment.
14581         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
14583 2012-06-19  Bruno Haible  <bruno@clisp.org>
14585         *printf-posix: Put more info into config.log.
14586         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
14587         exit code into config.log.
14589 2012-06-19  Bruno Haible  <bruno@clisp.org>
14591         getopt-gnu: Fix exit code overflow in autoconf test.
14592         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
14593         to keep them below < 128.
14595 2012-06-17  Jim Meyering  <meyering@redhat.com>
14597         maint.mk: fix typo in code to derive GPG key at release time
14598         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
14600 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
14602         regex: avoid warning when pointers are not long
14603         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
14604         and uintptr_t, not long, for portability to hosts where pointers and
14605         long have different sizes.  Issue noted by Daniel P. Berrange in
14606         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
14607         and fix suggested by Bruno Haible in
14608         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
14610 2012-06-17  Bruno Haible  <bruno@clisp.org>
14612         dummy: Relicense into the public domain.
14613         * modules/dummy (License): Set to "public domain".
14614         Suggested by Reuben Thomas.
14616 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
14618         announce-gen: VPATH issues
14619         * build-aux/announce-gen (--srcdir): New option, used to trim the
14620         $srcdir part of the path from $builddir to NEWS.
14621         * top/maint.mk (announcement): Adjust.
14623 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
14625         gnu-web-doc-update: VPATH builds
14626         * build-aux/gnu-web-doc-update (--builddir): New option.
14627         Revamp the handling of options.
14628         Prefer $(...) to `...`.
14629         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
14630         the template, and it is GNU mktemp specific.
14631         Prefer set -e to long series of &&.
14632         Restore the initial git branch, not "master".
14633         Properly initialize submodules (don't rely only on bootstrap).
14634         Do not reconfigure blindly, use config.status.
14635         * top/README-release: Update instructions for gnu-web-doc-update.
14637 2012-06-11  Jim Meyering  <meyering@redhat.com>
14639         maint.mk: revert most of the previous change re "all these"
14640         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
14641         For rationale, see the discussion at
14642         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
14644 2012-06-10  Karl Berry  <karl@gnu.org>
14646         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
14648         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
14650 2012-06-10  Bruce Korb  <bkorb@gnu.org>
14652         parse-duration: Relicense under LGPLv2+.
14653         * modules/parse-duration (License): Change to LGPLv2+.
14655 2012-06-10  Jim Meyering  <meyering@redhat.com>
14657         maint.mk: prohibit common grammar error: "all these"
14658         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
14659         the list of prohibited word sequences.  It should be "all of these".
14660         * lib/tempname.c (__gen_tempname): Fix one of them.
14662 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
14664         do-release-commit-and-tag: support VPATH builds
14665         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
14666         (noteworthy): Defined earlier to factor its value.
14667         (noteworthy_stub): New.
14668         Use it to factor.
14669         (help_version): Split into...
14670         (help, version): these.
14671         Adjust the option processing part.
14672         Support "--option=value" in addition to "--option value".
14673         (builddir): New.
14674         (--builddir): New option.
14675         * top/README-release: Document this.
14676         Reword slightly so that the reader cannot understand that he
14677         has to do these steps before calling do-release-commit-and-tag.
14679 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
14681         readme-release: also require announce-gen and maintainer-makefile
14682         * modules/readme-release (Depends-on): here.
14683         * modules/announce-gen, modules/do-release-commit-and-tag,
14684         modules/gnu-web-doc-update, modules/maintainer-makefile
14685         (Description): Point to readme-release.
14687 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
14689         maint.mk: fix VPATH issues.
14690         * top/maint.mk (news-check): GNU Make understand $< very well.
14691         (release-prep): NEWS is in $(srcdir).
14693 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
14695         readme-release: require the promoted modules.
14696         * modules/readme-release (Depends-on): Add
14697         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
14698         in this text.
14700 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
14701             Bruno Haible  <bruno@clisp.org>
14703         error, strerror-override: Support mingw64 from Fedora 17.
14704         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
14705         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
14706         EINPROGRESS.
14707         * lib/strerror-override.h (strerror_override): Test it.
14708         * lib/strerror-override.c (strerror_override): Likewise.
14709         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
14711 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
14712             Bruno Haible  <bruno@clisp.org>
14714         error, strerror-override: Support mingw64 from Fedora 17.
14715         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
14716         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
14717         * lib/strerror-override.h (strerror_override): Test it.
14718         * lib/strerror-override.c (strerror_override): Likewise.
14720 2012-06-03  Bruno Haible  <bruno@clisp.org>
14722         error, strerror-override: Support new errno values from POSIX:2008.
14723         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
14724         ENOTRECOVERABLE.
14725         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
14726         platforms.
14727         * lib/strerror-override.c (strerror_override): Conditionalize the
14728         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
14729         * lib/strerror-override.h (strerror_override): Declare also if
14730         GNULIB_defined_EOWNERDEAD is defined.
14731         * tests/test-errno.c (e130, e131): New variables.
14732         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
14733         ENOTRECOVERABLE.
14734         Reported by Paolo Bonzini.
14736 2012-05-31  Jim Meyering  <meyering@redhat.com>
14738         savewd: add missing dependency on sys_wait module
14739         * modules/savewd (Depends-on): Add sys_wait, needed at least
14740         for MSVC.  Report and suggested change by Michael Goffioul.
14742 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14744         system-quote-tests: port to CentOS 5
14745         Problem reported by Tom G. Christensen in
14746         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
14747         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
14749 2012-05-29  Jim Meyering  <meyering@redhat.com>
14751         maint: fix typos in comments and ChangeLog
14752         Culprits identified and fixed mostly automatically using these commands:
14753         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
14754         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
14755         using http://github.com/lyda/misspell-check
14756         * ChangeLog: Fix typos.
14757         * doc/solaris-versions: Likewise.
14758         * lib/regexec.c (re_search_stub): Likewise.
14759         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14761 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
14763         manywarnings: remove duplicate -Wmultichar entry
14764         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
14765         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
14766         so keep the entry marked as documented.
14768 2012-05-27  Karl Berry  <karl@gnu.org>
14770         * config/srclist.txt (mktime.c): remove last libc sync,
14771         perhaps just temporarily.
14773 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
14775         regex: don't assume uint64_t or uint32_t
14776         * lib/regcomp.c (init_word_char): Don't assume that the types
14777         uint64_t and uint32_t exist.  The C standard doesn't guarantee
14778         them, and on some 32-bit compilers there is no uint64_t.
14779         Problem reported by Gianluigi Tiesi in
14780         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
14782 2012-05-25  Jim Meyering  <meyering@redhat.com>
14784         maint.mk: add strncpy-prohibiting syntax-check rule
14785         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
14787 2012-05-24  Jim Meyering  <meyering@redhat.com>
14789         maint.mk: compute $(gpg_key_ID) more portably
14790         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
14791         That use of sed is not portable to some fringe systems.
14792         Reported by Paul Eggert in
14793         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
14795 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
14797         mktime: sync from glibc
14798         * config/srclist.txt: Uncomment mktime.c.
14799         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
14800         First, indent with tabs, since glibc uses tabs and doesn't want to
14801         change and we'd rather be identical to glibc.  Also, two small
14802         coding changes:
14803         (isdst_differ): Use &&, not &, as && is the usual style.
14804         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
14805         for clarity.
14807 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
14809         announce-gen: du -h is more portable than du --human
14810         * build-aux/announce-gen (sizes): Invoke du with -h instead
14811         of --human.  Accept leading white space in its output.
14813 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
14815         announce-gen: Improve diagnostics.
14816         * build-aux/announce-gen: When parsing command line options,
14817         prefer "announce-gen: option --release-type requires an argument"
14818         to "Option release-type requires an argument".
14820 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
14822         maint.mk: gpg_key_ID: use sed more portably
14823         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
14824         the closing brace.
14825         (refresh-po): Fuse two sed invocations into one.
14827 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
14829         gitlog-to-changelog: support the log message format used in Bison.
14830         * build-aux/gitlog-to-changelog: Support --strip-tab and
14831         --strip-cherry-picked.
14833 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
14835         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
14836         the rest of the current time slice to another thread in the current
14837         process. So if the thread that feeds the file decscriptor we're
14838         polling is not in the current process, we get busy-waiting.
14839         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
14840         Patch from Theodore Leblond.
14841         * lib/select.c: Split polling out of the loop that sets the output
14842         fd_sets.  Check for zero result and loop if the wait timeout is
14843         infinite.
14845 2012-05-21  Simon Josefsson  <simon@josefsson.org>
14847         select: Fix build error on IRIX 6.5.
14848         * lib/select.c: Include stddef.h for NULL.
14850 2012-05-21  Simon Josefsson  <simon@josefsson.org>
14852         gc: fix libgcrypt detection on older machines.
14853         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
14854         copyright years because the file has been distributed every year
14855         since it was created.
14857 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
14859         crypto: fix bug in large buffer handling
14860         Problem reported by Serge Belyshev for glibc in
14861         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
14862         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
14863         * lib/md4.c (md4_process_block):
14864         * lib/md5.c (md5_process_block):
14865         * lib/sha1.c (sha1_process_block):
14866         * lib/sha256.c (sha256_process_block):
14867         Don't assume the buffer length is less than 2**32.
14868         * lib/sha512.c (sha512_process_block): Likewise.
14869         Here, the bug is present only in the rare case where the host does
14870         not support uint64_t or where size_t is wider than 64 bits.
14871         Use u64size to work around the problems.
14872         * lib/u64.h (u64size): New macro.
14874 2012-05-15  Pádraig Brady  <P@draigBrady.com>
14876         fsusage: fix block size returned on older Linux 2.6
14878         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
14879         which is available since Linux 2.6.
14880         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
14881         when the member is available so it can be used as a fallback.
14882         * doc/posix-functions/statvfs.texi: Mention the hang issue
14883         on Linux < 2.6.36.
14885 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
14887         bootstrap: suppress stderr chatter
14888         * build-aux/bootstrap (insert_sorted_if_absent, main program):
14889         Omit unnecessary chatter to stderr.  The main program chatter
14890         was there only inadvertantly.
14892         bootstrap: .gitignore files created by autopoint, libtool
14893         I ran into this problem when bootstrapping the latest diffutils.
14894         After './bootstrap', 'git status' reported lots of untracked files
14895         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
14896         autopoint and do not need to be version-controlled.
14897         * build-aux/bootstrap: Put into .gitignore the files that
14898         autopoint and libtool create, by keeping track of files that exist
14899         after but not before these programs are run.
14900         (version_controlled_file): Move up.  2nd arg is now full file
14901         name, not base name; this is more convenient.  Put CVS at the end,
14902         as it's now somewhat deprecated.
14904 2012-05-14  Jim Meyering  <meyering@redhat.com>
14906         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
14907         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
14908         definition.  Reported by Bruno Haible.
14910 2012-05-13  Bruno Haible  <bruno@clisp.org>
14911             Paul Eggert  <eggert@cs.ucla.edu>
14913         binary-io: Define set_binary_mode function.
14914         * lib/binary-io.h (set_binary_mode): New function.
14915         (SET_BINARY): Define in terms of set_binary_mode.
14916         * modules/binary-io (configure.ac): Require AC_C_INLINE.
14917         * tests/test-binary-io.c (main): Accept an argument, and test either
14918         set_binary_mode or SET_BINARY depending on the argument.
14919         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
14920         argument. Clean up also t-bin-out0.tmp.
14922 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
14924         bootstrap: take advantage of POSIX shell features
14926         The 'bootstrap' script offered by Gnulib script already uses POSIX
14927         shell features (like $((...)) arithmetic expansions) that are not
14928         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
14929         means that bootstrap must already be run using a proper POSIX shell,
14930         which will thus provide more features, like ${var#pattern} parameter
14931         expansion or inversion of a command exit status with '!'.  We can
14932         thus use these features to improve the clarity and the performances
14933         of the bootstrap script.
14935         Suggested by Eric Blake.
14937         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
14938         of sed/expr plus command substitutions, to save some forks.  While
14939         we are at it, prefer the POSIX $(...) form of command substitution,
14940         rather than the legacy form `...` (since the former is visually
14941         clearer and interacts better with quoting), and prefer the idiom:
14942           "if ! CMD; then ACTION ..."
14943         over the idiom:
14944           "if CMD; then :; else ACTION ..."
14945         which was required by legacy Bourne shells not supporting '!'.
14947 2012-05-12  Bruno Haible  <bruno@clisp.org>
14949         system-quote: Add more comments.
14950         * lib/system-quote.h: Add more comments about wilcards and limitations.
14951         Suggested by Eli Zaretskii <eliz@gnu.org>.
14953         sh-quote, system-quote: Add comments about wildcards.
14954         * lib/sh-quote.h: Clarify what happens with wildcard characters.
14955         * lib/system-quote.h: Likewise.
14956         Reported by Eli Zaretskii <eliz@gnu.org>.
14958 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14960         fsusage: check for GNU/Linux statvfs problem dynamically
14961         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
14962         Define STAT_STATFS2_BSIZE too, since in this case the code now
14963         checks dynamically whether statvfs is reliable, falling back on
14964         Linux-style statfs otherwise.
14965         (statvfs_works): New function, for dynamically testing statvfs.
14966         (get_fs_usage) [STAT_STATVFS]: Use it.
14967         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
14968         statvfs on GNU/Linux hosts, since it's now done dynamically.
14970 2012-05-10  Bruno Haible  <bruno@clisp.org>
14972         system-quote, execute, spawn-pipe: Escape '?' on Windows.
14973         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
14974         '?' character.
14975         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
14976         * tests/test-system-quote-main.c (check_all): Check also strings like
14977         "??????????".
14978         Reported by Eli Zaretskii <eliz@gnu.org>.
14980 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
14982         _Noreturn: port config.h to gcc -Wundef
14983         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
14984         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
14985         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
14987 2012-05-10  Bruno Haible  <bruno@clisp.org>
14989         system-quote: Refactor.
14990         * lib/system-quote.h (system_quote_copy): Fix comment.
14991         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
14992         New functions, extracted from system_quote_copy.
14993         (system_quote_length, system_quote_copy): Use these functions.
14994         Reported by Paul Eggert.
14996 2012-05-08  Bruno Haible  <bruno@clisp.org>
14998         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
14999         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
15001 2012-05-08  Bruno Haible  <bruno@clisp.org>
15003         Tests for module 'system-quote'.
15004         * modules/system-quote-tests: New file.
15005         * tests/test-system-quote.sh: New file.
15006         * tests/test-system-quote-main.c: New file.
15007         * tests/test-system-quote-child.c: New file.
15009         New module 'system-quote'.
15010         * lib/system-quote.h: New file.
15011         * lib/system-quote.c: New file.
15012         * modules/system-quote: New file.
15014 2012-05-08  Bruno Haible  <bruno@clisp.org>
15016         sh-quote: Make C++ safe and allow multiple inclusion.
15017         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
15018         declarations in extern "C".
15020 2012-05-08  Bruno Haible  <bruno@clisp.org>
15022         sh-quote tests: Make tests stricter.
15023         * tests/test-sh-quote.c (check_one): Check the return value of
15024         shell_quote_copy.
15025         (main): Check a string with a CR character. Check a string that
15026         contains UCHAR_MAX.
15028 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
15030         warnings.m4: provide a means to specify the program to compile.
15031         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
15032         (gl_WARN_ADD): here.
15033         Use gl_AS_VAR_APPEND.
15034         Support an argument to specify the program to compile.
15035         (gl_WARN_ADD): Accept an argument to specify the program to compile.
15036         AC_SUBST the WARN_CFLAGS when they are used.
15037         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
15038         leave this to gl_WARN_ADD.
15040 2012-05-08  Eric Blake  <eblake@redhat.com>
15042         doc: recommendations on gettext version
15043         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
15044         choice between versions.
15045         * DEPENDENCIES (gettext): Cover both approaches.
15047 2012-05-08  Jim Meyering  <meyering@redhat.com>
15049         init.sh: explain why EXEEXT support uses aliases rather than functions
15050         * tests/init.sh: Add a comment.
15052         init.sh: don't let bash aliases interfere with tests
15053         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
15054         is bash.  This avoids problems for those who alias standard commands to
15055         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
15056         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
15058 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15060         stdint: be more consistent with glibc, SunOS libc
15061         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
15062         (gl_int_fast16_t, gl_uint_fast16_t)
15063         (gl_int_fast32_t, gl_uint_fast32_t)
15064         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
15065         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
15066         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
15067         Be consistent with glibc by default, and with SunOS 5.10 and later
15068         if __sun is defined.  This lessens the likelihood of clashes if
15069         code compiled for older hosts is combined with code compiled for
15070         newer ones.  Problem reported by Niels Möller in
15071         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
15073 2012-05-07  Eric Blake  <eblake@redhat.com>
15075         isatty: relax license to LGPLv2+
15076         * modules/isatty (License): Relax license.
15078 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
15080         stat-size: comment fix
15081         * lib/stat-size.h: Remove obsolete comment about indenting.
15083 2012-05-06  Bruno Haible  <bruno@clisp.org>
15085         Tests for module 'sh-quote'.
15086         * modules/sh-quote-tests: New file.
15087         * tests/test-sh-quote.c: New file.
15089 2012-05-06  Bruno Haible  <bruno@clisp.org>
15091         sh-quote: Improve shell_quote_argv's signature.
15092         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
15093         * lib/sh-quote.c (shell_quote_argv): Likewise.
15095 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
15097         stdint: document issues with int_fast8_t etc.
15098         * doc/posix-headers/stdint.texi (stdint.h): Say that other
15099         stdint.h substitutes may define these types differently.  See
15100         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
15102 2012-05-05  Bruno Haible  <bruno@clisp.org>
15104         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
15105         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
15106         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
15107         or 'guessing no (mishandles large arguments)'.
15109 2012-05-05  Bruno Haible  <bruno@clisp.org>
15111         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
15112         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
15113         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
15114         set gl_cv_func_link_follows_symlink to "guessing no".
15116 2012-05-05  Bruno Haible  <bruno@clisp.org>
15118         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
15119         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
15120         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
15121         "guessing no".
15122         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
15124 2012-05-05  Bruno Haible  <bruno@clisp.org>
15126         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
15127         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
15128         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
15129         set gl_cv_struct_dirent_d_ino to "guessing yes".
15131 2012-05-05  Bruno Haible  <bruno@clisp.org>
15133         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
15134         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
15135         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
15136         "guessing yes".
15138 2012-05-05  Bruno Haible  <bruno@clisp.org>
15140         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
15141         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
15142         compiling to a glibc system, set gl_cv_func_signbit and
15143         gl_cv_func_signbit_gcc to "guessing yes".
15145 2012-05-05  Bruno Haible  <bruno@clisp.org>
15147         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
15148         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
15149         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
15150         to "guessing yes".
15151         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
15152         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
15154 2012-05-05  Bruno Haible  <bruno@clisp.org>
15156         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
15157         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
15158         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
15159         gl_cv_func_realpath_works to "guessing yes".
15161 2012-05-05  Bruno Haible  <bruno@clisp.org>
15163         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
15164         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
15165         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
15167 2012-05-04  Bruno Haible  <bruno@clisp.org>
15169         Tweak last commit.
15170         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
15171         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15173 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
15175         unistd_h: make it easier to avoid sys_types_h
15176         This is useful for Emacs, which has its own method of porting to
15177         Windows, and which therefore does not need the sys_types_h module.
15178         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
15179         code moved here from gl_SYS_TYPES_H.
15180         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
15181         using the code directly.
15182         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
15183         gl_SYS_TYPES_H.
15184         * modules/sys_types (Files):
15185         * modules/unistd (Files): Add m4/off_t.m4.
15187 2012-05-03  Bruno Haible  <bruno@clisp.org>
15189         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
15190         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
15191         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
15192         "guessing yes" or "guessing no".
15193         (gl_FUNC_LSTAT): Update.
15194         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
15195         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15196         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
15198 2012-05-03  Bruno Haible  <bruno@clisp.org>
15200         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
15201         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
15202         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
15203         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
15204         cross-compiling, choose the first alternative on glibc systems.
15205         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
15207 2012-05-03  Bruno Haible  <bruno@clisp.org>
15209         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
15210         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
15211         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
15213 2012-05-03  Bruno Haible  <bruno@clisp.org>
15215         chown: Avoid "guessing no" when cross-compiling to glibc systems.
15216         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
15218 2012-05-03  Bruno Haible  <bruno@clisp.org>
15220         Avoid "guessing no" guesses when cross-compiling to glibc systems.
15221         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
15222         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
15223         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
15224         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
15225         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
15226         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
15227         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
15228         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
15229         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
15230         compiling to glibc systems, set gl_cv_func_chown_slash_works,
15231         gl_cv_func_chown_ctime_works to "guessing yes".
15232         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
15233         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
15234         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
15235         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
15236         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
15237         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
15238         compiling to glibc systems, set gl_cv_func_open_directory_works to
15239         "guessing yes".
15240         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
15241         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
15242         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
15243         "guessing yes".
15244         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
15245         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
15246         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
15247         compiling to glibc systems, set gl_cv_func_floorf_ieee to
15248         "guessing yes".
15249         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
15250         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
15251         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
15252         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
15253         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
15254         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
15255         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
15256         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
15257         "guessing yes".
15258         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
15259         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
15260         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
15261         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
15262         "guessing yes".
15263         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
15264         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
15265         "guessing yes".
15266         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
15267         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
15268         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
15269         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
15270         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
15271         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
15272         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
15273         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
15274         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
15275         compiling to glibc systems, set gl_cv_func_log10f_ieee to
15276         "guessing yes".
15277         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
15278         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
15279         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
15280         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
15281         "guessing yes".
15282         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
15283         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
15284         "guessing yes".
15285         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
15286         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
15287         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
15288         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
15289         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
15290         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
15291         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
15292         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
15293         compiling to glibc systems, set gl_cv_func_mkfifo_works to
15294         "guessing yes".
15295         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
15296         compiling to glibc systems, set gl_cv_func_mknod_works to
15297         "guessing yes".
15298         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
15299         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
15300         "guessing yes".
15301         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
15302         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
15303         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
15304         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
15305         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
15306         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
15307         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
15308         compiling to glibc systems, set gl_cv_func_svid_putenv to
15309         "guessing yes".
15310         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
15311         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
15312         "guessing yes".
15313         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
15314         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
15315         "guessing yes".
15316         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
15317         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
15318         to "guessing yes".
15319         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
15320         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
15321         to "guessing yes".
15322         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
15323         compiling to glibc systems, set gl_cv_func_rmdir_works to
15324         "guessing yes".
15325         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
15326         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
15327         gl_cv_func_unlink_parent_fails to "guessing yes".
15328         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
15329         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
15330         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
15331         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
15332         gl_cv_func_rename_dest_works to "guessing yes".
15333         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
15334         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
15335         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
15336         compiling to glibc systems, set gl_cv_func_roundf_ieee to
15337         "guessing yes".
15338         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
15339         compiling to glibc systems, set gl_cv_func_roundl_ieee to
15340         "guessing yes".
15341         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
15342         compiling to glibc systems, set gl_cv_func_setenv_works to
15343         "guessing yes".
15344         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
15345         compiling to glibc systems, set gl_cv_func_unsetenv_works to
15346         "guessing yes".
15347         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
15348         compiling to glibc systems, set gl_cv_func_sleep_works to
15349         "guessing yes".
15350         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
15351         compiling to glibc systems, set gl_cv_func_stat_file_slash to
15352         "guessing yes".
15353         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
15354         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
15355         "guessing yes".
15356         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
15357         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
15358         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
15359         compiling to glibc systems, set gl_cv_func_truncf_ieee to
15360         "guessing yes".
15361         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
15362         compiling to glibc systems, set gl_cv_func_truncl_ieee to
15363         "guessing yes".
15364         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
15365         compiling to glibc systems, set gl_cv_func_usleep_works to
15366         "guessing yes".
15367         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
15368         compiling to glibc systems, set gl_cv_func_futimesat_works to
15369         "guessing yes".
15371 2012-05-03  Bruno Haible  <bruno@clisp.org>
15373         Say "guessing yes" or "guessing no" when cross-compiling.
15374         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
15375         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
15376         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
15377         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
15378         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
15379         am_cv_func_working_getline to "guessing yes" or "guessing no".
15380         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
15381         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
15382         (gl_FUNC_MEMMEM): When cross-compiling, set
15383         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
15384         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
15385         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
15386         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
15387         set gl_cv_func_strcasestr_works_always to "guessing yes" or
15388         "guessing no".
15389         (gl_FUNC_STRCASESTR): When cross-compiling, set
15390         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
15391         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
15392         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
15393         (gl_FUNC_STRSTR): When cross-compiling, set
15394         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
15395         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
15396         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
15397         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
15398         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
15400 2012-05-01  Bruno Haible  <bruno@clisp.org>
15402         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
15403         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
15404         * build-aux/reloc-ldflags: Likewise.
15405         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
15407 2012-05-01  Bruno Haible  <bruno@clisp.org>
15409         gnulib-tool: Remove transitional code.
15410         * gnulib-tool: Don't warn about --import with 0 arguments any more.
15411         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
15413 2012-05-01  Bruno Haible  <bruno@clisp.org>
15415         getcwd: Fix misindentation.
15416         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
15418 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
15420         exclude: process exclude and include directives in order
15421         This restores the pre-2009 behavior, and is part of a fix of a
15422         grep bug reported by Quentin Arce in
15423         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
15424         * lib/exclude.c (struct exclude): Remove 'tail' member.
15425         (new_exclude_segment): Prepend the new segment instead of appending.
15426         Return void, since that's now more convenient.
15427         (file_pattern_matches): Renamed from excluded_file_pattern_p.
15428         (file_name_matches): Renamed from excluded_file_name_p.
15429         (file_pattern_matches, file_name_matches):
15430         Return true if the pattern matches, not if it excludes.
15431         All callers changed.
15432         (excluded_file_name): Process the list in reverse order;
15433         since the list is now reversed this restores the pre-2009 behavior.
15434         (add_exclude): Adjust to new reversed-order list.  Use local var
15435         rather than macro, for clarity.
15436         * tests/test-exclude7.sh: Adjust to corrected behavior.
15438         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
15439         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
15440         it's not possible here.  Handle the case of \ at end of pattern
15441         without dumping core.
15442         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
15444         _Noreturn: future-proof non-GNU and non-MSVC compilers
15445         * build-aux/snippet/_Noreturn.h (_Noreturn):
15446         * m4/gnulib-common.m4 (gl_COMMON_BODY):
15447         Do not define _Noreturn if __STDC_VERSION__ indicates this is
15448         C11 or later.  This is more likely to work with random future C
15449         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
15450         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
15452         exclude: handle wildcards with FNM_EXTMATCH
15453         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
15454         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
15455         comment that "has wildcards" really means "has or may have
15456         wildcards".  Simplify by avoiding the need to call strcspn.
15458 2012-04-29  Bruno Haible  <bruno@clisp.org>
15460         gnulib-tool: Fix list of authors.
15461         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
15463 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
15465         bootstrap: support Automake-NG in $buildreq
15466         * bootstrap (check_versions): Handle automake and aclocal from
15467         Automake-NG specially.  They can be specified as respectively
15468         the "automake-ng" and "aclocal-ng" requirements.
15470 2012-04-25  Eric Blake  <eblake@redhat.com>
15472         bootstrap: only force latest Makefile.in.in for gettext module
15473         * build-aux/bootstrap (with_gettext): Only install latest
15474         Makefile.in.in for projects requesting bleeding edge gettext.
15476 2012-04-22  Bruno Haible  <bruno@clisp.org>
15478         doc: Mention reason for replacement on glibc/Linux systems.
15479         * doc/posix-functions/dprintf.texi: Mention the problem with special
15480         'long double' values.
15481         * doc/posix-functions/fprintf.texi: Likewise.
15482         * doc/posix-functions/printf.texi: Likewise.
15483         * doc/posix-functions/snprintf.texi: Likewise.
15484         * doc/posix-functions/sprintf.texi: Likewise.
15485         * doc/posix-functions/vdprintf.texi: Likewise.
15486         * doc/posix-functions/vfprintf.texi: Likewise.
15487         * doc/posix-functions/vprintf.texi: Likewise.
15488         * doc/posix-functions/vsnprintf.texi: Likewise.
15489         * doc/posix-functions/vsprintf.texi: Likewise.
15490         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
15491         platforms with F_DUPFD_CLOEXEC problems.
15492         * doc/posix-functions/glob.texi: Mention which platforms are affected
15493         by the problem with symbolic links.
15494         * doc/posix-functions/linkat.texi: Mention the problem with
15495         AT_SYMLINK_FOLLOW on Linux.
15497 2012-04-22  Bruno Haible  <bruno@clisp.org>
15499         pwrite: Don't replace on all platforms.
15500         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
15502 2012-04-22  Bruno Haible  <bruno@clisp.org>
15504         rint* tests: Avoid gcc warnings.
15505         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
15506         * tests/test-rintf.c (INFINITY, NAN): Likewise.
15507         * tests/test-rintl.c (INFINITY, NAN): Likewise.
15509 2012-04-21  Bruno Haible  <bruno@clisp.org>
15511         users.txt: Update.
15512         * users.txt: Add freedink, wdiff. Update URLs for projects that have
15513         switched from CVS to git, bzr, or svn.
15515 2012-04-21  Bruno Haible  <bruno@clisp.org>
15517         Large File Support for native Windows platforms.
15519         * m4/largefile.m4 (gl_LARGEFILE): New macro.
15520         * modules/largefile (configure.ac): Require gl_LARGEFILE.
15522         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
15523         type.
15524         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
15525         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
15526         * doc/posix-headers/sys_types.texi: Mention the effect of the
15527         'largefile' module.
15529         * lib/fcntl.in.h: Add comments about off_t.
15530         * modules/fcntl-h (Depends-on): Add sys_types.
15532         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
15533         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
15534         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
15535         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
15536         * modules/unistd (Depends-on): Add sys_types.
15537         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
15539         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
15540         instead of lseek.
15541         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
15542         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
15543         * modules/lseek (Depends-on): Add sys_types.
15545         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
15546         msvc-nothrow.h.
15547         (SetFileSize): New function.
15548         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
15549         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
15550         if Large File Support is requested.
15551         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
15552         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
15554         * lib/stdio.in.h: Add comments about off_t.
15555         * modules/stdio (Depends-on): Add sys_types.
15557         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
15558         instead of ftello.
15559         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
15560         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
15561         (gl_PREREQ_FTELLO): New macro.
15562         * modules/ftello (Depends-on): Add sys_types.
15563         (configure.ac): Incoke gl_PREREQ_FTELLO.
15565         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
15566         instead of fseeko.
15567         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
15568         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
15569         (gl_PREREQ_FSEEKO): New macro.
15570         * modules/fseeko (Depends-on): Add sys_types.
15571         (configure.ac): Invoke gl_PREREQ_FSEEKO.
15573         * lib/sys_stat.in.h: Add comments about off_t.
15574         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
15575         64-bit integer for st_size in 'struct stat'.
15576         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
15577         Define _GL_WINDOWS_64_BIT_ST_SIZE.
15578         * modules/sys_stat (Depends-on): Add sys_types.
15579         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
15581         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
15582         instead of stat or _stat.
15584         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
15585         'struct _stati64' instead of fstat and 'struct stat'.
15586         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
15587         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
15589         Reported by Ray Satiro <raysatiro@yahoo.com>.
15591 2012-04-19  Eric Blake  <eblake@redhat.com>
15593         bootstrap: accommodate older libtool
15594         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
15595         Reported by Daniel P. Berrange.
15597 2012-04-19  Jim Meyering  <meyering@redhat.com>
15599         announce-gen: avoid failure due to lack of Digest::SHA1
15600         Even with the preferred Digest::SHA available, this script
15601         would fail when the backup module, Digest::SHA1, was not installed.
15602         * build-aux/announce-gen: Quote the conditional use of "use".
15603         Reported by Reuben Thomas in:
15604         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
15606         bootstrap: don't let a user's CDPATH setting affect this script
15607         When CDPATH is set, cd will sometimes generate output.
15608         When "cd" is run in a subshell whose output matters, that
15609         surprising-to-some output can cause malfunction.
15610         Unsetting CDPATH turns off this shell "feature."
15611         * build-aux/bootstrap (CDPATH): Unset.
15612         Reported by Reuben Thomas in:
15613         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
15614         and inspired by his patch here:
15615         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
15617 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
15618         and Jim Meyering  <meyering@redhat.com>
15620         maint.mk: catch "see @xref{}" and similar
15621         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
15622         prohibit "See also @xref{", "Also see @pxref{", and similar.
15624 2012-04-16  Jim Meyering  <meyering@redhat.com>
15626         bootstrap: really use gnulib's po/Makefile.in.in
15627         * build-aux/bootstrap: Correct the source file name in previous change.
15628         Reported by Akim Demaille.
15630         configmake: correct minor inconsistency in Makefile rule
15631         * modules/configmake (Makefile.am): All other rules like this one
15632         run the final "mv -f ..." in the same backslash-continued command
15633         as the one that does everything else.  This one put the mv -f ...
15634         command on a separate, non-backslash-continued line.
15635         Make it like the others.
15637         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
15638         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
15639         the one from gettext.  Reported by Akim Demaille.
15641 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
15643         Fix recursion of install-* into po directories.
15644         Bison's install-pdf bug reported by Hans Aberg at
15645         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
15646         * build-aux/po/Makefile.in.in (install-dvi, install-html)
15647         (install-info, install-pdf, install-ps): New targets.
15649 2012-04-16  Jim Meyering  <meyering@redhat.com>
15651         maint: avoid spurious "make sc_maint" failure
15652         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
15653         exempt all *.class file names, for lib/javaversion.class.
15655 2012-04-15  Bruno Haible  <bruno@clisp.org>
15657         lseek: Make configure test independent of environment.
15658         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
15659         Windows, we know that lseek() on pipes is broken; skip the runtime
15660         test.
15662 2012-04-14  Bruno Haible  <bruno@clisp.org>
15664         stat: Bypass buggy override in mingw64.
15665         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
15666         * lib/stat.c (stat) [mingw64]: Define to _stat.
15667         * doc/posix-functions/stat.texi: Mention mingw64 bug.
15669 2012-04-14  Bruno Haible  <bruno@clisp.org>
15671         pathmax: Fix compilation error on MSVC 9.
15672         * modules/pathmax (Depends-on): Add unistd.
15674 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
15676         README: document pointer comparison assumption
15677         * README (Portability guidelines): Document assumption about
15678         pointer comparisons, in response to a recent bug-gnulib comment by
15679         Jeffrey Kegler.
15681 2012-04-12  Bruno Haible  <bruno@clisp.org>
15683         Tests for module 'getrusage'.
15684         * modules/getrusage-tests: New file.
15685         * tests/test-getrusage.c: New file.
15687         New module 'getrusage'.
15688         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
15689         warn-on-use.h.
15690         (getrusage): New declaration.
15691         * lib/getrusage.c: New file.
15692         * m4/getrusage.m4: New file.
15693         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
15694         is declared.
15695         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
15696         HAVE_GETRUSAGE.
15697         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
15698         snippet/c++defs, snippet/warn-on-use.
15699         (Makefile.am): Update generation of sys/resource.h. Substitute
15700         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
15701         * modules/getrusage: New file.
15702         * doc/posix-functions/getrusage.texi: Mention the new module.
15704 2012-04-12  Bruno Haible  <bruno@clisp.org>
15706         Tests for module 'sys_resource'.
15707         * modules/sys_resource-tests: New file.
15708         * tests/test-sys_resource.c: New file.
15710         New module 'sys_resource'.
15711         * lib/sys_resource.in.h: New file.
15712         * m4/sys_resource_h.m4: New file.
15713         * modules/sys_resource: New file.
15714         * doc/posix-headers/sys_resource.texi: Mention the new module.
15716 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
15718         ioctl: Fix compilation error on mingw.
15719         * lib/ioctl.c: Include <windows.h>.
15720         Also reported by Ray Satiro <raysatiro@yahoo.com>.
15722 2012-04-04  Jim Meyering  <meyering@redhat.com>
15724         regex: correct #pragma guard expression
15725         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
15726         not 4.3.  Correct its cpp guard expression.
15728 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
15730         regex: remove unnecessary type punning
15731         Problem reported by Vladimir Serbinenko in
15732         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
15733         * lib/regex.h (struct re_pattern_buffer): Change the type of
15734         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
15735         Fix comment to match code.
15736         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
15737         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
15738         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
15739         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
15740         (set_regs):
15741         Omit no-longer-necessary casts.
15743 2012-04-03  Bruno Haible  <bruno@clisp.org>
15745         Tests for module 'ilogbl'.
15746         * modules/ilogbl-tests: New file.
15747         * tests/test-ilogbl.c: New file.
15749         New module 'ilogbl'.
15750         * lib/math.in.h (ilogbl): New declaration.
15751         * lib/ilogbl.c: New file.
15752         * m4/ilogbl.m4: New file.
15753         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
15754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
15755         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
15756         Split sed invocation, to avoid the limit of 100 substitutions of
15757         HP-UX 'sed'.
15758         * modules/ilogbl: New file.
15759         * tests/test-math-c++.cc: Check the declaration of ilogbl.
15760         * doc/posix-functions/ilogbl.texi: Mention the new module.
15762 2012-04-03  Bruno Haible  <bruno@clisp.org>
15764         Tests for module 'ilogbf'.
15765         * modules/ilogbf-tests: New file.
15766         * tests/test-ilogbf.c: New file.
15768         New module 'ilogbf'.
15769         * lib/math.in.h (ilogbf): New declaration.
15770         * lib/ilogbf.c: New file.
15771         * m4/ilogbf.m4: New file.
15772         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
15773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
15774         REPLACE_ILOGBF.
15775         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
15776         REPLACE_ILOGBF.
15777         * modules/ilogbf: New file.
15778         * tests/test-math-c++.cc: Check the declaration of ilogbf.
15779         * doc/posix-functions/ilogbf.texi: Mention the new module.
15781 2012-04-03  Bruno Haible  <bruno@clisp.org>
15783         Tests for module 'ilogb'.
15784         * modules/ilogb-tests: New file.
15785         * tests/test-ilogb.c: New file.
15786         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
15787         tests/test-logb-ieee.h.
15789         New module 'ilogb'.
15790         * lib/math.in.h (ilogb): New declaration.
15791         * lib/ilogb.c: New file.
15792         * m4/ilogb.m4: New file.
15793         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
15794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
15795         REPLACE_ILOGB.
15796         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
15797         REPLACE_ILOGB.
15798         * modules/ilogb: New file.
15799         * tests/test-math-c++.cc: Check the declaration of ilogb.
15800         * doc/posix-functions/ilogb.texi: Mention the new module.
15802 2012-04-03  Bruno Haible  <bruno@clisp.org>
15804         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
15805         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
15806         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
15807         (main): Check their values.
15808         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
15809         problem.
15811 2012-04-03  Bruno Haible  <bruno@clisp.org>
15813         Tests for module 'logbl-ieee'.
15814         * modules/logbl-ieee-tests: New file.
15815         * tests/test-logbl-ieee.c: New file.
15817         New module 'logbl-ieee'.
15818         * modules/logbl-ieee: New file.
15820         Tests for module 'logb-ieee'.
15821         * modules/logb-ieee-tests: New file.
15822         * tests/test-logb-ieee.c: New file.
15824         New module 'logb-ieee'.
15825         * modules/logb-ieee: New file.
15827         Tests for module 'logbf-ieee'.
15828         * modules/logbf-ieee-tests: New file.
15829         * tests/test-logbf-ieee.c: New file.
15830         * tests/test-logb-ieee.h: New file.
15832         New module 'logbf-ieee'.
15833         * modules/logbf-ieee: New file.
15835 2012-04-03  Bruno Haible  <bruno@clisp.org>
15837         Tests for module 'logbl'.
15838         * modules/logbl-tests: New file.
15839         * tests/test-logbl.c: New file.
15841         New module 'logbl'.
15842         * lib/math.in.h (logbl): New declaration.
15843         * lib/logbl.c: New file.
15844         * m4/logbl.m4: New file.
15845         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
15846         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
15847         REPLACE_LOGBL.
15848         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
15849         REPLACE_LOGBL.
15850         * modules/logbl: New file.
15851         * tests/test-math-c++.cc: Check the declaration of logbl.
15852         * doc/posix-functions/logbl.texi: Mention the new module.
15854 2012-04-02  Bruno Haible  <bruno@clisp.org>
15856         Tests for module 'logbf'.
15857         * modules/logbf-tests: New file.
15858         * tests/test-logbf.c: New file.
15860         New module 'logbf'.
15861         * lib/math.in.h (logbf): New declaration.
15862         * lib/logbf.c: New file.
15863         * m4/logbf.m4: New file.
15864         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
15865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
15866         REPLACE_LOGBF.
15867         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
15868         REPLACE_LOGBF.
15869         * modules/logbf: New file.
15870         * tests/test-math-c++.cc: Check the declaration of logbf.
15871         * doc/posix-functions/logbf.texi: Mention the new module.
15873 2012-04-02  Bruno Haible  <bruno@clisp.org>
15875         logb tests: More tests.
15876         * tests/test-logb.h: New file, based on tests/test-logb.c and
15877         tests/test-frexp.h.
15878         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
15879         (main): Just invoke test_function.
15880         * modules/logb-tests (Files): Add tests/test-logb.h,
15881         tests/minus-zero.h, tests/randomd.c.
15882         (Makefile.am): Add randomd.c to test_logb_SOURCES.
15884         logb: Provide replacement and workarounds.
15885         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
15886         is 1.
15887         * lib/logb.c: New file.
15888         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
15889         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
15890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
15891         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
15892         * modules/logb (Files): Add lib/logb.c.
15893         (Depends-on): Add isfinite, frexp, isnand.
15894         (configure.ac): Compile the replacement code logb.c if needed.
15895         * tests/test-math-c++.cc: Check the declaration of logb.
15896         * doc/posix-functions/logb.texi: Mention the replacement and the bug
15897         with subnormal numbers.
15899 2012-04-02  Bruno Haible  <bruno@clisp.org>
15901         log10* tests: Speed up.
15902         * tests/test-log10.h (test_function): Reduce amount of random numbers
15903         to test.
15905 2012-04-01  Bruno Haible  <bruno@clisp.org>
15907         logf-ieee: Fix test whether logf works.
15908         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
15910 2012-04-01  Bruno Haible  <bruno@clisp.org>
15912         log10l: Work around log10l-ieee test failure on IRIX 6.5.
15913         * lib/log10l.c: Include <float.h>
15914         (log10l): On IRIX, normalize the +Infinity value.
15915         * modules/log10l (Depends-on): Add 'float'.
15916         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
15917         +Infinity.
15919         log10f-ieee: Work around test failure on NetBSD 5.1.
15920         * m4/log10f-ieee.m4: New file.
15921         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
15922         test whether log10f works with a negative argument. Replace it if not.
15923         * lib/log10f.c (log10f): For negative arguments, return NaN.
15924         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
15925         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
15926         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
15928         log10f-ieee: Work around test failure on Solaris 9.
15929         * modules/log10f-ieee (Depends-on): Add log10-ieee.
15930         (configure.ac): Require gl_FUNC_LOG10F.
15932         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
15933         * m4/log10-ieee.m4: New file.
15934         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
15935         whether log10 works with a negative argument. Replace it if not.
15936         * lib/log10.c (log10): For negative arguments, return NaN.
15937         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
15938         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
15939         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
15941         Tests for module 'log10l-ieee'.
15942         * modules/log10l-ieee-tests: New file.
15943         * tests/test-log10l-ieee.c: New file.
15945         New module 'log10l-ieee'.
15946         * modules/log10l-ieee: New file.
15948         Tests for module 'log10-ieee'.
15949         * modules/log10-ieee-tests: New file.
15950         * tests/test-log10-ieee.c: New file.
15952         New module 'log10-ieee'.
15953         * modules/log10-ieee: New file.
15955         Tests for module 'log10f-ieee'.
15956         * modules/log10f-ieee-tests: New file.
15957         * tests/test-log10f-ieee.c: New file.
15958         * tests/test-log10-ieee.h: New file.
15960         New module 'log10f-ieee'.
15961         * modules/log10f-ieee: New file.
15963 2012-04-01  Bruno Haible  <bruno@clisp.org>
15965         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
15966         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
15967         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
15968         workaround.
15969         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
15970         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
15971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
15972         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
15973         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
15974         (Depends-on): Update conditions.
15975         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
15976         IRIX 6.5, OSF/1 5.1 problems.
15978 2012-04-01  Bruno Haible  <bruno@clisp.org>
15980         log10f: Work around OSF/1 5.1 bug.
15981         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
15982         * lib/log10f.c (log10f): If logf exists, use it and provide just the
15983         workaround.
15984         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
15985         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
15986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
15987         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
15988         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
15989         (Depends-on): Update conditions.
15990         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
15992 2012-04-01  Bruno Haible  <bruno@clisp.org>
15994         log10: Work around OSF/1 5.1 bug.
15995         * lib/math.in.h (log10): New declaration.
15996         * lib/log10.c: New file.
15997         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
15998         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
15999         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
16000         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
16001         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
16002         * modules/log10 (Files): Add lib/log10.c.
16003         (Depends-on): Add math.
16004         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
16005         * tests/test-math-c++.cc: Check the declaration of log10.
16006         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
16008 2012-03-31  Bruno Haible  <bruno@clisp.org>
16010         log10l tests: More tests.
16011         * modules/log10l-tests (Files): Add tests/test-log10l.h,
16012         tests/minus-zero.h, tests/randoml.c.
16013         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
16014         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
16015         (main): Invoke test_function.
16017         log10f tests: More tests.
16018         * modules/log10f-tests (Files): Add tests/test-log10.h,
16019         tests/minus-zero.h, tests/randomf.c.
16020         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
16021         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
16022         (main): Invoke test_function.
16024         log10 tests: More tests.
16025         * tests/test-log10.h: New file.
16026         * modules/log10-tests (Files): Add tests/test-log10.h,
16027         tests/minus-zero.h, tests/randomd.c.
16028         (Makefile.am): Add randomd.c to test_log10_SOURCES.
16029         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
16030         (main): Invoke test_function.
16032 2012-03-31  Simon Josefsson  <simon@josefsson.org>
16034         fflush: Fix syntax error.
16035         * lib/fflush.c: Include unused-parameter.h, needed for
16036         _GL_UNUSED_PARAMETER.
16037         * modules/fflush (Depends-on): Add snippet/unused-parameter.
16039 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
16041         regex: pacify GCC when compiling GRUB
16042         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
16043         a diagnostic.  Reported by Vladimir Serbinenko in
16044         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
16046 2012-03-29  Eric Blake  <eblake@redhat.com>
16048         stdio: don't assume gets any more
16049         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
16050         support.
16051         * modules/stdio (Makefile.am): Likewise.
16052         * lib/stdio-read.c (gets): Likewise.
16053         * tests/test-stdio-c++.cc: Likewise.
16054         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
16055         * lib/stdio.in.h (gets): Make warning occur in more places.
16056         * doc/posix-functions/gets.texi (gets): Update documentation.
16057         Reported by Christer Solskogen.
16059         maint.mk: fix syntax checks without exclusions
16060         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
16061         Reported by Daniel P. Berrange.
16063         strerror_r: avoid compiler warning
16064         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
16065         level.
16067         fflush: avoid compiler warning
16068         * lib/fflush.c (update_fpos_cache): Mark variables that are
16069         potentially unused.
16071 2012-03-25  Bruno Haible  <bruno@clisp.org>
16073         Tests for module 'localeconv'.
16074         * modules/localeconv-tests: New file.
16075         * tests/test-localeconv.c: New file.
16077         New module 'localeconv'.
16078         * lib/locale.in.h (localeconv): New declaration.
16079         * lib/localeconv.c: New file.
16080         * m4/localeconv.m4: New file.
16081         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
16082         REPLACE_LOCALECONV.
16083         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
16084         REPLACE_LOCALECONV.
16085         * modules/localeconv: New file.
16086         * modules/nl_langinfo (Depends-on): Add localeconv.
16087         * modules/human (Depends-on): Likewise.
16088         * doc/posix-functions/localeconv.texi: Mention the new module.
16090 2012-03-25  Bruno Haible  <bruno@clisp.org>
16092         locale: Provide a complete 'struct lconv'.
16093         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
16094         'struct lconv' does not contain int_p_cs_precedes.
16095         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
16096         * doc/posix-headers/locale.texi: Update.
16098         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
16099         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
16100         * doc/posix-headers/locale.texi: Update.
16102         locale: Provide a working 'struct lconv'.
16103         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
16104         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
16105         'struct lconv' does not even contain decimal_point.
16106         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
16107         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
16108         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
16109         * doc/posix-headers/locale.texi: Mention the problems with
16110         'struct lconv'.
16111         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
16113 2012-03-24  Bruno Haible  <bruno@clisp.org>
16115         Enable common subexpression optimization in GCC.
16116         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
16117         macros.
16118         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
16119         GCC attribute 'const'.
16120         (uc_locale_language): Declare with GCC attribute 'pure'.
16121         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
16122         with GCC attribute 'const'.
16123         * lib/unictype.in.h (uc_is_general_category_withtable,
16124         uc_combining_class, uc_combining_class_name,
16125         uc_combining_class_long_name, uc_bidi_class_name,
16126         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
16127         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
16128         uc_decimal_value, uc_digit_value, uc_numeric_value,
16129         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
16130         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
16131         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
16132         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
16133         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
16134         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
16135         Declare with GCC attribute 'const'.
16136         (uc_general_category_name, uc_general_category_long_name,
16137         uc_general_category_byname, uc_general_category,
16138         uc_is_general_category, uc_combining_class_byname,
16139         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
16140         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
16141         Declare with GCC attribute 'pure'.
16142         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
16143         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
16144         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
16145         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
16146         with GCC attribute 'pure'.
16147         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
16148         'const'.
16149         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
16150         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
16151         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
16152         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
16153         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
16154         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
16155         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
16156         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
16157         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
16158         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
16159         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
16160         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
16161         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
16162         GCC attribute 'pure'.
16163         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
16164         'const'.
16165         * lib/uniwidth.in.h (uc_width): Simplify declaration.
16166         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
16167         u32_strwidth): Declare with GCC attribute 'pure'.
16169         Enable common subexpression optimization in GCC.
16170         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
16171         (alphasort): Declare with GCC attribute 'pure'.
16172         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
16173         (atoll): Declare with GCC attribute 'pure'.
16174         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
16175         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
16176         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
16177         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
16178         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
16179         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
16180         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
16182 2012-03-24  Bruno Haible  <bruno@clisp.org>
16184         gnulib-tool: Avoid unintended error output from 'cmp'.
16185         * gnulib-tool (func_add_file, func_update_file, func_import): Use
16186         "cmp -s", not "cmp > /dev/null".
16188 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
16190         gnulib-tool: fix imprecise comments w.r.t. an automake bug
16192         It's not just Automake versions < 1.9b that creates an empty
16193         pkgdatadir at installation time if pkgdata_DATA is specified
16194         to empty; modern automake versions do this as well, at least
16195         until automake 1.11.4 (not yet released at the moment of writing,
16196         but soon to appear).  That behaviour was generally considered a
16197         feature rather than a bug, at least until this discussion:
16198         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
16200         See also automake bugs #10997 and #11030.
16202         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
16203         reference to relevant automake bug numbers.
16204         (func_emit_tests_Makefile_am): Likewise.
16206 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
16208         announce-gen: use Digest::SHA when possible
16209         * build-aux/announce-gen: Use Digest::SHA when possible, falling
16210         back to Digest::SHA1 if necessary.
16212 2012-03-20  Jim Meyering  <meyering@redhat.com>
16214         tests: avoid gcc warnings about argv vs. const initializers
16215         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
16216         warnings about discarding 'const' qualifier from pointer target type.
16217         * tests/test-posix_spawn2.c (main): Likewise.
16219 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
16221         README-release: simplify slightly
16222         * top/README-release: Run "git checkout master" only once.
16224 2012-03-15  Mark Wielaard  <mark@klomp.org>
16226         git-merge-changelog: add specific example on how to use with hg.
16227         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
16229 2012-03-18  Mark Wielaard  <mark@klomp.org>
16231         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
16233 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
16235         git-version-gen: don't let "prefix" envvar cause trouble
16236         * build-aux/git-version-gen (prefix): Initialize properly,
16237         so as not to use a value specified via the environment.
16238         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
16240 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
16242         regex: diagnose too-large repeat counts in EREs
16243         Previously, the code did not diagnose the too-large repeat count
16244         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
16245         as if it were 'b\{1000000000}', which is unexpected.
16246         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
16247         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
16248         is a reasonable one for this problem.  Another option would be to
16249         create a new REG_OVERFLOW error for repeat counts that are too large.
16250         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
16251         count is too large, so that the caller can distinguish the two cases.
16252         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
16253         "Too large" return code, and that repeat counts are one example of this.
16255 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
16257         doc: some glibc x32 integer width issues
16258         * doc/posix-headers/sys_types.texi (sys/types.h):
16259         * doc/posix-headers/time.texi (time.h):
16260         Mention that glibc x32 does not conform to POSIX in a couple of
16261         areas related to integer widths.
16263 2012-03-15  Bruno Haible  <bruno@clisp.org>
16265         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
16266         * lib/fma.c (VOLATILE): New macro.
16267         (FUNC): Use it to work around a GCC compiler bug.
16269 2012-03-13  Bruno Haible  <bruno@clisp.org>
16271         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
16272         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
16273         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
16274         REPLACE_HYPOTL to 1.
16275         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
16277 2012-03-13  Bruno Haible  <bruno@clisp.org>
16279         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
16280         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
16281         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
16282         REPLACE_REMAINDERL to 1.
16283         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
16284         bug.
16286 2012-03-13  Bruno Haible  <bruno@clisp.org>
16288         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
16289         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
16290         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
16291         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
16292         too big rounding errors.
16293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
16294         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
16295         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
16296         (Depends-on): Update conditions.
16297         * tests/test-sqrtl.c (my_ldexpl): New function.
16298         (main): Add test of a particular value.
16299         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
16301 2012-03-13  Pádraig Brady  <P@draigBrady.com>
16303         doc: Update timer_* platform portability notes.
16304         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
16305         that always return ENOSYS.
16306         * doc/posix-functions/timer_delete.texi: Likewise.
16307         * doc/posix-functions/timer_gettime.texi: Likewise.
16308         * doc/posix-functions/timer_settime.texi: Likewise.
16310 2012-03-13  Bruno Haible  <bruno@clisp.org>
16312         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
16313         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
16314         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
16315         REPLACE_CBRTL to 1.
16316         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
16318 2012-03-13  Bruno Haible  <bruno@clisp.org>
16320         remainderl: Avoid compilation error on AIX >= 5.2.
16321         * lib/math.in.h (remainderl): Undefine macro from the system header.
16323 2012-03-13  Bruno Haible  <bruno@clisp.org>
16325         Avoid compilation errors with MSVC option -fp:strict.
16326         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
16327         * lib/cbrtf.c: Likewise.
16328         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
16330 2012-03-12  Bruno Haible  <bruno@clisp.org>
16332         uninorm: Don't crash in out-of-memory conditions.
16333         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
16334         gracefully.
16335         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
16336         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
16338 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
16340         quote: fix syntax-check
16341         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
16342         also exports quote_quoting_options.
16344 2012-03-12  Simon Josefsson  <simon@josefsson.org>
16346         Collapse list of copyright years to ranges.  See
16347         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
16348         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
16349         build-aux/csharpexec.sh.in, build-aux/gnupload,
16350         build-aux/install-reloc, build-aux/javacomp.sh.in,
16351         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
16352         build-aux/move-if-change, build-aux/reloc-ldflags,
16353         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
16355 2012-03-11  Bruno Haible  <bruno@clisp.org>
16357         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
16358         * m4/log2f-ieee.m4: New file.
16359         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
16360         whether log2f works with a minus zero argument. Replace it if not.
16361         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
16362         (Depends-on): Add log2-ieee.
16363         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
16364         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
16366         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
16367         * m4/log2-ieee.m4: New file.
16368         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
16369         whether log2 works with a minus zero argument. Replace it if not.
16370         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
16371         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
16372         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
16374         Tests for module 'log2l-ieee'.
16375         * modules/log2l-ieee-tests: New file.
16376         * tests/test-log2l-ieee.c: New file.
16378         New module 'log2l-ieee'.
16379         * modules/log2l-ieee: New file.
16381         Tests for module 'log2-ieee'.
16382         * modules/log2-ieee-tests: New file.
16383         * tests/test-log2-ieee.c: New file.
16385         New module 'log2-ieee'.
16386         * modules/log2-ieee: New file.
16388         Tests for module 'log2f-ieee'.
16389         * modules/log2f-ieee-tests: New file.
16390         * tests/test-log2f-ieee.c: New file.
16391         * tests/test-log2-ieee.h: New file.
16393         New module 'log2f-ieee'.
16394         * modules/log2f-ieee: New file.
16396 2012-03-11  Bruno Haible  <bruno@clisp.org>
16398         Tests for module 'log2l'.
16399         * modules/log2l-tests: New file.
16400         * tests/test-log2l.c: New file.
16402         New module 'log2l'.
16403         * lib/math.in.h (log2l): New declaration.
16404         * lib/log2l.c: New file.
16405         * m4/log2l.m4: New file.
16406         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
16407         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
16408         REPLACE_LOG2L.
16409         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
16410         REPLACE_LOG2L.
16411         * modules/log2l: New file.
16412         * tests/test-math-c++.cc: Check the declaration of log2l.
16413         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
16414         and OSF/1 problems.
16416 2012-03-11  Bruno Haible  <bruno@clisp.org>
16418         Tests for module 'log2f'.
16419         * modules/log2f-tests: New file.
16420         * tests/test-log2f.c: New file.
16422         New module 'log2f'.
16423         * lib/math.in.h (log2f): New declaration.
16424         * lib/log2f.c: New file.
16425         * m4/log2f.m4: New file.
16426         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
16427         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
16428         REPLACE_LOG2F.
16429         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
16430         REPLACE_LOG2F.
16431         * modules/log2f: New file.
16432         * tests/test-math-c++.cc: Check the declaration of log2f.
16433         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
16434         and OSF/1 and Cygwin problems.
16436 2012-03-11  Bruno Haible  <bruno@clisp.org>
16438         Tests for module 'log2'.
16439         * modules/log2-tests: New file.
16440         * tests/test-log2.c: New file.
16441         * tests/test-log2.h: New file.
16443         New module 'log2'.
16444         * lib/math.in.h (log2): New declaration.
16445         * lib/log2.c: New file.
16446         * m4/log2.m4: New file.
16447         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
16448         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
16449         REPLACE_LOG2.
16450         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
16451         REPLACE_LOG2.
16452         * modules/log2: New file.
16453         * tests/test-math-c++.cc: Check the declaration of log2.
16454         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
16455         and OSF/1 and Cygwin problems.
16457 2012-03-11  Bruno Haible  <bruno@clisp.org>
16459         exp2* tests: More tests.
16460         * tests/test-exp2.h (test_function): Test all integral arguments that
16461         don't need to overflow or denormalized numbers.
16462         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
16463         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
16464         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
16466 2012-03-10  Bruno Haible  <bruno@clisp.org>
16468         log1pl-ieee: Work around test failure on AIX 7.1.
16469         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
16471         log1pl-ieee: Work around test failure on IRIX 6.5.
16472         * m4/log1pl-ieee.m4: New file.
16473         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
16474         test whether log1pl works with a minus zero argument. Replace it if
16475         not.
16476         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
16477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
16478         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
16479         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
16480         (Depends-on): Update conditions.
16481         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
16482         m4/signbit.m4.
16483         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
16484         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
16486         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
16487         * m4/log1pf-ieee.m4: New file.
16488         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
16489         test whether log1pf works with a minus zero argument. Replace it if
16490         not.
16491         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
16492         m4/signbit.m4.
16493         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
16494         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
16496         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
16497         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
16498         (configure.ac): Require gl_FUNC_LOG1PF.
16500         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
16501         * m4/log1p-ieee.m4: New file.
16502         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
16503         whether log1p works with a minus zero argument. Replace it if not.
16504         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
16505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
16506         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
16507         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
16508         (Depends-on): Update conditions.
16509         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
16510         m4/signbit.m4.
16511         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
16512         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
16514         Tests for module 'log1pl-ieee'.
16515         * modules/log1pl-ieee-tests: New file.
16516         * tests/test-log1pl-ieee.c: New file.
16518         New module 'log1pl-ieee'.
16519         * modules/log1pl-ieee: New file.
16521         Tests for module 'log1p-ieee'.
16522         * modules/log1p-ieee-tests: New file.
16523         * tests/test-log1p-ieee.c: New file.
16525         New module 'log1p-ieee'.
16526         * modules/log1p-ieee: New file.
16528         Tests for module 'log1pf-ieee'.
16529         * modules/log1pf-ieee-tests: New file.
16530         * tests/test-log1pf-ieee.c: New file.
16531         * tests/test-log1p-ieee.h: New file.
16533         New module 'log1pf-ieee'.
16534         * modules/log1pf-ieee: New file.
16536 2012-03-10  Bruno Haible  <bruno@clisp.org>
16538         Tests for module 'log1pl'.
16539         * modules/log1pl-tests: New file.
16540         * tests/test-log1pl.c: New file.
16542         New module 'log1pl'.
16543         * lib/math.in.h (log1pl): New declaration.
16544         * lib/log1pl.c: New file.
16545         * m4/log1pl.m4: New file.
16546         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
16547         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
16548         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
16549         * modules/log1pl: New file.
16550         * tests/test-math-c++.cc: Check the declaration of log1pl.
16551         * doc/posix-functions/log1pl.texi: Mention the new module.
16553 2012-03-10  Bruno Haible  <bruno@clisp.org>
16555         Tests for module 'log1pf'.
16556         * modules/log1pf-tests: New file.
16557         * tests/test-log1pf.c: New file.
16559         New module 'log1pf'.
16560         * lib/math.in.h (log1pf): New declaration.
16561         * lib/log1pf.c: New file.
16562         * m4/log1pf.m4: New file.
16563         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
16564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
16565         REPLACE_LOG1PF.
16566         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
16567         REPLACE_LOG1PF.
16568         * modules/log1pf: New file.
16569         * tests/test-math-c++.cc: Check the declaration of log1pf.
16570         * doc/posix-functions/log1pf.texi: Mention the new module.
16572 2012-03-10  Bruno Haible  <bruno@clisp.org>
16574         log1p tests: More tests.
16575         * tests/test-log1p.h: New file.
16576         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
16577         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
16578         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
16579         (main): Invoke test_function.
16581         log1p: Provide replacement for Minix and MSVC.
16582         * lib/math.in.h (log1p): New declaration.
16583         * lib/log1p.c: New file.
16584         * m4/log1p.m4: New file.
16585         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
16586         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
16587         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
16588         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
16589         (Depends-on): Add math, isnand, log, round.
16590         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
16591         HAVE_LOG1P is 0.
16592         * tests/test-math-c++.cc: Check the declaration of log1p.
16593         * doc/posix-functions/log1p.texi: Mention the replacement.
16595 2012-03-10  Bruno Haible  <bruno@clisp.org>
16597         math tests: Small simplification.
16598         * tests/test-exp.h (test_function): Use the same err_bound for
16599         'double' on platforms with sizeof (long double) == sizeof (double)
16600         than on platforms with sizeof (long double) > sizeof (double).
16601         * tests/test-exp2.h (test_function): Likewise.
16602         * tests/test-expm1.h (test_function): Likewise.
16603         * tests/test-log.h (test_function): Likewise.
16605 2012-03-10  Bruno Haible  <bruno@clisp.org>
16607         Fix some comments.
16608         * lib/expl.c: Fix an ambiguous comment.
16609         * lib/expm1.c: Likewise.
16610         * lib/expm1l.c: Likewise.
16611         * lib/exp2.c: Likewise.
16612         * lib/exp2l.c: Likewise.
16614 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
16616         regex: allow inclusion of <regex.h> before <limits.h>
16617         Without this patch, portable programs had to include <limits.h> before
16618         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
16619         I ran into this problem with a test version of GNU grep on Solaris 8.
16620         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
16621         This is done conditionally so that this change can be merged
16622         back to glibc.
16623         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
16624         using the included regex.
16626         fts: depend on fdopendir
16627         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
16628         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
16629         problem was introduced when fdopendir was split out.
16631 2012-03-10  Bruno Haible  <bruno@clisp.org>
16633         Remove unused variables.
16634         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
16635         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
16637 2012-03-10  Bruno Haible  <bruno@clisp.org>
16639         isnanf-nolibm: Fix last commit.
16640         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
16642         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
16643         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
16645 2012-03-10  Bruno Haible  <bruno@clisp.org>
16647         logf-ieee: Work around test failure on NetBSD 5.1.
16648         * m4/logf-ieee.m4: New file.
16649         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
16650         whether logf works with a negative argument. Replace it if not.
16651         * lib/logf.c (logf): For negative arguments, return NaN.
16652         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
16653         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
16654         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
16656         logf-ieee: Work around test failure on Solaris 9.
16657         * modules/logf-ieee (Depends-on): Add log-ieee.
16658         (configure.ac): Require gl_FUNC_LOGF.
16660         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
16661         * m4/log-ieee.m4: New file.
16662         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
16663         log works with a negative argument. Replace it if not.
16664         * lib/log.c (log): For negative arguments, return NaN.
16665         * modules/log-ieee (Files): Add m4/log-ieee.m4.
16666         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
16667         * doc/posix-functions/log.texi: Mention the log-ieee module.
16669         Tests for module 'logl-ieee'.
16670         * modules/logl-ieee-tests: New file.
16671         * tests/test-logl-ieee.c: New file.
16673         New module 'logl-ieee'.
16674         * modules/logl-ieee: New file.
16676         Tests for module 'log-ieee'.
16677         * modules/log-ieee-tests: New file.
16678         * tests/test-log-ieee.c: New file.
16680         New module 'log-ieee'.
16681         * modules/log-ieee: New file.
16683         Tests for module 'logf-ieee'.
16684         * modules/logf-ieee-tests: New file.
16685         * tests/test-logf-ieee.c: New file.
16686         * tests/test-log-ieee.h: New file.
16688         New module 'logf-ieee'.
16689         * modules/logf-ieee: New file.
16691 2012-03-10  Bruno Haible  <bruno@clisp.org>
16693         log: Fix bug introduced on 2012-03-09.
16694         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
16696 2012-03-10  Pádraig Brady  <P@draigBrady.com>
16698         timer-time: link explicitly with pthreads on glibc
16699         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
16700         to support static linking, when newer glibc is
16701         detected, as that contains pthread emulation of
16702         POSIX timer functions where required.
16703         * modules/timer-time: Depend on threadlib to
16704         pull in the appropriate library to link.
16706 2012-03-10  Bruno Haible  <bruno@clisp.org>
16708         log* tests: More tests.
16709         * tests/test-log.h: New file.
16710         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
16711         (main): Invoke test_function.
16712         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
16713         (main): Invoke test_function.
16714         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
16715         (main): Invoke test_function.
16716         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
16717         tests/randomd.c.
16718         (Makefile.am): Add randomd.c to test_log_SOURCES.
16719         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
16720         tests/randomf.c.
16721         (Makefile.am): Add randomf.c to test_logf_SOURCES.
16722         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
16723         tests/randoml.c.
16724         (Depends-on): Add 'float'.
16725         (Makefile.am): Add randoml.c to test_logl_SOURCES.
16727 2012-03-09  Bruno Haible  <bruno@clisp.org>
16729         logl: Work around OSF/1 5.1 bug.
16730         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
16731         * lib/logl.c (logl): If logl exists, use it and provide just the
16732         workaround.
16733         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
16734         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
16735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
16736         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
16737         * modules/logl (configure.ac): Consider REPLACE_LOGL.
16738         (Depends-on): Update conditions.
16739         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
16741 2012-03-09  Bruno Haible  <bruno@clisp.org>
16743         logf: Work around OSF/1 5.1 bug.
16744         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
16745         * lib/logf.c (logf): If logf exists, use it and provide just the
16746         workaround.
16747         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
16748         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
16749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
16750         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
16751         * modules/logf (configure.ac): Consider REPLACE_LOGF.
16752         (Depends-on): Update conditions.
16753         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
16755 2012-03-09  Bruno Haible  <bruno@clisp.org>
16757         log: Work around OSF/1 5.1 bug.
16758         * lib/math.in.h (log): New declaration.
16759         * lib/log.c: New file.
16760         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
16761         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
16762         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
16763         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
16764         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
16765         * modules/log (Files): Add lib/log.c.
16766         (Depends-on): Add math.
16767         (configure.ac): If REPLACE_LOG is 1, compile an override.
16768         * tests/test-math-c++.cc: Check the declaration of log.
16769         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
16771 2012-03-09  Jim Meyering  <meyering@redhat.com>
16773         readtokens.c: adjust wording in a comment
16774         * lib/readtokens.c: Insert omitted "that" in a comment.
16776 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16778         modechange: add notations +40, 00440, etc.
16779         * lib/modechange.c (mode_compile): Support new notations
16780         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
16782 2012-03-08  Bruno Haible  <bruno@clisp.org>
16784         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
16785         * m4/exp2l-ieee.m4: New file.
16786         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
16787         test whether exp2l works with a NaN argument and with a negative
16788         infinity argument. Replace it if not.
16789         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
16790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
16791         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
16792         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
16793         (Depends-on): Update conditions.
16794         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
16795         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
16796         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
16798         Tests for module 'exp2l-ieee'.
16799         * modules/exp2l-ieee-tests: New file.
16800         * tests/test-exp2l-ieee.c: New file.
16802         New module 'exp2l-ieee'.
16803         * modules/exp2l-ieee: New file.
16805         Tests for module 'exp2-ieee'.
16806         * modules/exp2-ieee-tests: New file.
16807         * tests/test-exp2-ieee.c: New file.
16809         New module 'exp2-ieee'.
16810         * modules/exp2-ieee: New file.
16812         Tests for module 'exp2f-ieee'.
16813         * modules/exp2f-ieee-tests: New file.
16814         * tests/test-exp2f-ieee.c: New file.
16815         * tests/test-exp2-ieee.h: New file.
16817         New module 'exp2f-ieee'.
16818         * modules/exp2f-ieee: New file.
16820 2012-03-08  Bruno Haible  <bruno@clisp.org>
16822         Tests for module 'exp2l'.
16823         * modules/exp2l-tests: New file.
16824         * tests/test-exp2l.c: New file.
16826         New module 'exp2l'.
16827         * lib/math.in.h (exp2l): New declaration.
16828         * lib/exp2l.c: New file.
16829         * lib/expl-table.c: New file, extracted from lib/expl.c.
16830         * lib/expl.c (gl_expl_table): New declaration.
16831         (expl): Remove expl_table. Update reference.
16832         * m4/exp2l.m4: New file.
16833         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
16834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
16835         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
16836         * modules/exp2l: New file.
16837         * modules/expl (Files): Add lib/expl-table.c.
16838         (configure.ac): Compile also expl-table.c.
16839         * tests/test-math-c++.cc: Check the declaration of exp2l.
16840         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
16841         problem.
16843 2012-03-08  Bruno Haible  <bruno@clisp.org>
16845         Tests for module 'exp2f'.
16846         * modules/exp2f-tests: New file.
16847         * tests/test-exp2f.c: New file.
16849         New module 'exp2f'.
16850         * lib/math.in.h (exp2f): New declaration.
16851         * lib/exp2f.c: New file.
16852         * m4/exp2f.m4: New file.
16853         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
16854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
16855         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
16856         * modules/exp2f: New file.
16857         * tests/test-math-c++.cc: Check the declaration of exp2f.
16858         * doc/posix-functions/exp2f.texi: Mention the new module and the
16859         IRIX problem.
16861 2012-03-08  Bruno Haible  <bruno@clisp.org>
16863         Tests for module 'exp2'.
16864         * modules/exp2-tests: New file.
16865         * tests/test-exp2.c: New file.
16866         * tests/test-exp2.h: New file.
16868         New module 'exp2'.
16869         * lib/math.in.h (exp2): New declaration.
16870         * lib/exp2.c: New file.
16871         * m4/exp2.m4: New file.
16872         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
16873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
16874         REPLACE_EXP2.
16875         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
16876         REPLACE_EXP2.
16877         * modules/exp2: New file.
16878         * tests/test-math-c++.cc: Check the declaration of exp2.
16879         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
16880         and OpenBSD problems.
16882 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16884         savedir: fix comment typo
16885         * lib/savedir.c (savedirstream): Fix typo in comment.
16887 2012-03-08  Bruno Haible  <bruno@clisp.org>
16889         test-readtokens.c: use const; remove unwarranted cast
16890         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
16892 2012-03-08  Bruno Haible  <bruno@clisp.org>
16894         fmal: Avoid compilation error on AIX.
16895         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
16896         AIX 5.2..7.1.
16898 2012-03-08  Bruno Haible  <bruno@clisp.org>
16900         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
16901         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
16902         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
16903         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
16904         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
16905         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
16906         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
16908 2012-03-08  Bruno Haible  <bruno@clisp.org>
16910         remainderf: Override buggy system function on IRIX 6.5.
16911         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
16912         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
16913         when it exists.
16914         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
16916 2012-03-08  Jim Meyering  <meyering@redhat.com>
16918         test-readtokens.c: avoid const-related compilation warnings
16919         * tests/test-readtokens.c: Avoid const-related compilation warnings.
16921 2012-03-07  Jim Meyering  <meyering@redhat.com>
16922             Bruno Haible  <bruno@clisp.org>
16924         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
16925         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
16926         tests/randomd.c.
16927         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
16928         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
16929         tests/randoml.c.
16930         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
16932 2012-03-07  Bruno Haible  <bruno@clisp.org>
16934         expm1l: Avoid compilation error on AIX.
16935         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
16936         AIX 5.2..7.1.
16938 2012-03-07  Bruno Haible  <bruno@clisp.org>
16940         expm1l: Don't override undeclared system function on IRIX 6.5.
16941         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
16942         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
16943         it exists. Set HAVE_DECL_EXPM1L.
16944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
16945         HAVE_EXPM1L.
16946         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
16947         HAVE_EXPM1L.
16948         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
16950 2012-03-07  Bruno Haible  <bruno@clisp.org>
16952         remainderl: Don't override undeclared system function on IRIX 6.5.
16953         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
16954         HAVE_REMAINDERL.
16955         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
16956         declared when it exists. Set HAVE_DECL_REMAINDERL.
16957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
16958         not HAVE_REMAINDERL.
16959         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
16960         HAVE_REMAINDERL.
16961         * doc/posix-functions/remainderl.texi: Mention missing declaration
16962         problem.
16964 2012-03-07  Bruno Haible  <bruno@clisp.org>
16966         rintf: Don't override undeclared system function on IRIX 6.5.
16967         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
16968         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
16969         exists. Set HAVE_DECL_RINTF.
16970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
16971         HAVE_RINTF.
16972         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
16973         HAVE_RINTF.
16974         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
16976 2012-03-07  Bruno Haible  <bruno@clisp.org>
16978         roundl: Avoid compilation error on AIX.
16979         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
16980         AIX 5.2..7.1.
16982 2012-03-07  Bruno Haible  <bruno@clisp.org>
16984         roundl: Don't override undeclared system function on IRIX 6.5.
16985         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
16986         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
16987         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
16988         * modules/roundl (configure.ac): For replacement code, test
16989         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
16990         (Depends-on): Update conditions.
16991         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
16993 2012-03-07  Bruno Haible  <bruno@clisp.org>
16995         roundf: Don't override undeclared system function on IRIX 6.5.
16996         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
16997         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
16998         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
16999         * modules/roundf (configure.ac): For replacement code, test
17000         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
17001         (Depends-on): Update conditions.
17002         * modules/roundf-ieee (Depends-on): Update conditions.
17003         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
17005 2012-03-07  Bruno Haible  <bruno@clisp.org>
17007         round: Don't override undeclared system function on IRIX 6.5.
17008         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
17009         argument.
17010         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
17011         also when it is not declared. Set HAVE_ROUND. For replacement code,
17012         test HAVE_ROUND, not HAVE_DECL_ROUND.
17013         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
17014         not HAVE_DECL_ROUND.
17015         (Depends-on): Update conditions.
17016         * modules/round-ieee (Depends-on): Update conditions.
17017         * doc/posix-functions/round.texi: Mention the IRIX problem.
17019 2012-03-07  Bruno Haible  <bruno@clisp.org>
17021         copysignf: Don't override undeclared system function on IRIX 6.5.
17022         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
17023         HAVE_COPYSIGNF.
17024         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
17025         declared when it exists. Set HAVE_DECL_COPYSIGNF.
17026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
17027         not HAVE_COPYSIGNF.
17028         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
17029         HAVE_COPYSIGNF.
17030         * doc/posix-functions/copysignf.texi: Mention missing declaration
17031         problem.
17033 2012-03-07  Jim Meyering  <meyering@redhat.com>
17035         readtokens: add tests
17036         * modules/readtokens-tests: New file.
17037         * tests/test-readtokens.c: New file.
17039 2012-03-07  Jim Meyering  <meyering@redhat.com>
17041         quotearg: the module must now include quote.h
17042         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
17043         So must the module.
17044         * modules/quotearg (Files): Add quote.h.
17046 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
17048         readtokens: avoid core dumps with unusual calling patterns
17049         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
17050         * lib/readtokens.c: Include limits.h.
17051         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
17052         (readtoken): Don't cache the delimiters; the cache code was buggy
17053         if !delim && saved_delim, or if the new n_delim differs from the old.
17054         Also, it wasn't thread-safe.
17056 2012-03-07  Bruno Haible  <bruno@clisp.org>
17058         quote: Adhere to common module description layout.
17059         * modules/quote (Makefile.am): Add back empty section.
17061 2012-03-06  Akim Demaille  <demaille@gostai.com>
17063         quote: fuse into quotearg
17064         This patch is made for the benefit of Bison.
17065         quote does not leave the choice of the quoting style to the user.
17066         quoting_style provides poor customizability, yet quoting_options,
17067         which is very rich, is hidden inside quotearg.c.  So in order to
17068         allow quote customization, move its implementation to quotearg.c.
17069         * lib/quote.c: Remove.
17070         * modules/quote: Adjust.
17071         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
17072         warning: provide all the members of literal structs.
17073         (quote_quoting_options): New.
17074         (quote, quote_n): Import implementation from quote.c.
17075         * lib/quote.h: Import the comments from quote.c.
17076         (quote_quoting_options): New.
17078 2012-03-06  Bruno Haible  <bruno@clisp.org>
17080         Tests for module 'expm1l-ieee'.
17081         * modules/expm1l-ieee-tests: New file.
17082         * tests/test-expm1l-ieee.c: New file.
17084         New module 'expm1l-ieee'.
17085         * modules/expm1l-ieee: New file.
17087         Tests for module 'expm1f-ieee'.
17088         * modules/expm1f-ieee-tests: New file.
17089         * tests/test-expm1f-ieee.c: New file.
17091         New module 'expm1f-ieee'.
17092         * modules/expm1f-ieee: New file.
17094         Tests for module 'expm1-ieee'.
17095         * modules/expm1-ieee-tests: New file.
17096         * tests/test-expm1-ieee.c: New file.
17097         * tests/test-expm1-ieee.h: New file.
17099         New module 'expm1-ieee'.
17100         * modules/expm1-ieee: New file.
17101         * m4/expm1-ieee.m4: New file.
17102         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
17103         whether expm1 works with a minus zero argument. Replace it if not.
17104         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
17105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
17106         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
17107         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
17108         (Depends-on): Update conditions.
17109         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
17110         AIX problem.
17112 2012-03-06  Bruno Haible  <bruno@clisp.org>
17114         Work around expm1f bug on IRIX 6.5.
17115         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
17116         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
17117         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
17118         not work.
17119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
17120         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
17121         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
17122         (Depends-on): Update conditions.
17123         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
17125 2012-03-06  Bruno Haible  <bruno@clisp.org>
17127         Tests for module 'expm1l'.
17128         * modules/expm1l-tests: New file.
17129         * tests/test-expm1l.c: New file.
17131         New module 'expm1l'.
17132         * lib/math.in.h (expm1l): New declaration.
17133         * lib/expm1l.c: New file.
17134         * m4/expm1l.m4: New file.
17135         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
17136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
17137         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
17138         * modules/expm1l: New file.
17139         * tests/test-math-c++.cc: Check the declaration of expm1l.
17140         * doc/posix-functions/expm1l.texi: Mention the new module.
17142 2012-03-06  Bruno Haible  <bruno@clisp.org>
17144         Tests for module 'expm1f'.
17145         * modules/expm1f-tests: New file.
17146         * tests/test-expm1f.c: New file.
17148         New module 'expm1f'.
17149         * lib/math.in.h (expm1f): New declaration.
17150         * lib/expm1f.c: New file.
17151         * m4/expm1f.m4: New file.
17152         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
17153         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
17154         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
17155         * modules/expm1f: New file.
17156         * tests/test-math-c++.cc: Check the declaration of expm1f.
17157         * doc/posix-functions/expm1f.texi: Mention the new module.
17159 2012-03-06  Bruno Haible  <bruno@clisp.org>
17161         Tests for module 'expm1'.
17162         * modules/expm1-tests: New file.
17163         * tests/test-expm1.c: New file.
17164         * tests/test-expm1.h: New file.
17166         New module 'expm1'.
17167         * lib/math.in.h (expm1): New declaration.
17168         * lib/expm1.c: New file.
17169         * m4/expm1.m4: New file.
17170         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
17171         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
17172         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
17173         * modules/expm1: New file.
17174         * tests/test-math-c++.cc: Check the declaration of expm1.
17175         * doc/posix-functions/expm1.texi: Mention the new module.
17177 2012-03-06  Bruno Haible  <bruno@clisp.org>
17179         math: Ensure declarations of math functions.
17180         * modules/acosf (Depends-on): Add 'extensions'.
17181         * modules/asinf (Depends-on): Likewise.
17182         * modules/atan2f (Depends-on): Likewise.
17183         * modules/atanf (Depends-on): Likewise.
17184         * modules/cbrt (Depends-on): Likewise.
17185         * modules/cbrtf (Depends-on): Likewise.
17186         * modules/cbrtl (Depends-on): Likewise.
17187         * modules/copysignf (Depends-on): Likewise.
17188         * modules/copysignl (Depends-on): Likewise.
17189         * modules/cosf (Depends-on): Likewise.
17190         * modules/coshf (Depends-on): Likewise.
17191         * modules/expf (Depends-on): Likewise.
17192         * modules/fabsf (Depends-on): Likewise.
17193         * modules/fabsl (Depends-on): Likewise.
17194         * modules/fmaf (Depends-on): Likewise.
17195         * modules/fmal (Depends-on): Likewise.
17196         * modules/fmodf (Depends-on): Likewise.
17197         * modules/fmodl (Depends-on): Likewise.
17198         * modules/frexpf (Depends-on): Likewise.
17199         * modules/frexpl (Depends-on): Likewise.
17200         * modules/hypot (Depends-on): Likewise.
17201         * modules/hypotf (Depends-on): Likewise.
17202         * modules/hypotl (Depends-on): Likewise.
17203         * modules/ldexpf (Depends-on): Likewise.
17204         * modules/ldexpl (Depends-on): Likewise.
17205         * modules/log10f (Depends-on): Likewise.
17206         * modules/log10l (Depends-on): Likewise.
17207         * modules/log1p (Depends-on): Likewise.
17208         * modules/logb (Depends-on): Likewise.
17209         * modules/logf (Depends-on): Likewise.
17210         * modules/modff (Depends-on): Likewise.
17211         * modules/modfl (Depends-on): Likewise.
17212         * modules/powf (Depends-on): Likewise.
17213         * modules/remainderf (Depends-on): Likewise.
17214         * modules/remainderl (Depends-on): Likewise.
17215         * modules/rintf (Depends-on): Likewise.
17216         * modules/rintl (Depends-on): Likewise.
17217         * modules/sinf (Depends-on): Likewise.
17218         * modules/sinhf (Depends-on): Likewise.
17219         * modules/sqrtf (Depends-on): Likewise.
17220         * modules/tanf (Depends-on): Likewise.
17221         * modules/tanhf (Depends-on): Likewise.
17222         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
17223         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
17224         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
17225         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
17226         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
17227         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
17228         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
17229         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
17230         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
17231         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
17232         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
17233         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
17234         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
17235         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
17236         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
17237         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
17238         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
17239         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
17240         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
17241         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
17242         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
17243         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
17244         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
17245         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
17246         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
17247         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
17248         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
17249         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17250         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
17251         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
17252         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
17253         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
17254         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
17255         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
17256         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
17257         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
17258         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
17259         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
17260         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
17261         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
17262         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
17264 2012-03-06  Bruno Haible  <bruno@clisp.org>
17266         math: Update module names in warnings.
17267         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17268         tanl): Use specific module name in warn-on-use warning.
17270 2012-03-06  Bruno Haible  <bruno@clisp.org>
17272         expl: Simplify computation.
17273         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
17275 2012-03-05  Bruno Haible  <bruno@clisp.org>
17277         exp* tests: More tests.
17278         * tests/test-exp.h: New file.
17279         * tests/test-exp.c: Include <float.h> and test-exp.h.
17280         (main): Invoke test_function.
17281         * tests/test-expf.c: Include <float.h> and test-exp.h.
17282         (main): Invoke test_function.
17283         * tests/test-expl.c: Include <float.h> and test-exp.h.
17284         (main): Invoke test_function.
17285         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
17286         (Makefile.am): Add randomd.c to test_exp_SOURCES.
17287         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
17288         (Makefile.am): Add randomf.c to test_expf_SOURCES.
17289         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
17290         (Depends-on): Add 'float'.
17291         (Makefile.am): Add randoml.c to test_expl_SOURCES.
17293         expl: Fix precision of computed result.
17294         * lib/expl.c: Completely rewritten.
17295         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
17296         (Maintainer): Add me.
17297         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
17299 2012-03-05  Bruno Haible  <bruno@clisp.org>
17301         cbrt* tests: More tests.
17302         * tests/test-cbrt.h: New file.
17303         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
17304         (main): Invoke test_function.
17305         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
17306         (main): Invoke test_function.
17307         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
17308         (main): Invoke test_function.
17309         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
17310         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
17311         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
17312         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
17313         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
17314         (Depends-on): Add 'float'.
17315         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
17317 2012-03-05  Bruno Haible  <bruno@clisp.org>
17319         hypot* tests: More tests.
17320         * tests/test-hypot.h: New file, partially extracted from
17321         tests/test-hypotl.c.
17322         * tests/test-hypot.c: Include test-hypot.h.
17323         (main): Invoke test_function.
17324         * tests/test-hypotf.c: Include test-hypot.h.
17325         (main): Invoke test_function.
17326         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
17327         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
17328         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
17329         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
17330         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
17331         tests/randomf.c.
17332         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
17333         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
17334         tests/randoml.c.
17335         (Depends-on): Add 'fpucw', 'float'.
17336         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
17338 2012-03-05  Bruno Haible  <bruno@clisp.org>
17340         fpucw: Doc about FreeBSD.
17341         * lib/fpucw.h: Mention FreeBSD in comments.
17343 2012-03-04  Bruno Haible  <bruno@clisp.org>
17345         sqrt* tests: More tests.
17346         * tests/test-sqrt.h: New file.
17347         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
17348         (main): Invoke test_function.
17349         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
17350         (main): Invoke test_function.
17351         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
17352         (main): Invoke test_function.
17353         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
17354         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
17355         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
17356         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
17357         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
17358         (Depends-on): Add 'float'.
17359         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
17361 2012-03-04  Bruno Haible  <bruno@clisp.org>
17363         remainder* tests: More tests.
17364         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
17365         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
17366         (main): Invoke test_function.
17367         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
17368         (main): Invoke test_function.
17369         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
17370         (main): Invoke test_function.
17371         * modules/remainder-tests (Files): Add tests/test-remainder.h,
17372         tests/randomd.c.
17373         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
17374         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
17375         tests/randomf.c.
17376         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
17377         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
17378         tests/randoml.c.
17379         (Depends-on): Add 'float'.
17380         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
17382 2012-03-04  Bruno Haible  <bruno@clisp.org>
17384         remainder, remainderf, remainderl: Fix computation for large quotients.
17385         * lib/remainder.c: Completely rewritten.
17386         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
17387         USE_FLOAT.
17388         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
17389         USE_LONG_DOUBLE.
17390         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
17391         isnand, isinf. Remove round, fma.
17392         * modules/remainderf (Files): Add lib/remainder.c.
17393         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
17394         Remove roundf, fmaf.
17395         * modules/remainderl (Files): Add lib/remainder.c.
17396         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
17397         isinf. Remove roundl, fmal.
17398         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
17399         REMAINDER_LIBM.
17400         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
17401         REMAINDERF_LIBM.
17402         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
17403         REMAINDERL_LIBM.
17405 2012-03-04  Bruno Haible  <bruno@clisp.org>
17407         fmod* tests: More tests.
17408         * tests/test-fmod.h (my_ldexp): New function.
17409         (test_function): Reduce amount of random numbers to test. Add tests
17410         of very large quotients x / y.
17411         * tests/test-fmod.c (MAX_EXP): New macro.
17412         * tests/test-fmodf.c (MAX_EXP): Likewise.
17413         * tests/test-fmodl.c (MAX_EXP): Likewise.
17415 2012-03-04  Bruno Haible  <bruno@clisp.org>
17417         fmod, fmodl: Fix computation for large quotients x / y.
17418         * lib/fmod.c: Completely rewritten.
17419         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
17420         USE_LONG_DOUBLE.
17421         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
17422         isnand. Remove fma.
17423         * modules/fmodl (Files): Add lib/fmod.c.
17424         (Depends-on): Add float, isfinite, signbit, fabsl,
17425         frexpl, ldexpl, isnanl. Remove fma.
17426         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
17427         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
17429 2012-03-03  Bruno Haible  <bruno@clisp.org>
17431         fmod* tests: More tests.
17432         * tests/test-fmod.h: New file.
17433         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
17434         (main): Invoke test_function.
17435         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
17436         (main): Invoke test_function.
17437         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
17438         (main): Invoke test_function.
17439         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
17440         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
17441         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
17442         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
17443         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
17444         (Depends-on): Add 'float'.
17445         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
17447 2012-03-03  Bruno Haible  <bruno@clisp.org>
17449         rint* tests: More tests.
17450         * tests/test-rint.h: New file, partially extracted from
17451         tests/test-rintl.c.
17452         * tests/test-rint.c: Include test-rint.h.
17453         (main): Invoke test_function.
17454         * tests/test-rintf.c: Include test-rint.h.
17455         (main): Invoke test_function.
17456         * tests/test-rintl.c: Include test-rint.h.
17457         (main): Invoke test_function.
17458         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
17459         (Makefile.am): Add randomd.c to test_rint_SOURCES.
17460         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
17461         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
17462         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
17463         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
17465 2012-03-03  Bruno Haible  <bruno@clisp.org>
17467         modf* tests: More tests.
17468         * tests/test-modf.h: New file.
17469         * tests/test-modf.c: Include <float.h> and test-modf.h.
17470         (main): Invoke test_function.
17471         * tests/test-modff.c: Include <float.h> and test-modf.h.
17472         (main): Invoke test_function.
17473         * tests/test-modfl.c: Include <float.h> and test-modf.h.
17474         (main): Invoke test_function.
17475         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
17476         (Makefile.am): Add randomd.c to test_modf_SOURCES.
17477         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
17478         (Makefile.am): Add randomf.c to test_modff_SOURCES.
17479         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
17480         (Depends-on): Add 'float'.
17481         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
17483 2012-03-03  Bruno Haible  <bruno@clisp.org>
17485         fabs* tests: More tests.
17486         * tests/test-fabs.h: New file, partially extracted from
17487         tests/test-fabsl.c.
17488         * tests/test-fabs.c (RANDOM): New macro.
17489         * tests/test-fabsf.c (RANDOM): New macro.
17490         * tests/test-fabsl.c (RANDOM): New macro.
17491         * modules/fabs-tests (Files): Add tests/randomd.c.
17492         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
17493         * modules/fabsf-tests (Files): Add tests/randomf.c.
17494         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
17495         * modules/fabsl-tests (Files): Add tests/randoml.c.
17496         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
17498 2012-03-03  Bruno Haible  <bruno@clisp.org>
17500         ldexp* tests: More tests.
17501         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
17502         * tests/test-ldexp.c (RANDOM): New macro.
17503         * tests/test-ldexpf.c (RANDOM): New macro.
17504         * tests/test-ldexpl.c (RANDOM): New macro.
17505         * modules/ldexp-tests (Files): Add tests/randomd.c.
17506         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
17507         * modules/ldexpf-tests (Files): Add tests/randomf.c.
17508         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
17509         * modules/ldexpl-tests (Files): Add tests/randoml.c.
17510         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
17512 2012-03-03  Bruno Haible  <bruno@clisp.org>
17514         frexp* tests: More tests.
17515         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
17516         * tests/test-frexp.c (RANDOM): New macro.
17517         * tests/test-frexpf.c (RANDOM): New macro.
17518         * tests/test-frexpl.c (RANDOM): New macro.
17519         * modules/frexp-tests (Files): Add tests/randomd.c.
17520         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
17521         * modules/frexpf-tests (Files): Add tests/randomf.c.
17522         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
17523         * modules/frexpl-tests (Files): Add tests/randoml.c.
17524         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
17526 2012-03-03  Bruno Haible  <bruno@clisp.org>
17528         Support for pseudo-random numbers in tests.
17529         * tests/randomf.c: New file.
17530         * tests/randomd.c: New file.
17531         * tests/randoml.c: New file.
17532         * tests/macros.h (randomf, randomd, randoml): New declarations.
17534 2012-03-03  Bruno Haible  <bruno@clisp.org>
17536         frexp* tests: Refactor.
17537         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
17538         * tests/test-frexp.c: Include and use it.
17539         * tests/test-frexpf.c: Likewise.
17540         * tests/test-frexpl.c: Likewise.
17541         * modules/frexp-tests (Files): Add tests/test-frexp.h.
17542         * modules/frexpf-tests (Files): Likewise.
17543         * modules/frexpl-tests (Files): Likewise.
17545 2012-03-02  Jim Meyering  <meyering@redhat.com>
17547         maint: don't specify XZ_OPT=-9ev in dist-related rule
17548         Using xz's -9 option is warranted only if you have a very large
17549         tarball (see xz's documentation for the sizes vs. presets), and
17550         requires 64MiB of memory at decompression time.
17551         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
17552         Automake's default of just "-e" is fine.  Override on a
17553         per-package basis by setting XZ_OPT e.g., in cfg.mk.
17555 2012-03-01  Eric Blake  <eblake@redhat.com>
17557         maint.mk: allow announcement for non-gnulib project
17558         * maint.mk (announcement): Skip gnulib version if not used.
17560 2012-03-01  Jim Meyering  <meyering@redhat.com>
17562         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
17563         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
17564         envvar settings cannot interfere.  Otherwise, setting envvars like
17565         prohibit=foo require=bar, etc. would cause spurious test failures.
17567 2012-03-01  Eric Blake  <eblake@redhat.com>
17569         maint.mk: add per-line exclusions to prohibitions
17570         * maint.mk (_sc_search_regexp): Add $exclude parameter.
17571         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
17572         (sc_const_long_option): Use it.
17574 2012-03-01  Bruno Haible  <bruno@clisp.org>
17576         Tests for module 'expl-ieee'.
17577         * modules/expl-ieee-tests: New file.
17578         * tests/test-expl-ieee.c: New file.
17580         New module 'expl-ieee'.
17581         * modules/expl-ieee: New file.
17583         Tests for module 'exp-ieee'.
17584         * modules/exp-ieee-tests: New file.
17585         * tests/test-exp-ieee.c: New file.
17587         New module 'exp-ieee'.
17588         * modules/exp-ieee: New file.
17590         Tests for module 'expf-ieee'.
17591         * modules/expf-ieee-tests: New file.
17592         * tests/test-expf-ieee.c: New file.
17593         * tests/test-exp-ieee.h: New file.
17595         New module 'expf-ieee'.
17596         * modules/expf-ieee: New file.
17598 2012-02-29  Bruno Haible  <bruno@clisp.org>
17600         cbrtl-ieee: Work around test failure on IRIX 6.5.
17601         * m4/cbrtl-ieee.m4: New file.
17602         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
17603         test whether cbrtl works with a minus zero argument. Replace it if not.
17604         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
17605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
17606         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
17607         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
17608         (Depends-on): Update conditions.
17609         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
17610         m4/signbit.m4.
17611         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
17612         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
17613         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
17615         Tests for module 'cbrtl-ieee'.
17616         * modules/cbrtl-ieee-tests: New file.
17617         * tests/test-cbrtl-ieee.c: New file.
17619         New module 'cbrtl-ieee'.
17620         * modules/cbrtl-ieee: New file.
17622         Tests for module 'cbrt-ieee'.
17623         * modules/cbrt-ieee-tests: New file.
17624         * tests/test-cbrt-ieee.c: New file.
17626         New module 'cbrt-ieee'.
17627         * modules/cbrt-ieee: New file.
17629         Tests for module 'cbrtf-ieee'.
17630         * modules/cbrtf-ieee-tests: New file.
17631         * tests/test-cbrtf-ieee.c: New file.
17632         * tests/test-cbrt-ieee.h: New file.
17634         New module 'cbrtf-ieee'.
17635         * modules/cbrtf-ieee: New file.
17637 2012-02-29  Bruno Haible  <bruno@clisp.org>
17639         cbrtf: Work around bug in IRIX 6.5 system function.
17640         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
17641         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
17642         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
17643         work.
17644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
17645         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
17646         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
17647         (Depends-on): Update conditions.
17648         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
17650 2012-02-29  Bruno Haible  <bruno@clisp.org>
17652         Tests for module 'cbrtl'.
17653         * modules/cbrtl-tests: New file.
17654         * tests/test-cbrtl.c: New file.
17656         New module 'cbrtl'.
17657         * lib/math.in.h (cbrtl): New declaration.
17658         * lib/cbrtl.c: New file.
17659         * m4/cbrtl.m4: New file.
17660         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
17661         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
17662         HAVE_DECL_CBRTL.
17663         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
17664         HAVE_DECL_CBRTL.
17665         * modules/cbrtl: New file.
17666         * tests/test-math-c++.cc: Check the declaration of cbrtl.
17667         * doc/posix-functions/cbrtl.texi: Mention the new module.
17669 2012-02-29  Bruno Haible  <bruno@clisp.org>
17671         Tests for module 'cbrtf'.
17672         * modules/cbrtf-tests: New file.
17673         * tests/test-cbrtf.c: New file.
17675         New module 'cbrtf'.
17676         * lib/math.in.h (cbrtf): New declaration.
17677         * lib/cbrtf.c: New file.
17678         * m4/cbrtf.m4: New file.
17679         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
17680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
17681         HAVE_DECL_CBRTF.
17682         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
17683         HAVE_DECL_CBRTF.
17684         * modules/cbrtf: New file.
17685         * tests/test-math-c++.cc: Check the declaration of cbrtf.
17686         * doc/posix-functions/cbrtf.texi: Mention the new module.
17688 2012-02-29  Bruno Haible  <bruno@clisp.org>
17690         cbrt: Provide replacement on MSVC and Minix.
17691         * lib/math.in.h (cbrt): New declaration.
17692         * lib/cbrt.c: New file.
17693         * m4/cbrt.m4: New file.
17694         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
17695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
17696         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
17697         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
17698         (Depends-on): Add dependencies.
17699         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
17700         * tests/test-math-c++.cc: Check the declaration of cbrt.
17701         * doc/posix-functions/cbrt.texi: Mention that the module provides a
17702         replacement.
17704 2012-02-29  Bruno Haible  <bruno@clisp.org>
17706         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
17707         * m4/hypotl-ieee.m4: New file.
17708         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
17709         test whether hypotl works with mixed NaN and Infinity arguments.
17710         Replace it if not.
17711         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
17712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
17713         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
17714         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
17715         (Depends-on): Update conditions.
17716         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
17717         (Depends-on): Add hypot-ieee.
17718         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
17719         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
17721         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
17722         * m4/hypotf-ieee.m4: New file.
17723         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
17724         test whether hypotf works with mixed NaN and Infinity arguments.
17725         Replace it if not.
17726         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
17727         (Depends-on): Add hypot-ieee.
17728         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
17729         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
17731         hypot-ieee: Work around test failure on OSF/1 and native Windows.
17732         * lib/math.in.h (hypot): New declaration.
17733         * lib/hypot.c: New file.
17734         * m4/hypot-ieee.m4: New file.
17735         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
17736         whether hypot works with mixed NaN and Infinity arguments. Replace it
17737         if not.
17738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
17739         REPLACE_HYPOT.
17740         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
17741         * modules/hypot (Files): Add lib/hypot.c.
17742         (Depends-on): Add dependencies.
17743         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
17744         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
17745         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
17746         * tests/test-math-c++.cc: Check the declaration of hypot.
17747         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
17749         Tests for module 'hypotl-ieee'.
17750         * modules/hypotl-ieee-tests: New file.
17751         * tests/test-hypotl-ieee.c: New file.
17753         New module 'hypotl-ieee'.
17754         * modules/hypotl-ieee: New file.
17756         Tests for module 'hypot-ieee'.
17757         * modules/hypot-ieee-tests: New file.
17758         * tests/test-hypot-ieee.c: New file.
17760         New module 'hypot-ieee'.
17761         * modules/hypot-ieee: New file.
17763         Tests for module 'hypotf-ieee'.
17764         * modules/hypotf-ieee-tests: New file.
17765         * tests/test-hypotf-ieee.c: New file.
17766         * tests/test-hypot-ieee.h: New file.
17768         New module 'hypotf-ieee'.
17769         * modules/hypotf-ieee: New file.
17771 2012-02-29  Bruno Haible  <bruno@clisp.org>
17773         Remove unused variables.
17774         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
17775         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
17776         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
17777         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
17779 2012-02-29  Eric Blake  <eblake@redhat.com>
17781         termios: fix pid_t always, not just for tcgetsid
17782         * doc/posix-headers/termios.texi (termios.h): Mention problem.
17783         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
17784         just when building tcgetsid.
17786 2012-02-29  Bruno Haible  <bruno@clisp.org>
17788         Tests for module 'hypotl'.
17789         * modules/hypotl-tests: New file.
17790         * tests/test-hypotl.c: New file.
17792         New module 'hypotl'.
17793         * lib/math.in.h (hypotl): New declaration.
17794         * lib/hypotl.c: New file.
17795         * m4/hypotl.m4: New file.
17796         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
17797         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
17798         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
17799         * modules/hypotl: New file.
17800         * tests/test-math-c++.cc: Check the hypotl declaration.
17801         * doc/posix-functions/hypotl.texi: Mention the new module.
17803 2012-02-29  Eric Blake  <eblake@redhat.com>
17805         tcgetsid: fix cygwin header bug
17806         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
17808         docs: update cygwin progress
17809         * doc/posix-functions/llround.texi (llround): Added in cygwin
17810         1.7.8.
17811         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
17812         * doc/glibc-functions/program_invocation_name.texi
17813         (program_invocation_name): Likewise.
17814         * doc/glibc-functions/program_invocation_short_name.texi
17815         (program_invocation_short_name): Likewise.
17816         * doc/glibc-functions/madvise.texi (madvise): Likewise.
17817         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
17818         Likewise.
17819         * doc/posix-functions/pthread_spin_destroy.texi
17820         (pthread_spin_destroy): Added in cygwin 1.7.10.
17821         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
17822         Likewise.
17823         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
17824         Likewise.
17825         * doc/posix-functions/pthread_spin_trylock.texi
17826         (pthread_spin_trylock): Likewise.
17827         * doc/posix-functions/pthread_spin_unlock.texi
17828         (pthread_spin_unlock): Likewise.
17829         * doc/posix-functions/pthread_setschedprio.texi
17830         (pthread_setschedprio): Likewise.
17831         * doc/posix-functions/pthread_attr_getstack.texi
17832         (pthread_attr_getstack): Likewise.
17833         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
17834         (pthread_attr_getstackaddr): Likewise.
17835         * doc/glibc-functions/pthread_getattr_np.texi
17836         (pthread_getattr_np): Likewise.
17837         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
17838         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
17839         * doc/posix-functions/clock_settime.texi (clock_settime):
17840         Likewise.
17841         * doc/posix-functions/pthread_attr_getguardsize.texi
17842         (pthread_attr_getguardsize): Likewise.
17843         * doc/posix-functions/pthread_attr_setguardsize.texi
17844         (pthread_attr_setguardsize): Likewise.
17845         * doc/posix-functions/pthread_attr_setstack.texi
17846         (pthread_attr_setstack): Likewise.
17847         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
17848         (pthread_attr_setstackaddr): Likewise.
17849         * doc/posix-functions/clock_getcpuclockid.texi
17850         (clock_getcpuclockid): Likewise.
17851         * doc/posix-functions/pthread_getcpuclockid.texi
17852         (pthread_getcpuclockid): Likewise.
17853         * doc/glibc-functions/error.texi (error): Likewise.
17854         * doc/glibc-functions/error_at_line.texi (error_at_line):
17855         Likewise.
17856         * doc/glibc-functions/error_message_count.texi
17857         (error_message_count): Likewise.
17858         * doc/glibc-functions/error_one_per_line.texi
17859         (error_one_per_line): Likewise.
17860         * doc/glibc-functions/error_print_progname.texi
17861         (error_print_progname): Likewise.
17862         * doc/posix-functions/pthread_condattr_getclock.texi
17863         (pthread_condattr_getclock): Likewise.
17864         * doc/posix-functions/pthread_condattr_setclock.texi
17865         (pthread_condattr_setclock): Likewise.
17866         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
17867         Likewise.
17868         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
17869         * doc/glibc-functions/getpt.texi (getpt): Likewise.
17870         * doc/glibc-functions/get_current_dir_name.texi
17871         (get_current_dir_name): Likewise.
17872         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
17873         Likewise.
17874         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
17875         wrong return type.
17876         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
17877         1.7.11.
17879 2012-02-29  Bruno Haible  <bruno@clisp.org>
17881         Tests for module 'hypotf'.
17882         * modules/hypotf-tests: New file.
17883         * tests/test-hypotf.c: New file.
17885         New module 'hypotf'.
17886         * lib/math.in.h (hypotf): New declaration.
17887         * lib/hypotf.c: New file.
17888         * m4/hypotf.m4: New file.
17889         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
17890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
17891         REPLACE_HYPOTF.
17892         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
17893         REPLACE_HYPOTF.
17894         * modules/hypotf: New file.
17895         * tests/test-math-c++.cc: Check the hypotf declaration.
17896         * doc/posix-functions/hypotf.texi: Mention the new module.
17898         hypot: Prepare for hypotf module.
17899         * m4/hypot.m4: New file.
17900         * modules/hypot (Files): Add m4/hypot.m4.
17901         (configure.ac): Invoke gl_FUNC_HYPOT.
17903 2012-02-29  Bruno Haible  <bruno@clisp.org>
17905         hypot tests: More tests.
17906         * tests/test-hypot.c: Include <float.h>.
17907         (main): Add tests about overflow and underflow.
17909 2012-02-29  Bruno Haible  <bruno@clisp.org>
17911         math code: Add comments.
17912         * lib/acosl.c: Add comment about related glibc source files.
17913         * lib/asinl.c: Likewise.
17914         * lib/atanl.c: Likewise.
17915         * lib/expl.c: Likewise.
17916         * lib/logl.c: Likewise.
17917         * lib/sincosl.c: Likewise.
17918         * lib/sinl.c: Likewise.
17919         * lib/tanl.c: Likewise.
17920         * lib/trigl.c: Likewise.
17921         * lib/cosl.c: Likewise. Fix comments.
17923 2012-02-28  Bruno Haible  <bruno@clisp.org>
17925         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
17926         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
17927         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
17928         HUGE_VALL are defined.
17929         (numeric_equald): Renamed from numeric_equal.
17930         (numeric_equalf, numeric_equall): New functions.
17931         (main): Check also HUGE_VALF, HUGE_VALL.
17932         * modules/math-tests (Files): Add tests/macros.h.
17933         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
17934         HUGE_VALL.
17936 2012-02-28  Bruno Haible  <bruno@clisp.org>
17938         doc: Move ISO C11 feature notes into POSIX chapters.
17939         * doc/posix-functions/aligned_alloc.texi: Renamed from
17940         doc/glibc-functions/aligned_alloc.texi.
17941         * doc/posix-functions/quick_exit.texi: Renamed from
17942         doc/glibc-functions/quick_exit.texi.
17943         * doc/posix-headers/uchar.texi: Renamed from
17944         doc/glibc-headers/uchar.texi.
17945         * doc/posix-functions/c16rtomb.texi: Renamed from
17946         doc/glibc-functions/c16rtomb.texi.
17947         * doc/posix-functions/c32rtomb.texi: Renamed from
17948         doc/glibc-functions/c32rtomb.texi.
17949         * doc/posix-functions/mbrtoc16.texi: Renamed from
17950         doc/glibc-functions/mbrtoc16.texi.
17951         * doc/posix-functions/mbrtoc32.texi: Renamed from
17952         doc/glibc-functions/mbrtoc32.texi.
17953         * doc/gnulib.texi: Update.
17954         (Glibc uchar.h): Remove section.
17955         Suggested by Eric Blake.
17957 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
17959         stdnoreturn: port to MSVC better
17960         MSVC standard headers use __declspec(noreturn), so #define noreturn
17961         to empty on that platform.  Reported by Bruno Haible in
17962         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
17963         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
17964         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
17966 2012-02-28  Bruno Haible  <bruno@clisp.org>
17968         doc: Mention new glibc headers and functions.
17969         * doc/glibc-headers/uchar.texi: New file.
17970         * doc/glibc-functions/aligned_alloc.texi: New file.
17971         * doc/glibc-functions/c16rtomb.texi: New file.
17972         * doc/glibc-functions/c32rtomb.texi: New file.
17973         * doc/glibc-functions/clock_adjtime.texi: New file.
17974         * doc/glibc-functions/fanotify_init.texi: New file.
17975         * doc/glibc-functions/fanotify_mark.texi: New file.
17976         * doc/glibc-functions/inet6_opt_append.texi: New file.
17977         * doc/glibc-functions/inet6_opt_find.texi: New file.
17978         * doc/glibc-functions/inet6_opt_finish.texi: New file.
17979         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
17980         * doc/glibc-functions/inet6_opt_init.texi: New file.
17981         * doc/glibc-functions/inet6_opt_next.texi: New file.
17982         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
17983         * doc/glibc-functions/inet6_rth_add.texi: New file.
17984         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
17985         * doc/glibc-functions/inet6_rth_init.texi: New file.
17986         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
17987         * doc/glibc-functions/inet6_rth_segments.texi: New file.
17988         * doc/glibc-functions/inet6_rth_space.texi: New file.
17989         * doc/glibc-functions/login.texi: New file.
17990         * doc/glibc-functions/mbrtoc16.texi: New file.
17991         * doc/glibc-functions/mbrtoc32.texi: New file.
17992         * doc/glibc-functions/name_to_handle_at.texi: New file.
17993         * doc/glibc-functions/ntp_gettimex.texi: New file.
17994         * doc/glibc-functions/open_by_handle_at.texi: New file.
17995         * doc/glibc-functions/prlimit.texi: New file.
17996         * doc/glibc-functions/process_vm_readv.texi: New file.
17997         * doc/glibc-functions/process_vm_writev.texi: New file.
17998         * doc/glibc-functions/recvmmsg.texi: New file.
17999         * doc/glibc-functions/scandirat.texi: New file.
18000         * doc/glibc-functions/sendmmsg.texi: New file.
18001         * doc/glibc-functions/setns.texi: New file.
18002         * doc/glibc-functions/timespec_get.texi: New file.
18003         * doc/gnulib.texi: Include them.
18004         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
18005         sections.
18006         Reported by Eric Blake.
18008 2012-02-28  Bruno Haible  <bruno@clisp.org>
18010         Avoid compilation errors with MSVC option -fp:strict.
18011         * lib/floor.c: Use MSVC specific pragma fenv_access.
18012         * lib/ceil.c: Likewise.
18013         * lib/trunc.c: Likewise.
18014         * lib/round.c: Likewise.
18015         * lib/rint.c: Likewise.
18016         * lib/fma.c: Likewise.
18017         * lib/integer_length.c: Likewise.
18018         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18019         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18020         * tests/test-floor2.c: Likewise.
18021         * tests/test-floorf2.c: Likewise.
18022         * tests/test-ceil2.c: Likewise.
18023         * tests/test-ceilf2.c: Likewise.
18024         * tests/test-trunc2.c: Likewise.
18025         * tests/test-truncf2.c: Likewise.
18026         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
18028 2012-02-27  Bruno Haible  <bruno@clisp.org>
18030         Tests for module 'sqrtl-ieee'.
18031         * modules/sqrtl-ieee-tests: New file.
18032         * tests/test-sqrtl-ieee.c: New file.
18034         New module 'sqrtl-ieee'.
18035         * modules/sqrtl-ieee: New file.
18037         Tests for module 'sqrt-ieee'.
18038         * modules/sqrt-ieee-tests: New file.
18039         * tests/test-sqrt-ieee.c: New file.
18041         New module 'sqrt-ieee'.
18042         * modules/sqrt-ieee: New file.
18044         Tests for module 'sqrtf-ieee'.
18045         * modules/sqrtf-ieee-tests: New file.
18046         * tests/test-sqrtf-ieee.c: New file.
18047         * tests/test-sqrt-ieee.h: New file.
18049         New module 'sqrtf-ieee'.
18050         * modules/sqrtf-ieee: New file.
18052 2012-02-27  Bruno Haible  <bruno@clisp.org>
18054         remainderl-ieee: Work around test failure on OSF/1.
18055         * m4/remainderl-ieee.m4: New file.
18056         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
18057         present, test whether remainderl works with a zero second argument.
18058         Replace it if not.
18059         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
18060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
18061         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
18062         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
18063         (Depends-on): Update conditions.
18064         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
18065         (Depends-on): Add remainder-ieee.
18066         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
18067         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
18068         module.
18070         remainderf-ieee: Work around test failure on OSF/1.
18071         * m4/remainderf-ieee.m4: New file.
18072         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
18073         present, test whether remainderf works with a zero second argument.
18074         Replace it if not.
18075         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
18076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
18077         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
18078         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
18079         (Depends-on): Update conditions.
18080         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
18081         (Depends-on): Add remainder-ieee.
18082         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
18083         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
18084         module.
18086         remainder-ieee: Work around test failure on OSF/1.
18087         * m4/remainder-ieee.m4: New file.
18088         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
18089         present, test whether remainder works with a zero second argument.
18090         Replace it if not.
18091         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
18092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
18093         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
18094         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
18095         (Depends-on): Update dependencies.
18096         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
18097         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
18098         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
18100         Tests for module 'remainderl-ieee'.
18101         * modules/remainderl-ieee-tests: New file.
18102         * tests/test-remainderl-ieee.c: New file.
18104         New module 'remainderl-ieee'.
18105         * modules/remainderl-ieee: New file.
18107         Tests for module 'remainder-ieee'.
18108         * modules/remainder-ieee-tests: New file.
18109         * tests/test-remainder-ieee.c: New file.
18111         New module 'remainder-ieee'.
18112         * modules/remainder-ieee: New file.
18114         Tests for module 'remainderf-ieee'.
18115         * modules/remainderf-ieee-tests: New file.
18116         * tests/test-remainderf-ieee.c: New file.
18117         * tests/test-remainder-ieee.h: New file.
18119         New module 'remainderf-ieee'.
18120         * modules/remainderf-ieee: New file.
18122 2012-02-27  Bruno Haible  <bruno@clisp.org>
18124         modff, modfl: Fix configure syntax error.
18125         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
18126         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
18128 2012-02-27  Bruno Haible  <bruno@clisp.org>
18130         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
18131         * m4/fmodl-ieee.m4: New file.
18132         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
18133         whether fmodl works with zero arguments. Replace it if not.
18134         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
18135         (Depends-on): Add fmod-ieee.
18136         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
18137         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
18139         fmodf-ieee: Work around test failure on OSF/1.
18140         * m4/fmodf-ieee.m4: New file.
18141         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
18142         whether fmodf works with zero arguments. Replace it if not.
18143         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
18144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
18145         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
18146         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
18147         (Depends-on): Update dependencies.
18148         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
18149         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
18150         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
18152         fmodf-ieee: Work around test failure on MSVC 9.
18153         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
18154         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
18156         fmod-ieee: Work around test failures on OSF/1, mingw.
18157         * m4/fmod-ieee.m4: New file.
18158         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
18159         whether fmod works with zero arguments. Replace it if not.
18160         * lib/math.in.h (fmod): New declaration.
18161         * lib/fmod.c: New file.
18162         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
18163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
18164         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
18165         * modules/fmod (Files): Add lib/fmod.c.
18166         (Depends-on): Add math, isinf, trunc, fma.
18167         (configure.ac): Arrange to compile lib/fmod.c if needed.
18168         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
18169         m4/signbit.m4.
18170         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
18171         * tests/test-math-c++.cc: Check the declaration of fmod.
18172         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
18174         fmodl-ieee: Fix test failures.
18175         * lib/fmodl.c (fmodl): Treat Inf specially.
18176         * modules/fmodl (Depends-on): Add isinf.
18178         Tests for module 'fmodl-ieee'.
18179         * modules/fmodl-ieee-tests: New file.
18180         * tests/test-fmodl-ieee.c: New file.
18182         New module 'fmodl-ieee'.
18183         * modules/fmodl-ieee: New file.
18185         Tests for module 'fmod-ieee'.
18186         * modules/fmod-ieee-tests: New file.
18187         * tests/test-fmod-ieee.c: New file.
18189         New module 'fmod-ieee'.
18190         * modules/fmod-ieee: New file.
18192         Tests for module 'fmodf-ieee'.
18193         * modules/fmodf-ieee-tests: New file.
18194         * tests/test-fmodf-ieee.c: New file.
18195         * tests/test-fmod-ieee.h: New file.
18197         New module 'fmodf-ieee'.
18198         * modules/fmodf-ieee: New file.
18200 2012-02-27  Bruno Haible  <bruno@clisp.org>
18202         Tests for module 'rintl-ieee'.
18203         * modules/rintl-ieee-tests: New file.
18204         * tests/test-rintl-ieee.c: New file.
18206         New module 'rintl-ieee'.
18207         * modules/rintl-ieee: New file.
18209         Tests for module 'rint-ieee'.
18210         * modules/rint-ieee-tests: New file.
18211         * tests/test-rint-ieee.c: New file.
18213         New module 'rint-ieee'.
18214         * modules/rint-ieee: New file.
18216         Tests for module 'rintf-ieee'.
18217         * modules/rintf-ieee-tests: New file.
18218         * tests/test-rintf-ieee.c: New file.
18219         * tests/test-rint-ieee.h: New file.
18221         New module 'rintf-ieee'.
18222         * modules/rintf-ieee: New file.
18224 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
18226         regex: re_search etc. should return -2 when memory exhausted
18227         This bug was uncovered when testing 'grep'.  Without the fix,
18228         re_search and friends return -1 when memory is exhausted, but -1
18229         means no match, and this causes grep to falsely report no-match
18230         instead of memory-exhaustion.  See
18231         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
18232         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
18233         trouble; this can occur if re_search_internal ran out of memory.
18235 2012-02-26  Bruno Haible  <bruno@clisp.org>
18237         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
18238         * m4/modfl-ieee.m4: New file.
18239         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
18240         whether modfl works with Inf. Replace it if not.
18241         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
18242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
18243         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
18244         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
18245         (Depends-on): Update dependencies.
18246         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
18247         m4/signbit.m4.
18248         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
18249         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
18251         modfl-ieee: Fix dependencies.
18252         * modules/modfl-ieee (Depends-on): Add modf-ieee.
18254         modfl-ieee: Fix test failures.
18255         * lib/modfl.c (modfl): Treat NaN and Inf specially.
18256         * modules/modfl (Depends-on): Add isfinite, isinf.
18258         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
18259         * m4/modff-ieee.m4: New file.
18260         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
18261         whether modff works with NaN and Inf. Replace it if not.
18262         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
18263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
18264         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
18265         * modules/modff (configure.ac): Consider REPLACE_MODFF.
18266         (Depends-on): Update dependencies.
18267         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
18268         m4/signbit.m4.
18269         (Depends-on): Add modf-ieee.
18270         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
18271         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
18273         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
18274         * m4/modf-ieee.m4: New file.
18275         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
18276         whether modf works with NaN and Inf. Replace it if not.
18277         * lib/math.in.h (modf): New declaration.
18278         * lib/modf.c: New file.
18279         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
18280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
18281         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
18282         * modules/modf (Files): Add lib/modf.c.
18283         (Depends-on): Add math, isfinite, trunc, isinf.
18284         (configure.ac): Addrange to compile lib/modf.c if needed.
18285         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
18286         m4/signbit.m4.
18287         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
18288         * tests/test-math-c++.cc: Check the declaration of modf.
18289         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
18291         Tests for module 'modfl-ieee'.
18292         * modules/modfl-ieee-tests: New file.
18293         * tests/test-modfl-ieee.c: New file.
18295         New module 'modfl-ieee'.
18296         * modules/modfl-ieee: New file.
18298         Tests for module 'modf-ieee'.
18299         * modules/modf-ieee-tests: New file.
18300         * tests/test-modf-ieee.c: New file.
18302         New module 'modf-ieee'.
18303         * modules/modf-ieee: New file.
18305         Tests for module 'modff-ieee'.
18306         * modules/modff-ieee-tests: New file.
18307         * tests/test-modff-ieee.c: New file.
18308         * tests/test-modf-ieee.h: New file.
18310         New module 'modff-ieee'.
18311         * modules/modff-ieee: New file.
18313 2012-02-26  Bruno Haible  <bruno@clisp.org>
18315         Tests for module 'fabsl-ieee'.
18316         * modules/fabsl-ieee-tests: New file.
18317         * tests/test-fabsl-ieee.c: New file.
18319         New module 'fabsl-ieee'.
18320         * modules/fabsl-ieee: New file.
18322         Tests for module 'fabs-ieee'.
18323         * modules/fabs-ieee-tests: New file.
18324         * tests/test-fabs-ieee.c: New file.
18326         New module 'fabs-ieee'.
18327         * modules/fabs-ieee: New file.
18329         Tests for module 'fabsf-ieee'.
18330         * modules/fabsf-ieee-tests: New file.
18331         * tests/test-fabsf-ieee.c: New file.
18332         * tests/test-fabs-ieee.h: New file.
18334         New module 'fabsf-ieee'.
18335         * modules/fabsf-ieee: New file.
18337 2012-02-26  Bruno Haible  <bruno@clisp.org>
18339         Tests for module 'fmal-ieee'.
18340         * modules/fmal-ieee-tests: New file.
18341         * tests/test-fmal-ieee.c: New file.
18343         New module 'fmal-ieee'.
18344         * modules/fmal-ieee: New file.
18346         Tests for module 'fma-ieee'.
18347         * modules/fma-ieee-tests: New file.
18348         * tests/test-fma-ieee.c: New file.
18350         New module 'fma-ieee'.
18351         * modules/fma-ieee: New file.
18353         Tests for module 'fmaf-ieee'.
18354         * modules/fmaf-ieee-tests: New file.
18355         * tests/test-fmaf-ieee.c: New file.
18356         * tests/test-fma-ieee.h: New file.
18358         New module 'fmaf-ieee'.
18359         * modules/fmaf-ieee: New file.
18361 2012-02-26  Bruno Haible  <bruno@clisp.org>
18363         Tests for module 'ldexpl-ieee'.
18364         * modules/ldexpl-ieee-tests: New file.
18365         * tests/test-ldexpl-ieee.c: New file.
18367         New module 'ldexpl-ieee'.
18368         * modules/ldexpl-ieee: New file.
18370         Tests for module 'ldexp-ieee'.
18371         * modules/ldexp-ieee-tests: New file.
18372         * tests/test-ldexp-ieee.c: New file.
18374         New module 'ldexp-ieee'.
18375         * modules/ldexp-ieee: New file.
18377         Tests for module 'ldexpf-ieee'.
18378         * modules/ldexpf-ieee-tests: New file.
18379         * tests/test-ldexpf-ieee.c: New file.
18380         * tests/test-ldexp-ieee.h: New file.
18382         New module 'ldexpf-ieee'.
18383         * modules/ldexpf-ieee: New file.
18385 2012-02-26  Bruno Haible  <bruno@clisp.org>
18387         Refactor frexp*-ieee tests.
18388         * tests/test-frexp-ieee.h: New file.
18389         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
18390         (main): Just call test_function.
18391         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
18392         (main): Just call test_function.
18393         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
18394         (main): Just call test_function.
18395         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
18396         * modules/frexp-ieee-tests (Files): Likewise.
18397         * modules/frexpl-ieee-tests (Files): Likewise.
18399         Tests for module 'frexpl-ieee'.
18400         * modules/frexpl-ieee-tests: New file.
18401         * tests/test-frexpl-ieee.c: New file.
18403         New module 'frexpl-ieee'.
18404         * modules/frexpl-ieee: New file.
18406         Tests for module 'frexp-ieee'.
18407         * modules/frexp-ieee-tests: New file.
18408         * tests/test-frexp-ieee.c: New file.
18410         New module 'frexp-ieee'.
18411         * modules/frexp-ieee: New file.
18413         Tests for module 'frexpf-ieee'.
18414         * modules/frexpf-ieee-tests: New file.
18415         * tests/test-frexpf-ieee.c: New file.
18417         New module 'frexpf-ieee'.
18418         * modules/frexpf-ieee: New file.
18420 2012-02-26  Bruno Haible  <bruno@clisp.org>
18422         roundl-ieee tests: More tests.
18423         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
18424         (main): Add tests for [MX] shaded specification in POSIX.
18425         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
18426         (Depends-on): Add isnanl-nolibm.
18428         round-ieee tests: More tests.
18429         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
18430         (main): Add tests for [MX] shaded specification in POSIX.
18431         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
18432         (Depends-on): Add isnand-nolibm.
18434         roundf-ieee tests: More tests.
18435         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
18436         (main): Add tests for [MX] shaded specification in POSIX.
18437         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
18438         (Depends-on): Add isnanf-nolibm.
18440         truncl-ieee tests: More tests.
18441         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
18442         (main): Add tests for [MX] shaded specification in POSIX.
18443         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
18444         (Depends-on): Add isnanl-nolibm.
18446         trunc-ieee tests: More tests.
18447         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
18448         (main): Add tests for [MX] shaded specification in POSIX.
18449         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
18450         (Depends-on): Add isnand-nolibm.
18452         truncf-ieee tests: More tests.
18453         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
18454         (main): Add tests for [MX] shaded specification in POSIX.
18455         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
18456         (Depends-on): Add isnanf-nolibm.
18458         ceill-ieee tests: More tests.
18459         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
18460         (main): Add tests for [MX] shaded specification in POSIX.
18461         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
18462         (Depends-on): Add isnanl-nolibm.
18464         ceil-ieee tests: More tests.
18465         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
18466         (main): Add tests for [MX] shaded specification in POSIX.
18467         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
18468         (Depends-on): Add isnand-nolibm.
18470         ceilf-ieee tests: More tests.
18471         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
18472         (main): Add tests for [MX] shaded specification in POSIX.
18473         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
18474         (Depends-on): Add isnanf-nolibm.
18476         floorl-ieee tests: More tests.
18477         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
18478         (main): Add tests for [MX] shaded specification in POSIX.
18479         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
18480         (Depends-on): Add isnanl-nolibm.
18482         floor-ieee tests: More tests.
18483         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
18484         (main): Add tests for [MX] shaded specification in POSIX.
18485         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
18486         (Depends-on): Add isnand-nolibm.
18488         floorf-ieee tests: More tests.
18489         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
18490         (main): Add tests for [MX] shaded specification in POSIX.
18491         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
18492         (Depends-on): Add isnanf-nolibm.
18494 2012-02-26  Bruno Haible  <bruno@clisp.org>
18496         fpieee: More comments.
18497         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
18499 2012-02-25  Bruno Haible  <bruno@clisp.org>
18501         Tests for module 'log10l'.
18502         * modules/log10l-tests: New file.
18503         * tests/test-log10l.c: New file.
18504         * tests/test-math-c++.cc: Check the declaration of log10l.
18506         New module 'log10l'.
18507         * lib/math.in.h (log10l): New declaration.
18508         * lib/log10l.c: New file.
18509         * m4/log10l.m4: New file.
18510         * modules/log10l: New file.
18511         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
18512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
18513         HAVE_DECL_LOG10L.
18514         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
18515         HAVE_DECL_LOG10L.
18516         * doc/posix-functions/log10l.texi: Mention the new module.
18518 2012-02-25  Bruno Haible  <bruno@clisp.org>
18520         fmodl, remainder*: Avoid wrong results due to rounding errors.
18521         * lib/fmodl.c (fmodl): Correct the result if it is not within the
18522         expected bounds.
18523         * lib/remainderf.c (remainderf): Likewise.
18524         * lib/remainder.c (remainder): Likewise.
18525         * lib/remainderl.c (remainderl): Likewise.
18527 2012-02-25  Bruno Haible  <bruno@clisp.org>
18529         Tests for module 'remainderl'.
18530         * modules/remainderl-tests: New file.
18531         * tests/test-remainderl.c: New file.
18532         * tests/test-math-c++.cc: Check the declaration of remainderl.
18534         New module 'remainderl'.
18535         * lib/math.in.h (remainderl): New declaration.
18536         * lib/remainderl.c: New file.
18537         * m4/remainderl.m4: New file.
18538         * modules/remainderl: New file.
18539         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
18540         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
18541         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
18542         HAVE_REMAINDERL.
18543         * doc/posix-functions/remainderl.texi: Mention the new module.
18545 2012-02-25  Bruno Haible  <bruno@clisp.org>
18547         Tests for module 'remainderf'.
18548         * modules/remainderf-tests: New file.
18549         * tests/test-remainderf.c: New file.
18550         * tests/test-math-c++.cc: Check the declaration of remainderf.
18552         New module 'remainderf'.
18553         * lib/math.in.h (remainderf): New declaration.
18554         * lib/remainderf.c: New file.
18555         * m4/remainderf.m4: New file.
18556         * modules/remainderf: New file.
18557         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
18558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
18559         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
18560         HAVE_REMAINDERF.
18561         * doc/posix-functions/remainderf.texi: Mention the new module.
18563 2012-02-25  Bruno Haible  <bruno@clisp.org>
18565         remainder: Support for MSVC.
18566         * lib/math.in.h (remainder): New declaration.
18567         * lib/remainder.c: New file.
18568         * m4/remainder.m4: New file.
18569         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
18570         (Depends-on): Add math, round, fma.
18571         (configure.ac): Use results of gl_FUNC_REMAINDER.
18572         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
18573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
18574         HAVE_DECL_REMAINDER.
18575         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
18576         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
18577         * tests/test-math-c++.cc: Check the declaration of remainder.
18578         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
18579         problems are fixed.
18581 2012-02-25  Bruno Haible  <bruno@clisp.org>
18583         Tests for module 'fmodl'.
18584         * modules/fmodl-tests: New file.
18585         * tests/test-fmodl.c: New file.
18586         * tests/test-math-c++.cc: Check the declaration of fmodl.
18588         New module 'fmodl'.
18589         * lib/math.in.h (fmodl): New declaration.
18590         * lib/fmodl.c: New file.
18591         * m4/fmodl.m4: New file.
18592         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
18593         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
18594         REPLACE_FMODL.
18595         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
18596         REPLACE_FMODL.
18597         * modules/fmodl: New file.
18598         * doc/posix-functions/fmodl.texi: Mention the new module.
18600 2012-02-25  Bruno Haible  <bruno@clisp.org>
18602         Tests for module 'modfl'.
18603         * modules/modfl-tests: New file.
18604         * tests/test-modfl.c: New file.
18605         * tests/test-math-c++.cc: Check the declaration of modfl.
18607         New module 'modfl'.
18608         * lib/math.in.h (modfl): New declaration.
18609         * lib/modfl.c: New file.
18610         * m4/modfl.m4: New file.
18611         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
18612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
18613         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
18614         * modules/modfl: New file.
18615         * doc/posix-functions/modfl.texi: Mention the new module.
18617 2012-02-25  Bruno Haible  <bruno@clisp.org>
18619         Tests for module 'fabsl'.
18620         * modules/fabsl-tests: New file.
18621         * tests/test-fabsl.c: New file.
18622         * tests/test-math-c++.cc: Check the declaration of fabsl.
18624         New module 'fabsl'.
18625         * lib/math.in.h (fabsl): New declaration.
18626         * lib/fabsl.c: New file.
18627         * m4/fabsl.m4: New file.
18628         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
18629         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
18630         REPLACE_FABSL.
18631         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
18632         REPLACE_FABSL.
18633         * modules/fabsl: New file.
18634         * doc/posix-functions/fabsl.texi: Mention the new module.
18636 2012-02-25  Bruno Haible  <bruno@clisp.org>
18638         fabs tests: More tests.
18639         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
18640         (zero): New variable.
18641         (main): Add tests for signed zero.
18642         * modules/fabs-tests (Files): Add tests/minus-zero.h.
18644         fabsf tests: More tests.
18645         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
18646         (zero): New variable.
18647         (main): Add tests for signed zero.
18648         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
18650 2012-02-24  Bruno Haible  <bruno@clisp.org>
18652         atanl: Provide function definition on MSVC.
18653         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
18654         function pointer.
18655         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
18657 2012-02-24  Bruno Haible  <bruno@clisp.org>
18659         acosl: Provide function definition on MSVC.
18660         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
18661         function pointer.
18662         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
18664 2012-02-24  Bruno Haible  <bruno@clisp.org>
18666         asinl: Provide function definition on MSVC.
18667         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
18668         function pointer.
18669         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
18671 2012-02-24  Bruno Haible  <bruno@clisp.org>
18673         tanl: Provide function definition on MSVC.
18674         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
18675         function pointer.
18676         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
18678 2012-02-24  Bruno Haible  <bruno@clisp.org>
18680         cosl: Provide function definition on MSVC.
18681         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
18682         function pointer.
18683         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
18685 2012-02-24  Bruno Haible  <bruno@clisp.org>
18687         sinl: Provide function definition on MSVC.
18688         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
18689         function pointer.
18690         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
18692 2012-02-24  Bruno Haible  <bruno@clisp.org>
18694         logl: Provide function definition on MSVC.
18695         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
18696         function pointer.
18697         * lib/math.in.h (logl): Undefine if it does not exist as a function.
18699 2012-02-24  Bruno Haible  <bruno@clisp.org>
18701         expl: Provide function definition on MSVC.
18702         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
18703         function pointer.
18704         * lib/math.in.h (expl): Undefine if it does not exist as a function.
18706 2012-02-24  Bruno Haible  <bruno@clisp.org>
18708         sqrtl: Provide function definition on MSVC.
18709         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
18710         a function pointer.
18711         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
18713 2012-02-24  Bruno Haible  <bruno@clisp.org>
18715         ceill: Provide function definition on MSVC.
18716         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
18717         used as a function pointer.
18718         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
18720 2012-02-24  Bruno Haible  <bruno@clisp.org>
18722         floorl: Provide function definition on MSVC.
18723         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
18724         used as a function pointer.
18725         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
18727 2012-02-24  Bruno Haible  <bruno@clisp.org>
18729         ceilf: Provide function definition on MSVC.
18730         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
18731         used as a function pointer.
18732         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
18734 2012-02-24  Bruno Haible  <bruno@clisp.org>
18736         floorf: Provide function definition on MSVC.
18737         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
18738         used as a function pointer.
18739         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
18741 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18743         stdnoreturn: new module
18744         This implements a replacement for C11's <stdnoreturn.h>.
18745         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
18746         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
18747         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
18748         * tests/test-stdnoreturn.c: New files.
18750 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
18752         regex: fix false multibyte matches in some regular expressions
18753         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
18754         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
18755         * lib/regex_internal.c (re_string_skip_chars):
18756         Fix miscomputation of remain_len that may cause incomplete
18757         multi-byte character and false match.
18759 2012-02-24  Jim Meyering  <meyering@redhat.com>
18761         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
18762         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
18763         uses with "==" *before* the call, e.g., 0 == strcmp (...)
18764         Remove now-unnecessary str''cmp obfuscation.
18765         Suggested by Akim Demaille.
18767 2012-02-24  Bruno Haible  <bruno@clisp.org>
18769         streq: Rename macro.
18770         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
18771         * NEWS: Mention the change.
18772         * lib/mbrtowc.c (mbrtowc): Update.
18773         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
18774         * lib/wcwidth.c (wcwidth): Update.
18775         Suggested by Akim Demaille and Jim Meyering.
18777 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
18779         regex: fix typo in definition of MIN
18780         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
18781         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
18783 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
18784             Bruno Haible  <bruno@clisp.org>
18786         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
18787         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
18788         entries into a stack-allocated buffer directly.
18789         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
18791 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
18792             Bruno Haible  <bruno@clisp.org>
18794         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
18796          - There were several instances of this pattern:
18798              for (;;) {
18799                n = acl (f, GETACLCNT, 0, NULL);
18800                [ allocate an array A of size N ]
18801                if (acl (f, GETACL, n, a) == n)
18802                  break;
18803              }
18805            This loop might never terminate if some other process is constantly
18806            manipulating the file's ACL.  The loop should be rewritten to
18807            terminate.
18809          - The acl (... GETACLNT ...) call is merely an optimization; its value
18810            is merely a hint as to how big to make the array.  A better
18811            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
18812            and just guess a reasonably-big size, growing the size and trying
18813            again if it's not large enough.  This guarantees termination, and
18814            saves a system call.
18816         * lib/acl-internal.h: Include <limits.h>.
18817         (MIN, SIZE_MAX): New macros.
18818         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
18819         a stack-allocated buffer, and use malloc if it does not fit. Don't
18820         use GETACLCNT.
18821         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
18823 2012-02-19  Bruno Haible  <bruno@clisp.org>
18825         acl: Fix endless loop on Solaris with vxfs.
18826         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
18827         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
18828         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
18829         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
18830         * tests/test-sameacls.c (main)[Solaris]: Likewise.
18831         Reported by Bill Jones in
18832         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
18834 2012-02-19  Bruno Haible  <bruno@clisp.org>
18836         acl: Fix copy-acl test failure on Solaris 11 2011-11.
18837         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
18838         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
18839         that this function returns 0 in some more cases.
18841 2012-02-19  Bruno Haible  <bruno@clisp.org>
18843         acl: Update doc references.
18844         * doc/acl-resources.txt: Update links to Solaris documentation.
18846 2012-02-19  Bruno Haible  <bruno@clisp.org>
18848         Fix test failure in many locales on Solaris 11.
18849         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
18850         'tr' arguments.
18851         * tests/test-pipe-filter-ii1.c (main): Likewise.
18852         * build-aux/bootstrap (check_versions): Run 'tr' command with range
18853         expressions in the C locale.
18854         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18855         * m4/host-os.m4 (gl_HOST_OS): Likewise.
18857 2012-02-19  Bruno Haible  <bruno@clisp.org>
18859         gnulib-tool: Improve usage message.
18860         * gnulib-tool (func_usage): Move doc of --help and --version to the
18861         section "Operation modes".
18863 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
18865         README-release: make it easier to execute commands
18866         * top/README-release: break commands out on to separate lines.
18868 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
18870         GNUmakefile: simplify detection of unconfigured trees
18871         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
18872         whether the tree make is being run from is already configured or
18873         not.  Related simplifications.
18875 2012-02-13  Simon Josefsson  <simon@josefsson.org>
18877         * gnulib-tool (func_usage): Document --help and --version.
18879 2012-02-11  Jim Meyering  <meyering@redhat.com>
18881         bootstrap: don't exit 0 upon gnulib-tool failure
18882         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
18883         its exit status, not 0.
18885 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
18887         README-release: various improvements
18888         * top/README-release: Give a command to push changes for the
18889         release.  Add "distcheck" to list of other pre-release checks.
18890         Fix instance of "make stable" which should be "make TYPE".
18892 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18894         maint: replace FSF snail-mail addresses with URLs
18895         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
18896         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
18897         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
18898         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
18899         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
18900         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
18901         * lib/check-version.c, lib/check-version.h, lib/config.charset:
18902         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
18903         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
18904         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
18905         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
18906         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
18907         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
18908         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
18909         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
18910         * lib/glthread/thread.c, lib/glthread/thread.h:
18911         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
18912         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
18913         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
18914         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
18915         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
18916         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
18917         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
18918         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
18919         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
18920         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
18921         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
18922         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
18923         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
18924         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
18925         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
18926         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
18927         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
18928         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
18929         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
18930         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
18931         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
18932         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
18933         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
18934         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
18935         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
18936         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
18937         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
18938         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
18939         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
18940         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
18941         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
18942         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
18943         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
18944         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
18945         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
18946         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
18947         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
18948         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
18949         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
18950         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
18951         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
18952         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
18953         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
18954         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
18955         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
18956         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
18957         * tests/test-poll.c, tests/test-quotearg-simple.c:
18958         * tests/test-quotearg.c, tests/test-quotearg.h:
18959         * tests/test-round-ieee.c, tests/test-round1.c:
18960         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
18961         * tests/test-roundl-ieee.c, tests/test-roundl.c:
18962         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
18963         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
18964         * tests/test-strerror.c, tests/test-strerror_r.c:
18965         * tests/test-strsignal.c, tests/test-strverscmp.c:
18966         * tests/test-xmemdup0.c:
18967         Replace FSF snail mail addresses with URLs, as per GNU coding
18968         standards.  See glibc bug
18969         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
18971 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
18973         README-release: capitalize a word and split a line
18974         * top/README-release: Fix punctuation and spacing.
18976 2012-02-08  Akim Demaille  <demaille@gostai.com>
18978         fatal-signal: use C prototypes (with explicit void).
18979         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
18980         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
18982 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
18984         regex: spelling fix
18985         * lib/regexec.c: spelling fix
18987         regex: rely on stdint.h for SIZE_MAX
18988         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
18990 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
18992         regex: merge glibc changes
18994         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
18995         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
18996         (init_word_char): Work even if bitset words are not exactly 32 or
18997         64 bits wide.  Don't assume there are no padding bits.
18998         * lib/regex.c [_LIBC]: Do not include <config.h>.
18999         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
19000         and -Wtype-limits.
19001         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
19002         needless disagreement with glibc.  All uses changed.  Define it to
19003         1 only if _GNU_SOURCE, to match glibc.
19004         (_REG_RM_NAME): Remove; no longer needed, since the names in
19005         question are now all protected by __USE_GNU.
19006         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
19007         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
19008         * lib/regex_internal.h (MIN): New macro.
19010         2012-01-03 Ulrich Drepper <drepper@gmail.com>
19011         * lib/regcomp.c (init_word_char): Optimize regex a bit.
19013         2011-12-30 Jakub Jelinek <jakub@redhat.com>
19014         * lib/regex_internal.c (re_string_fetch_byte_case):
19015         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
19016         is miscompiled, and it turns out it is because of an incorrect
19017         attribute on re_string_fetch_byte_case.  Unlike
19018         re_string_peek_byte_case, this one is really not pure, it modifies
19019         memory (increments pstr->cur_idx), and with the pure attribute GCC
19020         assumed it doesn't and it cached the presumed value of
19021         regexp->cur_idx in a variable across the
19022          for (;; ++i)
19023            {
19024              if (i >= BRACKET_NAME_BUF_SIZE)
19025                return REG_EBRACK;
19026              if (token->type == OP_OPEN_CHAR_CLASS)
19027                ch = re_string_fetch_byte_case (regexp);
19028              else
19029                ch = re_string_fetch_byte (regexp);
19030              if (re_string_eoi(regexp))
19031                return REG_EBRACK;
19032              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
19033                break;
19034              elem->opr.name[i] = ch;
19035            }
19037         2011-11-29 Andreas Schwab <schwab@redhat.com>
19038         * lib/regcomp.c (build_equiv_class):
19039         Fix access after end of search string in regex matcher.
19041         2011-11-12 Ulrich Drepper <drepper@redhat.com>
19042         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
19044         2011-10-12 Ulrich Drepper <drepper@redhat.com>
19045         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
19047         2011-10-11 Ulrich Drepper <drepper@redhat.com>
19048         * lib/regcomp.c (parse_branch, parse_sub_exp):
19049         More regex memory leak fixes and tests.
19050         (parse_sub_exp, parse_bracket_exp):
19051         Fix memory leak for some invalid regular expressions.
19053         2011-05-28 Ulrich Drepper <drepper@gmail.com>
19054         * lib/regex_internal.c, lib/regexec.c:
19055         Fix unnecessary overallocation due to incomplete character.  When
19056         incomplete characters are found at the end of a string the code
19057         ran amok and allocated lots of memory.  Stricter limits are now in
19058         place.
19060         2011-05-20 Reuben Thomas <rrt@sc3d.org>
19061         * lib/regex.h: Update documentation.
19063         2011-05-16 Aharon Robbins <arnold@skeeve.com>
19064         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
19066         2010-05-05 Andreas Schwab <schwab@redhat.com>
19067         * lib/regexec.c (find_collation_sequence_value):
19068         Fix lookup of collation sequence value during regexp matching.
19070         2010-01-22 Ulrich Drepper <drepper@redhat.com>
19071         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
19073         2008-01-16 Ulrich Drepper <drepper@redhat.com>
19074         * lib/regex.h: Cleanup namespace.
19076         2007-11-26 Ulrich Drepper <drepper@redhat.com>
19077         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
19079         2007-08-26 Ulrich Drepper <drepper@redhat.com>
19080         * lib/regex_internal.h: Prevent some declarations and definitions
19081         to be seen when used in tests.
19083         2005-05-06 Ulrich Drepper <drepper@redhat.com>
19084         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
19085         __libc_lock_* macros if not _LIBC.
19086         (struct re_dfa_t): Add lock.
19088 2012-02-07  Eric Blake  <eblake@redhat.com>
19090         maint.mk: also prohibit lower-case @var@
19091         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
19092         lower case, like @top_srcdir@.
19094 2012-02-04  Eric Blake  <eblake@redhat.com>
19096         canonicalize: avoid uninitialized memory use
19097         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
19098         random '/' left in dest.
19099         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
19101 2012-02-04  Bruno Haible  <bruno@clisp.org>
19103         isatty: Fix test failure of ptsname_r on native Windows.
19104         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
19105         and don't set errno.
19106         (isatty): Test first whether fd is valid. Set errno when returning 0.
19108 2012-02-04  Bruno Haible  <bruno@clisp.org>
19110         spawn-pipe tests: Fix a NULL program name in a diagnostic.
19111         * tests/test-spawn-pipe-main.c: Include progname.h.
19112         (main): Invoke set_program_name.
19113         * modules/spawn-pipe-tests (Depends-on): Add progname.
19115         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
19116         * tests/test-nonblocking-socket-main.c: Include progname.h.
19117         (main): Invoke set_program_name.
19118         * modules/nonblocking-socket-tests (Depends-on): Add progname.
19120         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
19121         * tests/test-nonblocking-pipe-main.c: Include progname.h.
19122         (main): Invoke set_program_name.
19123         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
19125 2012-02-04  Eric Blake  <eblake@redhat.com>
19127         canonicalize-lgpl: fix // handling
19128         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
19130         canonicalize: fix // handling
19131         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
19132         /// to //, since only // is special.
19134 2012-02-04  Bruno Haible  <bruno@clisp.org>
19136         ioctl: Fix test failure on native Windows.
19137         * lib/ioctl.c: Include msvc-nothrow.h.
19138         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
19140 2012-02-04  Bruno Haible  <bruno@clisp.org>
19142         fsync: Avoid test failure on native Windows.
19143         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
19144         read-only.
19146 2012-02-04  Bruno Haible  <bruno@clisp.org>
19148         sys_select: Avoid syntax error on OpenBSD 5.0.
19149         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
19150         currently being included, just include the system's <sys/select.h>.
19152 2012-02-04  Bruno Haible  <bruno@clisp.org>
19154         sys_select: Avoid syntax error on OpenBSD 5.0.
19155         * lib/sys_select.in.h: Include <signal.h> only after the include_next
19156         <sys/select.h>, not before.
19157         Reported by Jiri B <jirib@devio.us>.
19159 2012-02-04  Bruno Haible  <bruno@clisp.org>
19161         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
19162         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
19163         global variables.
19164         * tests/test-get-rusage-data.c (main): Likewise.
19165         Reported by Jim Meyering.
19167 2012-02-04  Bruno Haible  <bruno@clisp.org>
19169         stdioext: Fix last commit.
19170         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
19172 2012-02-03  Bruno Haible  <bruno@clisp.org>
19174         stdioext: Add tentative support for Plan9.
19175         * lib/stdio-impl.h: Include <errno.h>.
19176         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
19177         * lib/freadable.c (freadable): Likewise.
19178         * lib/fwritable.c (fwritable): Likewise.
19179         * lib/fbufmode.c (fbufmode): Likewise.
19180         * lib/freading.c (freading): Likewise.
19181         * lib/fwriting.c (fwriting): Likewise.
19182         * lib/freadptr.c (freadptr): Likewise.
19183         * lib/freadseek.c (freadptrinc): Likewise.
19184         * lib/freadahead.c (freadahead): Likewise.
19185         * lib/fpurge.c (fpurge): Likewise.
19186         * lib/fseeko.c (rpl_fseeko): Likewise.
19187         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
19188         Reported by Jens Staal <staal1978@gmail.com>.
19190 2012-02-02  Jim Meyering  <meyering@redhat.com>
19192         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
19193         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
19194         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
19195         not even to try to add the attribute.  Instead, add a pragma to suppress
19196         the suggestion/warning.
19198 2012-01-31  Karl Berry  <karl@gnu.org>
19200         setstate doc: typo.
19201         * doc/posix-functions/setstate.texi (setstate): { not (.
19203 2012-01-31  Bruno Haible  <bruno@clisp.org>
19205         popen: Make more robust on Windows.
19206         * lib/popen.c: On native Windows, use the _popen based code even if
19207         HAVE_POPEN is set.
19208         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
19209         environment variable on native Windows.
19211 2012-01-30  Bruno Haible  <bruno@clisp.org>
19213         pclose: Fix typo.
19214         * lib/stdio.in.h (pclose): Fix typo in warning message.
19216 2012-01-30  Bruno Haible  <bruno@clisp.org>
19218         doc about getlogin_r, setstate.
19219         * doc/posix-functions/getlogin_r.texi: List the incompatible
19220         declaration problem under "not fixed by gnulib".
19221         * doc/posix-functions/setstate.texi: Mention incompatible declaration
19222         problem on Solaris 11 and other platforms.
19224 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
19225             Bruno Haible  <bruno@clisp.org>
19227         poll tests: Make test more robust.
19228         * tests/test-poll.c: Include macros.h.
19229         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
19230         return value of various I/O operations.
19231         * modules/poll-tests (Files): Add tests/macros.h.
19233 2012-01-30  Bruno Haible  <bruno@clisp.org>
19235         sys_stat: Fix support for mingw64 and MSVC.
19236         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
19237         header files already do it.
19238         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
19239         stat itself.
19240         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
19242 2012-01-30  Bruno Haible  <bruno@clisp.org>
19244         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
19245         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
19246         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
19248 2012-01-29  Bruno Haible  <bruno@clisp.org>
19250         quotearg: Fix test failure on MacOS X 10.5.
19251         * tests/test-quotearg-simple.c: Include localcharset.h.
19252         (main): If the locale encoding is not ASCII, bypass the tests of
19253         locale_quoting_style and clocale_quoting_style.
19254         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
19256 2012-01-29  Jim Meyering  <meyering@redhat.com>
19258         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
19259         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
19260         detect uses of canonicalize_file_name.
19262 2012-01-28  Bruno Haible  <bruno@clisp.org>
19264         test-framework-sh: Fix test failure with AIX 7.1 diff.
19265         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
19266         in column 1, like 'diff -c' does.
19267         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
19268         whether 'diff -u' is used. Instead, test whether the output contains
19269         some '@' character.
19271 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19273         strtoimax: eliminate need for stdint.h, inttypes.h checks
19274         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
19275         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
19276         the prerequisites for a recently-introduced strtoimax test.
19277         I guess this might cause strtoimax to be replaced when not
19278         strictly necessary on older hosts, but this shouldn't introduce
19279         any bugs and it should make Emacs 'configure' faster on typical
19280         modern hosts.  Problem discovered when importing the latest gnulib
19281         to an Emacs test version.
19282         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
19284 2012-01-28  Bruno Haible  <bruno@clisp.org>
19286         sys_time: Override 'struct timeval' on some native Windows platforms.
19287         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
19288         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
19289         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
19290         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
19291         needs to be overridden.
19292         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
19293         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
19294         * tests/test-sys_select.c: Check that the tv_sec member has the same
19295         size as a 'time_t'.
19296         * tests/test-sys_time.c: Likewise.
19297         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
19298         is set, set also REPLACE_GETTIMEOFDAY.
19299         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
19300         convert the resulting 'struct timeval' before returning.
19301         * lib/select.c: Include <sys/time.h>.
19302         (select, timeval): Undefine at the right place.
19303         * modules/select (Depends-on): Add sys_time.
19304         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
19305         some Windows platforms.
19306         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
19308 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
19310         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
19311         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
19312         an integer.
19313         * lib/fcntl.c (dupfd): Likewise.
19314         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
19316 2012-01-28  Bruno Haible  <bruno@clisp.org>
19318         fcntl: Avoid compilation error on native Windows.
19319         * modules/fcntl (Depends-on): Add 'close'.
19321 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
19323         select, poll, isatty: Avoid warnings on x86_64 mingw64.
19324         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
19325         pointer to an integer.
19326         * lib/poll.c (IsConsoleHandle): Likewise.
19327         * lib/isatty.c (IsConsoleHandle): Likewise.
19329 2012-01-28  Jim Meyering  <meyering@redhat.com>
19331         doc: clarify README-release
19332         * top/README-release: Clarify: you should make a point to have
19333         the latest stable versions of build tools in your PATH, and the
19334         reference to buildreq is solely for its list of tool names, not
19335         for its minimal-functional version numbers.
19336         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
19338         maint.mk: use more readable (yet functionally equivalent) quoting
19339         It is common to quote a single quote in a single quoted string like
19340         this:  '...'\''...'.  Unless you know the idiom, that looks like
19341         gibberish, so prefer to double-quote the string when possible.
19342         Then you can use a more readable, lone single quote: "...'..."
19343         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
19344         "don't" is more readable than the equivalent 'don'\''t'.
19345         (sc_cast_of_x_alloc_return_value): Likewise.
19346         (sc_cast_of_alloca_return_value): Likewise.
19347         (sc_makefile_path_separator_check): Similar: use ":" in '...',
19348         rather than '\'':'\''.
19350 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
19352         stdalign: relax _Alignof and tighten _Alignas test
19353         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
19354         as it was too strict: alignof must divide offsetof, but it need
19355         not equal offsetof.  Inspired by Joseph S. Myers's comment
19356         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
19357         Conversely, tighten the _Alignas test a bit, as the resulting
19358         alignment must be exactly 8.
19360 2012-01-27  Bruno Haible  <bruno@clisp.org>
19362         stdalign: Document the last change.
19363         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
19365 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
19367         stdalign: check that alignof and offsetof are consistent
19368         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
19369         Problem reported for gnulib by Richard W.M. Jones in
19370         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
19372 2012-01-27  Jim Meyering  <meyering@redhat.com>
19374         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
19375         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
19376         convert a sequence with gaps to the minimal containing range.
19377         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
19378         * tests/test-update-copyright.sh: Test for this.
19379         The FSF confirmed it is ok to do this, assuming there is at
19380         least one significant change per year in the affected range:
19381         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
19383 2012-01-26  Bruno Haible  <bruno@clisp.org>
19385         pipe2: refine doc about thread-safety
19386         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
19387         multithread-safety problem.
19388         * doc/glibc-functions/accept4.texi: Likewise.
19390 2012-01-26  Bruno Haible  <bruno@clisp.org>
19392         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
19393         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
19394         In the test program, include <fcntl.h>, for O_RDONLY.
19396 2012-01-26  Eric Blake  <eblake@redhat.com>
19398         pipe2: document lack of thread-safety in replacement
19399         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
19400         issue in replacement.
19401         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19402         Based on a report by Eric Wong.
19404 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
19405             Bruno Haible  <bruno@clisp.org>
19407         malloca: Avoid warnings on x86_64 mingw64.
19408         * lib/malloca.c: Include <stdint.h>.
19409         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
19410         * modules/malloca (Depends-on): Add stdint.
19411         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
19413 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
19415         obstack: remove __STDC__ conditionals
19416         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
19417         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
19418         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
19419         m4/include_next.m4 as the only gnulib-maintained places that still
19420         refer to __STDC__.
19422 2012-01-24  Bruno Haible  <bruno@clisp.org>
19424         havelib: Modern quoting.
19425         * build-aux/config.rpath: Quote 'like this', not `like this', as per
19426         the recent change to the GNU coding standards.
19428 2012-01-24  Bruno Haible  <bruno@clisp.org>
19430         stdint: Improve support for Android.
19431         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
19432         Reported by Simon Josefsson <simon@josefsson.org>.
19434 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19436         doc: omit trailing empty lines from INSTALL etc.
19437         * doc/Makefile (INSTALL): Omit trailing empty lines.
19438         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
19439         omit trailing empty lines.  This simplifies the build procedure.
19441 2012-01-23  Jim Meyering  <meyering@redhat.com>
19443         tests: avoid spurious warnings about gl_sockets_startup
19444         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
19445         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
19446         reporting a "statement with no effect".
19447         * tests/test-accept.c (main): Mark as "(void)".
19448         * tests/test-accept4.c (main): Likewise.
19449         * tests/test-bind.c (main): Likewise.
19450         * tests/test-connect.c (main): Likewise.
19451         * tests/test-getpeername.c (main): Likewise.
19452         * tests/test-getsockname.c (main): Likewise.
19453         * tests/test-getsockopt.c (main): Likewise.
19454         * tests/test-listen.c (main): Likewise.
19455         * tests/test-recv.c (main): Likewise.
19456         * tests/test-recvfrom.c (main): Likewise.
19457         * tests/test-send.c (main): Likewise.
19458         * tests/test-sendto.c (main): Likewise.
19459         * tests/test-setsockopt.c (main): Likewise.
19460         * tests/test-shutdown.c (main): Likewise.
19462 2012-01-21  Bruno Haible  <bruno@clisp.org>
19464         locale-fr.m4: Fix for Android.
19465         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
19466         failure of the test program on Bionic libc.
19468 2012-01-21  Jim Meyering  <meyering@redhat.com>
19470         bootstrap: fail when bootstrap_post_import_hook fails
19471         Otherwise, it's far too easy to miss diagnostics emitted
19472         between gnulib-tool's output and that of running configure.
19473         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
19475 2012-01-17  Jim Meyering  <meyering@redhat.com>
19477         maint: enable sc_trailing_blank
19478         * build-aux/pmccabe.css: Remove trailing blanks.
19479         * doc/acl-cygwin.txt: Likewise.
19480         * doc/gnu-oids.texi: Likewise
19481         * cfg.mk: Enable sc_trailing_blank.
19482         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
19484 2012-01-17  Jim Meyering  <meyering@redhat.com>
19486         maint: enable sc_prohibit_openat_without_use
19487         * cfg.mk: Enable sc_prohibit_openat_without_use.
19488         Exempt lib/selinux-at.c.
19490 2012-01-17  Jim Meyering  <meyering@redhat.com>
19492         maint: enable sc_prohibit_cloexec_without_use
19493         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
19494         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
19496 2012-01-17  Jim Meyering  <meyering@redhat.com>
19498         maint: enable sc_prohibit_intprops_without_use
19499         * cfg.mk: Enable sc_prohibit_intprops_without_use
19500         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
19502 2012-01-17  Jim Meyering  <meyering@redhat.com>
19504         maint: enable sc_prohibit_hash_pjw_without_use
19505         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
19506         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
19507         to match any use of \<hash_pjw\>, i.e., not necessarily with a
19508         following " (".
19510 2012-01-17  Jim Meyering  <meyering@redhat.com>
19512         maint: enable double-word-prohibiting rule
19513         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
19514         Exempt three files.
19516 2012-01-17  Jim Meyering  <meyering@redhat.com>
19518         maint: remove empty lines at EOF, but excluding modules/*
19519         Apply syntax rules at home as well as abroad.  Most changes
19520         were induced by running this:
19521           make srcdir=. _build-aux=build-aux -f top/maint.mk \
19522             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
19523             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
19524         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
19525         Exempt modules/* and two binary files.
19526         Also exempt doc/INSTALL*, per request from Bruno Haible.
19527         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
19528         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
19529         * doc/Copyright/request-assign.future: Likewise.
19530         * doc/Copyright/request-disclaim.changes: Likewise.
19531         * doc/INSTALL: Likewise.
19532         * doc/INSTALL.ISO: Likewise.
19533         * doc/INSTALL.UTF-8: Likewise.
19534         * doc/acl-cygwin.txt: Likewise.
19535         * doc/acl-resources.txt: Likewise.
19536         * doc/fdl-1.2.texi: Likewise.
19537         * doc/fdl-1.3.texi: Likewise.
19538         * doc/fdl.texi: Likewise.
19539         * lib/argp-pin.c: Likewise.
19540         * lib/round.c: Likewise.
19541         * lib/unicase/u16-totitle.c: Likewise.
19542         * lib/unictype/block_test.c: Likewise.
19543         * lib/uninorm/canonical-decomposition.c: Likewise.
19544         * m4/README: Likewise.
19545         * m4/relocatable-lib.m4: Likewise.
19546         * tests/test-isnand-nolibm.c: Likewise.
19547         * tests/test-isnand.c: Likewise.
19548         * tests/uninorm/NormalizationTest.txt: Likewise.
19550 2012-01-17  Jim Meyering  <meyering@redhat.com>
19552         maint: add framework to run syntax-check rules against gnulib sources
19553         * cfg.mk: New file, to disable all currently-failing tests.
19554         We'll enable them one by one, as they are made to pass.
19555         * Makefile (sc_maint): New rule.
19557 2012-01-21  Bruno Haible  <bruno@clisp.org>
19559         stdint: Add support for Android.
19560         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
19561         include the system's <stdint.h>.
19562         Reported by Simon Josefsson <simon@josefsson.org>.
19564 2012-01-19  Jim Meyering  <meyering@redhat.com>
19566         bootstrap: add bootstrap_post_import_hook
19567         Bison does still need something like the gnulib_mk_hook whose
19568         invocation I had to remove along with slurp in commit 767ccd40.
19569         Technically, we could get along without it, but doing so would
19570         have required living with a warning and a mandatory post-bootstrap
19571         automake rerun.
19572         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
19573         (bootstrap_post_import_hook): New function.
19574         Invoke it after gnulib-tool --import and before autoreconf.
19576 2012-01-18  Jim Meyering  <meyering@redhat.com>
19578         gitlog-to-changelog: don't use "no_"-prefixed variable name
19579         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
19580         to enable both --cluster and --no-cluster.  Change variable name,
19581         s/\$no_cluster/$cluster/, and reverse usage to match.
19583         gitlog-to-changelog: use "||", not "or" in expressions
19584         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
19585         expressions.
19587 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
19589         gitlog-to-changelog: new option --no-cluster
19590         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
19591         clustering of adjacent commit messages.
19593 2012-01-17  Jim Meyering  <meyering@redhat.com>
19595         maint: spell file systems with two words, not one
19596         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
19597         two words, not one.
19599 2012-01-16  Jim Meyering  <meyering@redhat.com>
19601         bootstrap: add a FIXME comment to ensure we eventually remove the hack
19602         * build-aux/bootstrap (gnulib_tool_options): Add comment.
19604 2012-01-16  Eric Blake  <eblake@redhat.com>
19606         bootstrap: cater to autoconf 2.59
19607         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
19608         is not available.
19610         bootstrap: properly check for libtool
19611         * build-aux/bootstrap (libtoolize): Also run libtool when older
19612         usage is detected.
19614 2012-01-15  Bruno Haible  <bruno@clisp.org>
19616         Improve support for MSVC 9.
19617         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
19618         clashes on MSVC.
19619         * lib/fcntl.in.h: Likewise.
19620         * lib/stdlib.in.h: Likewise.
19621         * lib/sys_stat.in.h: Likewise.
19623 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
19625         gnupload: we hold the master copy of this script now
19626         For motivation and more information, see:
19627         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
19628         * build-aux/gnupload: Make it clear in the heading comments that the
19629         master copy of this file is maintained by gnulib.  Since we are at
19630         it, bump its copyright year and ...
19631         ($scriptversion): ... the date in its version.
19632         ($usage): Patches and bug reports should be sent to the gnulib list,
19633         not the automake one.
19634         * config/srclist.txt: Don't try to sync 'gnupload' from automake
19635         anymore.
19637 2012-01-15  Bruno Haible  <bruno@clisp.org>
19639         Fix module 'random'.
19640         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
19641         initstate, setstate are declared.
19643 2012-01-14  Bruno Haible  <bruno@clisp.org>
19645         Tests for module 'random'.
19646         * modules/random-tests: New file.
19647         * tests/test-random.c: New file, based on tests/test-random_r.c.
19649         New module 'random'.
19650         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
19651         declarations.
19652         * lib/random.c: New file, based on glibc/stdlib/random.c.
19653         * m4/random.m4: New file.
19654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
19655         HAVE_RANDOM.
19656         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
19657         * modules/random: New file.
19658         * config/srclist.txt: Add an entry for random.c.
19659         * doc/posix-functions/random.texi: Mention the 'random' module.
19660         * doc/posix-functions/initstate.texi: Likewise.
19661         * doc/posix-functions/setstate.texi: Likewise.
19662         * doc/posix-functions/srandom.texi: Likewise.
19664 2012-01-12  Bruno Haible  <bruno@clisp.org>
19666         random_r: Use common idioms.
19667         * lib/random_r.c: Include <stdlib.h> first.
19669         random_r: Override incompatible API on AIX, OSF/1.
19670         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
19671         Override the system function if REPLACE_RANDOM_R is 1.
19672         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
19673         and OSF/1, set REPLACE_RANDOM_R.
19674         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
19675         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
19676         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
19677         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
19678         * doc/glibc-functions/random_r.texi: Likewise.
19679         * doc/glibc-functions/setstate_r.texi: Likewise.
19681         random_r: Support for MSVC 9.
19682         * lib/random_r.c: Include stdint.h, not inttypes.h.
19684 2012-01-12  Eric Blake  <eblake@redhat.com>
19686         inet_ntop: guard extra work by IF_LINT
19687         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
19688         better code generation when not checking for warnings.
19689         Suggested by Paul Eggert and Jim Meyering.
19691         strptime: fix regression on mingw
19692         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
19693         Fix regression.  Reported by Bruno Haible.
19695 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
19696             Bruno Haible  <bruno@clisp.org>
19698         copy-file: add error-code-returning variant.
19699         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
19700         (qcopy_file_preserving): New declaration.
19701         * lib/copy-file.c (qcopy_file_preserving): Renamed from
19702         copy_file_preserving. Change return type to 'int'. Don't emit an error
19703         message here.
19704         (copy_file_preserving): New function.
19705         * tests/test-copy-file.c: Include <stdlib.h>.
19706         (main): Test qcopy_file_preserving if the environment variable
19707         NO_STDERR_OUTPUT is set.
19708         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
19709         with NO_STDERR_OUTPUT
19710         * tests/test-copy-file-2.sh: Likewise.
19712 2012-01-10  Bruno Haible  <bruno@clisp.org>
19714         copy-file: Use 'quote' module consistently.
19715         * lib/copy-file.c (copy_file_preserving): Use quote().
19717         copy-file: Refactor.
19718         * lib/copy-file.c: Include quote.h.
19719         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
19720         message here.
19721         * modules/copy-file (Depends-on): Add quote.
19723         acl: Export qcopy_acl.
19724         * lib/acl.h (qcopy_acl): New declaration.
19725         * lib/copy-acl.c (qcopy_acl): Make non-static.
19727         acl: Rename a local variable.
19728         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
19730         acl: Align return values of copy_acl and qcopy_acl.
19731         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
19732         maybe < -1.
19734 2012-01-11  Eric Blake  <eblake@redhat.com>
19736         strptime: silence gcc warnings
19737         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
19738         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
19739         Reported by Daniel P. Berrange.
19741         inet_ntop: silence gcc warning
19742         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
19743         Reported by Daniel P. Berrange.
19745 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
19747         getloadavg test: skip the test on GNU/Linux without /proc mounted
19748         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
19749         file.  When /proc is not mounted, it always fails with ENOENT.
19750         * tests/test-getloadavg.c (main): Treat ENOENT return code from
19751         getloadavg(3) the same way as ENOSYS and ENOTSUP.
19753 2012-01-10  Bruno Haible  <bruno@clisp.org>
19755         regex: Avoid link error on MSVC 9.
19756         * modules/regex (Depends-on): Add wctype.
19758 2012-01-10  Bruno Haible  <bruno@clisp.org>
19760         doc: Mention --with-tests option.
19761         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
19762         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
19763         --with-tests.
19764         Reported by Reuben Thomas.
19766 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
19768         users.txt: order package names lexicographically.
19769         * users.txt: Order package names lexicographically.
19771 2012-01-10  Jim Meyering  <meyering@redhat.com>
19773         maint.mk: fix description in comment
19774         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
19776         ignore-value: remove deprecated ignore_ptr function
19777         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
19778         * NEWS: Note this.
19780 2012-01-09  Jim Meyering  <meyering@redhat.com>
19782         test-init.sh: avoid a subshell
19783         * tests/test-init.sh: Remove protective subshell.
19784         Suggested by Bernhard Voelker.  While a subshell is normally
19785         required to protect against older shells (Solaris, FreeBSD) that
19786         warn about a missing program before performing redirection, the
19787         shell-selection tests performed by init.sh probably exclude any
19788         offending shell.
19790 2012-01-08  Bruno Haible  <bruno@clisp.org>
19792         setlocale tests: Avoid test failure on Solaris 11 2011-11.
19793         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
19794         variable.
19796 2012-01-08  Bruno Haible  <bruno@clisp.org>
19798         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
19799         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
19800         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
19801         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
19802         macro.
19803         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
19804         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
19805         * lib/spawn_faction_addopen.c: Add workaround implementation if
19806         HAVE_WORKING_POSIX_SPAWN.
19807         * modules/spawn (Makefile): Substitute
19808         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
19809         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
19810         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
19811         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
19812         (Depends-on): Update conditions.
19813         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
19814         the Solaris 11 bug.
19816 2012-01-08  Bruno Haible  <bruno@clisp.org>
19818         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
19819         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
19820         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
19821         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
19822         macro.
19823         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
19824         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
19825         * lib/spawn_faction_adddup2.c: Add workaround implementation if
19826         HAVE_WORKING_POSIX_SPAWN.
19827         * modules/spawn (Makefile): Substitute
19828         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
19829         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
19830         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
19831         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
19832         (Depends-on): Update conditions.
19833         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
19834         the Solaris 11 bug.
19836 2012-01-08  Bruno Haible  <bruno@clisp.org>
19838         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
19839         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
19840         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
19841         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
19842         HAVE_WORKING_POSIX_SPAWN.
19843         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
19844         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
19845         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
19846         * lib/spawn_faction_addclose.c: Add workaround implementation if
19847         HAVE_WORKING_POSIX_SPAWN.
19848         * modules/spawn (Makefile): Substitute
19849         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
19850         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
19851         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
19852         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
19853         (Depends-on): Update conditions.
19854         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
19855         the Solaris 11 bug.
19857 2012-01-08  Bruno Haible  <bruno@clisp.org>
19859         doc: Update for Solaris 11 2011-11.
19860         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
19861         * m4/printf.m4: Update comments.
19863 2012-01-08  Bruno Haible  <bruno@clisp.org>
19865         mktime: Avoid compilation error on Solaris 11.
19866         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
19868 2012-01-08  Bruno Haible  <bruno@clisp.org>
19870         doc: Small fix.
19871         * doc/posix-headers/nl_types.texi: Correct platforms list.
19873 2012-01-08  Simon Josefsson  <simon@josefsson.org>
19875         Add lgpl-3.0 module.
19876         * MODULES.html.sh (Support for building documentation): Add
19877         lgpl-3.0.
19878         * modules/lgpl-3.0: New file.
19880 2012-01-08  Jim Meyering  <meyering@redhat.com>
19882         select.c: indent with spaces, not TABs
19883         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
19885 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
19887         quotearg: do not use grave accent for left quote
19888         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
19889         locale_quoting_style.
19890         (quotearg_buffer_restyled): Fix example.
19891         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
19893 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
19895         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
19896         Most programs do not have translation catalogs for English and much
19897         less separate catalogs for British and American English.  Drop the
19898         suggestion to translators about these two, and provide it
19899         automatically for Unicode locales.  Like most programs, even those
19900         using American English, we use single quotation marks.  This conflicts
19901         with the American typographic convention, but works better when you
19902         cite the entire error message within double quotes.  It also tries not
19903         to clash with established practice and with what non-gnulib programs
19904         will usually do.
19905         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
19906         using an UTF-8 or GB-18030 locale.  The list of other locales with
19907         quotes was provided by Bruno Haible.
19908         (quotearg_buffer_restyled): Adjust instructions to translators.
19909         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
19910         text, since this would be wrong when using Unicode.
19911         * modules/quotearg: Depend on c-strcaseeq.
19913 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
19915         quotearg: fix Wikipedia link
19916         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
19918 2012-01-07  Simon Josefsson  <simon@josefsson.org>
19920         Fix for mingw with MSVC9.
19921         * m4/ld-version-script.m4: Check that compiler rejects version
19922         scripts with syntax errors.  Reported by Bruno Haible
19923         <bruno@clisp.org>.
19925 2012-01-06  Bruno Haible  <bruno@clisp.org>
19927         Talk about "native Windows API", not "Woe32".
19928         * lib/accept4.c: Update comments to mention native Windows.
19929         * lib/execute.c: Likewise.
19930         * lib/fatal-signal.c: Likewise.
19931         * lib/localcharset.c: Likewise.
19932         * lib/nanosleep.c: Likewise.
19933         * lib/nl_langinfo.c: Likewise.
19934         * lib/pclose.c: Likewise.
19935         * lib/pipe-filter-gi.c: Likewise.
19936         * lib/pipe-filter-ii.c: Likewise.
19937         * lib/pipe.c: Likewise.
19938         * lib/pipe2.c: Likewise.
19939         * lib/popen.c: Likewise.
19940         * lib/progreloc.c: Likewise.
19941         * lib/relocatable.c: Likewise.
19942         * lib/sigaction.c: Likewise.
19943         * lib/sigprocmask.c: Likewise.
19944         * lib/spawn-pipe.h: Likewise.
19945         * lib/spawn-pipe.c: Likewise.
19946         * lib/spawni.c: Likewise.
19947         * lib/stat-time.h: Likewise.
19948         * lib/w32spawn.h: Likewise.
19949         * tests/test-isatty.c: Likewise.
19950         * lib/config.charset: More comments.
19951         * doc/gnulib-intro.texi: Mention native Windows.
19952         * doc/posix-functions/_Exit_C99.texi: Likewise.
19953         * doc/posix-headers/fcntl.texi: Likewise.
19955 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
19957         argp: Avoid crash if translator uses % characters in a translation.
19958         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
19959         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
19961 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
19963         doc: C11 and C++11 are now official
19964         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
19965         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
19966         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
19967         * modules/stdalign:
19968         Replace references to draft C1X to C11, and to draft C++0X to C++11.
19970 2012-01-06  Bruno Haible  <bruno@clisp.org>
19972         uc-is-grapheme-break tests: Tweak.
19973         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
19974         message.
19976 2012-01-06  Bruno Haible  <bruno@clisp.org>
19978         test-init.sh: correct the test for diff -u
19979         * tests/test-init.sh: Also redirect stdout to /dev/null.
19981 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
19983         Use ', not `, for quoting output.
19984         * build-aux/announce-gen (usage, sizes, print_news_deltas)
19985         (print_changelog_deltas, get_tool_versions, main program):
19986         * build-aux/git-version-gen:
19987         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
19988         * build-aux/move-if-change (help):
19989         * build-aux/useless-if-before-free (usage, main program):
19990         * check-module (parse_module_file, usage)
19991         (find_included_lib_files, check_module):
19992         * lib/argmatch.c (main) [TEST]:
19993         * lib/argp-help.c (_help):
19994         * lib/getopt1.c (main) [TEST]:
19995         * lib/git-merge-changelog.c (usage):
19996         * lib/xstrtol-error.c (xstrtol_error):
19997         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
19998         * m4/argz.m4 (gl_FUNC_ARGZ):
19999         * m4/bison.m4 (gl_BISON):
20000         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
20001         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
20002         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20003         * m4/fpending.m4 (gl_PREREQ_FPENDING):
20004         * m4/gc-random.m4 (gl_GC_RANDOM):
20005         * m4/intl.m4 (gt_CHECK_DECL):
20006         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
20007         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
20008         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
20009         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
20010         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
20011         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
20012         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
20013         * tests/test-dirname.c (main):
20014         * tests/test-getpass.c (main):
20015         * tests/test-iconvme.c (main):
20016         * tests/test-parse-datetime.c (LOG):
20017         * tests/test-xstrtoimax.sh:
20018         * tests/test-xstrtol.sh:
20019         * tests/test-xstrtoll.sh:
20020         * tests/test-xstrtoumax.sh:
20021         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
20022         * top/GNUmakefile (abort-due-to-no-makefile):
20023         Quote 'like this', not `like this', as per the recent change to
20024         the GNU coding standards.
20026 2012-01-05  Bruno Haible  <bruno@clisp.org>
20028         strtoimax: Don't force a replacement on systems where intmax_t is int.
20029         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
20030         'intmax_t' is not larger than 'int'.
20031         Reported by Pádraig Brady <P@draigBrady.com>.
20033 2012-01-05  Bruno Haible  <bruno@clisp.org>
20035         doc: Mention NetBSD bugs.
20036         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
20037         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
20039 2012-01-05  Bruno Haible  <bruno@clisp.org>
20041         strtoumax tests: Enhance tests.
20042         * tests/test-strtoumax.c (main): Add tests for large values.
20044 2012-01-05  Bruno Haible  <bruno@clisp.org>
20046         strtoimax: Work around AIX 5.1 bug.
20047         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
20048         definition.
20049         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
20050         Set HAVE_STRTOIMAX.
20051         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
20052         REPLACE_STRTOIMAX.
20053         * modules/inttypes-incomplete (Makefile.am): Substitute
20054         REPLACE_STRTOIMAX.
20055         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
20056         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
20057         (Depends-on): Update conditions.
20058         * tests/test-strtoimax.c (main): Add tests for large values.
20059         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
20061 2012-01-05  Bruno Haible  <bruno@clisp.org>
20063         inttypes: Modernize.
20064         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
20065         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
20066         (Makefile.am): Update inttypes.h rule.
20068 2012-01-05  Jim Meyering  <meyering@redhat.com>
20070         init.sh: don't waste a subshell just to redirect stderr
20071         * tests/init.sh: In testing for diff -u and diff -c, use a
20072         stderr-redirecting exec inside `...` rather than a subshell.
20074         test-init.sh: avoid failure on HP-UX 11.00
20075         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
20076         resolves to diff -c or cmp.  Reported by Bruno Haible.
20078 2012-01-05  Bruno Haible  <bruno@clisp.org>
20080         Tests for module 'strtoull'.
20081         * modules/strtoull-tests: New file.
20082         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
20084 2012-01-05  Bruno Haible  <bruno@clisp.org>
20086         Tests for module 'strtoll'.
20087         * modules/strtoll-tests: New file.
20088         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
20090 2012-01-05  Bruno Haible  <bruno@clisp.org>
20092         Tests for module 'strtoul'.
20093         * modules/strtoul-tests: New file.
20094         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
20096 2012-01-05  Bruno Haible  <bruno@clisp.org>
20098         Tests for module 'strtol'.
20099         * modules/strtol-tests: New file.
20100         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
20102 2012-01-04  Jim Meyering  <meyering@redhat.com>
20104         test-init.sh: accommodate Solaris 5.10's different diff -u output
20105         * tests/test-init.sh: Also exempt @@ lines from the comparison
20106         of diff output, since Solaris 5.10 and GNU diff formats differ.
20107         Reported by Stefano Lattarini.
20109 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20111         test-posixtm: don't assume signed integer wraparound
20112         * tests/test-posixtm.c (main): Don't assume wraparound semantics
20113         after signed integer overflow.  Inspired by (though it may not
20114         fix) Bruno Haible's bug report in
20115         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
20117         Spell out "Windows 9x" and "Windows XP".
20118         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
20119         "Windows 9x" and "WinXP" with "Windows XP".
20121 2012-01-04  Jim Meyering  <meyering@redhat.com>
20123         test-vc-list-files-cvs.sh: remove obsolete comment
20124         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
20125         double exit.  Now that's all encapsulated via skip_ and Exit.
20127 2012-01-04  Bruno Haible  <bruno@clisp.org>
20129         Talk about "native Windows API", not "Win32".
20130         * lib/classpath.c: Update comments to mention native Windows.
20131         * lib/csharpexec.c: Likewise.
20132         * lib/dup2.c: Likewise.
20133         * lib/error.c: Likewise.
20134         * lib/fcntl.c: Likewise.
20135         * lib/filename.h: Likewise.
20136         * lib/findprog.c: Likewise.
20137         * lib/get-rusage-as.c: Likewise.
20138         * lib/get-rusage-data.c: Likewise.
20139         * lib/getpagesize.c: Likewise.
20140         * lib/javaexec.c: Likewise.
20141         * lib/msvc-inval.c: Likewise.
20142         * lib/msvc-nothrow.c: Likewise.
20143         * lib/nanosleep.c: Likewise.
20144         * lib/nonblocking.c: Likewise.
20145         * lib/printf-parse.c: Likewise.
20146         * lib/setlocale.c: Likewise.
20147         * lib/sigaction.c: Likewise.
20148         * lib/strerror_r.c: Likewise.
20149         * lib/tmpdir.c: Likewise.
20150         * lib/vasnprintf.c: Likewise.
20151         * lib/w32spawn.h: Likewise.
20152         * lib/waitpid.c: Likewise.
20153         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
20154         * m4/locale-ar.m4: Likewise.
20155         * m4/locale-fr.m4: Likewise.
20156         * m4/locale-ja.m4: Likewise.
20157         * m4/locale-tr.m4: Likewise.
20158         * m4/locale-zh.m4: Likewise.
20159         * m4/printf.m4: Likewise.
20160         * tests/test-cloexec.c: Likewise.
20161         * tests/test-copy-acl.sh: Likewise.
20162         * tests/test-copy-file.sh: Likewise.
20163         * tests/test-file-has-acl.sh: Likewise.
20164         * tests/test-set-mode-acl.sh: Likewise.
20165         * tests/test-dup-safer.c: Likewise.
20166         * tests/test-dup2.c: Likewise.
20167         * tests/test-dup3.c: Likewise.
20168         * tests/test-fcntl.c: Likewise.
20169         * tests/test-nonblocking-pipe.h: Likewise.
20170         * tests/test-nonblocking-socket.h: Likewise.
20171         * tests/test-pipe.c: Likewise.
20172         * tests/test-pipe2.c: Likewise.
20173         * tests/test-spawn-pipe-child.c: Likewise.
20174         * doc/acl-resources.txt: Likewise.
20175         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
20176         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
20177         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
20178         * lib/localcharset.c: Update comments to mention native Windows.
20179         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
20180         * lib/localename.c: Likewise.
20181         * lib/progreloc.c: Likewise.
20182         * lib/relocatable.c: Likewise.
20183         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
20184         (windows_compute_revents): Renamed from win32_compute_revents.
20185         (windows_compute_revents_socket): Renamed from
20186         win32_compute_revents_socket.
20187         * lib/select.c: Update comments to mention native Windows.
20188         (windows_poll_handle): Renamed from win32_poll_handle.
20189         * m4/threadlib.m4: Update comments to mention native Windows.
20190         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
20191         --enable-threads=windows instead of --enable-threads=win32. Set
20192         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
20193         * lib/glthread/lock.h: Update comments to mention native Windows.
20194         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
20195         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
20196         USE_WIN32_THREADS.
20197         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
20198         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
20199         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
20200         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
20201         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
20202         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
20203         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
20204         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
20205         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
20206         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
20207         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
20208         * tests/test-tls.c: Likewise.
20209         Rationale:
20210         Microsoft renamed the "Win32 API" to "Windows API", as it is available
20211         on both 32-bit and 64-bit Windows systems.
20212         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
20213         line of distinction is between "native Windows" on one side and Unix/
20214         POSIX systems on the other side. More details in
20215         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
20216         Suggested by Paul Eggert.
20218 2012-01-03  Bruno Haible  <bruno@clisp.org>
20220         isatty: Support for MSVC 9.
20221         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
20222         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
20223         (_isatty_nothrow): New function.
20224         (isatty): Use it instead of _isatty.
20225         (IsConsoleHandle): Add comment, from Paolo Bonzini.
20226         * lib/poll.c (IsConsoleHandle): Likewise.
20227         * lib/select.c (IsConsoleHandle): Likewise.
20228         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
20229         (gl_PREREQ_ISATTY): New macro.
20230         * modules/isatty (Depends-on): Add msvc-inval.
20231         (configure.ac): Invoke gl_PREREQ_ISATTY.
20233 2012-01-03  Jim Meyering  <meyering@redhat.com>
20235         maint.mk: remove temporary transition aid from over 1.5 years ago
20236         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
20237         purpose was to aid in the transition (avoiding silent malfunction)
20238         from that old name to the new _sc_search_regexp.  This shim was
20239         added by commit 219c504b.
20241         init.sh: do not try to accommodate compare arguments starting with "-"
20242         * tests/init.sh (compare_dev_null_): Do not try to accommodate
20243         compare arguments that start with "-".  Besides, we do not worry
20244         about this when invoking diff or cmp; why start now with sed?
20245         Using "--" to separate options from argument would trigger sed
20246         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
20247         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
20249 2012-01-02  Bruno Haible  <bruno@clisp.org>
20251         Enhance tests for module 'isatty'.
20252         * modules/isatty-tests (Depends-on): Add pipe-posix.
20253         * tests/test-isatty.c: Include <fcntl.h>.
20254         (DEV_NULL): New macro.
20255         (main): Test the resut of isatty() also on regular files, pipes, and
20256         /dev/null.
20258         New module 'isatty'.
20259         * lib/unistd.in.h (isatty): New declaration.
20260         * lib/isatty.c: New file, based on an idea of
20261         Bastien Roucariès <roucaries.bastien@gmail.com>.
20262         * m4/isatty.m4: New file.
20263         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
20264         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
20265         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
20266         REPLACE_ISATTY.
20267         * modules/isatty: New file.
20268         * doc/posix-functions/isatty.texi: Mention the new module.
20269         Suggested by Paolo Bonzini.
20271 2012-01-02  Bruno Haible  <bruno@clisp.org>
20273         canonicalize: Tweak 2011-12-29 commit.
20274         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
20275         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
20277 2012-01-02  Jim Meyering  <meyering@redhat.com>
20279         gitlog-to-changelog: describe input syntax in --help output
20280         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
20282         gitlog-to-changelog: fix typo in --help: show backslash before email @
20283         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
20284         in sources, but not in actual output.
20286 2011-12-30  Jim Meyering  <meyering@redhat.com>
20288         gitlog-to-changelog: don't malfunction when name contains %-directive
20289         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
20290         in a name string cause trouble.  E.g., with a user name of "%s",
20291         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
20293 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
20295         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
20296         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
20297         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
20298         the "  (tiny change)" notation that is appended to the standard
20299         ChangeLog "date  name  email" header line.
20301 2012-01-01  Jim Meyering  <meyering@redhat.com>
20303         test-framework-sh: init.sh: fix "make dist" failure
20304         When using gnulib-tool's --with-tests option and any module that
20305         depends on test-framework-sh, "make dist" would fail due to the
20306         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
20307         in the gltests directory, and not in the gllib/ directory.
20308         One way to work around that is to move the EXTRA_DIST += init.sh
20309         from the primary module to the -tests one:
20310         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
20311         * modules/test-framework-sh (Makefile.am): ...not here.
20312         Reported by Tom G. Christensen in
20313         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
20315         version-etc: update copyright year reported by --version
20316         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
20318 2011-12-31  Pádraig Brady  <P@draigBrady.com>
20320         canonicalize: only stat() if required
20321         * lib/canonicalize.c (canonicalize_filename_mode):
20322         Avoid calling l?stat() when both CAN_MISSING,
20323         and CAN_NOLINKS are set, as we neither need
20324         to resolve symlinks or test component existence.
20326 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
20328         doc: cover st_ino issues once; add OpenVMS etc.
20329         * doc/posix-functions/stat.texi (stat):
20330         * doc/posix-functions/lstat.texi (lstat):
20331         * doc/posix-functions/fstatat.texi (fstatat):
20332         * doc/posix-functions/fstat.texi (fstat):
20333         Move general 'struct stat' stuff to sys_stat.texi,
20334         leaving behind a pointer.
20335         * doc/posix-headers/sys_stat.texi (sys/stat.h):
20336         Merge duplicate info about 'struct stat' problems into here.
20337         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
20338         and suggest partial workarounds.
20340         same-inode: port to OpenVMS
20341         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
20342         three st_ino values.
20344 2011-12-30  Pádraig Brady  <P@draigBrady.com>
20346         canonicalize: fix references to stat() and lstat()
20347         * lib/canonicalize.c (canonicalize_filename_mode):
20348         Ensure references always resolve to a replacement
20349         function if required (even via a macro).
20351 2011-12-30  Jim Meyering  <meyering@redhat.com>
20353         gitlog-to-changelog: remove a little duplication
20354         * build-aux/gitlog-to-changelog (main): Grep @lines once,
20355         rather than twice.
20357 2011-12-29  Pádraig Brady  <P@draigBrady.com>
20359         canonicalize: add support for not resolving symlinks
20360         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
20361         indicate we don't want to follow symlinks.  Also
20362         provide CAN_MODE_MASK to aid setting these existing
20363         mutually exclusive values.
20364         * lib/canonicalize.c (canonicalize_filename_mode):
20365         Extract the flags from can_mode parameter, which
20366         are currently just used to select between stat()
20367         and lstat().  Also ensure that mutually exclusive
20368         values are flagged immediately as invalid.
20369         * tests/test-canonicalize.c: Verify symlinks are
20370         not followed, and that invalid flag combinations
20371         are diagnosed.
20373 2011-12-25  Jim Meyering  <meyering@redhat.com>
20375         gitlog-to-changelog: do not clump multi-paragraph entries
20376         Identical header lines (date,name,email+coauthors) are suppressed,
20377         thus putting all entries with those same characteristics under
20378         a single header.  However, when a log entry consists of two or
20379         more paragraphs, it may not be clear where it starts and ends.
20380         This change makes it so that such an entry is always separated
20381         from others by a header line, even when that header would
20382         otherwise be suppressed.
20383         * build-aux/gitlog-to-changelog: Implement the above.
20384         Inspired by a related request from Stefano Lattarini in
20385         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
20387 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
20389         announce-gen: fix `cmd' typo in diagnostic
20390         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
20391         diagnostic: a missing '$' meant that the command was not output.
20393 2011-12-23  Jim Meyering  <meyering@redhat.com>
20395         test-framework-sh: distribute init.sh
20396         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
20397         Otherwise, "make -C gnulib-tests check" (at least in grep) would
20398         fail due to the lack of init.sh.
20400         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
20401         * modules/atexit-tests: Rather than listing tests/init.sh,
20402         now that there's a module for it, simply depend on that new module.
20403         * modules/closein-tests: Likewise.
20404         * modules/exclude-tests: Likewise.
20405         * modules/getcwd-tests: Likewise.
20406         * modules/perror-tests: Likewise.
20407         * modules/pread-tests: Likewise.
20408         * modules/pwrite-tests: Likewise.
20409         * modules/vc-list-files-tests: Likewise.
20410         * modules/verify-tests: Likewise.
20411         * modules/xalloc-die-tests: Likewise.
20412         * modules/xstrtoimax-tests: Likewise.
20413         * modules/xstrtol-tests: Likewise.
20414         * modules/xstrtoll-tests: Likewise.
20415         * modules/xstrtoumax-tests: Likewise.
20416         * modules/yesno-tests: Likewise.
20418 2011-12-22  Jim Meyering  <meyering@redhat.com>
20420         test-framework-sh: add minimal tests of init.sh's compare function
20421         * modules/test-framework-sh-tests: New file.
20422         * tests/test-init.sh: New file.
20424         test-framework-sh: new module
20425         * modules/test-framework-sh: New file.
20426         * MODULES.html.sh (Support for maintaining and releasing projects):
20427         List it.
20429         init.sh: do not emit simulated diff output to stderr
20430         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
20432 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
20434         .gitignore: ignore gnulib.dvi and regex.info
20435         * doc/.gitignore:add gnulib.dvi and regex.info
20437 2011-12-22  Jim Meyering  <meyering@redhat.com>
20439         init.sh: correct previous change
20440         * tests/init.sh (compare): My previous change was wrong.
20441         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
20443         init.sh: avoid unwarranted test failure when using "set -e"
20444         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
20445         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
20446         a use like "compare exp out" would get evoke an unconditional failure.
20448 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
20450         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
20451         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
20452         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
20453         autoreconf that did not.
20454         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
20455         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
20457 2011-12-17  Jim Meyering  <meyering@redhat.com>
20459         bootstrap: remove some now-unneeded code
20460         This script arose back when gnulib-tool was young.
20461         Since then, it has seen improvements that render much of this
20462         script unnecessary.  In particular, it can now make symlinks
20463         to the files it uses.  Also, I no longer see as much value in
20464         marking files as read-only via comments.
20465         If you relied on the symlink-creation feature of the preceding
20466         version of this script, you can get most of that functionality
20467         by adding the --symlink option to the definition of
20468         gnulib_tool_option_extras in your bootstrap.conf file.
20469         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
20470         Run autopoint and libtoolize *before* gnulib-tool.
20471         After it, run an abbreviated autoreconf, rather than a loop around
20472         all tools.
20473         (slirp, bt_mark_as_generated): Remove functions.
20475 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20477         ftoastr: fix typo
20478         * lib/ftoastr.h: Fix misspelling in comment.
20480 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
20482         * top/README-release: fix punctuation.
20484 2011-12-17  Jim Meyering  <meyering@redhat.com>
20486         bootstrap: correct the recent buildreq change
20487         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
20488         had no effect.
20489         * build-aux/bootstrap (buildreq): Bracket each search term with
20490         "*...*", so that the shell "case" statement works as intended.
20491         Add comments.
20493 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
20495         build: let bootstrap resort to wget when downloading .po files
20496         * build-aux/bootstrap (download_po_files): Fallback to wget when
20497         downloading the .po files via rsync fails.  This is necessary to
20498         bootstrap from behind a strict firewall.
20500 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
20502         stdint: don't assume C++11 when compiling with g++
20503         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
20504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
20505         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
20506         work also in C++ before C++11, as that improperly inhibits
20507         generating a substitute stdint.h for that case.
20509 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
20511         alloca: protect comment from gnulib-tool
20512         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
20513         that gnulib-tool doesn't think it's a license, and munge it to
20514         say "GCC version 3".
20516 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
20518         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
20519         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
20520         $(abs_top_builddir) instead of $(top_builddir).
20522 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
20524         strftime-tests: also test nanoseconds
20525         * tests/test-strftime.c (T): Add a test of %N.
20527 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
20529         inttypes, stdint: add C++11 support
20530         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
20531         when including inttypes.h and stdint.h.  Support this change to
20532         the standard.
20533         * doc/posix-headers/inttypes.texi (inttypes.h):
20534         * doc/posix-headers/stdint.texi (stdint.h): Document this.
20535         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
20536         Define if not defined already, for the benefit of pre-C++11 hosts.
20537         Define the standard format macros (e.g., PRId8) always.
20538         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
20539         Likewise, if __cpluspus.  Define the standard constant and limit
20540         macros (e.g., INT8_C, INT8_MAX) always.
20541         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
20542         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
20543         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
20544         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
20545         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
20546         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
20547         Likewise.
20549 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
20551         nonblocking tests: Fix test failure on Linux/PPC.
20552         Suggested by Prerna Saxena in
20553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
20554         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
20555         Set to 1100000.
20557 2011-12-12  Jim Meyering  <meyering@redhat.com>
20559         argmatch: don't hard-code `' when listing valid option arguments
20560         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
20561         use the quote function to add quotes.  Use fputs rather than
20562         fprintf for the format string with no format directive.
20564 2011-12-07  Eric Blake  <eblake@redhat.com>
20566         bootstrap: detect tools required by gnulib-tool
20567         * build-aux/bootstrap (buildreq): Provide minimum implicit
20568         dependencies.
20569         * DEPENDENCIES: Mention patch as a prereq.
20571 2011-12-04  Bruno Haible  <bruno@clisp.org>
20573         sethostname: Port to Windows platforms.
20574         * lib/sethostname.c: Provide an alternate implementation for Windows
20575         platforms.
20576         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
20577         (main): Skip the test if sethostname() fails with EPERM. On Windows
20578         platforms, don't check the result of gethostname().
20580 2011-12-04  Bruno Haible  <bruno@clisp.org>
20581             Jim Meyering  <meyering@redhat.com>
20583         tests: Avoid spurious error message on platforms without mktemp program.
20584         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
20586 2011-12-04  Bruno Haible  <bruno@clisp.org>
20588         sethostname: Fix documentation.
20589         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
20590         "not fixed" section.
20592 2011-12-03  Bruno Haible  <bruno@clisp.org>
20594         gnulib-tool: Verify that the License field is present and non-empty.
20595         * gnulib-tool (func_get_license_raw): New function, extracted from
20596         func_get_license.
20597         (func_get_license): Use it. Warn if the module is not a test module and
20598         has no license.
20599         Suggested by Jim Meyering.
20601 2011-12-03  Bruno Haible  <bruno@clisp.org>
20603         sethostname tests: Fix link error on mingw.
20604         * tests/test-sethostname1.c: New file, extracted from
20605         tests/test-sethostname.c.
20606         * tests/test-sethostname2.c: New file, extracted from
20607         tests/test-sethostname.c.
20608         * tests/test-sethostname.c: Remove file.
20609         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
20610         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
20611         (Depends-on): Add gethostname.
20612         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
20613         Link the latter with $(GETHOSTNAME_LIB).
20615         sethostname tests: Fix compilation error on mingw.
20616         * tests/test-sethostname.c: Don't include <sys/types.h>.
20617         (geteuid): Use a dummy value without uid_t.
20618         * modules/sethostname-tests (Depends-on): Remove sys_types.
20620         sethostname tests: Avoid a gcc warning.
20621         * tests/test-sethostname.c (main): Remove an unused variable.
20623         Tweak last commit.
20624         * modules/sethostname-tests (Files): Sort by decreasing importance.
20625         (configure.ac): Check for geteuid.
20626         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
20627         the test when there's nothing to test. Drop an unnecessary cast.
20628         Improve an error message. Verify that the final sethostname() call
20629         succeeds.
20631 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
20633         Add a test suite for the sethostname module.
20634         * modules/sethostname-tests: New file.  A test program
20635         for the sethostname module.
20636         * tests/test-sethostname.c: Likewise.
20638 2011-12-03  Bruno Haible  <bruno@clisp.org>
20640         Tweak last commit.
20641         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
20642         Fix preprocessor directives indentation. Fix typos.
20643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
20644         * modules/unistd (Makefile): Likewise.
20646 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
20648         Integrate the sethostname module into unistd.
20649         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
20650         into the unistd.h header.
20651         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
20652         preprocessor directives.
20653         * modules/unistd: Setup the Makefile substitutions of the
20654         SETHOSTNAME preprocessor directives.
20656 2011-12-03  Bruno Haible  <bruno@clisp.org>
20658         Tweak last commit.
20659         * lib/sethostname.c: Don't include <string.h>.
20660         (sethostname): No need to copy the argument string to the stack. Don't
20661         call clearerr. Preserve errno when fprintf failed.
20662         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
20663         Don't invoke AC_REPLACE_FUNCS.
20664         * modules/sethostname (Link): Remove empty section.
20665         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
20666         failure problem.
20668 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
20670         New module 'sethostname'.
20671         * lib/sethostname.c (sethostname): New file.  Provide sethostname
20672         for systems that lack it.
20673         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
20674         sethostname declaration and function.
20675         * modules/sethostname: New file.  Define the sethostname module.
20677 2011-12-03  Bruno Haible  <bruno@clisp.org>
20679         Tweak last commit.
20680         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
20682 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
20684         Split the HOST_NAME_MAX detection into a separate m4 macro.
20685         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
20686         macro so it can be used by the pending sethostname module.
20688 2011-12-03  Bruno Haible  <bruno@clisp.org>
20690         Fix module descriptions syntax.
20691         * modules/argv-iter (License): Fix syntax.
20692         * modules/di-set (License): Likewise.
20693         * modules/ino-map (License): Likewise.
20694         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
20696 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
20698         stdalign: port to Clang 3.0
20699         Problem reported by Simon Josefsson in
20700         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
20701         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
20702         which has <stdalign.h> but which does not define alignof.
20703         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
20705 2011-12-01  Eric Blake  <eblake@redhat.com>
20707         mktempd: silence dd usage
20708         * build-aux/mktempd (rand_bytes): Silence dd.
20710 2011-11-30  Simon Josefsson  <simon@josefsson.org>
20712         manywarnings: Don't mention gcc version in docstring.
20713         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
20714         Jim Meyering <meyering@redhat.com>.
20716 2011-11-30  Jim Meyering  <meyering@redhat.com>
20718         hash: mark a few floating point constants with "f" suffix
20719         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
20720         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
20721         floating point constants with "f", since they're destined to be
20722         saved/used as "float"s.
20724 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
20726         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
20727         * tests/test-float.c (test_long_double): Correct and re-enable the
20728         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
20730 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
20732         Avoid subtracting two pointers that don't point into the same block.
20733         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
20734         only pointers into the same memory block are subtracted. We cannot
20735         assume that sizeof (ptrdiff_t) == sizeof (void *).
20737 2011-11-29  Eric Blake  <eblake@redhat.com>
20739         maint.mk: add syntax check for use of compare from init.sh
20740         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
20741         moved here from coreutils.
20743         manywarnings: drop -Wunsuffixed-float-constants
20744         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
20745         '1.0D', which is the only way to silence this warning for 'double'.
20747 2011-11-29  Jim Meyering  <meyering@redhat.com>
20749         hash: mark compute_bucket_size with the pure attribute
20750         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
20752         quotearg, propername: correct pragma guard expression
20753         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
20754         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
20756 2011-11-28  Jim Meyering  <meyering@redhat.com>
20758         propername: do not mark proper_name with the const attribute
20759         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
20760         since it examines data pointed to by its parameter.
20761         * lib/propername.c (proper_name): Instead, add a pragma to suppress
20762         the suggestion from -Wsuggest-attribute=const.
20764         propername: mark one more function as const
20765         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
20767 2011-11-27  Jim Meyering  <meyering@redhat.com>
20769         mark functions with const and pure attributes
20771         Mark functions per suggestions from gcc-4.6 when using these options:
20772         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
20773         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
20774         Follow these guidelines: when possible, apply the attribute to
20775         an extern declaration, not to its definition.  Apply it to the
20776         definition only when the definition is static.
20777         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
20778         * lib/argv-iter.h (argv_iter_n_args): Likewise.
20779         * lib/base64.h (isbase64): Likewise.
20780         * lib/basename-lgpl.c (last_component, base_len): Likewise.
20781         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
20782         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
20783         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
20784         (c_tolower, c_toupper): Likewise.
20785         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
20786         * lib/chdir-long.c (find_non_slash): Likewise.
20787         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
20788         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
20789         * lib/file-type.h (file_type): Likewise.
20790         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
20791         * lib/filevercmp.c (verrevcmp): Likewise.
20792         * lib/freadahead.h (freadahead): Likewise.
20793         * lib/fts.c (fts_maxarglen): Likewise.
20794         * lib/hash-pjw.h (hash_pjw): Likewise.
20795         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
20796         * lib/hash.c (is_prime, next_prime): Likewise.
20797         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
20798         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
20799         (hash_table_ok, hash_get_first, hash_string): Likewise.
20800         (compute_bucket_size): Likewise.
20801         * lib/i-ring.h (i_ring_empty): Likewise.
20802         * lib/isnan.c (isnanl): Likewise.
20803         * lib/math.h (isnanl, rpl_isnanl): Likewise.
20804         * lib/memcasecmp.h (memcasecmp): Likewise.
20805         * lib/memchr2.h (memchr2): Likewise.
20806         * lib/memcmp2.h (memcmp2): Likewise.
20807         * lib/parse-datetime.y (lookup_zone): Likewise.
20808         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
20809         [!WINDOWS_SOCKETS]: Likewise.
20810         * lib/strnlen1.h (strnlen1): Likewise.
20811         * lib/uniwidth.in.h (uc_width): Likewise.
20812         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
20813         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
20814         (quoting_options_from_style): Add a comment.
20815         * lib/propername.h (proper_name): Add a comment.
20817 2011-11-27  Bruno Haible  <bruno@clisp.org>
20819         Remove unused macros from !_LIBC code in glibc-borrowed files.
20820         * lib/fnmatch.c (STRCOLL): Remove macro.
20821         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
20822         * lib/glob.c (__stat, __readdir64): Remove macros.
20823         * lib/tempname.c (__open64, __xstat64): Remove macros.
20824         Suggested by Paul Eggert.
20826 2011-11-27  Bruno Haible  <bruno@clisp.org>
20828         getcwd: Fix link error on MSVC 9.
20829         * modules/getcwd (Depends-on): Add readdir, rewinddir.
20831 2011-11-27  Bruno Haible  <bruno@clisp.org>
20833         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
20834         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
20835         HAVE_OPENDIR is 0.
20836         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
20837         HAVE_CLOSEDIR is 0.
20838         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
20839         is 0.
20840         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
20842 2011-11-27  Bruno Haible  <bruno@clisp.org>
20844         getcwd: Fix bug from 2011-08-17.
20845         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
20846         platforms that need it.
20847         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
20848         code of 4 to be a failure, not a success. This ensures that
20849         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
20851 2011-11-27  Bruno Haible  <bruno@clisp.org>
20853         binary-io tests: Avoid test failure on mingw when libtool is used.
20854         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
20855         Don't verify the size of t-bin-out1.tmp here.
20856         * tests/test-binary-io.sh: Verify it here.
20857         Reported by Simon Josefsson.
20859 2011-11-26  Bruno Haible  <bruno@clisp.org>
20861         Fix conflict between two instantiations of module 'unistd'.
20862         * gnulib-tool (func_emit_autoconf_snippet): Substitute
20863         ${include_guard_prefix} also in the autoconf snippet.
20864         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
20865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
20866         GNULIB_UNISTD_H_GETOPT.
20867         * modules/getopt-posix (configure.ac): Set the
20868         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
20869         * modules/getopt-gnu (configure.ac): Likewise.
20870         * modules/unistd (Makefile.am): Change the substitution value of
20871         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
20872         Reported by Simon Josefsson.
20874 2011-11-25  Bruno Haible  <bruno@clisp.org>
20876         pagealign_alloc: Doc and comments.
20877         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
20878         module.
20879         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
20881 2011-11-25  Jim Meyering  <meyering@redhat.com>
20883         test-update-copyright.sh: avoid false-positive failure
20884         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
20885         around false positive failure on Cygwin/Windows.  The latter was
20886         matching erroneously-created files with names like
20887         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
20889 2011-11-25  Simon Josefsson  <simon@josefsson.org>
20891         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
20892         * m4/valgrind-tests.m4: Check that the parameters that will be
20893         used works, not just a subset of them.  Reported by Bruno Haible
20894         <bruno@clisp.org>.
20896 2011-11-24  Jim Meyering  <meyering@redhat.com>
20898         test-stdalign.c: comment out long double tests
20899         * tests/test-stdalign.c: Don't try to reduce alignment of long double
20900         variables.  That provokes errors like this from gcc-4.7.0 20111124:
20901         error: '_Alignas' specifiers cannot reduce alignment of \
20902         'static_longdouble_alignas'.
20904 2011-11-22  Jim Meyering  <meyering@redhat.com>
20906         init.sh: make "compare /dev/null FILE" output more readable
20907         * tests/init.sh (compare_): Document the preferred order of arguments.
20908         (emit_diff_u_header_): New function.
20909         (compare_dev_null_): Emit a simulated diff, rather than just the
20910         contents of the unexpected file.  Suggestion from Bruno Haible.
20912 2011-11-21  Jim Meyering  <meyering@redhat.com>
20913             Eric Blake  <eblake@redhat.com>
20915         init.sh: work around OSF/1 5.1's mishandling of /dev/null
20916         * tests/init.sh: Make our compare function slightly more portable.
20917         Reported by Bruno Haible in
20918         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
20920 2011-11-21  Simon Josefsson  <simon@josefsson.org>
20922         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
20923         before using it, in code that ends up in config.h.
20925 2011-11-20  Bruno Haible  <bruno@clisp.org>
20927         getcwd: Work around getcwd bug on AIX 5..7.
20928         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
20929         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
20930         Use a different value for gl_cv_func_getcwd_path_max. Move the
20931         definition of HAVE_PARTLY_WORKING_GETCWD from here...
20932         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
20933         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
20934         Define HAVE_MINIMALLY_WORKING_GETCWD.
20935         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
20936         where it is not even minimally working, that is, on AIX.
20937         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
20938         m4/getcwd-path-max.m4.
20939         (main): Update exit code computation.
20940         * doc/posix-functions/getcwd.texi: Mention list of platforms where
20941         getcwd does not handle long file names.
20943 2011-11-20  Bruno Haible  <bruno@clisp.org>
20945         getcwd: Fix bug from 2009-09-10.
20946         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
20947         like "no".
20949 2011-11-20  Simon Josefsson  <simon@josefsson.org>
20951         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
20953 2011-11-20  Bruno Haible  <bruno@clisp.org>
20955         fma tests: Avoid shadowing local variables.
20956         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
20957         expected.
20959 2011-11-20  Bruno Haible  <bruno@clisp.org>
20961         copysignf tests: Fix.
20962         * tests/test-copysignf.c: Fix signature check.
20964 2011-11-20  Bruno Haible  <bruno@clisp.org>
20966         fma: Remove unused code.
20967         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
20968         unused macros.
20970 2011-11-20  Bruno Haible  <bruno@clisp.org>
20972         sethostname: Fix doc about AIX.
20973         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
20974         sethostname; it has it.
20976         sethostname: Mention more portability problems.
20977         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
20978         problem.
20979         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
20981 2011-11-19  Bruno Haible  <bruno@clisp.org>
20983         Depend on module fcntl-h when AT_FDCWD is used.
20984         * modules/utimens (Depends-on): Add fcntl-h.
20985         * modules/areadlinkat (Depends-on): Likewise.
20986         * modules/areadlinkat-with-size (Depends-on): Likewise.
20987         * modules/faccessat (Depends-on): Likewise.
20988         * modules/fchmodat (Depends-on): Likewise.
20989         * modules/fchownat (Depends-on): Likewise.
20990         * modules/getcwd (Depends-on): Likewise.
20991         * modules/mkdirat (Depends-on): Likewise.
20992         * modules/mkfifoat (Depends-on): Likewise.
20993         * modules/readlinkat (Depends-on): Likewise.
20994         * modules/symlinkat (Depends-on): Likewise.
20995         * modules/dup2-tests (Depends-on): Likewise.
20996         * modules/fdutimensat-tests (Depends-on): Likewise.
20997         * modules/futimens-tests (Depends-on): Likewise.
20999 2011-11-19  Bruno Haible  <bruno@clisp.org>
21001         euidaccess: Update a comment.
21002         * lib/euidaccess.c: Update comment about platforms with faccessat.
21004 2011-11-19  Bruno Haible  <bruno@clisp.org>
21006         openat: Fix file list.
21007         * modules/openat (Files): Remove lib/at-func.c.
21009 2011-11-19  Bruno Haible  <bruno@clisp.org>
21011         fstatat: Simplify.
21012         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
21013         gnulib should define rpl_fstatat, there is a
21014         "#define fstatat rpl_fstatat" in <sys/stat.h>.
21016 2011-11-19  Bruno Haible  <bruno@clisp.org>
21018         Ensure 'inline' can be used in tests/test-utimens-common.h.
21019         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
21020         * modules/futimens-tests (configure.ac): Likewise.
21021         * modules/utimens-tests (configure.ac): Likewise.
21022         * modules/utimensat-tests (configure.ac): Likewise.
21024 2011-11-19  Simon Josefsson  <simon@josefsson.org>
21026         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
21027         not hash_insert0.
21028         (hash_insert_if_absent): Doc fix.
21030 2011-11-19  Simon Josefsson  <simon@josefsson.org>
21032         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
21034 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
21036         test-getcwd: disambiguate exit status
21037         * tests/test-getcwd.c (test_long_name): Return 0..7.
21038         (main): Exit with an unambiguous exit status.  The old
21039         code yielded a mysterious mixture of two failure codes.
21041         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
21042         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
21043         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
21044         rpl_fstatat or fstatat.  This should fix the other problem
21045         reported by Kai Habel in
21046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
21047         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
21048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
21049         and I reproduced it on a Solaris 8 host we still have in production.
21051 2011-11-18  Jim Meyering  <meyering@redhat.com>
21053         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
21054         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
21055         Add a sentence to the comment.
21056         (hash_insert0): New function that simply calls hash_insert_if_absent.
21057         * lib/hash.h (hash_insert_if_absent): Declare it.
21058         (hash_insert0): Add deprecation attribute.
21059         (_GL_ATTRIBUTE_DEPRECATED): Define.
21060         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
21061         not hash_insert0.
21062         * NEWS: Mention it, even though it's not really an incompatible change.
21064 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
21066         openat: avoid compilation failure due to lack of <errno.h> inclusion
21067         * lib/openat.c: Include <errno.h>.
21069 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21071         * modules/getcwd (Depends-on): Add fdopendir.
21072         This fixes one of the two problems reported by Kai Habel in
21073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
21075         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
21076         stdalign problem reported by Ian Beckwith in
21077         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
21078         * modules/crypto/gc-arcfour (Depends-on):
21079         Depend conditionally on crypto/arcfour.
21080         * modules/crypto/gc-arctwo (Depends-on):
21081         Depend conditionally on crypto/arctwo.
21082         * modules/crypto/gc-des (Depends-on):
21083         Depend conditionally on crypto/des.
21084         * modules/crypto/gc-hmac-md5 (Depends-on):
21085         Depend conditionally on crypto/hmac-md5.
21086         * modules/crypto/gc-hmac-sha1 (Depends-on):
21087         Depend conditionally on crypto/hmac-sha1.
21088         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
21089         * modules/crypto/gc-md4 (Depends-on):
21090         Depend conditionally on crypto/md4.
21091         * modules/crypto/gc-md5 (Depends-on):
21092         Depend conditionally on crypto/md5.
21093         * modules/crypto/gc-rijndael (Depends-on):
21094         Depend conditionally on crypto/rijndael.
21095         * modules/crypto/gc-sha1 (Depends-on):
21096         Depend conditionally on crypto/sha1.
21097         * modules/crypto/gc-arcfour:
21098         * modules/crypto/gc-arctwo:
21099         * modules/crypto/gc-des:
21100         * modules/crypto/gc-hmac-md5:
21101         * modules/crypto/gc-hmac-sha1:
21102         * modules/crypto/gc-md2:
21103         * modules/crypto/gc-md4:
21104         * modules/crypto/gc-md5:
21105         * modules/crypto/gc-rijndael:
21106         * modules/crypto/gc-sha1:
21107         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
21108         now that the conditional dependencies do the work for us.
21110 2011-11-17  Jim Meyering  <meyering@redhat.com>
21112         tests: factor st_ctime-comparison out of two headers
21113         * tests/test-utimens-common.h (ctime_compare): Define.
21114         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
21115         * tests/test-lutimens.h (test_lutimens): Likewise.
21116         * tests/test-utimens.h (test_utimens): Likewise.
21118         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
21119         Invoke the test program via an init.sh-using wrapper.
21120         * tests/test-getcwd.sh: New file.
21121         * modules/getcwd-tests (Files): Add it.
21122         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
21124 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
21126         gitlog-to-changelog: support multi-author commits.
21127         The FSF cares about keeping track of all authors of patches to its
21128         projects, but Git doesn't provide obvious support for multi-author
21129         changesets. Consensus seems to be forming around the use of extra
21130         Signed-off-by inspired lines in the log message formatted as
21131         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
21132         multi-author commits between version control systems.
21133         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
21134         log message and output in standard ChangeLog multi-author format.
21135         Reported by Peter Rosin <peda@lysator.liu.se>
21137 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
21138             Bruno Haible  <bruno@clisp.org>
21140         Fix some modules' file list.
21141         * modules/fstatat (Files): Add m4/lstat.m4.
21142         * modules/openat (Files): Likewise.
21143         * modules/unlinkat (Files): Likewise.
21145 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
21147         maint.mk: fix tight-scope.mk generation in VPATH builds.
21148         * top/maint.mk (tight-scope.mk): Make sure to prefix file
21149         reference with $(srcdir) so that the file is found correctly even
21150         when running `make syntax-check' in a VPATH build.
21152 2011-11-13  Bruno Haible  <bruno@clisp.org>
21153             Jim Meyering  <meyering@redhat.com>
21155         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
21156         * tests/init.sh (compare): Remove "No differences encountered" or
21157         synonymous output from the 'diff' program.
21159 2011-11-13  Bruno Haible  <bruno@clisp.org>
21161         Makefile: Tweak indentation.
21162         * Makefile: Use tab as first character in every line that contains rule
21163         commands.
21165 2011-11-13  Bruno Haible  <bruno@clisp.org>
21167         Syntax check for copyright statements.
21168         * check-copyright: New file.
21169         * Makefile (sc_check_copyright): New rule.
21171 2011-11-13  Simon Josefsson  <simon@josefsson.org>
21173         * build-aux/git-version-gen: Add --prefix to configure the tag
21174         match string.
21176 2011-11-13  Simon Josefsson  <simon@josefsson.org>
21178         * build-aux/git-version-gen: Add --help and --version.
21180 2011-11-12  Jim Meyering  <meyering@redhat.com>
21182         revamp the other test-exclude?.sh scripts to use init.sh, too
21183         * tests/test-exclude1.sh: Use init.sh.
21184         * tests/test-exclude2.sh: Likewise.
21185         * tests/test-exclude3.sh: Likewise.
21186         * tests/test-exclude4.sh: Likewise.
21187         * tests/test-exclude5.sh: Likewise.
21188         * tests/test-exclude6.sh: Likewise.
21189         * tests/test-exclude7.sh: Likewise.
21190         * tests/test-exclude8.sh: Likewise.
21191         * modules/exclude-tests (Files): List init.sh.
21193         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
21194         These shell scripts ignored failure of the binary test-exclude,
21195         so making the latter return 77 didn't cause them to be skipped.
21196         * tests/test-exclude5.sh: Exit with test-exclude's error status
21197         when that program fails.  Revamp to use init.sh.
21198         * tests/test-exclude2.sh: Likewise.
21200         test-exclude: fix a typo
21201         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
21203 2011-11-11  Bruno Haible  <bruno@clisp.org>
21205         obstack: Fix compilation error on MSVC 9.
21206         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
21208 2011-11-11  Jim Meyering  <meyering@redhat.com>
21210         test-exclude: skip tests rather than failing on deficient systems
21211         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
21212         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
21213         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
21214         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
21216 2011-11-10  Bruno Haible  <bruno@clisp.org>
21218         ptsname_r test: Avoid gcc warning on glibc systems.
21219         * tests/test-ptsname_r.c (null_ptr): New function.
21220         (test_errors): Use it.
21222 2011-11-10  Bruno Haible  <bruno@clisp.org>
21224         ptsname_r: Avoid compilation error on OSF/1 5.1.
21225         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
21226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
21227         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
21228         function is not declared or incompatibly declared.
21229         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
21230         * modules/ptsname_r (Depends-on, configure.ac): Update.
21231         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
21233 2011-11-10  Bruno Haible  <bruno@clisp.org>
21235         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
21236         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
21237         When cross-compiling, guess yes on all platforms except AIX.
21238         Reported by Ludovic Courtès <ludo@gnu.org>.
21240 2011-11-09  Bruno Haible  <bruno@clisp.org>
21242         ptsname_r tests: Fix bugs.
21243         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
21244         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
21246 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21248         fstatat: work with cross-compilation
21249         Problem reported by Ludovic Courtès in
21250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
21251         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
21252         "cross-compiling" and assume the bug is present.  Replace
21253         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
21254         an inverted sense, to be more conservative about our assumptions.
21255         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
21257 2011-11-09  Bruno Haible  <bruno@clisp.org>
21259         Improve MODULES.html output.
21260         * modules/mkfifoat (Description): Use the word "function".
21261         * modules/readlinkat (Description): Likewise.
21262         * modules/symlinkat (Description): Likewise.
21264 2011-11-09  Eric Blake  <eblake@redhat.com>
21266         ptsname_r-tests: new test module
21267         * modules/ptsname_r-tests: New module.
21268         * tests/test-ptsname_r.c: New file.
21270         ptsname_r: new module
21271         * modules/ptsname_r: New module.
21272         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
21273         * lib/ptsname.c (__ptsname_r): Split...
21274         * lib/ptsname_r.c: ...into new file.
21275         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
21276         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
21277         * modules/stdlib (Makefile.am): Substitute witnesses.
21278         * lib/stdlib.in.h (ptsname_r): Declare it.
21279         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
21280         * MODULES.html.sh (Misc): Likewise.
21281         * modules/ptsname (Depends-on): Alter dependency.
21282         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
21284 2011-11-09  Jim Meyering  <meyering@redhat.com>
21286         announce-gen: be more concise when there's only one URL+tarball
21287         * build-aux/announce-gen (get_tool_versions): When you distribute
21288         only one type of tarball, combine the first two "Here are..."
21289         sections and make the key-checking grammar independent of
21290         how many tarballs there are.
21292 2011-11-09  Eric Blake  <eblake@redhat.com>
21294         openpty: provide a stub on mingw
21295         * lib/pty.in.h (includes): Provide forward declarations.
21296         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
21298         raise: fix mingw handling of SIGPIPE
21299         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
21301 2011-11-08  Bruno Haible  <bruno@clisp.org>
21303         More conditional dependencies.
21304         * modules/faccessat (Depends-on): Add conditions.
21305         * modules/fchmodat (Depends-on): Likewise.
21306         * modules/fchownat (Depends-on): Likewise.
21307         * modules/fstatat (Depends-on): Likewise.
21308         * modules/mkfifoat (Depends-on): Likewise.
21309         * modules/readlinkat (Depends-on): Likewise.
21310         * modules/symlinkat (Depends-on): Likewise.
21311         * modules/unlinkat (Depends-on): Likewise.
21312         * modules/utimensat (Depends-on): Likewise.
21313         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
21314         * modules/linkat (Depends-on): Refine the conditions.
21315         * modules/renameat (Depends-on): Likewise.
21317 2011-11-08  Bruno Haible  <bruno@clisp.org>
21319         faccessat: Move AC_LIBOBJ invocation to module description.
21320         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
21321         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
21322         invocation from here...
21323         * modules/faccessat (configure.ac): ... to here. Invoke
21324         gl_PREREQ_FACCESSAT.
21326 2011-11-08  Bruno Haible  <bruno@clisp.org>
21328         faccessat: Simplify autoconf macro.
21329         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
21330         gl_FUNC_EUIDACCESS.
21332 2011-11-08  Bruno Haible  <bruno@clisp.org>
21334         renameat: Fix dependencies.
21335         * modules/renameat (Depends-on): Add stdbool.
21337 2011-11-08  Bruno Haible  <bruno@clisp.org>
21339         mkfifoat: Fix module description.
21340         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
21341         not gl_UNISTD_MODULE_INDICATOR.
21343 2011-11-08  Bruno Haible  <bruno@clisp.org>
21345         fstatat: Remove unused dependency.
21346         * modules/fstatat (Depends-on): Remove fstat.
21348 2011-11-08  Simon Josefsson  <simon@josefsson.org>
21350         GNUmakefile: behave when Makefile is missing.
21351         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
21353 2011-11-08  Bruno Haible  <bruno@clisp.org>
21355         openat: Conditionalize dependencies.
21356         * lib/openat.c: Reduce the scope of some #includes.
21357         * modules/openat (Depends-on): Add conditions.
21359 2011-11-07  Jim Meyering  <meyering@redhat.com>
21361         maint.mk: extract GPG key ID without using a temporary file
21362         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
21363         without using a temporary file.  Based on a suggestion from Werner Koch
21364         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
21366 2011-11-07  Eric Blake  <eblake@redhat.com>
21368         grantpt: fix typo
21369         * lib/stdlib.in.h (grantpt): Check correct function.
21371         maint.mk: silence new syntax check
21372         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
21374 2011-11-06  Bruno Haible  <bruno@clisp.org>
21376         Doc about floating-point and math API.
21377         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
21378         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
21380 2011-11-06  Bruno Haible  <bruno@clisp.org>
21382         stdalign tests: Skip the test when compiled by Sun C.
21383         * tests/test-stdalign.c (main): Skip the test on Sun C.
21385 2011-11-06  Bruno Haible  <bruno@clisp.org>
21387         ansi-c++-opt: Complete the 2011-06-05 change.
21388         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
21389         does not support namespaces, set the variable to "no", not to ":".
21391 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21393         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
21395 2011-11-06  Bruno Haible  <bruno@clisp.org>
21397         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
21398         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
21399         (minus_zerol) [HP-UX]: New macro.
21400         (unary_minus) [HP-UX]: New function.
21401         (copysignl) [HP-UX]: Use unary_minus function.
21403 2011-11-06  Bruno Haible  <bruno@clisp.org>
21405         ldexp, ldexpf, ldexpl: Enhance tests.
21406         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
21407         and tests/test-ldexpl.c.
21408         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
21409         LDEXP, MIN_EXP, MAX_EXP): New macros.
21410         Include test-ldexp.h.
21411         (main): Just call test_function.
21412         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
21413         infinity.h, nan.h.
21414         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
21415         MAX_EXP): New macros.
21416         Include test-ldexp.h.
21417         (x, y): Remove variables.
21418         (main): Just call test_function.
21419         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
21420         infinity.h, nan.h.
21421         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
21422         MAX_EXP): New macros.
21423         Include test-ldexp.h.
21424         (x, y): Remove variables.
21425         (main): Just call test_function.
21426         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
21427         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
21428         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
21429         (Depends-on): Add isnand-nolibm, signbit, float.
21430         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
21431         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
21432         (Depends-on): Add isnanf-nolibm, signbit, float.
21434 2011-11-06  Bruno Haible  <bruno@clisp.org>
21436         math tests: Cosmetics.
21437         * tests/test-math-c++.cc: Reorder declarations.
21439 2011-11-05  Bruno Haible  <bruno@clisp.org>
21441         fma*: Simplify test.
21442         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
21443         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
21445         Tests for module 'fmal'.
21446         * modules/fmal-tests: New file.
21447         * tests/test-fmal1.c: New file.
21448         * tests/test-fmal2.c: New file.
21450         New module 'fmal'.
21451         * lib/math.in.h (fmal): New declaration.
21452         * lib/fmal.c: New file.
21453         * m4/fmal.m4: New file.
21454         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
21455         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
21456         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
21457         REPLACE_FMAL.
21458         * modules/fmal: New file.
21459         * doc/posix-functions/fmal.texi: Mention the new module and the various
21460         bugs.
21462         Tests for module 'fmaf'.
21463         * modules/fmaf-tests: New file.
21464         * tests/test-fmaf1.c: New file.
21465         * tests/test-fmaf2.c: New file.
21467         New module 'fmaf'.
21468         * lib/math.in.h (fmaf): New declaration.
21469         * lib/fmaf.c: New file.
21470         * m4/fmaf.m4: New file.
21471         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
21472         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
21473         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
21474         REPLACE_FMAF.
21475         * modules/fmaf: New file.
21476         * doc/posix-functions/fmaf.texi: Mention the new module and the various
21477         bugs.
21479         Tests for module 'fma'.
21480         * modules/fma-tests: New file.
21481         * tests/test-fma1.c: New file.
21482         * tests/test-fma1.h: New file.
21483         * tests/test-fma2.c: New file.
21484         * tests/test-fma2.h: New file.
21486         New module 'fma'.
21487         * lib/math.in.h (fma): New declaration.
21488         * lib/fma.c: New file.
21489         * m4/fma.m4: New file.
21490         * m4/fegetround.m4: New file.
21491         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
21492         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
21493         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
21494         REPLACE_FMA.
21495         * modules/fma: New file.
21496         * doc/posix-functions/fma.texi: Mention the new module and the various
21497         bugs.
21499         Extend gl_MATHFUNC.
21500         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
21501         Support 'void' as argument type.
21502         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
21504 2011-11-05  Jim Meyering  <meyering@redhat.com>
21506         maint.mk: also prohibit inclusion of dirent.h without use
21507         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
21509 2011-11-05  Bruno Haible  <bruno@clisp.org>
21511         ldexpl tests: Avoid test failure on MSVC 9.
21512         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
21513         value. Needed in order to enforce the conversion from a value greater
21514         than LDBL_MAX to Infinity.
21516 2011-11-05  Bruno Haible  <bruno@clisp.org>
21518         New modules 'at-internal', 'openat-h', split off from module 'openat'.
21519         * modules/at-internal: New file, extracted from modules/openat.
21520         * modules/openat-h: New file.
21521         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
21522         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
21523         * modules/openat (Description): Add reference to POSIX function.
21524         (Files): Remove lib/openat.h, lib/openat-proc.c.
21525         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
21526         intprops, unistd.
21527         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
21528         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
21529         gl_FCNTL_MODULE_INDICATOR.
21530         (Include): Remove unistd.h, openat.h.
21531         * modules/areadlinkat (Files): Add lib/at-func.c.
21532         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
21533         openat-die, openat-h, save-cwd.
21534         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
21535         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
21536         openat-die, openat-h, save-cwd, unistd.
21537         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
21538         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
21539         openat-h, save-cwd. Remove fcntl-h, openat.
21540         * modules/fchmodat (Files): Remove lib/openat.h.
21541         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
21542         openat, stdbool, unistd.
21543         * modules/fchownat (Files): Remove lib/openat.h.
21544         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
21545         openat, stdbool, sys_stat.
21546         * modules/fdopendir (Files): Remove lib/openat-priv.h,
21547         lib/openat-proc.c.
21548         (Depends-on): Add at-internal.
21549         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
21550         * modules/fstatat (Files): Remove lib/openat.h.
21551         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
21552         stdbool, unistd.
21553         * modules/fts (Depends-on): Add openat-h.
21554         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
21555         openat.
21556         * modules/mkdirat (Files): Remove lib/openat.h.
21557         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
21558         openat, stdbool, sys_stat.
21559         * modules/mkfifoat (Files): Add lib/at-func.c.
21560         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
21561         openat-h, save-cwd. Remove fcntl-h, openat.
21562         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
21563         * modules/readlinkat (Files): Add lib/at-func.c.
21564         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
21565         openat-h, save-cwd. Remove fcntl-h, openat.
21566         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
21567         openat.
21568         * modules/selinux-at (Files): Add lib/at-func.c.
21569         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
21570         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
21571         * modules/symlinkat (Files): Add lib/at-func.c.
21572         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
21573         openat-h, save-cwd. Remove fcntl-h, openat.
21574         * modules/unlinkat (Files): Remove lib/openat.h.
21575         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
21576         stdbool.
21577         * modules/utimensat (Files): Add lib/at-func.c.
21578         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
21579         openat-die, openat-h, save-cwd.
21580         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
21581         * modules/fdutimensat-tests (Depends-on): Add openat.
21582         * modules/fstatat-tests (Depends-on): Add openat-h.
21583         * modules/readlinkat-tests (Depends-on): Add openat.
21584         * modules/symlinkat-tests (Depends-on): Add openat.
21586 2011-11-05  Bruno Haible  <bruno@clisp.org>
21588         openat: Include <stdbool.h>.
21589         * lib/openat.c: Include <stdbool.h>.
21591 2011-11-04  Bruno Haible  <bruno@clisp.org>
21593         fchownat, renameat, unlinkat: Fix dependencies.
21594         * modules/fchownat (Depends-on): Add fstatat.
21595         * modules/renameat (Depends-on): Likewise.
21596         * modules/unlinkat (Depends-on): Likewise.
21598 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
21600         openat: remove direct dependency on dirent
21601         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
21602         and hasn't been needed ever since fdopendir was split into its own
21603         module on 2009-08-31.
21604         * modules/openat (Depends-on): Remove dirent.
21606 2011-11-04  Bruno Haible  <bruno@clisp.org>
21608         renameat: Optimize code size.
21609         * modules/renameat (configure.ac): Don't compile at-func2.c if
21610         REPLACE_RENAMEAT is 1.
21612 2011-11-04  Bruno Haible  <bruno@clisp.org>
21614         openat tests: Fix file list.
21615         * modules/openat-tests (Files): Add tests/test-open.h.
21617 2011-11-04  Bruno Haible  <bruno@clisp.org>
21619         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
21620         * modules/fchmodat (Depends-on): Add openat-die.
21621         * modules/fchownat (Depends-on): Likewise.
21622         * modules/linkat (Depends-on): Likewise.
21623         * modules/renameat (Depends-on): Likewise.
21624         * modules/openat (Depends-on): Add dirent.
21626 2011-11-04  Jim Meyering  <meyering@redhat.com>
21628         at-func*.c: fix comments
21629         * lib/at-func2.c: Correct/improve first-line comment.
21630         * lib/at-func.c: Correct grammar in first-line comment.
21632 2011-11-04  Bruno Haible  <bruno@clisp.org>
21634         New module 'mkdirat', split off from module 'openat'.
21635         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
21636         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
21637         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
21638         * modules/mkdirat: New file, extracted from modules/openat.
21639         * modules/openat (Files): Remove lib/mkdirat.c.
21640         (Depends-on): Remove mkdir.
21641         (configure.ac): Remove AC_LIBOBJ of mkdirat.
21642         (Include): Remove <sys/stat.h>.
21643         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
21644         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
21645         tests/test-mkdir.h.
21646         (Depends-on): Remove ignore-value.
21647         (Makefile.am): Remove rules for test-mkdirat.
21648         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
21649         of module 'openat'.
21650         * NEWS: Mention the change.
21652 2011-11-04  Bruno Haible  <bruno@clisp.org>
21654         closedir: Avoid warning on mingw.
21655         * lib/closedir.c: Include <unistd.h>.
21657 2011-11-04  Bruno Haible  <bruno@clisp.org>
21659         New module 'fstatat', split off from module 'openat'.
21660         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
21661         defined.
21662         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
21663         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
21664         gl_FUNC_FSTATAT.
21665         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
21666         * modules/fstatat: New file, extracted from modules/openat.
21667         * modules/openat (Files): Remove lib/fstatat.c.
21668         (Depends-on): Remove lstat.
21669         (configure.ac): Remove AC_LIBOBJ of fstatat.
21670         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
21671         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
21672         tests/test-lstat.h, tests/test-stat.h.
21673         (Depends-on): Remove getcwd-lgpl.
21674         (Makefile.am): Remove rules for test-fstatat.
21675         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
21676         of module 'openat'.
21677         * NEWS: Mention the change.
21678         * modules/getcwd (Depends-on): Add fstatat.
21679         * modules/linkat (Depends-on): Likewise.
21680         * modules/mkfifoat-tests (Depends-on): Likewise.
21681         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
21683 2011-11-03  Bruno Haible  <bruno@clisp.org>
21685         New module 'unlinkat', split off from module 'openat'.
21686         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
21687         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
21688         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
21689         * modules/unlinkat: New file, extracted from modules/openat. Correct
21690         the dependency conditions.
21691         * modules/openat (Files): Remove lib/unlinkat.c.
21692         (Depends-on): Remove rmdir, unlink.
21693         (configure.ac): Remove AC_LIBOBJ of unlinkat.
21694         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
21695         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
21696         tests/test-rmdir.h, tests/test-unlink.h.
21697         (Depends-on): Remove unlinkdir.
21698         (Makefile.am): Remove rules for test-unlinkat.
21699         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
21700         of module 'openat'.
21701         * NEWS: Mention the change.
21702         * modules/linkat-tests (Depends-on): Add unlinkat.
21703         * modules/mkfifoat-tests (Depends-on): Likewise.
21704         * modules/readlinkat-tests (Depends-on): Likewise.
21706 2011-11-02  Bruno Haible  <bruno@clisp.org>
21708         New module 'fchmodat', split off from module 'openat'.
21709         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
21710         defined.
21711         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
21712         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
21713         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
21714         * modules/fchmodat: New file, extracted from modules/openat.
21715         * modules/openat (Files): Remove lib/fchmodat.c.
21716         (configure.ac): Remove AC_LIBOBJ of fchmodat.
21717         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
21718         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
21719         (Makefile.am): Remove rules for test-fchmodat.
21720         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
21721         of module 'openat'.
21722         * NEWS: Mention the change.
21724 2011-11-02  Jim Meyering  <meyering@redhat.com>
21726         putenv: indent #definition of "environ" to placate cppi
21727         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
21729         gitlog-to-changelog: provide a ChangeLog-repair mechanism
21730         Git logs are often treated as immutable, because editing them
21731         changes the SHA1 checksums of all descendants.  Thus, errors in
21732         git logs tend to stay there forever.  However, when we generate
21733         a ChangeLog file -- typically for distribution -- from that git log,
21734         we can actually make corrections in the generated file.  The key
21735         lies in recording in machine-readable/applicable form the desired
21736         corrections.  See --help for description and an example.
21737         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
21738         (usage): Describe it; alphabetize option descriptions.
21739         (main): Honor the new option, carefully.
21741 2011-11-01  Jim Meyering  <meyering@redhat.com>
21743         gitlog-to-changelog: avoid an infloop
21744         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
21745         that ends up being empty.
21747 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
21749         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
21750         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
21751         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
21752         contains (possibly-quoted) backslashes.  This should avoid
21753         all-too-common shell bugs if COMPLICATED contains backslashes in
21754         the "wrong" places.  Reported by David Evans in
21755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
21756         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
21757         because we want ASCII ranges.  Is there some reason we don't use
21758         the C locale everywhere in this script?
21759         (func_module, top level): Avoid unwanted pathname expansion when
21760         $repo_url_prefix or $repo_url_suffix_repl contain shell
21761         metacharacters like '?' and '*'.
21763 2011-11-01  Bruno Haible  <bruno@clisp.org>
21765         fchownat: Improve description.
21766         * modules/fchownat (Description): Add link to function.
21768 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
21770         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
21771         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
21772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
21773         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
21775 2011-11-01  Bruno Haible  <bruno@clisp.org>
21777         alignof: Avoid collision with stdalign module.
21778         * lib/alignof.h (alignof): Remove macro.
21779         * NEWS: Mention the change.
21780         Reported by Paul Eggert.
21782 2011-11-01  Bruno Haible  <bruno@clisp.org>
21784         New module 'fchownat', split off from module 'openat'.
21785         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
21786         defined.
21787         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
21788         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
21789         invoke gl_FUNC_FCHOWNAT.
21790         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
21791         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
21792         * modules/fchownat: New file, extracted from modules/openat.
21793         * modules/openat (Files): Remove lib/fchownat.c.
21794         (Depends-on): Remove lchown.
21795         (configure.ac): Remove AC_LIBOBJ of fchownat.
21796         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
21797         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
21798         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
21799         (Depends-on): Remove mgetgroups, usleep, stat-time.
21800         (configure.ac): Remove test for getegid.
21801         (Makefile.am): Remove rules for test-fchownat.
21802         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
21803         of module 'openat'.
21804         * NEWS: Mention the change.
21806 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
21808         stdalign: port better to MSVC and to Sun C 5.11
21809         This fixes some of the problems reported by Bruno Haible in
21810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
21811         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
21812         shortcomings of MSVC and of Sun C 5.11.
21813         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
21814         around __declspec arg.
21815         * modules/stdalign-tests (Files): Add tests/macros.h.
21816         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
21817         Include macros.h, for ASSERT.
21818         (DECLARE_ALIGNED): Remove.
21819         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
21820         to catch bug), and to 1 if not (simplifies the rest of the code).
21821         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
21822         (CHECK_AUTO): Remove.
21823         (CHECK_ALIGNED): Check only the alignment of the static vars,
21824         since auto var alignment isn't supported by Sun C 5.11.
21825         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
21826         ASSERT failures are easier to diagnose.
21828 2011-10-31  Bruno Haible  <bruno@clisp.org>
21830         doc about some IRIX 5.3 problems.
21831         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
21832         on IRIX 5.3.
21833         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
21834         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
21835         5.3.
21836         * doc/posix-functions/grantpt.texi: Likewise.
21837         * doc/posix-functions/unlockpt.texi: Likewise.
21838         * doc/posix-functions/lgamma.texi: Likewise.
21839         * doc/posix-functions/nextafter.texi: Likewise.
21840         * doc/posix-functions/remainder.texi: Likewise.
21841         * doc/posix-functions/select.texi: Mention misplaced declaration on
21842         IRIX 5.3.
21843         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21845 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
21847         gitlog-to-changelog: fix git-log invocation.
21848         git-log mishandles date strings before 1970-01-01 UTC, and there is
21849         no use to specify --since=1970-01-01 by default anyway.
21850         * build-aux/gitlog-to-changelog: By default, when no --since option
21851         was given, do not specify explicit --since option to git-log.
21853 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
21855         gitlog-to-changelog: new option --append-dot.
21856         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
21857         first non-blank line of each commit message terminated with a dot.
21859 2011-10-30  Bruno Haible  <bruno@clisp.org>
21861         ffsl, ffsll: Avoid compilation error due to 'restrict'.
21862         * lib/ffsl.h: Include <config.h>.
21863         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
21865 2011-10-30  Jim Meyering  <meyering@redhat.com>
21867         GNUmakefile: reenable "make syntax-check" for most projects
21868         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
21869         build-aux variable", "syntax-check" would do nothing but succeed with
21870         the "No version control files detected..." diagnostic (unless you
21871         happened to override _build-aux via cfg.mk).
21872         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
21873         to precede inclusion of maint.mk.  Otherwise, these variables would
21874         be used undefined in any project that does not override the default.
21876 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
21878         gitlog-to-changelog: treat a message with only blank lines as empty.
21879         * build-aux/gitlog-to-changelog: Move the code that removes leading and
21880         trailing blank lines before the code that issues a warning about an
21881         empty commit message.
21883 2011-10-30  Jim Meyering  <meyering@redhat.com>
21885         test-parse-datetime.c: avoid new DST-related false positive test failure
21886         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
21887         based on the time/date we'll convert, not the current time.
21888         Otherwise, the moment we cross a DST boundary like today's in
21889         Europe, (CEST to CET), that offset ends up being one hour off.
21891 2011-10-27  Bruno Haible  <bruno@clisp.org>
21893         fstat: Tweak documentation.
21894         * modules/fstat (Description): More precise description.
21896 2011-10-27  Bruno Haible  <bruno@clisp.org>
21898         Update documentation regarding 'largefile' module.
21899         * doc/posix-functions/fstat.texi: Tweak wording.
21900         * doc/posix-functions/opendir.texi: Mention that the module fixes the
21901         problems with huge directories and/or small ino_t types.
21902         * doc/posix-functions/readdir.texi: Likewise.
21903         * doc/posix-functions/rewinddir.texi: Likewise.
21905 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
21907         maint.mk: don't maintain a second build-aux variable.
21908         * maint.mk (build_aux): Removed.  The maintainer-makefile module
21909         depends on GNUmakefile, which already maintains a cfg.mk
21910         overridable $(_build-aux) for projects with a non-standard
21911         build-aux directory location, although without the $(srcdir)
21912         prefix.  Use that variable consistently instead of introducing a
21913         second one.  Adjust all call sites.
21915 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
21917         Add stdalign module and use it in other modules.
21918         This is based on a previous proposal by Bruno Haible
21919         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
21921         stdalign: new module
21922         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
21923         * modules/stdalign: New files.
21924         * MODULES.html.sh (c1x_core_properties): Add stdalign.
21925         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
21927         stdalign-tests: new module
21928         * modules/stdalign-tests, tests/test-stdalign.c: New files.
21930         argp: use stdalign
21931         * lib/argp-parse.c: Include <stdalign.h>.
21932         (alignof): Remove.
21933         * modules/argp (Depends-on): Add stdalign.
21935         crypto libraries: use stdalign
21936         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
21937         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
21938         Do not include <stdlib.h> twice, in md4.c.
21939         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
21940         because we are accessing a pointer's bit-pattern, not a size.
21941         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
21942         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
21943         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
21944         * modules/crypto/sha512: Likewise.
21946         sys_socket: use stdalign, not alignof
21947         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
21948         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
21950 2011-10-27  Bruno Haible  <bruno@clisp.org>
21952         raise test: Avoid a test failure on Linux/MIPS.
21953         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
21954         because 99 is a valid signal on Linux/MIPS.
21956 2011-10-27  Bruno Haible  <bruno@clisp.org>
21958         nonblocking tests: Fix test failure on Linux/MIPS.
21959         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
21960         Set to 270000.
21962 2011-10-27  Bruno Haible  <bruno@clisp.org>
21964         utimensat: Work around problem on Linux/hppa.
21965         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
21966         values.
21967         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
21969 2011-10-25  Jim Meyering  <meyering@redhat.com>
21971         maint.mk: fix a bug in sc_prohibit_stddef_without_use
21972         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
21973         after symbols like NULL, size_t, etc.
21974         Reported by Alfred M. Szmidt.
21976         maint.mk: exempt ENODATA from a syntax-check rule
21977         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
21978         from the sc_prohibit_always-defined_macros syntax-check rule.
21979         Add a comment.  See this for more details:
21980         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
21982 2011-10-23  Jim Meyering  <meyering@redhat.com>
21984         fts: close parent dir FD before returning from post-traversal fts_read
21985         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
21986         unlink A, even though an FD open on A remained.  This is suboptimal
21987         (holding a file descriptor open longer than needed), but otherwise not
21988         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
21989         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
21990         that represents a real problem: it causes the removal of A to fail
21991         with e.g., "rm: cannot remove `A': Device or resource busy"
21993         fts visits each directory twice and keeps a cache (fts_fd_ring) of
21994         directory file descriptors.  After completing the final, FTS_DP,
21995         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
21996         cache, but then proceeded to add a new FD to it via the subsequent
21997         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
21998         final file descriptor would be closed only via fts_close's call to
21999         fd_ring_clear.  Now, it is usually closed earlier, via the final
22000         FTS_DP-returning fts_read call.
22001         * lib/fts.c (restore_initial_cwd): New function, converted from
22002         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
22003         Update callers.
22004         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
22005         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
22007 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
22008             Bruno Haible  <bruno@clisp.org>
22009             Jim Meyering  <jim@meyering.net>
22011         readme-release: improve safety of release prep instructions.
22012         * README-release: Don't git pull all branches when only master
22013         is needed for the release process.
22014         Run make maintainer-clean before changing trees and merging.
22015         Don't try to run ./configure right after git pull in case files
22016         that influence the bootstrap process have changed, move the
22017         ./configure step to after running ./bootstrap.
22018         Don't bootstrap "one last time"... it's the first time!
22020 2011-10-22  Bruno Haible  <bruno@clisp.org>
22022         errno, strerror-override: Support for MSVC 10.
22023         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
22024         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
22025         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
22026         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
22027         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
22028         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
22029         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
22030         Assign values compatible with MSVC 10.
22031         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
22032         New macros.
22033         (GNULIB_defined_EWINSOCK): New macro.
22034         * lib/strerror-override.c (strerror_override): Update accordingly.
22035         * lib/strerror-override.h: Likewise.
22036         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
22037         longer equal to the corresponding errno value.
22038         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
22040 2011-10-22  Bruno Haible  <bruno@clisp.org>
22042         perror: Recognize when test program crashes.
22043         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
22044         strerror, set gl_cv_func_perror_works to no.
22045         Reported by Daniel Richard G. <skunk@iskunk.org>.
22047         perror: Fix indentation.
22048         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
22050 2011-10-22  Bruno Haible  <bruno@clisp.org>
22052         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
22053         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
22054         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
22055         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
22056         functions, not as a macro.
22057         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
22058         macros.
22059         (isfinite, isinf, isnan, signbit): Check overloaded functions and
22060         absence of macro.
22061         Suggested by Eric Blake.
22062         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
22064 2011-10-21  Bruno Haible  <bruno@clisp.org>
22066         relocatable-prog-wrapper: Don't leave object files behind.
22067         * build-aux/install-reloc: Re-synchronize list of .o files to be
22068         removed with list of compilation units.
22070 2011-10-20  Bruno Haible  <bruno@clisp.org>
22072         openpty, posix_openpt: Remove code duplication.
22073         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
22074         * lib/openpty.c: Include <stdlib.h>.
22075         (openpty): Use posix_openpt on all platforms except IRIX.
22076         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
22078 2011-10-20  Bruno Haible  <bruno@clisp.org>
22080         unlockpt: Detect invalid argument.
22081         * lib/unlockpt.c: Include <fcntl.h>.
22082         (unlockpt): Check whether fd is valid, using fcntl().
22083         * modules/unlockpt (Depends-on): Add fcntl-h.
22085 2011-10-20  Bruno Haible  <bruno@clisp.org>
22087         openpty: Avoid compilation error on AIX 6.1.
22088         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
22090 2011-10-20  Bruno Haible  <bruno@clisp.org>
22092         posix_openpt: Support for OpenBSD.
22093         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
22094         (posix_openpt) [OpenBSD]: New code.
22095         * lib/grantpt.c: Include <fcntl.h>.
22096         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
22097         * modules/grantpt (Depends-on): Add fcntl-h.
22099 2011-10-20  Bruno Haible  <bruno@clisp.org>
22101         posix_openpt test: Coding style.
22102         * tests/test-posix_openpt.c: Use GNU coding style.
22104 2011-10-20  Bruno Haible  <bruno@clisp.org>
22106         grantpt: Support --avoid=pt_chown.
22107         * modules/grantpt (Files): Add lib/pty-private.h.
22109 2011-10-20  Bruno Haible  <bruno@clisp.org>
22111         posix_openpt: Fix autoconf macro.
22112         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
22113         unneeded check for _getpty.
22115 2011-10-20  Bruno Haible  <bruno@clisp.org>
22117         openpty: Update comments.
22118         * lib/openpty.c: Add comments about Minix.
22120 2011-10-19  Eric Blake  <eblake@redhat.com>
22122         openpty: relax license
22123         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
22125         pt_chown: use configmake to simplify build
22126         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
22128         ptsname and others: relax license
22129         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
22130         * modules/unlockpt (License): Likewise.
22131         * modules/pt_chown (License): Likewise.
22132         * modules/ptsname (License): Likewise.
22133         * modules/ttyname_r (License): Likewise.
22135 2011-10-19  Jim Meyering  <meyering@redhat.com>
22137         posix_openpt: remove spurious #endif
22138         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
22140 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
22142         maint.mk: Respect $(build_aux) in web-manual rule.
22143         * top/maint.mk (web-manual): Find gen-announce script in user's
22144         $(build_aux) directory instead of hard-coding 'build-aux'.
22146 2011-10-19  Bruno Haible  <bruno@clisp.org>
22148         posix_openpt: Fix compilation error.
22149         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
22150         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
22151         Mention the openpty module as an alternative.
22153 2011-10-19  Bruno Haible  <bruno@clisp.org>
22155         Support for old NeXTstep 3.3 frexp().
22156         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
22157         execution time of the test to 5 seconds.
22158         Reported by Daniel Richard G. <skunk@iskunk.org>.
22160 2011-10-19  Bruno Haible  <bruno@clisp.org>
22162         Support for old NeXTstep 3.3 sed.
22163         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
22164         part, use /.../, not \|...|. Escape periods in the header file name.
22165         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
22166         Reported by Daniel Richard G. <skunk@iskunk.org>.
22168 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
22170         Support for old NeXTstep 3.3 gcc.
22171         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
22172         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
22173         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
22174         * lib/spawn.in.h (_Restrict_arr_): Likewise.
22175         * lib/regex.h (_Restrict_arr_): Likewise.
22176         * lib/regex_internal.h (re_token_t): Likewise.
22177         * lib/regexec.c (check_node_accept_bytes): Likewise.
22178         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
22180 2011-10-18  Eric Blake  <eblake@redhat.com>
22182         posix_openpt: new module
22183         * modules/posix_openpt: New module.
22184         * m4/posix_openpt.m4: New file.
22185         * lib/posix_openpt.c: Likewise.
22186         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
22187         (gl_STDLIB_H_DEFAULTS): Set defaults.
22188         * modules/stdlib (Makefile.am): Substitute macros.
22189         * lib/stdlib.in.h (posix_openpt): Declare.
22190         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
22191         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
22192         * modules/posix_openpt-tests: New test module.
22193         * tests/test-posix_openpt.c: New test.
22195 2011-10-15  Bruno Haible  <bruno@clisp.org>
22197         xstrtoll: Fix compilation failure.
22198         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
22199         from lib/strtol.c.
22200         * doc/posix-headers/limits.texi: Mention missing numerical limits on
22201         some platforms.
22202         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22204 2011-10-15  Bruno Haible  <bruno@clisp.org>
22206         vasnprintf: Optimize bit search operation.
22207         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
22208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
22209         gl_DOUBLE_EXPONENT_LOCATION.
22210         * modules/vasnprintf (Files): Add m4/exponentd.m4.
22211         * modules/unistdio/u8-vasnprintf (Files): Likewise.
22212         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
22213         * modules/unistdio/u16-vasnprintf (Files): Likewise.
22214         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
22215         * modules/unistdio/u32-vasnprintf (Files): Likewise.
22216         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
22217         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
22218         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
22220 2011-10-15  Bruno Haible  <bruno@clisp.org>
22222         vasnprintf: Fix comments.
22223         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
22225 2011-10-14  Bruno Haible  <bruno@clisp.org>
22227         Tests for module 'integer_length_ll'.
22228         * modules/integer_length_ll-tests: New file.
22229         * tests/test-integer_length_ll.c: New file.
22231         New module 'integer_length_ll'.
22232         * lib/integer_length_ll.c: New file.
22233         * modules/integer_length_ll: New file.
22235 2011-10-14  Bruno Haible  <bruno@clisp.org>
22237         Tests for module 'integer_length_l'.
22238         * modules/integer_length_l-tests: New file.
22239         * tests/test-integer_length_l.c: New file.
22241         New module 'integer_length_l'.
22242         * lib/integer_length_l.c: New file.
22243         * modules/integer_length_l: New file.
22245 2011-10-14  Bruno Haible  <bruno@clisp.org>
22247         Tests for module 'integer_length'.
22248         * modules/integer_length-tests: New file.
22249         * tests/test-integer_length.c: New file.
22251         New module 'integer_length'.
22252         * lib/integer_length.h: New file.
22253         * lib/integer_length.c: New file.
22254         * modules/integer_length: New file.
22256 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
22258         popen: Fix dependency conditions.
22259         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
22261 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
22263         perror: Fix autoconf test.
22264         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
22265         <stdlib.h> and <string.h>.
22267 2011-10-14  Bruno Haible  <bruno@clisp.org>
22269         ffsl: Optimize on 64-bit platforms.
22270         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
22271         unrolling.
22273 2011-10-13  Bruno Haible  <bruno@clisp.org>
22275         ffsl: Optimize on 32-bit platforms.
22276         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
22277         use ffs() without a loop.
22279         ffsl, ffsll: Optimize for GCC.
22280         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
22281         * lib/ffsl.c (GCC_BUILTIN): New macro.
22282         * lib/ffsll.c (GCC_BUILTIN): Likewise.
22284 2011-10-13  Bruno Haible  <bruno@clisp.org>
22286         ffs, bcopy, memset: Support symbol renaming via config.h.
22287         * lib/ffs.c: Include <config.h>.
22288         * lib/bcopy.c: Likewise.
22289         * lib/memset.c: Likewise.
22291 2011-10-10  Bruno Haible  <bruno@clisp.org>
22293         atanl: Simplify for platforms where 'long double' == 'double'.
22294         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
22295         alternative implementation.
22296         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22297         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22298         * modules/atanl (Depends-on): Add atan. Update conditions.
22300 2011-10-10  Bruno Haible  <bruno@clisp.org>
22302         acosl: Simplify for platforms where 'long double' == 'double'.
22303         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
22304         alternative implementation.
22305         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22306         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22307         * modules/acosl (Depends-on): Add acos. Update conditions.
22309 2011-10-10  Bruno Haible  <bruno@clisp.org>
22311         asinl: Simplify for platforms where 'long double' == 'double'.
22312         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
22313         alternative implementation.
22314         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22315         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22316         * modules/asinl (Depends-on): Add asin. Update conditions.
22318 2011-10-10  Bruno Haible  <bruno@clisp.org>
22320         tanl: Simplify for platforms where 'long double' == 'double'.
22321         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
22322         implementation.
22323         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22324         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22325         * modules/tanl (Depends-on): Add tan. Update conditions.
22326         (configure.ac): Don't compile trigl.c if
22327         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22329 2011-10-10  Bruno Haible  <bruno@clisp.org>
22331         cosl: Simplify for platforms where 'long double' == 'double'.
22332         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
22333         implementation.
22334         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22335         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22336         * modules/cosl (Depends-on): Add cos. Update conditions.
22337         (configure.ac): Don't compile sincosl.c and trigl.c if
22338         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22340 2011-10-10  Bruno Haible  <bruno@clisp.org>
22342         sinl: Simplify for platforms where 'long double' == 'double'.
22343         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
22344         implementation.
22345         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22346         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22347         * modules/sinl (Depends-on): Add sin. Update conditions.
22348         (configure.ac): Don't compile sincosl.c and trigl.c if
22349         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22351 2011-10-10  Bruno Haible  <bruno@clisp.org>
22353         logl: Simplify for platforms where 'long double' == 'double'.
22354         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
22355         implementation.
22356         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22357         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22358         * modules/logl (Depends-on): Add log. Update conditions.
22360 2011-10-10  Bruno Haible  <bruno@clisp.org>
22362         expl: Simplify for platforms where 'long double' == 'double'.
22363         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
22364         implementation.
22365         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22366         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22367         * modules/expl (Depends-on): Add exp. Update conditions.
22369 2011-10-10  Bruno Haible  <bruno@clisp.org>
22371         sqrtl: Simplify for platforms where 'long double' == 'double'.
22372         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
22373         alternative implementation.
22374         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22375         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22376         * modules/sqrtl (Depends-on): Update conditions.
22378 2011-10-10  Bruno Haible  <bruno@clisp.org>
22380         ldexpl: Simplify for platforms where 'long double' == 'double'.
22381         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
22382         alternative implementation.
22383         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22384         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22385         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
22387 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
22389         ffsll: set correct witness
22390         * modules/ffsll (configure.ac): Fix typo.
22392 2011-10-10  Bruno Haible  <bruno@clisp.org>
22394         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
22395         * lib/printf-frexpl.c: Include <config.h>.
22396         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
22397         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
22398         second time.
22399         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
22400         gl_LONG_DOUBLE_VS_DOUBLE.
22401         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
22402         conditions.
22404 2011-10-10  Bruno Haible  <bruno@clisp.org>
22406         frexpl: Simplify for platforms where 'long double' == 'double'.
22407         * lib/frexpl.c: Include <config.h>.
22408         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
22409         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
22410         time.
22411         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22412         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22413         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
22414         * modules/frexpl (Depends-on): Add frexp. Update conditions.
22415         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
22416         conditions.
22418 2011-10-10  Jim Meyering  <meyering@redhat.com>
22420         test-renameat: don't leave behind a temporary file
22421         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
22422           ERROR: files left in build directory after distclean:
22423           ./gltests/test-renameat.too
22424           make[1]: *** [distcleancheck] Error 1
22425         Reported by Tom G. Christensen.
22427 2011-10-09  Bruno Haible  <bruno@clisp.org>
22429         rint: Determine RINT_LIBM correctly on AIX 7.
22430         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
22431         directly, not only through a function pointer. Also accept an optional
22432         4th argument with extra code.
22433         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
22434         rintf() call by gcc when optimizing.
22436         mathfunc.m4: Refactor.
22437         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
22438         m4 variable.
22440 2011-10-09  Bruno Haible  <bruno@clisp.org>
22442         rintl: Simplify for platforms where 'long double' == 'double'.
22443         * lib/rintl.c: Include <config.h>.
22444         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
22445         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
22446         time.
22447         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22448         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22449         * modules/rintl (Depends-on): Add rint. Update conditions.
22451 2011-10-09  Bruno Haible  <bruno@clisp.org>
22453         roundl: Simplify for platforms where 'long double' == 'double'.
22454         * lib/roundl.c: Include <config.h>.
22455         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
22456         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
22457         time.
22458         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22459         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22460         * modules/roundl (Depends-on): Add round. Update conditions.
22462 2011-10-09  Bruno Haible  <bruno@clisp.org>
22464         truncl: Simplify for platforms where 'long double' == 'double'.
22465         * lib/truncl.c: Include <config.h>.
22466         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
22467         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
22468         time.
22469         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22470         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22471         * modules/truncl (Depends-on): Add trunc. Update conditions.
22473 2011-10-09  Bruno Haible  <bruno@clisp.org>
22475         ceill: Simplify for platforms where 'long double' == 'double'.
22476         * lib/ceill.c: Include <config.h>.
22477         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
22478         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
22479         time.
22480         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22481         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22482         * modules/ceill (Depends-on): Add ceil. Update conditions.
22484 2011-10-09  Bruno Haible  <bruno@clisp.org>
22486         floorl: Simplify for platforms where 'long double' == 'double'.
22487         * lib/floorl.c: Include <config.h>.
22488         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
22489         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
22490         time.
22491         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22492         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22493         * modules/floorl (Depends-on): Add floor. Update conditions.
22495 2011-10-09  Bruno Haible  <bruno@clisp.org>
22497         rint: Fix ordering constraints.
22498         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
22499         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
22500         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
22502 2011-10-09  Bruno Haible  <bruno@clisp.org>
22504         copysignl: Simplify for platforms where 'long double' == 'double'.
22505         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
22506         alternative.
22507         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22508         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
22509         * modules/copysignl (Depends-on): Add copysign. Update conditions.
22511 2011-10-09  Bruno Haible  <bruno@clisp.org>
22513         Tests for module 'rintl'.
22514         * modules/rintl-tests: New file.
22515         * tests/test-rintl.c: New file.
22517         New module 'rintl'.
22518         * lib/math.in.h (rintl): New declaration.
22519         * lib/rintl.c: New file.
22520         * m4/rintl.m4: New file.
22521         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
22522         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
22523         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
22524         * modules/rintl: New file.
22525         * tests/test-math-c++.cc: Check the declaration of rintl.
22526         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
22527         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
22528         * doc/posix-functions/rintl.texi: Mention the new module.
22530 2011-10-09  Bruno Haible  <bruno@clisp.org>
22532         Tests for module 'rintf'.
22533         * modules/rintf-tests: New file.
22534         * tests/test-rintf.c: New file.
22536         New module 'rintf'.
22537         * lib/math.in.h (rintf): New declaration.
22538         * lib/rintf.c: New file.
22539         * m4/rintf.m4: New file.
22540         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
22541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
22542         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
22543         * modules/rintf: New file.
22544         * tests/test-math-c++.cc: Check the declaration of rintf.
22545         * doc/posix-functions/rintf.texi: Mention the new module.
22547 2011-10-09  Bruno Haible  <bruno@clisp.org>
22549         rint: Support for MSVC.
22550         * lib/math.in.h (rint): New declaration.
22551         * lib/rint.c: New file.
22552         * m4/rint.m4: New file.
22553         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
22554         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
22555         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
22556         * modules/rint (Description): Fix.
22557         (Files): Add lib/rint.c, m4/rint.m4.
22558         (Depends-on): Add math.
22559         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
22560         gl_MATH_MODULE_INDICATOR.
22561         * tests/test-math-c++.cc: Check the declaration of rint.
22562         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
22563         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
22564         * doc/posix-functions/rint.texi: Mention the replacement provided by
22565         the module.
22567         rint tests: More tests.
22568         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
22569         minus-zero.h, infinity.h, nan.h.
22570         (main): Skip the test if the current rounding mode is not standard. Add
22571         tests for negative numbers, minus zero, infinity, NaN.
22572         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
22573         tests/nan.h.
22574         (Depends-on): Add isnand-nolibm.
22576 2011-10-09  Bruno Haible  <bruno@clisp.org>
22578         Tests for module 'copysignl'.
22579         * modules/copysignl-tests: New file.
22580         * tests/test-copysignl.c: New file.
22582         New module 'copysignl'.
22583         * lib/math.in.h (copysignl): New declaration.
22584         * lib/copysignl.c: New file.
22585         * m4/copysignl.m4: New file.
22586         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
22587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
22588         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
22589         HAVE_COPYSIGNL.
22590         * modules/copysignl: New file.
22591         * tests/test-math-c++.cc: Check the declaration of copysignl.
22592         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
22593         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
22594         * doc/posix-functions/copysignl.texi: Mention the new module.
22596 2011-10-09  Bruno Haible  <bruno@clisp.org>
22598         Tests for module 'copysignf'.
22599         * modules/copysignf-tests: New file.
22600         * tests/test-copysignf.c: New file.
22602         New module 'copysignf'.
22603         * lib/math.in.h (copysignf): New declaration.
22604         * lib/copysignf.c: New file.
22605         * m4/copysignf.m4: New file.
22606         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
22607         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
22608         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
22609         HAVE_COPYSIGNF.
22610         * modules/copysignf: New file.
22611         * tests/test-math-c++.cc: Check the declaration of copysignf.
22612         * doc/posix-functions/copysignf.texi: Mention the new module.
22614 2011-10-09  Bruno Haible  <bruno@clisp.org>
22616         Ensure that HAVE_* variables are set to 1 before they are set to 0.
22617         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
22618         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
22619         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
22620         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
22621         gl_SIGNAL_H_DEFAULTS.
22623 2011-10-09  Bruno Haible  <bruno@clisp.org>
22625         poll: Make macro safer.
22626         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
22627         ac_cv_header_poll_h is not set.
22629 2011-10-09  Bruno Haible  <bruno@clisp.org>
22631         copysign: Provide replacement.
22632         * lib/math.in.h (copysign): New declaration.
22633         * lib/copysign.c: New file.
22634         * m4/copysign.m4: New file.
22635         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
22636         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
22637         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
22638         HAVE_COPYSIGN.
22639         * modules/copysign (Description): Clarify.
22640         (Files): Add lib/copysign.c, m4/copysign.m4.
22641         (Depends-on): Add math, signbit.
22642         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
22643         gl_MATH_MODULE_INDICATOR.
22644         * tests/test-math-c++.cc: Check the declaration of copysign.
22645         * doc/posix-functions/copysign.texi: Mention the effects of the module
22646         on Minix and MSVC.
22648 2011-10-09  Bruno Haible  <bruno@clisp.org>
22650         isinf: Ensure macro on AIX 5.1.
22651         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
22652         macro.
22653         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
22655 2011-10-09  Bruno Haible  <bruno@clisp.org>
22657         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
22658         * modules/snprintf-posix-tests (configure.ac): Require
22659         gl_LONG_DOUBLE_VS_DOUBLE.
22660         * modules/sprintf-posix-tests (configure.ac): Likewise.
22661         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
22662         * modules/vasprintf-posix-tests (configure.ac): Likewise.
22663         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
22664         * modules/vsprintf-posix-tests (configure.ac): Likewise.
22665         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
22666         tests on platforms where 'long double' is the same as 'double'.
22667         * tests/test-sprintf-posix.h (test_function): Likewise.
22668         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22669         * tests/test-vasprintf-posix.c (test_function): Likewise.
22671         *printf: Fix for platforms where 'long double' == 'double'.
22672         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
22673         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
22674         * modules/dprintf-posix (Files): Add m4/math_h.m4.
22675         * modules/fprintf-posix (Files): Likewise.
22676         * modules/obstack-printf-posix (Files): Likewise.
22677         * modules/snprintf-posix (Files): Likewise.
22678         * modules/sprintf-posix (Files): Likewise.
22679         * modules/vasnprintf (Files): Likewise.
22680         * modules/vasnprintf-posix (Files): Likewise.
22681         * modules/vasprintf-posix (Files): Likewise.
22682         * modules/vdprintf-posix (Files): Likewise.
22683         * modules/vfprintf-posix (Files): Likewise.
22684         * modules/vsnprintf-posix (Files): Likewise.
22685         * modules/vsprintf-posix (Files): Likewise.
22686         * modules/unistdio/u8-vasnprintf (Files): Likewise.
22687         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
22688         * modules/unistdio/u16-vasnprintf (Files): Likewise.
22689         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
22690         * modules/unistdio/u32-vasnprintf (Files): Likewise.
22691         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
22692         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
22694         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
22695         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
22696         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
22697         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
22698         'long double'.
22699         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
22701         isinf: Fix for platforms where 'long double' == 'double'.
22702         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
22703         Don't blindly assume 80-bit 'long double'.
22705         isfinite: Fix for platforms where 'long double' == 'double'.
22706         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
22707         Don't blindly assume 80-bit 'long double'.
22709         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
22710         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
22711         * modules/isfinite-tests (configure.ac): Require
22712         gl_LONG_DOUBLE_VS_DOUBLE.
22713         * modules/isinf-tests (configure.ac): Likewise.
22714         * modules/isnan-tests (configure.ac): Likewise.
22715         * modules/isnanl-tests (configure.ac): Likewise.
22716         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
22717         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
22718         tests on platforms where 'long double' is the same as 'double'.
22719         * tests/test-isinf.c (test_isinfl): Likewise.
22720         * tests/test-isnan.c (test_long_double): Likewise.
22721         * tests/test-isnanl.h (main): Likewise.
22723 2011-10-08  Bruno Haible  <bruno@clisp.org>
22725         Tests for module 'tanhf'.
22726         * modules/tanhf-tests: New file.
22727         * tests/test-tanhf.c: New file.
22729         New module 'tanhf'.
22730         * lib/math.in.h (tanhf): New declaration.
22731         * lib/tanhf.c: New file.
22732         * m4/tanhf.m4: New file.
22733         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
22734         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
22735         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
22736         * modules/tanhf: New file.
22737         * tests/test-math-c++.cc: Check the declaration of tanhf.
22738         * doc/posix-functions/tanhf.texi: Mention the new module.
22740         tanh: Use a .m4 file.
22741         * m4/tanh.m4: New file.
22742         * modules/tanh (Files): Add it.
22743         (configure.ac): Just invoke gl_FUNC_TANH.
22745 2011-10-08  Bruno Haible  <bruno@clisp.org>
22747         Tests for module 'coshf'.
22748         * modules/coshf-tests: New file.
22749         * tests/test-coshf.c: New file.
22751         New module 'coshf'.
22752         * lib/math.in.h (coshf): New declaration.
22753         * lib/coshf.c: New file.
22754         * m4/coshf.m4: New file.
22755         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
22756         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
22757         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
22758         * modules/coshf: New file.
22759         * tests/test-math-c++.cc: Check the declaration of coshf.
22760         * doc/posix-functions/coshf.texi: Mention the new module.
22762         cosh: Use a .m4 file.
22763         * m4/cosh.m4: New file.
22764         * modules/cosh (Files): Add it.
22765         (configure.ac): Just invoke gl_FUNC_COSH.
22767 2011-10-08  Bruno Haible  <bruno@clisp.org>
22769         Tests for module 'sinhf'.
22770         * modules/sinhf-tests: New file.
22771         * tests/test-sinhf.c: New file.
22773         New module 'sinhf'.
22774         * lib/math.in.h (sinhf): New declaration.
22775         * lib/sinhf.c: New file.
22776         * m4/sinhf.m4: New file.
22777         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
22778         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
22779         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
22780         * modules/sinhf: New file.
22781         * tests/test-math-c++.cc: Check the declaration of sinhf.
22782         * doc/posix-functions/sinhf.texi: Mention the new module.
22784         sinh: Use a .m4 file.
22785         * m4/sinh.m4: New file.
22786         * modules/sinh (Files): Add it.
22787         (configure.ac): Just invoke gl_FUNC_SINH.
22789 2011-10-08  Bruno Haible  <bruno@clisp.org>
22791         Tests for module 'atan2f'.
22792         * modules/atan2f-tests: New file.
22793         * tests/test-atan2f.c: New file.
22795         New module 'atan2f'.
22796         * lib/math.in.h (atan2f): New declaration.
22797         * lib/atan2f.c: New file.
22798         * m4/atan2f.m4: New file.
22799         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
22800         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
22801         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
22802         * modules/atan2f: New file.
22803         * tests/test-math-c++.cc: Check the declaration of atan2f.
22804         * doc/posix-functions/atan2f.texi: Mention the new module.
22806         atan2: Use a .m4 file.
22807         * m4/atan2.m4: New file.
22808         * modules/atan2 (Files): Add it.
22809         (configure.ac): Just invoke gl_FUNC_ATAN2.
22811 2011-10-08  Bruno Haible  <bruno@clisp.org>
22813         Tests for module 'atanf'.
22814         * modules/atanf-tests: New file.
22815         * tests/test-atanf.c: New file.
22817         New module 'atanf'.
22818         * lib/math.in.h (atanf): New declaration.
22819         * lib/atanf.c: New file.
22820         * m4/atanf.m4: New file.
22821         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
22822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
22823         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
22824         * modules/atanf: New file.
22825         * tests/test-math-c++.cc: Check the declaration of atanf.
22826         * doc/posix-functions/atanf.texi: Mention the new module.
22828         atan: Use a .m4 file.
22829         * m4/atan.m4: New file.
22830         * modules/atan (Files): Add it.
22831         (configure.ac): Just invoke gl_FUNC_ATAN.
22833 2011-10-08  Bruno Haible  <bruno@clisp.org>
22835         Tests for module 'acosf'.
22836         * modules/acosf-tests: New file.
22837         * tests/test-acosf.c: New file.
22839         New module 'acosf'.
22840         * lib/math.in.h (acosf): New declaration.
22841         * lib/acosf.c: New file.
22842         * m4/acosf.m4: New file.
22843         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
22844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
22845         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
22846         * modules/acosf: New file.
22847         * tests/test-math-c++.cc: Check the declaration of acosf.
22848         * doc/posix-functions/acosf.texi: Mention the new module.
22850         acos: Use a .m4 file.
22851         * m4/acos.m4: New file.
22852         * modules/acos (Files): Add it.
22853         (configure.ac): Just invoke gl_FUNC_ACOS.
22855 2011-10-08  Bruno Haible  <bruno@clisp.org>
22857         Tests for module 'asinf'.
22858         * modules/asinf-tests: New file.
22859         * tests/test-asinf.c: New file.
22861         New module 'asinf'.
22862         * lib/math.in.h (asinf): New declaration.
22863         * lib/asinf.c: New file.
22864         * m4/asinf.m4: New file.
22865         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
22866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
22867         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
22868         * modules/asinf: New file.
22869         * tests/test-math-c++.cc: Check the declaration of asinf.
22870         * doc/posix-functions/asinf.texi: Mention the new module.
22872         asin: Use a .m4 file.
22873         * m4/asin.m4: New file.
22874         * modules/asin (Files): Add it.
22875         (configure.ac): Just invoke gl_FUNC_ASIN.
22877 2011-10-08  Bruno Haible  <bruno@clisp.org>
22879         Tests for module 'tanf'.
22880         * modules/tanf-tests: New file.
22881         * tests/test-tanf.c: New file.
22883         New module 'tanf'.
22884         * lib/math.in.h (tanf): New declaration.
22885         * lib/tanf.c: New file.
22886         * m4/tanf.m4: New file.
22887         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
22888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
22889         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
22890         * modules/tanf: New file.
22891         * tests/test-math-c++.cc: Check the declaration of tanf.
22892         * doc/posix-functions/tanf.texi: Mention the new module.
22894         tan: Use a .m4 file.
22895         * m4/tan.m4: New file.
22896         * modules/tan (Files): Add it.
22897         (configure.ac): Just invoke gl_FUNC_TAN.
22899 2011-10-08  Bruno Haible  <bruno@clisp.org>
22901         Tests for module 'cosf'.
22902         * modules/cosf-tests: New file.
22903         * tests/test-cosf.c: New file.
22905         New module 'cosf'.
22906         * lib/math.in.h (cosf): New declaration.
22907         * lib/cosf.c: New file.
22908         * m4/cosf.m4: New file.
22909         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
22910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
22911         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
22912         * modules/cosf: New file.
22913         * tests/test-math-c++.cc: Check the declaration of cosf.
22914         * doc/posix-functions/cosf.texi: Mention the new module.
22916         cos: Use a .m4 file.
22917         * m4/cos.m4: New file.
22918         * modules/cos (Files): Add it.
22919         (configure.ac): Just invoke gl_FUNC_COS.
22921 2011-10-08  Bruno Haible  <bruno@clisp.org>
22923         Tests for module 'sinf'.
22924         * modules/sinf-tests: New file.
22925         * tests/test-sinf.c: New file.
22927         New module 'sinf'.
22928         * lib/math.in.h (sinf): New declaration.
22929         * lib/sinf.c: New file.
22930         * m4/sinf.m4: New file.
22931         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
22932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
22933         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
22934         * modules/sinf: New file.
22935         * tests/test-math-c++.cc: Check the declaration of sinf.
22936         * doc/posix-functions/sinf.texi: Mention the new module.
22938         sin: Use a .m4 file.
22939         * m4/sin.m4: New file.
22940         * modules/sin (Files): Add it.
22941         (configure.ac): Just invoke gl_FUNC_SIN.
22943 2011-10-08  Bruno Haible  <bruno@clisp.org>
22945         Tests for module 'powf'.
22946         * modules/powf-tests: New file.
22947         * tests/test-powf.c: New file.
22949         New module 'powf'.
22950         * lib/math.in.h (powf): New declaration.
22951         * lib/powf.c: New file.
22952         * m4/powf.m4: New file.
22953         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
22954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
22955         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
22956         * modules/powf: New file.
22957         * tests/test-math-c++.cc: Check the declaration of powf.
22958         * doc/posix-functions/powf.texi: Mention the new module.
22960         pow: Use a .m4 file.
22961         * m4/pow.m4: New file.
22962         * modules/pow (Files): Add it.
22963         (configure.ac): Just invoke gl_FUNC_POW.
22965 2011-10-08  Bruno Haible  <bruno@clisp.org>
22967         Tests for module 'log10f'.
22968         * modules/log10f-tests: New file.
22969         * tests/test-log10f.c: New file.
22971         New module 'log10f'.
22972         * lib/math.in.h (log10f): New declaration.
22973         * lib/log10f.c: New file.
22974         * m4/log10f.m4: New file.
22975         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
22976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
22977         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
22978         * modules/log10f: New file.
22979         * tests/test-math-c++.cc: Check the declaration of log10f.
22980         * doc/posix-functions/log10f.texi: Mention the new module.
22982         log10: Use a .m4 file.
22983         * m4/log10.m4: New file.
22984         * modules/log10 (Files): Add it.
22985         (configure.ac): Just invoke gl_FUNC_LOG10.
22987 2011-10-08  Bruno Haible  <bruno@clisp.org>
22989         Tests for module 'logf'.
22990         * modules/logf-tests: New file.
22991         * tests/test-logf.c: New file.
22993         New module 'logf'.
22994         * lib/math.in.h (logf): New declaration.
22995         * lib/logf.c: New file.
22996         * m4/logf.m4: New file.
22997         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
22998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
22999         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
23000         * modules/logf: New file.
23001         * tests/test-math-c++.cc: Check the declaration of logf.
23002         * doc/posix-functions/logf.texi: Mention the new module.
23004         log: Use a .m4 file.
23005         * m4/log.m4: New file.
23006         * modules/log (Files): Add it.
23007         (configure.ac): Just invoke gl_FUNC_LOG.
23009 2011-10-08  Bruno Haible  <bruno@clisp.org>
23011         Tests for module 'expf'.
23012         * modules/expf-tests: New file.
23013         * tests/test-expf.c: New file.
23015         New module 'expf'.
23016         * lib/math.in.h (expf): New declaration.
23017         * lib/expf.c: New file.
23018         * m4/expf.m4: New file.
23019         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
23020         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
23021         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
23022         * modules/expf: New file.
23023         * tests/test-math-c++.cc: Check the declaration of expf.
23024         * doc/posix-functions/expf.texi: Mention the new module.
23026         exp: Use a .m4 file.
23027         * m4/exp.m4: New file.
23028         * modules/exp (Files): Add it.
23029         (configure.ac): Just invoke gl_FUNC_EXP.
23031 2011-10-08  Bruno Haible  <bruno@clisp.org>
23033         Tests for module 'sqrtf'.
23034         * modules/sqrtf-tests: New file.
23035         * tests/test-sqrtf.c: New file.
23037         New module 'sqrtf'.
23038         * lib/math.in.h (sqrtf): New declaration.
23039         * lib/sqrtf.c: New file.
23040         * m4/sqrtf.m4: New file.
23041         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
23042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
23043         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
23044         * modules/sqrtf: New file.
23045         * tests/test-math-c++.cc: Check the declaration of sqrtf.
23046         * doc/posix-functions/sqrtf.texi: Mention the new module.
23048 2011-10-08  Bruno Haible  <bruno@clisp.org>
23050         Tests: Avoid link failures w.r.t. libintl.
23051         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
23052         $(LIBINTL).
23053         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
23054         $(LIBINTL).
23055         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
23056         against $(LIBINTL).
23057         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
23058         $(LIBINTL).
23059         * modules/openat-tests (Makefile.am): Link test-fchmodat against
23060         $(LIBINTL).
23061         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
23063 2011-10-08  Bruno Haible  <bruno@clisp.org>
23065         pow tests: Defeat compiler optimizations.
23066         * tests/test-pow.c (main): Assign arguments to x and y before use.
23068 2011-10-08  Bruno Haible  <bruno@clisp.org>
23070         gnulib-tool: Improve last commit.
23071         * gnulib-tool (func_modules_transitive_closure): Simplify code.
23072         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
23073         ignore dependencies that are not among the modules list.
23075 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
23077         gnulib-tool: don't follow dependencies to avoided modules
23078         This fixes a bug that is related to the previous one.
23079         * gnulib-tool (func_modules_transitive_closure)
23080         (func_emit_autoconf_snippets):
23081         Check whether a dependency is acceptable before using it.
23082         (--extract-dependencies): Report an error if --avoid is also used,
23083         since this combination of options is not yet supported.
23085         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
23086         Problem reported by Peter Dyballa in
23087         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
23088         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
23089         when echoing "$condition".
23091 2011-10-07  Bruno Haible  <bruno@clisp.org>
23093         Fix documentation about math functions on MacOS X.
23094         * doc/posix-functions/exp2.texi: Don't say the function is missing on
23095         MacOS X 10.5.
23096         * doc/posix-functions/fdim.texi: Likewise.
23097         * doc/posix-functions/feclearexcept.texi: Likewise.
23098         * doc/posix-functions/fegetenv.texi: Likewise.
23099         * doc/posix-functions/fegetround.texi: Likewise.
23100         * doc/posix-functions/feholdexcept.texi: Likewise.
23101         * doc/posix-functions/feraiseexcept.texi: Likewise.
23102         * doc/posix-functions/fesetenv.texi: Likewise.
23103         * doc/posix-functions/fesetround.texi: Likewise.
23104         * doc/posix-functions/fetestexcept.texi: Likewise.
23105         * doc/posix-functions/feupdateenv.texi: Likewise.
23106         * doc/posix-functions/fmax.texi: Likewise.
23107         * doc/posix-functions/fmin.texi: Likewise.
23108         * doc/posix-functions/log2.texi: Likewise.
23109         * doc/posix-functions/modff.texi: Likewise.
23110         * doc/posix-functions/nan.texi: Likewise.
23111         * doc/posix-functions/nanf.texi: Likewise.
23112         * doc/posix-functions/nextafterf.texi: Likewise.
23113         * doc/posix-functions/remquo.texi: Likewise.
23115 2011-10-07  Bruno Haible  <bruno@clisp.org>
23117         modff: Drop assumption about library that defines modff.
23118         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
23119         AC_CHECK_FUNCS.
23120         * modules/modff (Files): Add m4/mathfunc.m4.
23122 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
23124         raise tests: Avoid a GCC warning.
23125         * tests/test-raise.c (handler): Use _Noreturn.
23127 2011-10-07  Bruno Haible  <bruno@clisp.org>
23129         Tests for module 'ldexpf'.
23130         * modules/ldexpf-tests: New file.
23131         * tests/test-ldexpf.c: New file.
23133         New module 'ldexpf'.
23134         * lib/math.in.h (ldexpf): New declaration.
23135         * lib/ldexpf.c: New file.
23136         * m4/ldexpf.m4: New file.
23137         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
23138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
23139         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
23140         * modules/ldexpf: New file.
23141         * tests/test-math-c++.cc: Check the declaration of ldexpf.
23142         * doc/posix-functions/ldexpf.texi: Mention the new module.
23144 2011-10-06  Bruno Haible  <bruno@clisp.org>
23146         frexpf: Work around problems on IRIX and mingw.
23147         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
23148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
23149         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
23150         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
23151         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
23152         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
23153         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
23155 2011-10-06  Bruno Haible  <bruno@clisp.org>
23157         fabsf: Drop assumption about library that defines fabsf.
23158         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
23159         AC_CHECK_FUNCS.
23160         * modules/fabsf (Files): Add m4/mathfunc.m4.
23162 2011-10-06  Bruno Haible  <bruno@clisp.org>
23164         frexpf: Drop assumption about library that defines frexpf.
23165         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
23166         'int *', 'float *', 'long double *', 'float', 'long double'.
23167         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
23168         AC_CHECK_FUNCS.
23169         * modules/frexpf (Files): Add m4/mathfunc.m4.
23171         Tests for module 'frexpf'.
23172         * modules/frexpf-tests: New file.
23173         * tests/test-frexpf.c: New file.
23175         New module 'frexpf'.
23176         * lib/math.in.h (frexpf): New declaration.
23177         * lib/frexpf.c: New file.
23178         * m4/frexpf.m4: New file.
23179         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
23180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
23181         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
23182         * modules/frexpf: New file.
23183         * tests/test-math-c++.cc: Check the declaration of frexpf.
23184         * doc/posix-functions/frexpf.texi: Mention the new module.
23186 2011-10-06  Bruno Haible  <bruno@clisp.org>
23188         math: Sort function declarations of math.in.h.
23189         * lib/math.in.h (frexp, logb): Move declarations.
23191 2011-10-05  Bruno Haible  <bruno@clisp.org>
23193         Tests for module 'modff'.
23194         * modules/modff-tests: New file.
23195         * tests/test-modff.c: New file.
23197         New module 'modff'.
23198         * lib/math.in.h (modff): New declaration.
23199         * lib/modff.c: New file.
23200         * m4/modff.m4: New file.
23201         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
23202         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
23203         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
23204         * modules/modff: New file.
23205         * tests/test-math-c++.cc: Check the declaration of modff.
23206         * doc/posix-functions/modff.texi: Mention the new module.
23208         modf tests: Make test sharper.
23209         * tests/test-modf.c (main): Strengthen upper bound.
23211         modf: Use a .m4 file.
23212         * m4/modf.m4: New file.
23213         * modules/modf (Files): Add it.
23214         (configure.ac): Just invoke gl_FUNC_MODF.
23216 2011-10-05  Bruno Haible  <bruno@clisp.org>
23218         Tests for module 'fmodf'.
23219         * modules/fmodf-tests: New file.
23220         * tests/test-fmodf.c: New file.
23222         New module 'fmodf'.
23223         * lib/math.in.h (fmodf): New declaration.
23224         * lib/fmodf.c: New file.
23225         * m4/fmodf.m4: New file.
23226         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
23227         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
23228         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
23229         * modules/fmodf: New file.
23230         * tests/test-math-c++.cc: Check the declaration of fmodf.
23231         * doc/posix-functions/fmodf.texi: Mention the new module.
23233         fmod: Use a .m4 file.
23234         * m4/fmod.m4: New file.
23235         * modules/fmod (Files): Add it.
23236         (configure.ac): Just invoke gl_FUNC_FMOD.
23238 2011-10-05  Bruno Haible  <bruno@clisp.org>
23240         Tests for module 'fabsf'.
23241         * modules/fabsf-tests: New file.
23242         * tests/test-fabsf.c: New file.
23244         New module 'fabsf'.
23245         * lib/math.in.h (fabsf): New declaration.
23246         * lib/fabsf.c: New file.
23247         * m4/fabsf.m4: New file.
23248         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
23249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
23250         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
23251         * modules/fabsf: New file.
23252         * tests/test-math-c++.cc: Check the declaration of fabsf.
23253         * doc/posix-functions/fabsf.texi: Mention the new module.
23255         fabs: Use a .m4 file.
23256         * m4/fabs.m4: New file.
23257         * modules/fabs (Files): Add it.
23258         (configure.ac): Just invoke gl_FUNC_FABS.
23260 2011-10-05  Jim Meyering  <meyering@redhat.com>
23262         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
23263         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
23264         ls -lL regression introduced in coreutils-8.12, it does so at the
23265         cost of an additional stat call in the common case.  Besides, now
23266         that the kernel change that prompted commit 95f7c57f has been reverted
23267         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
23268         we have no use for commit 95f7c57f, "file-has-acl: use
23269         acl_extended_file_nofollow if available".
23271 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
23273         file-has-acl: revert unintended change in behavior of ls -L
23274         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
23275         derived from...
23276         (file_has_acl): ...code here.  Call it.
23277         This problem was introduced with 2011-07-22 commit 95f7c57f,
23278         "file-has-acl: use acl_extended_file_nofollow if available".
23279         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
23281 2011-10-03  Bruno Haible  <bruno@clisp.org>
23283         poll: Avoid link errors on MSVC.
23284         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
23285         * modules/poll (Depends-on): Add sockets.
23286         (Link): New section.
23287         * NEWS: Mention the change.
23288         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
23289         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
23290         $(LIB_POLL) instead of $(LIBSOCKET).
23292 2011-10-03  Bruno Haible  <bruno@clisp.org>
23294         sys_select tests: Fix link error on MSVC 9.
23295         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
23296         with $(LIB_SELECT) instead of $(LIBSOCKET).
23298 2011-10-03  Bruno Haible  <bruno@clisp.org>
23300         sys_select: Fix compilation error on mingw.
23301         * lib/sys_select.in.h: On native Windows, include <io.h>.
23303 2011-10-03  Bruno Haible  <bruno@clisp.org>
23305         wmemset: Support for MSVC.
23306         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
23307         whether wmemset() exists.
23309 2011-10-03  Bruno Haible  <bruno@clisp.org>
23311         wmemmove: Support for MSVC.
23312         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
23313         whether wmemmove() exists.
23315 2011-10-03  Bruno Haible  <bruno@clisp.org>
23317         wmemcpy: Support for MSVC.
23318         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
23319         whether wmemcpy() exists.
23321 2011-10-03  Bruno Haible  <bruno@clisp.org>
23323         wmemcmp: Support for MSVC.
23324         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
23325         whether wmemcmp() exists.
23327 2011-10-03  Bruno Haible  <bruno@clisp.org>
23329         wmemchr: Support for MSVC.
23330         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
23331         whether wmemchr() exists.
23333 2011-10-03  Bruno Haible  <bruno@clisp.org>
23335         glthread/*, strsignal: Support for MSVC.
23336         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
23337         including <winsock.h> on MSVC 9.
23338         * lib/glthread/lock.h: Likewise.
23339         * lib/glthread/thread.h: Likewise.
23340         * lib/glthread/tls.h: Likewise.
23341         * lib/glthread/yield.h: Likewise.
23342         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
23343         if HAVE_UNISTD_H is false.
23344         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
23346 2011-10-03  Bruno Haible  <bruno@clisp.org>
23348         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
23349         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
23350         Set to 100000.
23352 2011-10-03  Bruno Haible  <bruno@clisp.org>
23354         acl: Fix specification.
23355         * lib/file-has-acl.c (file_has_acl): Fix specification.
23357 2011-10-03  Bruno Haible  <bruno@clisp.org>
23359         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
23360         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
23361         (compute_curr_prefix, shared_library_fullname,
23362         find_shared_library_fullname, get_shared_library_fullname, relocate):
23363         Use it together with PIC && INSTALLDIR.
23364         Reported by <jojelino@gmail.com>
23365         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
23367 2011-10-01  Jim Meyering  <meyering@redhat.com>
23369         maint.mk: adjust a release-related rule not to require use of gzip
23370         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
23371         Instead, check each file in $(DIST_ARCHIVES).  This is better for
23372         projects that build only .tar.xz files.  Also fix an erroneous test.
23374         test-linkat: don't leave behind a temporary file
23375         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
23376         Otherwise, coreutils' "make distcheck" would fail with this:
23377           Only in /c/cu/tests/torture/coreutils/test/\
23378             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
23379           make[2]: *** [my-distcheck] Error 1
23381         float, math: add omitted file
23382         * lib/itold.c: Add file, required for yesterday's float change.
23384 2011-10-01  Bruno Haible  <bruno@clisp.org>
23386         isinf: Fix for OpenBSD/x86.
23387         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
23388         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
23389         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
23391 2011-10-01  Bruno Haible  <bruno@clisp.org>
23393         isfinite: Fix syntax error in configure test.
23394         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
23396         isfinite: Fix typo.
23397         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
23398         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
23400 2011-10-01  Bruno Haible  <bruno@clisp.org>
23402         nonblocking tests: Fix test failure on Linux/IA-64.
23403         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
23404         Set to 270000.
23406 2011-10-01  Bruno Haible  <bruno@clisp.org>
23408         mkfifoat tests: Fix a test failure on mingw.
23409         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
23410         with error ENOSYS.
23412 2011-09-30  Bruno Haible  <bruno@clisp.org>
23414         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
23415         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
23416         'long double'. Set REPLACE_ITOLD.
23417         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
23418         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
23419         * lib/itold.c: New file.
23420         * modules/float (Files): Add lib/itold.c.
23421         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
23422         (Makefile.am): Substitute REPLACE_ITOLD.
23423         * modules/math (Depends-on): Add float.
23424         (Makefile.am): Substitute REPLACE_ITOLD.
23425         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
23426         * doc/posix-headers/math.texi: Likewise.
23427         * doc/posix-functions/logl.texi: Likewise.
23429 2011-09-30  Bruno Haible  <bruno@clisp.org>
23431         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
23432         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
23433         Set to 140000.
23435 2011-09-30  Bruno Haible  <bruno@clisp.org>
23437         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
23438         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
23439         invocation, say "right after AC_PROG_CC_STDC", not "right after
23440         AC_PROG_CC".
23441         Reported by Gary V. Vaughan <gary@gnu.org>.
23443 2011-09-30  Bruno Haible  <bruno@clisp.org>
23445         Centralize C99 requirement.
23446         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
23447         * modules/stdarg (configure.ac-early): Invoke it instead of
23448         AC_PROG_CC_STDC.
23449         Reported by Gary V. Vaughan and Paul Eggert.
23451 2011-09-29  Bruno Haible  <bruno@clisp.org>
23453         float: Fix LDBL_MAX value on Linux/PowerPC.
23454         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
23455         on Linux/PowerPC.
23456         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
23457         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
23458         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
23459         platform.
23460         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
23462 2011-09-29  Bruno Haible  <bruno@clisp.org>
23464         doc: Improve doc about gl_EARLY.
23465         * doc/gnulib-tool.texi (Initial import): Mention where to place an
23466         AC_PROG_CC_STDC invocation.
23467         Reported by Gary V. Vaughan <gary@gnu.org>.
23469 2011-09-28  Bruno Haible  <bruno@clisp.org>
23471         fgetc, fputc, fread, fwrite tests: Fix link error.
23472         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
23473         on non-MSVC platforms.
23474         * tests/test-fputc.c (main): Likewise.
23475         * tests/test-fread.c (main): Likewise.
23476         * tests/test-fwrite.c (main): Likewise.
23477         Reported by Jim Meyering.
23479 2011-09-27  Bruno Haible  <bruno@clisp.org>
23481         fputc, fwrite tests: Avoid test failure on MSVC.
23482         * tests/test-fgetc.c: Include msvc-inval.h.
23483         (main): Invoke gl_msvc_inval_ensure_handler.
23484         * tests/test-fputc.c: Include msvc-inval.h.
23485         (main): Invoke gl_msvc_inval_ensure_handler.
23486         * tests/test-fread.c: Include msvc-inval.h.
23487         (main): Invoke gl_msvc_inval_ensure_handler.
23488         * tests/test-fwrite.c: Include msvc-inval.h.
23489         (main): Invoke gl_msvc_inval_ensure_handler.
23490         * modules/fgetc-tests (Depends-on): Add msvc-inval.
23491         * modules/fputc-tests (Depends-on): Likewise.
23492         * modules/fread-tests (Depends-on): Likewise.
23493         * modules/fwrite-tests (Depends-on): Likewise.
23495 2011-09-27  Bruno Haible  <bruno@clisp.org>
23497         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
23498         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
23499         (raise): Remove older, duplicated declaration.
23500         (_gl_raise_SIGPIPE): New declaration.
23501         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
23502         (rpl_raise): Remove function.
23503         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
23504         a gnulib-defined SIGPIPE here.
23505         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
23506         'sigprocmask' has detected missing signal-blocking and the module
23507         'sigpipe' is enabled.
23508         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
23510 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
23512         base64-tests: avoid memory leak
23513         * tests/test-base64.c (main): Plug memory leak.
23515         base32: new module
23516         * modules/base32: New module.
23517         * lib/base32.c: New file.
23518         * lib/base32.h: Likewise.
23519         * m4/base32.m4: Likewise.
23520         * modules/base32-tests: New test.
23521         * tests/test-base32.c: Likewise.
23522         * MODULES.html.sh (Misc): Mention it.
23524 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
23526         gnulib: use more-standard license notice wording
23527         * gnulib-tool (func_emit_copyright_notice): When emitting a
23528         license notice into a file, use the standard wording as suggested
23529         by the current information for GNU maintainers, except say "file"
23530         rather than "program".  The new wording gives a license version
23531         number, which addresses an issue raised by Glenn Morris in
23532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
23533         * m4/onceonly.m4: Use that same wording here, too.
23535         dup2: minor simplification
23536         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
23537         as lib/dup2.c no longer uses 'inline'.
23539 2011-09-25  Bruno Haible  <bruno@clisp.org>
23541         strings: Fix compilation error on MSVC.
23542         * lib/strings.in.h: Include <stddef.h> for size_t.
23544 2011-09-25  Bruno Haible  <bruno@clisp.org>
23546         fflush et al.: Document limitation on MSVC.
23547         * doc/posix-functions/fflush.texi: Document possible crash in handling
23548         mode other than DEFAULT_HANDLING.
23549         * doc/posix-functions/fgetc.texi: Likewise.
23550         * doc/posix-functions/fputc.texi: Likewise.
23551         * doc/posix-functions/fread.texi: Likewise.
23552         * doc/posix-functions/fwrite.texi: Likewise.
23554 2011-09-25  Bruno Haible  <bruno@clisp.org>
23556         msvc-inval: Allow three invalid parameter handling modes.
23557         * lib/msvc-inval.h: Don't include <stdlib.h> here.
23558         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
23559         macros.
23560         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
23561         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
23562         SANE_LIBRARY_HANDLING as a no-op.
23563         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
23564         <stdlib.h>.
23565         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
23567 2011-09-25  Bruno Haible  <bruno@clisp.org>
23569         msvc-inval: Make handler multithread-safe.
23570         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
23571         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
23572         declarations.
23573         (gl_msvc_inval_current): New declaration.
23574         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
23575         Operate on the structure returned by gl_msvc_inval_current().
23576         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
23577         Remove varaiables.
23578         (tls_index, tls_initialized): New variables.
23579         (not_per_thread): New variable.
23580         (gl_msvc_inval_current): New function.
23581         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
23582         returned by gl_msvc_inval_current().
23584 2011-09-25  Bruno Haible  <bruno@clisp.org>
23586         msvc-inval: Install handler globally.
23587         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
23588         !_MSC_VER.
23589         (gl_msvc_invalid_parameter_handler): Remove declaration.
23590         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
23591         declarations.
23592         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
23593         Install the handler globally, don't uninstall it.
23594         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
23595         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
23596         currently valid, call RaiseException instead.
23597         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
23598         for !_MSC_VER.
23600 2011-09-25  Bruno Haible  <bruno@clisp.org>
23602         strerror_r-posix: Fix for MSVC 9.
23603         * lib/strerror_r.c (local_snprintf): New function.
23604         (snprintf): Define to local_snprintf, not to _snprintf.
23606 2011-09-25  Bruno Haible  <bruno@clisp.org>
23608         ftruncate: Support for MSVC 9.
23609         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
23610         (chsize_nothrow): New function.
23611         (chsize): Redefine as a macro.
23612         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
23613         * modules/ftruncate (Depends-on): Add msvc-inval.
23615 2011-09-25  Bruno Haible  <bruno@clisp.org>
23617         New module 'fstat'.
23618         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
23619         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
23620         * lib/fchdir.c (rpl_fstat): Remove function.
23621         * m4/fstat.m4: New file.
23622         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
23623         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
23624         declared.
23625         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
23626         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
23627         * modules/fstat: New file.
23628         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
23629         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
23630         is set.
23631         * doc/posix-functions/fstat.texi: Mention the new module and the
23632         problem on MSVC.
23633         * NEWS: Mention the change.
23634         * modules/acl (Depends-on): Add fstat.
23635         * modules/chdir-safer (Depends-on): Likewise.
23636         * modules/chown (Depends-on): Likewise.
23637         * modules/copy-file (Depends-on): Likewise.
23638         * modules/fchdir (Depends-on): Likewise.
23639         * modules/fdopendir (Depends-on): Likewise.
23640         * modules/fopen (Depends-on): Likewise.
23641         * modules/fts (Depends-on): Likewise.
23642         * modules/getcwd (Depends-on): Likewise.
23643         * modules/isapipe (Depends-on): Likewise.
23644         * modules/linkat (Depends-on): Likewise.
23645         * modules/lseek (Depends-on): Likewise.
23646         * modules/mkdir-p (Depends-on): Likewise.
23647         * modules/open (Depends-on): Likewise.
23648         * modules/openat (Depends-on): Likewise.
23649         * modules/read-file (Depends-on): Likewise.
23650         * modules/renameat (Depends-on): Likewise.
23651         * modules/utimens (Depends-on): Likewise.
23653 2011-09-25  Bruno Haible  <bruno@clisp.org>
23655         linkat: Fix compilation on MSVC 9.
23656         * lib/linkat.c: Don't include <stdint.h>.
23658 2011-09-25  Bruno Haible  <bruno@clisp.org>
23660         fclose: Support for MSVC 9.
23661         * lib/fclose.c: Include msvc-inval.h.
23662         (fclose_nothrow): New function.
23663         (rpl_fclose): Use it.
23664         * modules/fclose (Depends-on): Add msvc-inval.
23665         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
23667 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
23669         dup2: minor simplifications
23670         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
23671         that it's a performance win.
23672         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
23673         ! defined __CYGWIN__)" to "ifdef F_GETFL".
23675 2011-09-24  Jim Meyering  <meyering@redhat.com>
23677         test-futimens: avoid a warning from gcc -Wshadow
23678         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
23679         to avoid a shadowing warning.
23681 2011-09-24  Bruno Haible  <bruno@clisp.org>
23683         fdopen: Support for MSVC 9.
23684         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
23685         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
23686         * lib/fdopen.c: Include msvc-inval.h.
23687         (fdopen_nothrow): New function.
23688         (rpl_fdopen): Use it.
23689         * modules/fdopen (Depends-on): Add msvc-inval.
23690         * modules/fclose-tests (Depends-on): Add fdopen.
23691         * modules/fflush-tests (Depends-on): Likewise.
23692         * modules/fgetc-tests (Depends-on): Likewise.
23693         * modules/fputc-tests (Depends-on): Likewise.
23694         * modules/fread-tests (Depends-on): Likewise.
23695         * modules/freopen-tests (Depends-on): Likewise.
23696         * modules/fseeko-tests (Depends-on): Likewise.
23697         * modules/ftello-tests (Depends-on): Likewise.
23698         * modules/fwrite-tests  (Depends-on): Likewise.
23699         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
23701 2011-09-24  Bruno Haible  <bruno@clisp.org>
23703         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
23704         * modules/fgetc-tests (Depends-on): Add unistd.
23705         * modules/fputc-tests (Depends-on): Likewise.
23706         * modules/fread-tests (Depends-on): Likewise.
23707         * modules/fwrite-tests (Depends-on): Likewise.
23709 2011-09-24  Bruno Haible  <bruno@clisp.org>
23711         dup: Simplify autoconf test.
23712         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
23713         on gl_MSVC_INVAL's result.
23715 2011-09-24  Bruno Haible  <bruno@clisp.org>
23717         Tests for function fwrite().
23718         * modules/fwrite-tests: New file.
23719         * tests/test-fwrite.c: New file.
23720         * modules/stdio-tests (Depends-on): Add fwrite-tests.
23722         Tests for function fread().
23723         * modules/fread-tests: New file.
23724         * tests/test-fread.c: New file.
23725         * modules/stdio-tests (Depends-on): Add fread-tests.
23727         Activate fputc tests.
23728         * modules/stdio-tests (Depends-on): Add fputc-tests.
23730         Enhance fgetc, fputc tests.
23731         * tests/test-fgetc.c (main): Also test the stream's error indicator.
23732         * tests/test-fputc.c (main): Likewise.
23734 2011-09-24  Bruno Haible  <bruno@clisp.org>
23736         write: Support for MSVC 9.
23737         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
23738         is not 1.
23739         * lib/write.c (write_nothrow): New function.
23740         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
23741         not 1. Use write_nothrow.
23742         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
23743         invalid parameter handler.
23744         (gl_PREREQ_WRITE): New macro.
23745         * modules/write (Depends-on): Add msvc-inval.
23746         (configure.ac): Invoke gl_PREREQ_WRITE.
23747         * doc/posix-functions/write.texi: Mention the problem on MSVC.
23749 2011-09-24  Bruno Haible  <bruno@clisp.org>
23751         read: Fix last commit.
23752         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
23754 2011-09-24  Bruno Haible  <bruno@clisp.org>
23756         dup2: Fix last commit.
23757         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
23758         (rpl_dup2): Disable fcntl workaround on native Windows.
23760         sigprocmask: Make code safer.
23761         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
23762         section that changes macro definitions for this compilation unit.
23764 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
23766         dup2: clarify by coalescing Windows-specific material
23767         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
23768         "msvc-nothrow.h"' to the Windows-specific section, so that the
23769         Emacs source need not contain these include files.
23770         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
23771         Windows-specific fixes into this function rather than just the
23772         nothrow fix, as this shortens and clarifies the code.  Always
23773         define as a function, as that's a bit cleaner than having it be
23774         sometimes a function and sometimes a macro.
23775         (rpl_dup2): Move the Windows-specific stuff out of here and into
23776         ms_windows_dup2.  Don't protect the Haiku-related fix with
23777         "#if !defined __linux__", as the same code also works around
23778         a Linux kernel bug, and it doesn't add any system calls on any
23779         platform.  Add comment about FreeBSD 6.1.
23781         sigprocmask: move #include directive
23782         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
23783         Windows-specific section, so that the Emacs source need not
23784         contain msvc-inval.h.
23786 2011-09-23  Bruno Haible  <bruno@clisp.org>
23788         read: Support for MSVC 9.
23789         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
23790         is not 1.
23791         * lib/read.c (read_nothrow): New function.
23792         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
23793         read_nothrow.
23794         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
23795         invalid parameter handler.
23796         (gl_PREREQ_READ): New macro.
23797         * modules/read (Depends-on): Add msvc-inval.
23798         (configure.ac): Invoke gl_PREREQ_READ.
23799         * doc/posix-functions/read.texi: Mention the problem on MSVC.
23801 2011-09-23  Bruno Haible  <bruno@clisp.org>
23803         close: Support for MSVC 9.
23804         * lib/close.c: Include <errno.h>, msvc-inval.h.
23805         (close_nothrow): New function.
23806         (rpl_close): Use it.
23807         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
23808         invalid parameter handler.
23809         * modules/close (Depends-on): Add msvc-inval.
23810         * modules/dup2-tests (Depends-on): Add close.
23811         * modules/dup3-tests (Depends-on): Likewise.
23812         * modules/fcntl-tests (Depends-on): Likewise.
23813         * modules/spawn-pipe-tests (Depends-on): Likewise.
23814         * modules/unistd-safer-tests (Depends-on): Likewise.
23815         * doc/posix-functions/close.texi: Mention the problem on MSVC.
23817 2011-09-23  Bruno Haible  <bruno@clisp.org>
23819         New module 'dup'.
23820         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
23821         Allow replacement.
23822         * lib/dup.c: New file.
23823         * lib/fchdir.c (rpl_dup): Remove function.
23824         * m4/dup.m4: New file.
23825         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
23826         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
23827         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
23828         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
23829         * modules/dup: New file.
23830         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
23831         'dup' module is in use.
23832         * modules/fdopendir (Depends-on): Add dup.
23833         * modules/fdutimensat-tests (Depends-on): Likewise.
23834         * modules/fts (Depends-on): Likewise.
23835         * modules/futimens-tests (Depends-on): Likewise.
23836         * modules/posix_spawnp-tests (Depends-on): Likewise.
23837         * modules/unistd-safer-tests (Depends-on): Likewise.
23838         * modules/utimens-tests (Depends-on): Likewise.
23839         * doc/posix-functions/dup.texi: Mention the new module and the problem
23840         on MSVC.
23842 2011-09-23  Bruno Haible  <bruno@clisp.org>
23844         getdtablesize: Support for MSVC 9.
23845         * lib/getdtablesize.c: Include msvc-inval.h.
23846         (_setmaxstdio_nothrow): New function.
23847         (_setmaxstdio): Redefine it.
23848         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
23849         * modules/getdtablesize (Depends-on): Add msvc-inval.
23850         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
23852 2011-09-23  Bruno Haible  <bruno@clisp.org>
23854         signal-h: Rename from signal.
23855         * modules/signal-h: Renamed from modules/signal.
23856         * modules/pthread_sigmask (Depends-on): Update.
23857         * modules/raise (Depends-on): Likewise.
23858         * modules/sigaction (Depends-on): Likewise.
23859         * modules/sigpipe (Depends-on): Likewise.
23860         * modules/sigprocmask (Depends-on): Likewise.
23861         * modules/sys_select (Depends-on): Likewise.
23862         * modules/signal-h-tests: Renamed from modules/signal-tests.
23863         (Files, Depends-on, Makefile.am): Update.
23864         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
23865         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
23866         (Files, Makefile.am): Update.
23867         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
23868         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
23869         * modules/signal: New placeholder file.
23870         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
23871         * doc/posix-headers/signal.texi: Update.
23872         * NEWS: Mention the change.
23874 2011-09-23  Bruno Haible  <bruno@clisp.org>
23876         sigprocmask: Avoid crashes through signal() on MSVC 9.
23877         * lib/sigprocmask.c: Include msvc-inval.h.
23878         (signal_nothrow): New function.
23879         (signal): Redefine it.
23880         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
23881         * modules/sigprocmask (Depends-on): Add msvc-inval.
23882         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
23884 2011-09-23  Bruno Haible  <bruno@clisp.org>
23886         Tests for module 'raise'.
23887         * modules/raise-tests: New file.
23888         * tests/test-raise.c: New file.
23890         raise: Support for MSVC.
23891         * lib/signal.in.h (raise): New declaration.
23892         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
23893         for native Windows platforms.
23894         * m4/raise.m4: New file.
23895         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
23896         HAVE_RAISE, REPLACE_RAISE.
23897         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
23898         REPLACE_RAISE.
23899         * modules/raise (Status, Notice): Remove fields.
23900         (Files): Add m4/raise.m4.
23901         (Depends-on): Add signal, msvc-inval.
23902         (configure.ac): Use the common idioms.
23903         (Maintainer): Add me.
23904         * tests/test-signal-c++.cc: Check the signature of raise.
23905         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
23907 2011-09-23  Bruno Haible  <bruno@clisp.org>
23909         pipe2: Fix compilation on pre-C99 compilers.
23910         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
23912 2011-09-23  Bruno Haible  <bruno@clisp.org>
23914         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
23915         * lib/msvc-nothrow.h: New file.
23916         * lib/msvc-nothrow.c: New file.
23917         * m4/msvc-nothrow.m4: New file.
23918         * modules/msvc-nothrow: New file.
23919         * lib/dup2.c: Include msvc-nothrow.h.
23920         (rpl_dup2): No need to protect _get_osfhandle call here.
23921         * lib/accept4.c: Include msvc-nothrow.h.
23922         * lib/error.c: Likewise.
23923         * lib/fcntl.c: Likewise.
23924         * lib/lseek.c: Likewise.
23925         * lib/nonblocking.c: Likewise.
23926         * lib/poll.c: Likewise.
23927         * lib/read.c: Likewise.
23928         * lib/select.c: Likewise.
23929         * lib/sockets.h: Likewise.
23930         * lib/sockets.c: Likewise.
23931         * lib/stdio-read.c: Likewise.
23932         * lib/stdio-write.c: Likewise.
23933         * lib/write.c: Likewise.
23934         * lib/w32sock.h: Likewise.
23935         * lib/w32spawn.h: Likewise.
23936         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
23937         * lib/fsync.c: Likewise.
23938         * lib/isapipe.c: Likewise.
23939         * modules/dup2 (Depends-on): Add msvc-nothrow.
23940         * modules/accept4 (Depends-on): Likewise.
23941         * modules/error (Depends-on): Likewise.
23942         * modules/fcntl (Depends-on): Likewise.
23943         * modules/lseek (Depends-on): Likewise.
23944         * modules/nonblocking (Depends-on): Likewise.
23945         * modules/poll (Depends-on): Likewise.
23946         * modules/read (Depends-on): Likewise.
23947         * modules/select (Depends-on): Likewise.
23948         * modules/sockets (Depends-on): Likewise.
23949         * modules/sigpipe (Depends-on): Likewise.
23950         * modules/write (Depends-on): Likewise.
23951         * modules/accept (Depends-on): Likewise.
23952         * modules/bind (Depends-on): Likewise.
23953         * modules/connect (Depends-on): Likewise.
23954         * modules/gethostname (Depends-on): Likewise.
23955         * modules/getpeername (Depends-on): Likewise.
23956         * modules/getsockname (Depends-on): Likewise.
23957         * modules/getsockopt (Depends-on): Likewise.
23958         * modules/ioctl (Depends-on): Likewise.
23959         * modules/listen (Depends-on): Likewise.
23960         * modules/recv (Depends-on): Likewise.
23961         * modules/recvfrom (Depends-on): Likewise.
23962         * modules/send (Depends-on): Likewise.
23963         * modules/sendto (Depends-on): Likewise.
23964         * modules/setsockopt (Depends-on): Likewise.
23965         * modules/shutdown (Depends-on): Likewise.
23966         * modules/socket (Depends-on): Likewise.
23967         * modules/execute (Depends-on): Likewise.
23968         * modules/spawn-pipe (Depends-on): Likewise.
23969         * modules/flock (Depends-on): Likewise.
23970         * modules/fsync (Depends-on): Likewise.
23971         * modules/isapipe (Depends-on): Likewise.
23972         * tests/test-cloexec.c: Include msvc-nothrow.h.
23973         * tests/test-dup-safer.c: Likewise.
23974         * tests/test-dup2.c: Likewise.
23975         * tests/test-dup3.c: Likewise.
23976         * tests/test-fcntl.c: Likewise.
23977         * tests/test-pipe.c: Likewise.
23978         * tests/test-pipe2.c: Likewise.
23979         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
23980         * modules/unistd-safer-tests (Depends-on): Likewise.
23981         * modules/dup2-tests (Depends-on): Likewise.
23982         * modules/dup3-tests (Depends-on): Likewise.
23983         * modules/fcntl-tests (Depends-on): Likewise.
23984         * modules/pipe-posix-tests (Depends-on): Likewise.
23985         * modules/pipe2-tests (Depends-on): Likewise.
23987 2011-09-23  Bruno Haible  <bruno@clisp.org>
23989         dup2: Make code more maintainable.
23990         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
23991         (rpl_dup2): Use it.
23992         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
23993         * modules/dup2 (configure.ac): Invoke it.
23994         Reported by Paul Eggert.
23996 2011-09-23  Bruno Haible  <bruno@clisp.org>
23998         msvc-inval: Fix compilation error.
23999         * lib/msvc-inval.h: Include <excpt.h>.
24001 2011-09-23  Bruno Haible  <bruno@clisp.org>
24003         mkdir: Tweak for MSVC 9.
24004         * lib/sys_stat.in.h: Update comments.
24005         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
24007         Tests for module 'chdir'.
24008         * modules/chdir-tests: New file.
24009         * tests/test-chdir.c: New file.
24011         New module 'chdir'.
24012         * modules/chdir: New file.
24013         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
24014         (chdir): New declaration.
24015         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
24016         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
24017         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
24018         * tests/test-unistd-c++.cc: Check signature of chdir.
24019         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
24020         * modules/chdir-long (Depends-on): Add chdir.
24021         * modules/fchdir (Depends-on): Likewise.
24022         * modules/rename (Depends-on): Likewise.
24023         * modules/savewd (Depends-on): Likewise.
24025         rmdir: Support for mingw, MSVC 9.
24026         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
24027         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
24029         getcwd: Tweak for MSVC 9.
24030         * lib/unistd.in.h: Update comments.
24031         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
24033 2011-09-22  Bruno Haible  <bruno@clisp.org>
24035         strerror_r-posix: Avoid a link error on MSVC.
24036         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
24037         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
24039 2011-09-22  Bruno Haible  <bruno@clisp.org>
24041         select: Avoid link errors on MSVC.
24042         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
24043         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
24044         * modules/pselect (Link): Likewise.
24045         * NEWS: Mention the change.
24046         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
24047         test-select-stdin against $(LIB_SELECT).
24048         * modules/pselect-tests (Makefile.am): Link test-pselect against
24049         $(LIB_SELECT).
24051 2011-09-22  Bruno Haible  <bruno@clisp.org>
24053         select: Avoid compilation error on MSVC.
24054         * lib/select.c: Don't include <stdbool.h>.
24056 2011-09-21  Bruno Haible  <bruno@clisp.org>
24058         Consolidate all uses of PATH_MAX in *.m4 files.
24059         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
24060         macros.
24061         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
24062         and gl_PATHMAX_SNIPPET.
24063         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
24064         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24065         * modules/chdir-long (Files): Add m4/pathmax.m4.
24066         * modules/getcwd (Files): Likewise.
24068 2011-09-21  Bruno Haible  <bruno@clisp.org>
24070         ftruncate: Un-deprecate, concentrate on Win32 support.
24071         * modules/ftruncate (Status, Notice): Remove sections.
24072         (Depends-on): Add largefile.
24073         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
24074         non-mingw platforms.
24075         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
24076         include <io.h>.
24077         * modules/perror-tests (Depends-on): Add ftruncate.
24078         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
24079         'ftruncate' module.
24081 2011-09-21  Bruno Haible  <bruno@clisp.org>
24083         Add dependencies to new dirent related modules.
24084         * modules/opendir (Depends-on): Add closedir.
24085         * modules/getcwd (Depends-on): Add opendir, closedir.
24086         * modules/dirent-safer-tests (Depends-on): Likewise.
24087         * modules/fdopendir-tests (Depends-on): Likewise.
24088         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
24089         * modules/renameat-tests (Depends-on): Likewise.
24091 2011-09-21  Bruno Haible  <bruno@clisp.org>
24093         opendir: Avoid compilation error on mingw.
24094         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
24095         * modules/opendir (Depends-on): Add unistd.
24097 2011-09-21  Bruno Haible  <bruno@clisp.org>
24099         ftruncate tests: Avoid a test failure on mingw.
24100         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
24102 2011-09-21  Bruno Haible  <bruno@clisp.org>
24104         select tests: Avoid test failures on OSF/1 5.1 and mingw.
24105         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
24106         native Windows.
24108 2011-09-21  Bruno Haible  <bruno@clisp.org>
24110         New module 'fdopen'.
24111         * lib/stdio.in.h (fdopen): New declaration.
24112         * lib/fdopen.c: New file.
24113         * m4/fdopen.m4: New file.
24114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
24115         REPLACE_FDOPEN.
24116         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
24117         REPLACE_FDOPEN.
24118         * modules/fdopen: New file.
24119         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
24120         * tests/test-stdio-c++.cc: Check signature of fdopen.
24121         * doc/posix-functions/fdopen.texi: Mention the new module.
24123 2011-09-21  Bruno Haible  <bruno@clisp.org>
24125         unlockpt tests: Avoid test failure on NetBSD 5.1.
24126         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
24127         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
24129 2011-09-21  Bruno Haible  <bruno@clisp.org>
24131         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
24132         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
24133         * tests/test-getlogin_r.c (main): Likewise.
24135 2011-09-20  Bruno Haible  <bruno@clisp.org>
24137         time tests: Don't require pid_t.
24138         * doc/posix-headers/time.texi: Revert last change.
24139         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
24140         * tests/test-time.c: Comment out the check for pid_t.
24142 2011-09-20  Bruno Haible  <bruno@clisp.org>
24144         fsync tests: Avoid a test failure on mingw.
24145         * tests/test-fsync.c (main): Allow a failure with EIO.
24147 2011-09-20  Bruno Haible  <bruno@clisp.org>
24149         euidaccess: Update comments.
24150         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
24152 2011-09-20  Bruno Haible  <bruno@clisp.org>
24154         Ensure EBADF returns for socket functions on mingw.
24155         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
24156         descriptor is invalid.
24157         * lib/bind.c (rpl_bind): Likewise.
24158         * lib/connect.c (rpl_connect): Likewise.
24159         * lib/getpeername.c (rpl_getpeername): Likewise.
24160         * lib/getsockname.c (rpl_getsockname): Likewise.
24161         * lib/getsockopt.c (rpl_getsockopt): Likewise.
24162         * lib/listen.c (rpl_listen): Likewise.
24163         * lib/recv.c (rpl_recv): Likewise.
24164         * lib/recvfrom.c (rpl_recvfrom): Likewise.
24165         * lib/send.c (rpl_send): Likewise.
24166         * lib/sendto.c (rpl_sendto): Likewise.
24167         * lib/setsockopt.c (rpl_setsockopt): Likewise.
24168         * lib/shutdown.c (rpl_shutdown): Likewise.
24170 2011-09-20  Bruno Haible  <bruno@clisp.org>
24172         select tests: EBADF tests.
24173         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
24174         test_bad_fd): New functions.
24175         (test_function): Invoke also test_bad_fd.
24177 2011-09-20  Bruno Haible  <bruno@clisp.org>
24179         Tests for module 'posix_spawn_file_actions_addopen.
24180         * modules/posix_spawn_file_actions_addopen-tests: New file.
24181         * tests/test-posix_spawn_file_actions_addopen.c: New file.
24183         Tests for module 'posix_spawn_file_actions_adddup2'.
24184         * modules/posix_spawn_file_actions_adddup2-tests: New file.
24185         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
24187         Tests for module 'posix_spawn_file_actions_addclose'.
24188         * modules/posix_spawn_file_actions_addclose-tests: New file.
24189         * tests/test-posix_spawn_file_actions_addclose.c: New file.
24191 2011-09-20  Bruno Haible  <bruno@clisp.org>
24193         Tests for module 'unlockpt'.
24194         * modules/unlockpt-tests: New file.
24195         * tests/test-unlockpt.c: New file.
24196         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
24198         Tests for module 'grantpt'.
24199         * modules/grantpt-tests: New file.
24200         * tests/test-grantpt.c: New file.
24201         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
24203 2011-09-20  Bruno Haible  <bruno@clisp.org>
24205         freopen tests: EBADF tests.
24206         * tests/test-freopen.c: Include errno.h, unistd.h.
24207         (main): Add tests for EBADF, commented out for the moment.
24209         fclose tests: EBADF tests.
24210         * tests/test-fclose.c (main): Add tests for EBADF.
24212         fflush tests: EBADF tests.
24213         * tests/test-fflush.c: Include errno.h, macros.h.
24214         (main): Add tests for EBADF.
24216         ftello tests: EBADF tests.
24217         * tests/test-ftello4.sh: New file.
24218         * tests/test-ftello4.c: New file.
24219         * modules/ftello-tests (Files): Add them.
24220         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
24222         fseeko tests: EBADF tests.
24223         * tests/test-fseeko4.sh: New file.
24224         * tests/test-fseeko4.c: New file.
24225         * modules/fseeko-tests (Files): Add them.
24226         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
24228         Tests for function fputc().
24229         * modules/fputc-tests: New file.
24230         * tests/test-fputc.c: New file.
24231         * modules/stdio-tests (Depends-on): Add fputc-tests.
24233         Tests for function fgetc().
24234         * modules/fgetc-tests: New file.
24235         * tests/test-fgetc.c: New file.
24236         * modules/stdio-tests (Depends-on): Add fgetc-tests.
24238         Tests for function fdopen().
24239         * modules/fdopen-tests: New file.
24240         * tests/test-fdopen.c: New file.
24241         * modules/stdio-tests (Depends-on): Add fdopen-tests.
24243         Tests for module 'vdprintf'.
24244         * modules/vdprintf-tests: New file.
24245         * tests/test-vdprintf.c: New file.
24247         Tests for module 'dprintf'.
24248         * modules/dprintf-tests: New file.
24249         * tests/test-dprintf.c: New file.
24251 2011-09-20  Bruno Haible  <bruno@clisp.org>
24253         Tests for module 'ioctl'.
24254         * modules/ioctl-tests: New file.
24255         * tests/test-ioctl.c: New file.
24257 2011-09-20  Bruno Haible  <bruno@clisp.org>
24259         fcntl tests: EBADF tests.
24260         * tests/test-fcntl.c (main): Add more tests for EBADF.
24262 2011-09-20  Bruno Haible  <bruno@clisp.org>
24264         utimensat tests: EBADF tests.
24265         * tests/test-utimensat.c (main): Add tests for EBADF.
24267         renameat tests: EBADF tests.
24268         * tests/test-renameat.c (main): Add tests for EBADF.
24270         mkfifoat tests: EBADF tests.
24271         * tests/test-mkfifoat.c (main): Add tests for EBADF.
24273         readlinkat tests: EBADF tests.
24274         * tests/test-readlinkat.c (main): Add tests for EBADF.
24276         symlinkat tests: EBADF tests.
24277         * tests/test-symlinkat.c (main): Add tests for EBADF.
24279         linkat tests: EBADF tests.
24280         * tests/test-linkat.c (main): Add tests for EBADF.
24282         Tests for module 'faccessat'.
24283         * modules/faccessat-tests: New file.
24284         * tests/test-faccessat.c: New file.
24286         fdopendir tests: EBADF tests.
24287         * tests/test-fdopendir.c (main): Add more tests for EBADF.
24289         openat tests: EBADF tests.
24290         * tests/test-fchownat.c (main): Add tests for EBADF.
24291         * tests/test-fstatat.c (main): Likewise.
24292         * tests/test-mkdirat.c (main): Likewise.
24293         * tests/test-openat.c (main): Likewise.
24294         * tests/test-unlinkat.c (main): Likewise.
24295         * tests/test-fchmodat.c: New file.
24296         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
24297         (Makefile.am): Also run 'test-fchmodat'.
24299 2011-09-20  Bruno Haible  <bruno@clisp.org>
24301         utimens, futimens, fdutimensat tests: EBADF tests.
24302         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
24304         Tests for function fstat().
24305         * modules/fstat-tests: New file.
24306         * tests/test-fstat.c: New file.
24307         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
24309 2011-09-20  Bruno Haible  <bruno@clisp.org>
24311         test-ttyname_r tests: EBADF tests.
24312         * tests/test-ttyname_r.c (main): Add tests for EBADF.
24314         Tests for module 'isatty'.
24315         * modules/isatty-tests: New file.
24316         * tests/test-isatty.c: New file.
24318         Tests for module 'write'.
24319         * modules/write-tests: New file.
24320         * tests/test-write.c: New file.
24322         Tests for module 'read'.
24323         * modules/read-tests: New file.
24324         * tests/test-read.c: New file.
24326         pwrite tests: EBADF tests.
24327         * tests/test-pwrite.c (main): Add tests for EBADF.
24329         pread tests: EBADF tests.
24330         * tests/test-pread.c (main): Add tests for EBADF.
24332         lseek tests: EBADF tests.
24333         * tests/test-lseek.c (main): Add more tests for EBADF.
24335         Tests for module 'ftruncate'.
24336         * modules/ftruncate-tests: New file.
24337         * tests/test-ftruncate.sh: New file.
24338         * tests/test-ftruncate.c: New file.
24340         fsync tests: EBADF tests.
24341         * tests/test-fsync.c (main): Add more tests for EBADF.
24343         fdatasync tests: EBADF tests.
24344         * tests/test-fdatasync.c (main): Add more tests for EBADF.
24346         Tests for module 'fchown'.
24347         * modules/fchown-tests: New file.
24348         * tests/test-fchown.c: New file.
24350         Tests for module 'fchmod'.
24351         * modules/fchmod-tests: New file.
24352         * tests/test-fchmod.c: New file.
24354         fchdir tests: EBADF tests.
24355         * tests/test-fchdir.c (main): Add more tests for EBADF.
24357         dup2 tests: EBADF tests.
24358         * tests/test-dup2.c (main): Add more tests for EBADF.
24360         Tests for module 'dup'.
24361         * modules/dup-tests: New file.
24362         * tests/test-dup.c: New file.
24364         Tests for module 'close'.
24365         * modules/close-tests: New file.
24366         * tests/test-close.c: New file.
24368 2011-09-20  Bruno Haible  <bruno@clisp.org>
24370         Tests for module 'shutdown'.
24371         * modules/shutdown-tests: New file.
24372         * tests/test-shutdown.c: New file.
24374         Tests for module 'setsockopt'.
24375         * modules/setsockopt-tests: New file.
24376         * tests/test-setsockopt.c: New file.
24378         Tests for module 'sendto'.
24379         * modules/sendto-tests: New file.
24380         * tests/test-sendto.c: New file.
24382         Tests for module 'send'.
24383         * modules/send-tests: New file.
24384         * tests/test-send.c: New file.
24386         Tests for module 'recvfrom'.
24387         * modules/recvfrom-tests: New file.
24388         * tests/test-recvfrom.c: New file.
24390         Tests for module 'recv'.
24391         * modules/recv-tests: New file.
24392         * tests/test-recv.c: New file.
24394         Tests for module 'listen'.
24395         * modules/listen-tests: New file.
24396         * tests/test-listen.c: New file.
24398         Tests for module 'getsockopt'.
24399         * modules/getsockopt-tests: New file.
24400         * tests/test-getsockopt.c: New file.
24402         Tests for module 'getsockname'.
24403         * modules/getsockname-tests: New file.
24404         * tests/test-getsockname.c: New file.
24406         Tests for module 'getpeername'.
24407         * modules/getpeername-tests: New file.
24408         * tests/test-getpeername.c: New file.
24410         Tests for module 'connect'.
24411         * modules/connect-tests: New file.
24412         * tests/test-connect.c: New file.
24414         Tests for module 'bind'.
24415         * modules/bind-tests: New file.
24416         * tests/test-bind.c: New file.
24418         accept4 tests: Fix for native Windows.
24419         * tests/test-accept4.c: Include sockets.h.
24420         (main): Invoke gl_sockets_startup.
24421         * modules/accept4-tests (Depends-on): Add sockets.
24423         accept tests: Fix for native Windows.
24424         * tests/test-accept.c: Include sockets.h.
24425         (main): Invoke gl_sockets_startup.
24426         * modules/accept-tests (Depends-on): Add sockets.
24428 2011-09-19  Bruno Haible  <bruno@clisp.org>
24430         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
24431         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
24432         do...while(0).
24433         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
24434         Suggested by Paul Eggert.
24436 2011-09-19  Bruno Haible  <bruno@clisp.org>
24438         sched: Ensure pid_t is defined.
24439         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
24440         not define pid_t.
24441         * lib/sched.in.h: Include <sys/types.h>.
24442         * doc/posix-headers/sched.texi: Mention the pid_t problem.
24443         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24445 2011-09-19  Bruno Haible  <bruno@clisp.org>
24447         msvc-inval: Ensure the entire expansion is a single statement.
24448         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
24449         of braces.
24451 2011-09-19  Jim Meyering  <meyering@redhat.com>
24453         tests: use printf, not echo in init.sh's warn_ function
24454         * tests/init.sh (warn_): Use printf, not echo.  The latter would
24455         misbehave when given strings containing a backslash or starting
24456         with e.g., -n.  James Youngman suggested setting IFS.
24458 2011-09-19  Eric Blake  <eblake@redhat.com>
24460         futimens: enhance test
24461         * tests/test-futimens.h (test_futimens): Also check for EBADF on
24462         closed non-negative fd.
24464         date: accept 'hence' as opposite of 'ago'
24465         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
24466         * tests/test-parse-datetime.c (main): Enhance test.
24467         Suggested by Jesse Wilson.
24469 2011-09-19  Jim Meyering  <meyering@redhat.com>
24471         getcwd: don't fail in a deep directory on a system without openat
24472         Before this change, getcwd would fail when called from a directory
24473         of depth PATH_MAX / 3 or greater.  That was due to the fact that
24474         the non-openat implementation used "..", "../..", "../../..", etc.
24475         to access ancestor directories.  With too many, that string would
24476         be longer than PATH_MAX.
24477         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
24478         using gnulib's openat replacement.
24479         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
24480         we're using the replacement function.
24482 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
24484         maint.mk: avoid warnings from perl about missing files
24485         * top/maint.mk (def_sym_regex): Ignore files listed in
24486         $(gl_other_headers_) that do not exist, say because a project
24487         does not use a corresponding module.
24489 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
24491         stat: use pathmax.h only if needed
24492         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
24493         This is better for Emacs, which does not have a mingw port and
24494         therefore can avoid the pathmax module.
24496         utimens: remove dependency on dup2
24497         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
24498         to work around the Linux kernel bug.
24499         * modules/utimens (Depends-on): Remove dup2.
24501 2011-09-18  Bruno Haible  <bruno@clisp.org>
24503         inet_ntop, inet_pton: Look for it also in libresolv.
24504         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
24505         libnsl, search for it in libresolv.
24506         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
24507         Needed on Solaris 7.
24509 2011-09-18  Bruno Haible  <bruno@clisp.org>
24511         accept, accept4 tests: Avoid link error on Solaris.
24512         * modules/accept-tests (Makefile.am): Link test-accept against
24513         $(LIBSOCKET).
24514         * modules/accept4-tests (Makefile.am): Link test-accept4 against
24515         $(LIBSOCKET).
24517         accept4: Avoid link error on Solaris.
24518         * modules/accept4 (Link): New section.
24520         socket functions: Avoid link errors on Solaris.
24521         * modules/accept (Depends-on): Add socketlib.
24522         (Link): New section.
24523         * modules/bind (Depends-on): Add socketlib.
24524         (Link): New section.
24525         * modules/connect (Depends-on): Add socketlib.
24526         (Link): New section.
24527         * modules/getpeername (Depends-on): Add socketlib.
24528         (Link): New section.
24529         * modules/getsockname (Depends-on): Add socketlib.
24530         (Link): New section.
24531         * modules/getsockopt (Depends-on): Add socketlib.
24532         (Link): New section.
24533         * modules/listen (Depends-on): Add socketlib.
24534         (Link): New section.
24535         * modules/recv (Depends-on): Add socketlib.
24536         (Link): New section.
24537         * modules/recvfrom (Depends-on): Add socketlib.
24538         (Link): New section.
24539         * modules/send (Depends-on): Add socketlib.
24540         (Link): New section.
24541         * modules/sendto (Depends-on): Add socketlib.
24542         (Link): New section.
24543         * modules/setsockopt (Depends-on): Add socketlib.
24544         (Link): New section.
24545         * modules/shutdown (Depends-on): Add socketlib.
24546         (Link): New section.
24547         * modules/socket (Depends-on): Add socketlib.
24548         (Link): New section.
24550 2011-09-18  Bruno Haible  <bruno@clisp.org>
24552         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
24553         * tests/test-ptsname.c (main): Terminate the test if it takes longer
24554         than 5 seconds.
24555         * modules/ptsname-tests (configure.ac): Test for alarm.
24557 2011-09-18  Bruno Haible  <bruno@clisp.org>
24559         posix_spawn_file_actions_add*: Fix module dependencies.
24560         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
24561         posix_spawn_file_actions_init.
24562         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
24563         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
24565 2011-09-18  Bruno Haible  <bruno@clisp.org>
24567         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
24568         * tests/test-rename.h (test_rename): Allow error code EEXIST.
24569         * tests/test-renameat.c (main): Likewise.
24571 2011-09-18  Bruno Haible  <bruno@clisp.org>
24573         Tests for module 'accept4'.
24574         * modules/accept4-tests: New file.
24575         * tests/test-accept4.c: New file.
24577 2011-09-18  Bruno Haible  <bruno@clisp.org>
24579         Tests for module 'accept'.
24580         * modules/accept-tests: New file.
24581         * tests/test-accept.c: New file.
24583 2011-09-18  Bruno Haible  <bruno@clisp.org>
24585         dup2: Support for MSVC.
24586         * lib/dup2.c: Include msvc-inval.h.
24587         (rpl_dup2): Handle invalid parameter notifications during dup2 and
24588         _get_osfhandle calls.
24589         * modules/dup2 (Depends-on): Add msvc-inval.
24590         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
24592         New module 'msvc-inval'.
24593         * lib/msvc-inval.h: New file.
24594         * lib/msvc-inval.c: New file.
24595         * m4/msvc-inval.m4: New file.
24596         * modules/msvc-inval: New file.
24598 2011-09-17  Bruno Haible  <bruno@clisp.org>
24600         Tests for module 'pclose'.
24601         * modules/pclose-tests: New file.
24603         New module 'pclose'.
24604         * lib/stdio.in.h (pclose): New declaration.
24605         * lib/pclose.c: New file.
24606         * m4/pclose.m4: New file.
24607         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
24608         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
24609         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
24610         * modules/pclose: New file.
24611         * modules/popen-tests (Depends-on): Add pclose.
24612         * modules/popen-safer-tests (Depends-on): Likewise.
24613         * doc/posix-functions/pclose.texi: Mention the new module.
24615 2011-09-17  Bruno Haible  <bruno@clisp.org>
24617         popen: Support for MSVC.
24618         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
24619         * lib/popen.c (popen): Provide alternate definition for native Windows.
24620         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
24621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
24622         * modules/popen (Depends-on, configure.ac): Update condition.
24623         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
24624         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
24625         fixed.
24627 2011-09-17  Bruno Haible  <bruno@clisp.org>
24629         isnanl, isnand, isnanf: Work around MSVC bug.
24630         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
24632 2011-09-17  Bruno Haible  <bruno@clisp.org>
24634         sys_socket tests: Fix recent mistake.
24635         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
24637 2011-09-17  Bruno Haible  <bruno@clisp.org>
24639         putenv: Support for MSVC.
24640         * modules/putenv (Depends-on): Add environ.
24641         * lib/putenv.c (environ): Disable declaration.
24642         * lib/unistd.in.h: Update comment.
24644 2011-09-17  Bruno Haible  <bruno@clisp.org>
24646         math: Avoid macro redefinition warnings on MSVC.
24647         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
24648         Undefine before redefining.
24650 2011-09-17  Bruno Haible  <bruno@clisp.org>
24652         doc: Mention functions which are declared as macros.
24653         * doc/posix-functions/*[fl].texi: Mention that some functions are
24654         defined as macros with arguments only.
24656 2011-09-17  Bruno Haible  <bruno@clisp.org>
24658         Add dependencies to new dirent related modules.
24659         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
24660         * modules/fts (Depends-on): Likewise.
24661         * modules/glob (Depends-on): Likewise.
24662         * modules/savedir (Depends-on): Likewise.
24663         * modules/scandir (Depends-on): Likewise.
24664         * modules/dirent-safer (Depends-on): Add opendir, closedir.
24665         * modules/fdopendir (Depends-on): Add opendir.
24667 2011-09-17  Bruno Haible  <bruno@clisp.org>
24669         inet_pton: Support for MSVC on Windows Vista or newer.
24670         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
24671         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
24672         HAVE_DECL_INET_PTON is defined.
24673         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
24674         On platforms with <winsock2.h>, test whether inet_pton is declared in
24675         <ws2tcpip.h>. If so, arrange to replace it.
24676         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
24677         REPLACE_INET_PTON.
24678         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
24679         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
24680         (Depends-on, configure.ac): Update condition.
24681         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
24683 2011-09-17  Bruno Haible  <bruno@clisp.org>
24685         inet_ntop: Support for MSVC on Windows Vista or newer.
24686         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
24687         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
24688         HAVE_DECL_INET_NTOP is defined.
24689         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
24690         On platforms with <winsock2.h>, test whether inet_ntop is declared in
24691         <ws2tcpip.h>. If so, arrange to replace it.
24692         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
24693         REPLACE_INET_NTOP.
24694         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
24695         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
24696         (Depends-on, configure.ac): Update condition.
24697         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
24699 2011-09-16  Eric Blake  <eblake@redhat.com>
24701         test-fsync: yet another enhancement
24702         * tests/test-fsync.c (main): Also test behavior on read-only text
24703         file.
24705 2011-09-16  Bruno Haible  <bruno@clisp.org>
24707         Enhance fsync, fdatasync tests.
24708         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
24709         * tests/test-fdatasync.c (main): Likewise.
24711 2011-09-16  Bruno Haible  <bruno@clisp.org>
24713         Support for MSVC compiler: Ensure mode_t gets defined.
24714         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
24715         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24716         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24717         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
24718         * tests/test-fcntl-h.c: Check that mode_t is defined.
24719         * tests/test-sys_stat.c: Likewise.
24720         * tests/test-sys_types.c: Likewise.
24721         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
24722         * doc/posix-headers/sys_stat.texi: Likewise.
24723         * doc/posix-headers/sys_types.texi: Likewise.
24725 2011-09-16  Bruno Haible  <bruno@clisp.org>
24727         sys_stat: Support for MSVC.
24728         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
24729         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
24730         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
24731         MSVC.
24733 2011-09-16  Bruno Haible  <bruno@clisp.org>
24735         Support for MSVC compiler: Ensure off_t gets defined.
24736         * lib/unistd.in.h: Include <sys/types.h>.
24737         * tests/test-fcntl-h.c: Check that off_t is defined.
24738         * tests/test-sys_stat.c: Likewise.
24739         * tests/test-sys_types.c: Likewise.
24741 2011-09-16  Eric Blake  <eblake@redhat.com>
24743         fdatasync: port to Solaris
24744         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
24745         * modules/fdatasync (Link): Document it.
24746         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
24748         fdatasync: port to MacOS X 10.7
24749         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
24750         declared.
24751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
24752         * modules/unistd (Makefile.am): Substitute it.
24753         * lib/unistd.in.h (fdatasync): Declare on MacOS.
24754         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
24756         fdatasync: minor improvements
24757         * modules/fdatasync (Depends-on): Add condition for fsync.
24758         * lib/fdatasync.c (fdatasync): Add comment.
24759         * tests/test-unistd-c++.cc: Test fdatasync.
24761         unistd: update refs to newer POSIX
24762         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
24763         Suggested by Bruno Haible.
24765         fdatasync: new module
24766         * modules/fsync (Description): Document difference to fdatasync.
24767         * modules/fdatasync: New module.
24768         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
24769         * lib/fdatasync.c (fdatasync): Likewise.
24770         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
24771         defaults.
24772         * modules/unistd (Makefile.am): Set witnesses.
24773         * lib/unistd.in.h (fdatasync): Declare.
24774         * MODULES.html.sh: Document it.
24775         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
24776         * modules/fdatasync-tests: New test.
24777         * tests/test-fdatasync.c: Likewise.
24779 2011-09-16  Eric Blake  <eblake@redhat.com>
24781         test-fsync: enhance tests
24782         * modules/fsync-tests (Depends-on): Add errno, for mingw.
24783         * tests/test-fsync.c (main): Enhance test.
24785 2011-09-15  Bruno Haible  <bruno@clisp.org>
24787         Support for MSVC compiler: Ensure ssize_t gets defined.
24788         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
24789         * doc/posix-headers/stdio.texi: Likewise.
24790         * modules/stdio (Depends-on): Add ssize_t.
24791         * modules/sys_socket (Depends-on): Likewise.
24792         * modules/sys_types (Depends-on): Likewise.
24793         * modules/sys_uio (Depends-on): Likewise.
24794         * modules/unistd (Depends-on): Likewise.
24795         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
24796         * tests/test-sys_types.c: Check that ssize_t is defined.
24798 2011-09-14  Bruno Haible  <bruno@clisp.org>
24800         Avoid using #, the m4 comment starter character, near brackets.
24801         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
24802         delimiter character in sed expressions.
24803         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
24804         Suggested by Eric Blake.
24806         Properly quote AC_CHECK_DECLS' 4th argument.
24807         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
24808         argument.
24809         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
24810         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24811         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24812         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24813         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24814         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
24815         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
24816         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
24817         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
24818         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
24819         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
24820         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
24821         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24822         * m4/isinf.m4 (gl_ISINF): Likewise.
24823         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
24824         * m4/readutmp.m4 (gl_READUTMP): Likewise.
24825         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
24826         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
24827         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
24828         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
24829         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
24830         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24831         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
24832         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
24833         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24834         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24835         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
24836         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24838         Reported by Eric Blake.
24840         Properly quote AC_CHECK_DECL's 4th argument.
24841         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
24842         argument.
24843         * m4/argp.m4 (gl_ARGP): Likewise.
24844         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
24845         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24846         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
24847         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
24848         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
24849         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
24850         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
24851         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
24852         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24853         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
24854         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
24855         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
24856         Reported by Eric Blake.
24858 2011-09-14  Eric Blake  <eblake@redhat.com>
24860         opendir: avoid compile warning
24861         * lib/opendir.c (includes): Always include errno.h.
24862         Reported by Tatsuro MATSUOKA.
24864 2011-09-14  Jim Meyering  <meyering@redhat.com>
24866         maint.mk: sc_tight_scope: propagate failure from sub-make
24867         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
24868         Reported by Martin von Gagern.
24870 2011-09-13  Bruno Haible  <bruno@clisp.org>
24872         tempname: Support for MSVC.
24873         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
24874         MSVC.
24875         * modules/tempname (Depends-on): Add fcntl-h.
24877 2011-09-13  Bruno Haible  <bruno@clisp.org>
24879         sys_time: Support for MSVC.
24880         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
24881         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
24882         include <winsock2.h>.
24883         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
24884         function declarations that collide with POSIX.
24885         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
24886         (Makefile.am): Substitute HAVE_WINSOCK2_H.
24888 2011-09-13  Bruno Haible  <bruno@clisp.org>
24890         stat: Support for MSVC.
24891         * lib/stat.c: Include pathmax.h.
24892         * modules/stat (Depends-on): Add pathmax.
24894         pathmax: Support for native Windows.
24895         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
24897 2011-09-12  Bruno Haible  <bruno@clisp.org>
24899         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
24900         * lib/dirent.in.h (struct dirent): New type.
24901         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
24902         DT_WHT): New macros.
24903         (DIR): New type.
24904         (opendir, closedir): Declare only if the module 'opendir' is enabled.
24905         (readdir, rewinddir): New declarations.
24906         * lib/dirent-private.h: New file.
24907         * lib/opendir.c: New file.
24908         * lib/readdir.c: New file.
24909         * lib/rewinddir.c: New file.
24910         * lib/closedir.c: New file.
24911         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
24912         * m4/opendir.m4: New file.
24913         * m4/readdir.m4: New file.
24914         * m4/rewinddir.m4: New file.
24915         * m4/closedir.m4: New file.
24916         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
24917         REPLACE_CLOSEDIR here.
24918         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
24919         readdir, rewinddir are declared.
24920         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
24921         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
24922         HAVE_REWINDDIR, HAVE_CLOSEDIR.
24923         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
24924         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
24925         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
24926         * modules/opendir: New file.
24927         * modules/readdir: New file.
24928         * modules/rewinddir: New file.
24929         * modules/closedir: New file.
24930         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
24931         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
24932         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
24933         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
24934         * NEWS: Mention the 'fchdir' change.
24936 2011-09-11  Bruno Haible  <bruno@clisp.org>
24938         asm-underscore.m4: Support for MSVC.
24939         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
24940         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
24942 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
24944         Doc about crypt functions.
24945         * doc/posix-functions/crypt.texi: Expand range of glibc versions
24946         needing for _GNU_SOURCE to get crypt.
24947         * doc/posix-functions/encrypt.texi: Likewise.
24948         * doc/posix-functions/setkey.texi: Likewise.
24950 2011-09-11  Bruno Haible  <bruno@clisp.org>
24952         doc: Update regarding MSVC 9.
24953         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
24954         tested".
24955         * doc/posix-functions/*.texi: Update with info about MSVC 9.
24956         * doc/posix-headers/*.texi: Likewise.
24957         * doc/pastposix-functions/*.texi: Likewise.
24958         * doc/glibc-functions/*.texi: Likewise.
24959         * doc/glibc-headers/*.texi: Likewise.
24961 2011-09-11  Bruno Haible  <bruno@clisp.org>
24963         unistd et al.: Don't assume <unistd.h> exists.
24964         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
24965         does not exist.
24966         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
24967         exist. But include <stdlib.h>.
24968         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
24969         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
24970         symlink() does not exist.
24971         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
24972         include <io.h> instead.
24973         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
24974         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
24975         include <direct.h> instead.
24976         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
24977         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24978         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
24979         <io.h> instead.
24980         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
24981         correctly if the system does not have hard links.
24982         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
24983         <direct.h> instead.
24984         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
24985         it when looking for function declarations.
24986         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
24987         <direct.h> and <io.h> instead.
24988         * doc/posix-headers/unistd.texi: More details about MSVC problem.
24990 2011-09-11  Bruno Haible  <bruno@clisp.org>
24992         strcase: Support for MSVC.
24993         * modules/strcase (Status, Notice): Remove obsoletion mark.
24994         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
24995         * doc/posix-functions/strncasecmp.texi: Likewise.
24997         strings: Don't assume <strings.h> exists.
24998         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
24999         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
25000         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
25001         * doc/posix-headers/strings.texi: Mention the MSVC problem.
25003 2011-09-11  Bruno Haible  <bruno@clisp.org>
25005         dirent: Don't assume <dirent.h> exists.
25006         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
25007         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
25008         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
25009         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
25011 2011-09-11  Bruno Haible  <bruno@clisp.org>
25013         Fix wint_t on MSVC.
25014         * lib/wchar.in.h (wint_t): On MSVC, override it.
25015         * lib/wctype.in.h (wint_t): Likewise.
25016         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
25017         MSVC.
25018         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
25019         * doc/posix-headers/wctype.texi: Likewise.
25021 2011-09-11  Bruno Haible  <bruno@clisp.org>
25023         sys_types: Fix typo.
25024         * lib/sys_types.in.h: Fix typo in comment.
25025         Reported by Paul Eggert.
25027         Support for MSVC compiler: Ensure size_t gets defined.
25028         * modules/strings (Depends-on): Add 'sys_types'.
25029         * modules/sys_uio (Depends-on): Likewise.
25030         * lib/sys_uio.in.h: Update comment.
25032         C++ tests for module 'sys_types'.
25033         * modules/sys_types-c++-tests: New file.
25034         * tests/test-sys_types-c++.cc: New file.
25036         Tests for module 'sys_types'.
25037         * modules/sys_types-tests: New file.
25038         * tests/test-sys_types.c: New file.
25040         New module 'sys_types'.
25041         * lib/sys_types.in.h: New file.
25042         * m4/sys_types_h.m4: New file.
25043         * modules/sys_types: New file.
25044         * doc/posix-headers/sys_types.texi: Mention the new module and the
25045         size_t problem on MSVC 9.
25047 2011-09-11  Bruno Haible  <bruno@clisp.org>
25049         Support for MSVC compiler: Avoid division by a literal 0.
25050         * lib/math.in.h (NAN): Define through a function call also on MSVC.
25051         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
25052         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
25053         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
25054         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
25055         * tests/infinity.h: New file.
25056         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
25057         on MSVC.
25058         * tests/test-ceilf1.c: Include infinity.h.
25059         (main): Use Infinityf.
25060         * tests/test-ceil1.c: Include infinity.h.
25061         (main): Use Infinityd.
25062         * tests/test-ceill.c: Include infinity.h.
25063         (main): Use Infinityl.
25064         * tests/test-dprintf-posix.c: Include infinity.h.
25065         (test_function): Use Infinityd.
25066         * tests/test-floorf1.c: Include infinity.h.
25067         (main): Use Infinityf.
25068         * tests/test-floor1.c: Include infinity.h.
25069         (main): Use Infinityd.
25070         * tests/test-floorl.c: Include infinity.h.
25071         (main): Use Infinityl.
25072         * tests/test-fprintf-posix.c: Include infinity.h.
25073         (test_function): Use Infinityd.
25074         * tests/test-frexp.c: Include infinity.h.
25075         (main): Use Infinityd.
25076         * tests/test-frexpl.c: Include infinity.h.
25077         (main): Use Infinityl.
25078         * tests/test-isfinite.c: Include infinity.h.
25079         (test_isfinitef): Use Infinityf.
25080         (test_isfinited): Use Infinityd.
25081         (test_isfinitel): Use Infinityl.
25082         * tests/test-isinf.c: Include infinity.h.
25083         (test_isinff): Use Infinityf.
25084         (test_isinfd): Use Infinityd.
25085         (test_isinfl): Use Infinityl.
25086         * tests/test-isnan.c: Include infinity.h.
25087         (test_float): Use Infinityf.
25088         (test_double): Use Infinityd.
25089         (test_long_double): Use Infinityl.
25090         * tests/test-isnanf.h: Include infinity.h.
25091         (main): Use Infinityf.
25092         * tests/test-isnand.h: Include infinity.h.
25093         (main): Use Infinityd.
25094         * tests/test-isnanl.h: Include infinity.h.
25095         (main): Use Infinityl.
25096         * tests/test-ldexpl.c: Include infinity.h.
25097         (main): Use Infinityl.
25098         * tests/test-printf-posix.h: Include infinity.h.
25099         (test_function): Use Infinityd.
25100         * tests/test-roundf1.c: Include infinity.h.
25101         (main): Use Infinityf.
25102         * tests/test-round1.c: Include infinity.h.
25103         (main): Use Infinityd.
25104         * tests/test-roundl.c: Include infinity.h.
25105         (main): Use Infinityl.
25106         * tests/test-signbit.c: Include infinity.h.
25107         (test_signbitf): Use Infinityf.
25108         (test_signbitd): Use Infinityd.
25109         (test_signbitl): Use Infinityl.
25110         * tests/test-snprintf-posix.h: Include infinity.h.
25111         (test_function): Use Infinityd, Infinityl.
25112         * tests/test-sprintf-posix.h: Include infinity.h.
25113         (test_function): Use Infinityd, Infinityl.
25114         * tests/test-truncf1.c: Include infinity.h.
25115         (main): Use Infinityf.
25116         * tests/test-trunc1.c: Include infinity.h.
25117         (main): Use Infinityd.
25118         * tests/test-truncl.c: Include infinity.h.
25119         (main): Use Infinityl.
25120         * tests/test-vasnprintf-posix.c: Include infinity.h.
25121         (test_function): Use Infinityd, Infinityl.
25122         * tests/test-vasprintf-posix.c: Include infinity.h.
25123         (test_function): Use Infinityd, Infinityl.
25124         * modules/ceilf-tests (Files): Add tests/infinity.h.
25125         * modules/ceil-tests (Files): Likewise.
25126         * modules/ceill-tests (Files): Likewise.
25127         * modules/dprintf-posix-tests (Files): Likewise.
25128         * modules/floorf-tests (Files): Likewise.
25129         * modules/floor-tests (Files): Likewise.
25130         * modules/floorl-tests (Files): Likewise.
25131         * modules/fprintf-posix-tests (Files): Likewise.
25132         * modules/frexp-tests (Files): Likewise.
25133         * modules/frexp-nolibm-tests (Files): Likewise.
25134         * modules/frexpl-tests (Files): Likewise.
25135         * modules/frexpl-nolibm-tests (Files): Likewise.
25136         * modules/isfinite-tests (Files): Likewise.
25137         * modules/isinf-tests (Files): Likewise.
25138         * modules/isnan-tests (Files): Likewise.
25139         * modules/isnanf-tests (Files): Likewise.
25140         * modules/isnanf-nolibm-tests (Files): Likewise.
25141         * modules/isnand-tests (Files): Likewise.
25142         * modules/isnand-nolibm-tests (Files): Likewise.
25143         * modules/isnanl-tests (Files): Likewise.
25144         * modules/isnanl-nolibm-tests (Files): Likewise.
25145         * modules/ldexpl-tests (Files): Likewise.
25146         * modules/printf-posix-tests (Files): Likewise.
25147         * modules/roundf-tests (Files): Likewise.
25148         * modules/round-tests (Files): Likewise.
25149         * modules/roundl-tests (Files): Likewise.
25150         * modules/signbit-tests (Files): Likewise.
25151         * modules/snprintf-posix-tests (Files): Likewise.
25152         * modules/sprintf-posix-tests (Files): Likewise.
25153         * modules/truncf-tests (Files): Likewise.
25154         * modules/trunc-tests (Files): Likewise.
25155         * modules/truncl-tests (Files): Likewise.
25156         * modules/vasnprintf-posix-tests (Files): Likewise.
25157         * modules/vasprintf-posix-tests (Files): Likewise.
25158         * modules/vdprintf-posix-tests (Files): Likewise.
25159         * modules/vfprintf-posix-tests (Files): Likewise.
25160         * modules/vprintf-posix-tests (Files): Likewise.
25161         * modules/vsnprintf-posix-tests (Files): Likewise.
25162         * modules/vsprintf-posix-tests (Files): Likewise.
25163         * modules/xprintf-posix-tests (Files): Likewise.
25165 2011-09-11  Bruno Haible  <bruno@clisp.org>
25167         Ensure pid_t gets defined.
25168         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
25169         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25170         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
25171         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25172         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25173         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25174         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
25175         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25176         * tests/test-fcntl-h.c: Check that pid_t is defined.
25177         * tests/test-sched.c: Likewise.
25178         * tests/test-termios.c: Likewise.
25179         * tests/test-time.c: Likewise.
25180         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
25181         * doc/posix-headers/signal.texi: Likewise.
25182         * doc/posix-headers/sys_types.texi: Likewise.
25183         * doc/posix-headers/time.texi: Likewise.
25185 2011-09-11  Bruno Haible  <bruno@clisp.org>
25187         acl: Fix compilation on Solaris 10 (older version).
25188         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
25189         of ACE_EVERYONE.
25190         * lib/set-mode-acl.c (qset_acl): Likewise.
25191         Reported by Christian Jullien <eligis@orange.fr>.
25193 2011-09-10  Bruno Haible  <bruno@clisp.org>
25195         iconv, unsetenv: Add support for MSVC compiler.
25196         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
25197         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
25199 2011-09-10  Bruno Haible  <bruno@clisp.org>
25201         *printf: Add support for MSVC compiler.
25202         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
25203         handles the exception caused by the %n directive. When cross-compiling,
25204         guess no on native Windows.
25205         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25206         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
25207         emulate it through vsnprintf.
25208         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
25209         * doc/posix-functions/dprintf.texi: Update documentation regarding
25210         MSVC 9.
25211         * doc/posix-functions/fprintf.texi: Likewise.
25212         * doc/posix-functions/printf.texi: Likewise.
25213         * doc/posix-functions/snprintf.texi: Likewise.
25214         * doc/posix-functions/sprintf.texi: Likewise.
25215         * doc/posix-functions/swprintf.texi: Likewise.
25216         * doc/posix-functions/vdprintf.texi: Likewise.
25217         * doc/posix-functions/vfprintf.texi: Likewise.
25218         * doc/posix-functions/vprintf.texi: Likewise.
25219         * doc/posix-functions/vsnprintf.texi: Likewise.
25220         * doc/posix-functions/vsprintf.texi: Likewise.
25221         * doc/glibc-functions/asprintf.texi: Likewise.
25222         * doc/glibc-functions/obstack_printf.texi: Likewise.
25223         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25224         * doc/glibc-functions/vasprintf.texi: Likewise.
25226 2011-09-10  Bruno Haible  <bruno@clisp.org>
25228         nocrash: Add support for native Windows.
25229         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
25231 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
25232             Bruno Haible  <bruno@clisp.org>
25234         absolute-header, include-next: Add support for MSVC compiler.
25235         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
25236         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
25237         directory separator in #line directives.
25238         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
25239         recognize also backslash as directory separator in #line directives.
25241 2011-09-08  Jim Meyering  <meyering@redhat.com>
25243         maint.mk: mark the post-release commit log with "maint: " prefix
25244         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
25245         one-line commit-log summary.
25247 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
25248             Bruno Haible  <bruno@clisp.org>
25250         Doc about crypt functions.
25251         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
25252         systems.
25253         * doc/posix-functions/encrypt.texi: Likewise.
25254         * doc/posix-functions/setkey.texi: Likewise.
25256 2011-09-08  Simon Josefsson  <simon@josefsson.org>
25258         * lib/gc.h: Fix copyright header.
25260 2011-09-07  Bruno Haible  <bruno@clisp.org>
25262         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
25263         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
25264         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
25266 2011-09-07  Bruno Haible  <bruno@clisp.org>
25268         openat: Work around compilation error with OSF/1 5.1 DTK cc.
25269         * lib/fopen.c: Use different syntax for include of <stdio.h>.
25270         * lib/freopen.c: Likewise.
25271         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
25272         * lib/lstat.c: Likewise.
25273         * lib/stat.c: Likewise.
25274         * lib/open.c: Use different syntax for include of <fcntl.h>.
25275         * lib/openat.c: Include fcntl.h again, explicitly.
25277 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
25279         parse-datetime: document the newly accepted format
25280         * doc/parse-datetime.texi (Combined date and time of day items):
25281         New section.
25283 2011-09-06  Bruno Haible  <bruno@clisp.org>
25285         acl: Fix a test failure on newer Solaris 10 with ZFS.
25286         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
25287         ENOSYS as no ACL.
25288         Reported by Jim Meyering.
25290 2011-09-06  Bruno Haible  <bruno@clisp.org>
25292         acl: Update for AIX >= 5.3 with NFS.
25293         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
25294         ENOSYS as no ACL.
25296         acl: Fix a test failure on AIX >= 5.3 with NFS.
25297         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
25298         as no ACL.
25300 2011-09-06  Bruno Haible  <bruno@clisp.org>
25302         acl: Fix a test failure on IRIX 6.5 with NFS.
25303         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
25304         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
25305         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
25306         * lib/copy-acl.c (qcopy_acl): Likewise.
25308 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
25310         openat: port to AIX 7.1 with large files
25311         AIX 7.1 does a "#define openat open64at" if large files are in use,
25312         so we can't simply #undef openat.  Use the orig_openat trick (similar
25313         to orig_open in lib/open.c) to work around the problem.  Problem
25314         reported by Kevin Brott for GNU tar, in the thread containing
25315         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
25316         * lib/openat.c (__need_system_fcntl_h): Define first.
25317         Include <fcntl.h> and <sys/types.h> before undefining.
25318         (orig_openat) [HAVE_OPENAT]: New inline function.
25319         (openat) [HAVE_OPENAT]: Do not undef.
25320         (rpl_openat): Use orig_openat, not openat.
25322 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25323             Bruno Haible  <bruno@clisp.org>
25325         acl: Avoid errors on NonStop Kernel.
25326         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
25327         ENOTSUP errors.
25329 2011-09-05  Bruno Haible  <bruno@clisp.org>
25331         acl: Clean up Solaris code.
25332         * lib/acl-internal.h: Remove no-op #if.
25333         * lib/file-has-acl.c: Likewise.
25334         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
25335         * lib/copy-acl.c (qcopy_acl): Likewise.
25337 2011-09-05  Bruno Haible  <bruno@clisp.org>
25339         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
25340         binaries built on the original Solaris 10.
25341         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
25342         trivial.
25344 2011-09-05  Bruno Haible  <bruno@clisp.org>
25346         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
25347         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
25348         10.
25349         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
25350         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
25351         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
25352         instead of acl_get, facl_get, acl_set, facl_set.
25354 2011-09-05  Bruno Haible  <bruno@clisp.org>
25356         copy-file: Try unit tests on more file systems.
25357         * tests/test-copy-file-1.sh: New file.
25358         * tests/test-copy-file-2.sh: New file.
25359         * modules/copy-file-tests (Files): Add them.
25360         (Makefile.am): Add them to TESTS.
25362         acl: Try unit tests on more file systems.
25363         * tests/test-file-has-acl-1.sh: New file.
25364         * tests/test-file-has-acl-2.sh: New file.
25365         * tests/test-set-mode-acl-1.sh: New file.
25366         * tests/test-set-mode-acl-2.sh: New file.
25367         * tests/test-copy-acl-1.sh: New file.
25368         * tests/test-copy-acl-2.sh: New file.
25369         * modules/acl-tests (Files): Add them.
25370         (Makefile.am): Add them to TESTS.
25372 2011-09-04  Bruno Haible  <bruno@clisp.org>
25374         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
25375         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
25376         10.
25377         (OLD_ALLOW, OLD_DENY): New macros.
25378         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
25379         ACE_ACCESS_ALLOWED_ACE_TYPE.
25380         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
25381         ACE_ACCESS_DENIED_ACE_TYPE.
25382         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
25383         (NEW_ACE_EXECUTE): Fix value.
25384         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
25385         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
25386         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
25387         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
25388         NEW_ACE_SYNCHRONIZE): New macros.
25389         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
25390         instead of acl_fromtext, acl_set, facl_set.
25391         Fixes a coreutils/tests/cp/perm failure.
25393 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
25395         openat: test for fstatat (..., 0) bug
25396         Further testing with tar suggests that fstatat (..., 0)
25397         does not work in general, on AIX 7.1; see
25398         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
25399         So, give up entirely on AIX 7.1's fstatat, and fall back on our
25400         replacement fstatat (which is what older AIX releases were using
25401         anyway).
25402         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
25403         use is now changed to orig_fstatat.  This was probably the right
25404         thing to do anyway.
25405         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
25406         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
25407         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
25408         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
25409         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
25410         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
25411         if the bug is found.
25413         openat: test for fstatat (AT_FDCWD, ..., 0) bug
25414         This tests for another fstatat bug on AIX 7.1:
25415         fstatat (AT_FDCWD, ..., 0) does not work.  See
25416         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
25417         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
25418         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
25419         (rpl_fstatat): Adjust so that it works around either (or both)
25420         bugs if present.
25421         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
25423 2011-09-03  Karl Berry  <karl@gnu.org>
25425         * doc/regex.texi (Character Class Operators): Avoid literal ":"
25426         in index entries.
25428 2011-09-02  Bruno Haible  <bruno@clisp.org>
25430         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
25431         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
25432         values of AR, ARFLAGS, RANLIB.
25433         Reported by John W. Eaton <jwe@gnu.org> for Octave.
25435 2011-09-02  Bruno Haible  <bruno@clisp.org>
25437         Find 'ar' program that fits with --host argument.
25438         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
25440 2011-09-02  Bruno Haible  <bruno@clisp.org>
25442         tests: init.sh: Support any non-GNU diff.
25443         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
25444         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
25445         Solaris 8.
25447 2011-09-02  Bruno Haible  <bruno@clisp.org>
25449         tests: init.sh: work also with any non-GNU diff that supports -u
25450         * tests/init.sh: Relax check for diff -u support.
25451         Rather than checking for GNU diff via --version, simply check
25452         for support for -u itself.  Useful at least on OpenBSD 4.9,
25453         AIX 7.1, IRIX 6.5, and Solaris 10.
25455 2011-09-01  Bruno Haible  <bruno@clisp.org>
25457         strtoimax, strtoumax: Document problem on HP-UX 11.
25458         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
25459         * doc/posix-functions/strtoumax.texi: Likewise.
25461 2011-09-01  Bruno Haible  <bruno@clisp.org>
25463         strtoumax: Avoid link error on OSF/1 with DTK cc.
25464         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
25465         defined as a function.
25466         * modules/strtoumax (Depends-on, configure.ac): Test only whether
25467         strtoumax is defined, not whether it is declared.
25469 2011-09-01  Bruno Haible  <bruno@clisp.org>
25471         strtoimax: Avoid link error on OSF/1 with DTK cc.
25472         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
25473         defined as a function.
25474         * modules/strtoimax (Depends-on, configure.ac): Test only whether
25475         strtoimax is defined, not whether it is declared.
25477 2011-09-01  Bruno Haible  <bruno@clisp.org>
25479         imaxdiv: Avoid link error on OSF/1 with DTK cc.
25480         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
25481         as a function.
25482         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
25483         whether it is declared.
25485 2011-09-01  Bruno Haible  <bruno@clisp.org>
25487         imaxabs: Avoid link error on OSF/1 with DTK cc.
25488         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
25489         as a function.
25490         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
25491         whether it is declared.
25493 2011-09-01  Bruno Haible  <bruno@clisp.org>
25495         Tests for module 'strtoumax'.
25496         * modules/strtoumax-tests: New file.
25497         * tests/test-strtoumax.c: New file.
25499         Tests for module 'strtoimax'.
25500         * modules/strtoimax-tests: New file.
25501         * tests/test-strtoimax.c: New file.
25503         Tests for module 'imaxdiv'.
25504         * modules/imaxdiv-tests: New file.
25505         * tests/test-imaxdiv.c: New file.
25507         Tests for module 'imaxabs'.
25508         * modules/imaxabs-tests: New file.
25509         * tests/test-imaxabs.c: New file.
25511 2011-09-01  Bruno Haible  <bruno@clisp.org>
25513         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
25514         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
25515         pthread_create.
25517 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25519         openat: work around AIX 7.1 fstatat issue
25520         This should fix the problem that was not properly fixed
25521         in the previous change, dated 2011-08-30.
25522         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
25523         __need_system_stat_h defined.
25524         (orig_fstatat) [HAVE_FSTATAT]: New function.
25525         (rpl_fstatat): Go back to the old way of doing things,
25526         except call orig_fstatat instead of fstatat.
25527         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
25528         Remove unnecessary check whether fstatat fills in st_size etc.
25530 2011-09-01  Bruno Haible  <bruno@clisp.org>
25532         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
25533         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
25534         just include the system's header.
25536 2011-08-31  Jim Meyering  <meyering@redhat.com>
25538         tests: avoid spurious assertion failure in test-float.c on ppc64
25539         * tests/test-float.c (test_long_double): Comment out an assertion,
25540         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
25541         with gcc-4.4.4.
25543         maint: indent with spaces, not TABs
25544         I need to get in the habit of running gnulib's "make check".
25545         Both of these would have been caught.
25546         * m4/largefile.m4: Indent with spaces, not TABs.
25547         * lib/parse-datetime.y (iso_8601_time): Likewise.
25548         Spotted by Pádraig Brady.
25550         test-parse-datetime.c: accommodate a relatively strict gcc warning
25551         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
25552         to avoid a warning from gcc's -Werror=missing-declarations.
25553         Insert a few spaces-before-funcall-parenthesis.
25555 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
25557         parse-datetime: accept ISO 8601 date and time rep with "T" separator
25558         The parser now accepts ISO 8601 date-time strings with "T" as the
25559         separator.  It has long parsed dates like "2004-02-29 16:21:42"
25560         with a space between the date and time strings.  Now it also parses
25561         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
25562         variants like "2004-02-29T16:21:42.333-07:00"
25563         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
25564         of day representation using the 'T' separator character.
25565         * doc/parse-datetime.texi (General date syntax): replace use of
25566         deprecated --iso-8601 option with --rfc-3339 in example of date
25567         command output formats that can be parsed.
25568         * tests/test-parse-datetime.c (tm_diff): New function, taken from
25569         lib/parse-datetime.y.
25570         (gmt_offset): New function.
25571         (main): Add additional test cases to validate ISO8601 extended
25572         date and time of day parsing.
25574 2011-08-31  Bruno Haible  <bruno@clisp.org>
25576         freopen: Documentation.
25577         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
25578         name.
25579         Reported by Claudio Bley <claudio.bley@gmail.com>.
25581 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
25583         freopen: Don't crash if the filename argument is NULL.
25584         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
25585         NULL.
25587 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
25589         openat: work around AIX 7.1 fstatat bug
25590         Problem reported by Kevin Brott for GNU tar, in the thread containing
25591         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
25592         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
25593         FSTATAT_ST_SIZE_ETC_BROKEN.
25594         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
25595         rpl_fstatat.
25596         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
25597         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
25598         AC_CHECK_FUNCS_ONCE for fstatat.
25599         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
25600         fchmodat, mkdirat, openat and unlinkat.
25602 2011-08-30  Bruno Haible  <bruno@clisp.org>
25604         Avoid endless recursions if config.h includes some header files.
25605         * lib/fopen.c (__need_FILE): Define already before including config.h.
25606         * lib/freopen.c (__need_FILE): Likewise.
25607         * lib/open.c (__need_system_fcntl_h): Likewise.
25608         * lib/stat.c (__need_system_sys_stat_h): Likewise.
25609         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
25610         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
25612 2011-08-25  Karl Berry  <karl@gnu.org>
25614         * config/srclist.txt (ylwrap): new try.
25615         * build-aux/ylwrap: new file.
25617 2011-08-23  Bruno Haible  <bruno@clisp.org>
25619         tmpdir: Use a good default directory on native Windows.
25620         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
25621         (P_tmpdir): Default to _P_tmpdir on native Windows.
25622         (path_search): On native Windows, try the value returned by GetTempPath
25623         before trying P_tmpdir.
25624         * modules/tmpdir (Depends-on): Add pathmax.
25625         Suggested by John Darrington <john@darrington.wattle.id.au>.
25627 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
25629         doc: fix typo in README-release
25630         * top/README-release: Capitalize first word of a sentence.
25632 2011-08-19  Jim Meyering  <meyering@redhat.com>
25634         fts: do not exhaust memory when processing million-entry directories
25635         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
25636         directory would require about 256*N bytes of memory.  Thus, it was
25637         easy to construct a directory too large to be processed by any of
25638         those tools.  With this change, fts' maximum memory utilization is
25639         now limited to around 30MB.
25640         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
25641         (fts_read): When we've processed the final entry (i.e., when
25642         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
25643         using the parent entry to read any remaining entries.  Dispatch
25644         depending on what fts_build returns:
25645         - NULL+stop, aka failure: stop
25646         - NULL otherwise: move up in the dir hierarchy
25647         - non-NULL: handle this new entry
25648         (fts_build): Declare and use new local, continue_readdir.
25649         Prepare to be called from fts_read, when the entries
25650         from a partially-read directory have just been exhausted.
25651         In that case, we'll skip the opendir and instead use the parent's
25652         fts_dirp and derive dir_fd from that.
25653         Finally, in the readdir loop, if we read max_entries entries,
25654         exit the loop ensuring *not* to call closedir.  This is required
25655         so that fts_dirp can be reused on a subsequent call.
25656         Prompted by Ben England's report of memory exhaustion in find
25657         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
25659         maint: fts: move decl of `dp' down into while loop; split a long line
25660         * lib/fts.c (fts_build): No semantic change.
25662         fts: add/use new struct member, fts_dirp
25663         We are about to use this to manage any directory with
25664         too many entries to read all of them into memory at once.
25665         To do that, we'll need to save the DIR* pointer in each
25666         affected FTSENT struct.
25667         * lib/fts_.h: Include <dirent.h>.
25668         (struct FTSENT) [fts_dirp]: New member.
25669         * lib/fts.c (closedir_and_clear): Define.
25670         Use it in place of closedir so that we are sure to
25671         clear the new fts_dirp member when done with it.
25672         (fts_alloc): Initialize the new member.
25673         (fts_lfree): Free, if needed.
25675         maint: fts: give __opendir2 a new parameter and rename
25676         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
25677         than surreptitiously using sole caller's "dir_fd".
25678         (fts_opendir): Rename from __opendir2.
25680         maint: fts.c: remove __opendir2's now-unused parameter, oflag
25681         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
25683         maint: fts.c: correct off-by-one indentation
25684         * lib/fts.c (fts_build): Correct indentation, change style
25685         of a couple of block comments, and bracing style.
25687         maint: fts.c: move __opendir2 #define "up" out of function body
25688         * lib/fts.c (__opendir2): Move "up".  No semantic change.
25690         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
25691         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
25692         out for a long time and besides was useful only on BSD systems.
25694 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
25696         regex: port to Stratus OpenVOS
25697         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
25698         define to empty, rather than attempting nonportable optimizations.
25699         Problem reported by Paul Green in:
25700         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
25701         and fix suggested by Eric Blake in:
25702         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
25704 2011-08-17  Eric Blake  <eblake@redhat.com>
25706         getcwd: fix test failures on mingw
25707         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
25708         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
25709         test if long directory cannot be created, and allow mingw errno.
25711         getcwd-lgpl: fix m4 to match relaxed test for BSD
25712         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
25713         (gl_FUNC_GETCWD_SIGNATURE): New macro.
25714         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
25715         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
25716         signature problem.
25718         getcwd: fix compilation on mingw64
25719         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
25720         getcwd.
25721         Reported by Marc-André Lureau.
25723         pipe2: silence compiler warning
25724         * lib/pipe2.c (pipe2): Hide label if it is not used.
25726 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
25728         relocatable-prog: fix link error
25729         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
25730         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
25731         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
25732         into modules/relocatable-lib without noticing that
25733         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
25734         also needs to build relocatable.c.
25736 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
25738         getaddrinfo: fix sh typo in gai_strerrorA decl checking
25739         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
25740         shell code: it contained a 'break' that was not in a loop.
25741         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
25742         via a shell-language loop; this may have been true in old Autoconf
25743         versions, but it's not true in Autoconf 2.68.  I found this bug
25744         when testing coreutils git on Solaris 8, whose shell complains
25745         about the syntax error.
25747 2011-08-12  Simon Josefsson  <simon@josefsson.org>
25749         * lib/base64.c: Fix comment to reference RFC 4648.
25750         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
25751         <gvtulder@gmail.com>.
25753 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
25755         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
25757         po/Makefile.in.in: fix make -q problem
25758         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
25759         rule, since there's no file named 'check-macro-version' and its
25760         use as a file breaks make -q.
25761         (all): Don't depend on check-macro-version.
25762         (CHECK_MACRO_VERSION): New macro.
25763         (stamp-po): Use it.
25765         configmake: fix make -q problem
25766         * modules/configmake (configmake.h): Update configmake.h's time stamp
25767         even if the file does not change.  Otherwise, 'make -q' fails.
25768         Problem reported by Simon Josefsson in
25769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
25771 2011-08-11  Jim Meyering  <meyering@redhat.com>
25773         git-version-gen: correct the advice in a comment
25774         * build-aux/git-version-gen: Correct comment.
25775         Don't recommend to list .tarball-version in .gitignore.
25777 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25779         base64: fix off-by-one buffer size bug
25780         Problem and (trivial) fix reported by Gijs van Tulder in
25781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
25782         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
25783         * tests/test-base64.c (main): Catch the bug.
25785 2011-08-10  Eric Blake  <eblake@redhat.com>
25787         closein: correct comments
25788         * lib/closein.c (close_stdin): Improve comments.
25790 2011-08-09  Bruno Haible  <bruno@clisp.org>
25792         More tests for 'fseeko'.
25793         * tests/test-fseeko3.c: New file, from Eric Blake.
25794         * tests/test-fseeko3.sh: New file.
25795         * modules/fseeko-tests (Files): Add them.
25796         (TESTS): Add test-fseeko3.sh.
25797         (check_PROGRAMS): Add test-fseeko3.
25799 2011-08-09  Eric Blake  <eblake@redhat.com>
25801         fseeko: remove unneeded hack
25802         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
25804         fseeko: fix bug on glibc
25805         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
25806         Reported by John W. Eaton.
25808 2011-08-08  Bruno Haible  <bruno@clisp.org>
25810         unictype/base: Fix interoperability with preinstalled libunistring.
25811         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
25812         Reported by Simon Josefsson.
25814 2011-08-08  Bruno Haible  <bruno@clisp.org>
25816         iswblank: Detect declaration correctly.
25817         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
25818         AC_CHECK_DECLS invocation.
25820 2011-08-08  Bruno Haible  <bruno@clisp.org>
25822         tcgetsid: Detect declaration correctly.
25823         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
25824         AC_CHECK_DECLS invocation.
25825         Reported by Simon Josefsson.
25827 2011-08-08  Eric Blake  <eblake@redhat.com>
25829         largefile: fix typo that regressed large file support
25830         * modules/largefile (configure.ac-early): Fix section name.
25832 2011-08-06  Karl Berry  <karl@gnu.org>
25834         * MODULES.html.sh (func_all_files): _Noreturn is no longer
25835         a separate module.
25837 2011-08-05  Simon Josefsson  <simon@josefsson.org>
25839         openat: Fix warnings and commens when building unlinkat.c on Hurd.
25840         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
25841         get prototype for free.
25843 2011-08-04  Bruno Haible  <bruno@clisp.org>
25845         Tests for module 'pathmax'.
25846         * modules/pathmax-tests: New file.
25847         * tests/test-pathmax.c: New file.
25849         canonicalize-lgpl: Support larger filenames on the Hurd.
25850         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
25851         Reported by Paul Eggert.
25853         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
25854         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
25855         * lib/chdir-long.h: Include pathmax.h.
25856         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
25857         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
25858         (PATH_MAX): Remove code that is done by pathmax.h.
25859         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
25860         * lib/tmpfile.c: Add a comment.
25861         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
25862         * modules/chdir-long (Depends-on): Add pathmax.
25863         * modules/getcwd (Depends-on): Add pathmax.
25864         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
25865         is not defined.
25866         * doc/posix-headers/limits.texi: Mention the pathmax module.
25867         * NEWS: Mention the change.
25869 2011-08-02  Bruno Haible  <bruno@clisp.org>
25871         pthread_sigmask: Actually use results of gl_THREADLIB.
25872         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
25873         gl_THREADLIB, not gl_[]THREADLIB.
25874         Reported by Eric Blake.
25876 2011-08-02  Jim Meyering  <meyering@redhat.com>
25878         maint.mk: relax the default _gl_TS_function_match regexp
25879         * top/maint.mk (_gl_TS_function_match): Don't require at least one
25880         space between function name and "(" in an "extern" declaration.
25881         That would fail to match a decl with no space there: extern void foo();
25883 2011-07-31  Iain Nicol  <iain@thenicols.net>
25885         git-version-gen: document that EXTRA_DIST must include .version
25886         * build-aux/git-version-gen: In the how-to-use comment, document
25887         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
25888         will fail when run from an unpacked distribution tarball.
25890 2011-08-01  Bruno Haible  <bruno@clisp.org>
25892         wctype-h: Fix last change.
25893         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
25894         REPLACE_TOWLOWER to 0.
25895         Reported by Sam Steingold <sds@gnu.org>.
25897 2011-07-31  Bruno Haible  <bruno@clisp.org>
25899         frexpl: Update autoconf test.
25900         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
25901         according to changes of 2011-06-20.
25903 2011-07-31  Bruno Haible  <bruno@clisp.org>
25905         sys_utsname: Add support for Minix.
25906         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
25907         <sys/utsname.h>.
25908         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25909         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
25911 2011-07-31  Bruno Haible  <bruno@clisp.org>
25913         strings: Add support for Minix.
25914         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
25915         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
25916         * doc/posix-headers/strings.texi: Document the Minix problem.
25918 2011-07-31  Bruno Haible  <bruno@clisp.org>
25920         wctype-h: Add support for Minix.
25921         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
25922         REPLACE_TOWLOWER.
25923         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
25924         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
25925         REPLACE_ISWCNTRL.
25927 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
25929         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
25930         This is a performance improvement for 64-bit hosts: it causes the
25931         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
25933 2011-07-31  Bruno Haible  <bruno@clisp.org>
25935         stdioext: Add support for Minix.
25936         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
25937         * lib/fpurge.c (fpurge): Likewise.
25938         * lib/freadahead.c (freadahead): Likewise.
25939         * lib/freadable.c (freadable): Likewise.
25940         * lib/freading.c (freading): Likewise.
25941         * lib/freadptr.c (freadptr): Likewise.
25942         * lib/freadseek.c (freadptrinc): Likewise.
25943         * lib/fseeko.c (rpl_fseeko): Likewise.
25944         * lib/fseterr.c (fseterr): Likewise.
25945         * lib/fwritable.c (fwritable): Likewise.
25946         * lib/fwriting.c (fwriting): Likewise.
25947         * lib/fflush.c (clear_ungetc_buffer): Update comment.
25948         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
25950 2011-07-31  Bruno Haible  <bruno@clisp.org>
25952         errno: Port to Minix.
25953         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
25954         ECONNABORTED are defined.
25955         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
25956         GNULIB_defined_ECONNABORTED): New macros.
25957         * lib/strerror-override.h (strerror_override): Test also
25958         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
25959         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
25960         ECONNABORTED.
25961         * doc/posix-headers/errno.texi: Mention the Minix problem.
25963 2011-07-31  Bruno Haible  <bruno@clisp.org>
25965         Work around declaration collisions on Minix.
25966         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
25967         defined, set REPLACE_MBSINIT.
25968         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
25969         defined, set REPLACE_MBRTOWC.
25970         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
25971         set REPLACE_MBRLEN.
25972         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
25973         defined, set REPLACE_MBSRTOWCS.
25974         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
25975         defined, set REPLACE_WCRTOMB.
25976         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
25977         defined, set REPLACE_WCSRTOMBS.
25979 2011-07-31  Bruno Haible  <bruno@clisp.org>
25981         Add support for Minix with ACK compiler.
25982         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
25983         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
25984         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
25986 2011-07-31  Bruno Haible  <bruno@clisp.org>
25988         Documentation about Minix.
25989         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
25990         * doc/glibc-headers/*.texi: Likewise.
25991         * doc/posix-functions/*.texi: Likewise.
25992         * doc/glibc-functions/*.texi: Likewise.
25994 2011-07-31  Bruno Haible  <bruno@clisp.org>
25996         snippet/warn-on-use: Fix indentation.
25997         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
25999 2011-07-25  Jim Meyering  <meyering@redhat.com>
26001         tests: test-update-copyright.sh: remove unnecessary "rm" commands
26002         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
26003         commands.
26005 2011-07-27  Jim Meyering  <meyering@redhat.com>
26007         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
26008         * top/maint.mk (gl_extract_significant_defines_): Now that
26009         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
26010         gnulib/lib/signal.in.h, and now that we recommend to
26011         define-if-undefined those two symbols in application code,
26012         we must filter them out of the "significant" list.
26013         This avoids a "make syntax-check" failure in coreutils.
26015 2011-07-26  Eric Blake  <eblake@redhat.com>
26017         warnings: add comments about previous patch
26018         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
26019         * m4/include_next.m4: Likewise.
26020         * m4/warn-on-use.m4: Likewise.
26021         * m4/warnings.m4: Likewise, and simplify use.
26022         Suggested by Stefano Lattarini.
26024         include-next, warnings: support older autoconf
26025         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
26026         AS_VAR_PUSHDEF in a way that works with older autoconf.
26027         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
26028         Reported by Daniel P. Berrange.
26030 2011-07-25  Bruno Haible  <bruno@clisp.org>
26032         fseek, ftell: Fix doc.
26033         * doc/posix-functions/fseek.texi: Reword statement about
26034         AC_SYS_LARGEFILE.
26035         * doc/posix-functions/ftell.texi: Likewise.
26037 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
26038             Bruno Haible  <bruno@clisp.org>
26040         Add dependencies to the 'largefile' module.
26041         * modules/fopen (Depends-on): Add 'largefile'.
26042         * modules/freopen (Depends-on): Likewise.
26043         * modules/fseeko (Depends-on): Likewise.
26044         * modules/ftello (Depends-on): Likewise.
26045         * modules/glob (Depends-on): Likewise.
26046         * modules/lseek (Depends-on): Likewise.
26047         * modules/lstat (Depends-on): Likewise.
26048         * modules/mkostemp (Depends-on): Likewise.
26049         * modules/mkostemps (Depends-on): Likewise.
26050         * modules/mkstemp (Depends-on): Likewise.
26051         * modules/mkstemps (Depends-on): Likewise.
26052         * modules/open (Depends-on): Likewise.
26053         * modules/openat (Depends-on): Likewise.
26054         * modules/pread (Depends-on): Likewise.
26055         * modules/pwrite (Depends-on): Likewise.
26056         * modules/scandir (Depends-on): Likewise.
26057         * modules/stat (Depends-on): Likewise.
26058         * modules/tmpfile (Depends-on): Likewise.
26059         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
26060         since the containing module now depends on the largefile module.
26061         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
26062         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
26063         off_t is fixed by gnulib.
26064         * doc/posix-functions/freopen.texi: Likewise.
26065         * doc/posix-functions/fseeko.texi: Likewise.
26066         * doc/posix-functions/fstatat.texi: Likewise.
26067         * doc/posix-functions/ftello.texi: Likewise.
26068         * doc/posix-functions/glob.texi: Likewise.
26069         * doc/posix-functions/lseek.texi: Likewise.
26070         * doc/posix-functions/lstat.texi: Likewise.
26071         * doc/posix-functions/mkstemp.texi: Likewise.
26072         * doc/posix-functions/open.texi: Likewise.
26073         * doc/posix-functions/openat.texi: Likewise.
26074         * doc/posix-functions/pread.texi: Likewise.
26075         * doc/posix-functions/pwrite.texi: Likewise.
26076         * doc/posix-functions/scandir.texi: Likewise.
26077         * doc/posix-functions/stat.texi: Likewise.
26078         * doc/posix-functions/tmpfile.texi: Likewise.
26079         * doc/glibc-functions/mkostemp.texi: Likewise.
26080         * doc/glibc-functions/mkostemps.texi: Likewise.
26081         * doc/glibc-functions/mkstemps.texi: Likewise.
26083 2011-07-25  Bruno Haible  <bruno@clisp.org>
26085         fcntl: Move AC_LIBOBJ invocation to module description.
26086         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
26087         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
26089         fcntl: Remove call-in from fchdir.m4.
26090         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
26091         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
26093         dup3: Remove potential call-in from fchdir.m4.
26094         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
26095         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
26097         dup2: Move AC_LIBOBJ invocation to module description.
26098         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
26099         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
26100         Don't invoke AC_LIBOBJ.
26101         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
26103         dup2: Remove call-in from fchdir.m4.
26104         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
26105         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
26107         fclose: Move AC_LIBOBJ invocation to module description.
26108         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
26109         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
26110         to 1.
26111         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
26113         fclose: Remove call-in from close.m4.
26114         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
26115         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
26117         close: Move AC_LIBOBJ invocation to module description.
26118         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
26119         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
26120         1.
26121         * modules/close (configure.ac): Invoke AC_LIBOBJ.
26123         close: Remove call-in from fchdir.m4.
26124         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
26125         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
26127         open: Move AC_LIBOBJ invocation to module description.
26128         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
26129         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
26130         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
26132         open: Remove call-in from fchdir.m4.
26133         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
26134         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
26136         fchdir: Start to remove gl_REPLACE_* idiom.
26137         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
26138         (gl_FUNC_FCHDIR): Invoke it.
26140 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
26142         * lib/ftell.c (ftell): Comment out cast.
26144         close: use gl_REPLACE_FCLOSE only if defined
26145         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
26146         is defined.  The close module doesn't depend on the fclose module
26147         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
26148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
26149         I reproduced the problem with "./gnulib-tool --test close sys_socket".
26151 2011-07-24  Jim Meyering  <meyering@redhat.com>
26153         test-select.h: avoid warning when using gcc's -Wmissing-declarations
26154         * tests/test-select.h (test_function): Declare as "static".
26156 2011-07-24  Bruno Haible  <bruno@clisp.org>
26158         doc: Mention the effects of AC_SYS_LARGEFILE.
26159         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
26160         on this function.
26161         * doc/posix-functions/aio_error.texi: Likewise.
26162         * doc/posix-functions/aio_fsync.texi: Likewise.
26163         * doc/posix-functions/aio_read.texi: Likewise.
26164         * doc/posix-functions/aio_return.texi: Likewise.
26165         * doc/posix-functions/aio_suspend.texi: Likewise.
26166         * doc/posix-functions/aio_write.texi: Likewise.
26167         * doc/posix-functions/fgetpos.texi: Likewise.
26168         * doc/posix-functions/fopen.texi: Likewise.
26169         * doc/posix-functions/freopen.texi: Likewise.
26170         * doc/posix-functions/fsetpos.texi: Likewise.
26171         * doc/posix-functions/fstatvfs.texi: Likewise.
26172         * doc/posix-functions/ftruncate.texi: Likewise.
26173         * doc/posix-functions/ftw.texi: Likewise.
26174         * doc/posix-functions/getrlimit.texi: Likewise.
26175         * doc/posix-functions/glob.texi: Likewise.
26176         * doc/posix-functions/lio_listio.texi: Likewise.
26177         * doc/posix-functions/lockf.texi: Likewise.
26178         * doc/posix-functions/mkstemp.texi: Likewise.
26179         * doc/posix-functions/mmap.texi: Likewise.
26180         * doc/posix-functions/nftw.texi: Likewise.
26181         * doc/posix-functions/openat.texi: Likewise.
26182         * doc/posix-functions/opendir.texi: Likewise.
26183         * doc/posix-functions/posix_fadvise.texi: Likewise.
26184         * doc/posix-functions/posix_fallocate.texi: Likewise.
26185         * doc/posix-functions/pread.texi: Likewise.
26186         * doc/posix-functions/pwrite.texi: Likewise.
26187         * doc/posix-functions/readdir.texi: Likewise.
26188         * doc/posix-functions/readdir_r.texi: Likewise.
26189         * doc/posix-functions/rewinddir.texi: Likewise.
26190         * doc/posix-functions/scandir.texi: Likewise.
26191         * doc/posix-functions/seekdir.texi: Likewise.
26192         * doc/posix-functions/setrlimit.texi: Likewise.
26193         * doc/posix-functions/statvfs.texi: Likewise.
26194         * doc/posix-functions/telldir.texi: Likewise.
26195         * doc/posix-functions/tmpfile.texi: Likewise.
26196         * doc/posix-functions/truncate.texi: Likewise.
26197         * doc/glibc-functions/fallocate.texi: Likewise.
26198         * doc/glibc-functions/fstatfs.texi: Likewise.
26199         * doc/glibc-functions/fts_children.texi: Likewise.
26200         * doc/glibc-functions/fts_read.texi: Likewise.
26201         * doc/glibc-functions/getdirentries.texi: Likewise.
26202         * doc/glibc-functions/mkostemp.texi: Likewise.
26203         * doc/glibc-functions/mkostemps.texi: Likewise.
26204         * doc/glibc-functions/mkstemps.texi: Likewise.
26205         * doc/glibc-functions/preadv.texi: Likewise.
26206         * doc/glibc-functions/pwritev.texi: Likewise.
26207         * doc/glibc-functions/sendfile.texi: Likewise.
26208         * doc/glibc-functions/statfs.texi: Likewise.
26210 2011-07-24  Bruno Haible  <bruno@clisp.org>
26212         doc: Fix typo.
26213         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
26215 2011-07-24  Bruno Haible  <bruno@clisp.org>
26217         doc: Mention fsusage.
26218         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
26220 2011-07-24  Bruno Haible  <bruno@clisp.org>
26222         doc: Mention new glibc headers and functions.
26223         * doc/glibc-headers/gshadow.texi: New file.
26224         * doc/glibc-functions/endsgent.texi: New file.
26225         * doc/glibc-functions/fgetsgent.texi: New file.
26226         * doc/glibc-functions/fgetsgent_r.texi: New file.
26227         * doc/glibc-functions/getsgent.texi: New file.
26228         * doc/glibc-functions/getsgent_r.texi: New file.
26229         * doc/glibc-functions/getsgnam.texi: New file.
26230         * doc/glibc-functions/getsgnam_r.texi: New file.
26231         * doc/glibc-functions/putsgent.texi: New file.
26232         * doc/glibc-functions/setsgent.texi: New file.
26233         * doc/glibc-functions/sgetsgent.texi: New file.
26234         * doc/glibc-functions/sgetsgent_r.texi: New file.
26235         * doc/glibc-functions/malloc_info.texi: New file.
26236         * doc/glibc-functions/preadv.texi: New file.
26237         * doc/glibc-functions/pwritev.texi: New file.
26238         * doc/glibc-functions/register_printf_modifier.texi: New file.
26239         * doc/glibc-functions/register_printf_specifier.texi: New file.
26240         * doc/glibc-functions/register_printf_type.texi: New file.
26241         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
26242         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
26243         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
26244         * doc/glibc-functions/pthread_getname_np.texi: New file.
26245         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
26246         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
26247         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
26248         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
26249         * doc/glibc-functions/pthread_setname_np.texi: New file.
26250         * doc/glibc-functions/pthread_sigqueue.texi: New file.
26251         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
26252         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
26253         * doc/glibc-functions/qsort_r.texi: New file.
26254         * doc/glibc-functions/quick_exit.texi: New file.
26255         * doc/glibc-functions/syncfs.texi: New file.
26256         * doc/gnulib.texi: Include them.
26257         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
26258         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
26259         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
26260         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
26261         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
26262         * doc/glibc-functions/execvpe.texi: Likewise.
26264 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
26266         ftell: don't include <unistd.h>
26267         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
26268         guaranteed to define off_t, and the ftell module depends on the
26269         stdio module.
26271         ftell: do not assume wraparound signed arithmetic
26272         * lib/ftell.c: Include <limits.h>.
26273         (ftell): Don't assume wraparound signed arithmetic.
26275 2011-07-24  Bruno Haible  <bruno@clisp.org>
26277         close: No longer depend on module 'fclose'.
26278         * modules/close (Depends-on): Remove fclose.
26279         * NEWS: Mention the change.
26280         Suggested by Sam Steingold <sds@gnu.org>.
26282 2011-07-24  Bruno Haible  <bruno@clisp.org>
26284         fsusage: Enable large volume support on AIX >= 5.2.
26285         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
26286         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
26287         instead of STAT_STATVFS.
26288         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
26290         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
26291         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
26292         f_blocks field only on MacOS X.
26294         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
26295         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
26296         * modules/fsusage (Depends-on): Add largefile.
26298 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
26300         * README: Modernize discussion of signed integers.
26301         Assuming overflow wraparound is no longer safe.
26302         Mention ones' complement and signed magnitude.
26304 2011-07-22  Bruno Haible  <bruno@clisp.org>
26306         select tests, pselect tests: Refactor.
26307         * tests/test-select.h: New file, extracted from tests/test-select.c.
26308         (select_fn): New type.
26309         (test, do_select, do_select_nowait, do_select_wait, test_tty,
26310         test_connect_first, test_accept_first, test_pair, test_socket_pair,
26311         test_pipe): Add my_select argument.
26312         (test_function): Renamed from main. Add my_select argument.
26313         * tests/test-select.c: Move most code to tests/test-select.h. Include
26314         test-select.h.
26315         * modules/select-tests (Files): Add tests/test-select.h.
26316         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
26317         (my_select, main): New functions.
26318         * modules/pselect-tests (Files): Add tests/test-select.h,
26319         tests/macros.h, tests/signature.h.
26320         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
26321         (configure.ac): Check for <sys/wait.h>.
26323 2011-07-22  Bruno Haible  <bruno@clisp.org>
26325         sys_select tests: Check the signature of FD_*.
26326         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
26327         signature tests from here...
26328         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
26329         here.
26330         * modules/sys_select-tests (Files): Add tests/signature.h.
26332 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
26334         largefile: new module, replacing large-inode
26335         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
26336         * MODULES.html.sh: Add largefile, remove large-inode.
26337         * modules/largefile, m4/largefile.m4: New files.
26338         * modules/large-inode, m4/large-inode.m4: Remove.
26340         fsusage: port to MacOS X 10.7 with 4 TiB file systems
26341         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
26342         implementations that use only 32 bits to count blocks.
26343         On typical hosts with 1024-byte blocks, this fails with file
26344         systems as small as 4 TiB.  Problem reported by Herb Wartens
26345         <http://debbugs.gnu.org/9140> and this should also fix a similar
26346         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
26348         large-inode: New module
26349         * MODULES.html.sh: Add it.
26350         * modules/large-inode, m4/large-inode.m4: New files.
26352         extensions: Enable extensions on MacOS X 10.5 and later.
26353         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
26355 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
26357         file-has-acl: use acl_extended_file_nofollow if available
26358         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
26359         (acl_extended_file): New macro.
26360         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
26361         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
26363 2011-07-21  Bruno Haible  <bruno@clisp.org>
26365         Declare system functions in a way that works with C++.
26366         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
26367         declare fdopendir as extern "C".
26368         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
26369         declare frexpl as extern "C".
26370         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
26371         declare gai_strerror as extern "C".
26372         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
26373         programs, declare gai_strerror as extern "C".
26374         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
26375         declare getlogin_r as extern "C".
26376         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
26377         as extern "C".
26378         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
26379         declare ldexpl as extern "C".
26380         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
26381         as extern "C".
26382         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
26383         program, declare getmntinfo as extern "C".
26384         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
26385         stpncpy as extern "C".
26386         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
26387         program, declare __xpg_strerror_r as extern "C".
26388         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
26389         strndup as extern "C".
26390         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
26391         declare memset and bzero as extern "C".
26392         Reported by Sam Steingold <sds@gnu.org>.
26394 2011-07-12  Jim Meyering  <meyering@redhat.com>
26396         maint.mk: prohibit inclusion of "verify.h" without use
26397         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
26399 2011-07-19  Pádraig Brady  <P@draigBrady.com>
26401         timer-time: A new module to check for timer_settime()
26402         * m4/timer_time.m4: Check for the posix function.
26403         * modules/timer-time: Add the new module.
26404         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
26405         Mention it.
26407 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
26408             Bruno Haible  <bruno@clisp.org>
26410         pthread_sigmask: assume POSIX threads if --avoid=threadlib
26411         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
26412         not defined, assume POSIX threads and look for pthread_sigmask in
26413         $LIBS, without changing $CPPFLAGS.
26415 2011-07-19  Bruno Haible  <bruno@clisp.org>
26417         strstr: Update cross-compilation guess.
26418         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
26419         CPUs, guess no, in view of glibc
26420         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
26421         Suggested by Eric Blake. Reported by Reuben Thomas.
26423 2011-07-19  Pádraig Brady  <P@draigBrady.com>
26425         getopt-gnu: suppress core dumps from detection code
26426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
26427         to suppress core dumps that may well occur on glibc systems.
26428         * modules/getopt-gnu: Depend on nocrash.
26430 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26432         pthread_sigmask: ensure usleep is declared
26433         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
26434         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
26436 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26438         doc: Document NonStop portability issues.
26439         * doc/posix-functions/sigaction.texi (sigaction):
26440         * doc/posix-headers/signal.texi (signal.h):
26441         Document NonStop.  See Joachim Schmitz in
26442         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
26444 2011-07-15  Bruno Haible  <bruno@clisp.org>
26446         ffsl, ffsll: Avoid unportable behaviour.
26447         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
26449 2011-07-15  Bruno Haible  <bruno@clisp.org>
26451         ffs: More tests.
26452         * tests/test-ffs.c (NBITS): New macro.
26453         (main): Add more tests.
26454         * tests/test-ffsl.c (NBITS): New macro.
26455         (main): Add more tests.
26456         * tests/test-ffsll.c (NBITS): New macro.
26457         (main): Add more tests.
26459 2011-07-15  Eric Blake  <eblake@redhat.com>
26461         ffsl, ffsll: new modules
26462         * modules/ffsl: New file.
26463         * modules/ffsll: Likewise.
26464         * m4/ffsl.m4: Likewise.
26465         * m4/ffsll.m4: Likewise.
26466         * lib/ffsl.c: Likewise.
26467         * lib/ffsl.h: Likewise.
26468         * lib/ffsll.c: Likewise.
26469         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
26470         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
26471         * modules/string (Makefile.am): Substitute witnesses.
26472         * lib/strings.in.h (ffsl, ffsll): Declare.
26473         * modules/ffsl-tests: New test file.
26474         * modules/ffsll-tests: Likewise.
26475         * tests/test-ffsl.c: Likewise.
26476         * tests/test-ffsll.c: Likewise.
26477         * MODULES.html.sh (Integer arithmetic functions): Mention it.
26478         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
26479         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
26481         ffs: fix m4 prerequisite
26482         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
26484         ffs: avoid undefined behavior
26485         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
26486         * tests/test-ffs.c (naive, main): Avoid signed shifts.
26487         Reported by Bruno Haible.
26489 2011-07-12  Bruno Haible  <bruno@clisp.org>
26491         pthread_sigmask: Rely on module 'threadlib'.
26492         * modules/pthread_sigmask (Depends-on): Add threadlib.
26493         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
26494         is defined.
26496 2011-07-12  Bruno Haible  <bruno@clisp.org>
26498         regex: Depend on module 'strcase'.
26499         * modules/regex (Depends-on): Add strcase, for strcasecmp().
26501 2011-07-12  Jim Meyering  <meyering@redhat.com>
26503         warn-on-use: fix typo in file name
26504         * modules/snippet/warn-on-use (Files): Correct file name:
26505         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
26507 2011-07-12  Bruno Haible  <bruno@clisp.org>
26509         strings: Document module.
26510         * doc/posix-headers/strings.texi: Mention module 'strings'.
26512 2011-07-12  Bruno Haible  <bruno@clisp.org>
26514         Rename module '_Noreturn' to 'snippet/_Noreturn'.
26515         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
26516         (Files, Makefile.am): Update.
26517         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
26518         * modules/stdlib (Depends-on): Update.
26520 2011-07-12  Bruno Haible  <bruno@clisp.org>
26522         * NEWS: Mention the changes.
26524         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
26525         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
26526         (Files, Makefile.am): Update.
26527         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
26528         * modules/arpa_inet (Depends-on): Update.
26529         * modules/ctype (Depends-on): Update.
26530         * modules/dirent (Depends-on): Update.
26531         * modules/fcntl-h (Depends-on): Update.
26532         * modules/glob (Depends-on): Update.
26533         * modules/iconv-h (Depends-on): Update.
26534         * modules/inttypes-incomplete (Depends-on): Update.
26535         * modules/langinfo (Depends-on): Update.
26536         * modules/locale (Depends-on): Update.
26537         * modules/math (Depends-on): Update.
26538         * modules/netdb (Depends-on): Update.
26539         * modules/poll-h (Depends-on): Update.
26540         * modules/pty (Depends-on): Update.
26541         * modules/search (Depends-on): Update.
26542         * modules/signal (Depends-on): Update.
26543         * modules/spawn (Depends-on): Update.
26544         * modules/stdio (Depends-on): Update.
26545         * modules/stdlib (Depends-on): Update.
26546         * modules/string (Depends-on): Update.
26547         * modules/strings (Depends-on): Update.
26548         * modules/sys_file (Depends-on): Update.
26549         * modules/sys_ioctl (Depends-on): Update.
26550         * modules/sys_select (Depends-on): Update.
26551         * modules/sys_socket (Depends-on): Update.
26552         * modules/sys_stat (Depends-on): Update.
26553         * modules/sys_time (Depends-on): Update.
26554         * modules/sys_times (Depends-on): Update.
26555         * modules/sys_utsname (Depends-on): Update.
26556         * modules/sys_wait (Depends-on): Update.
26557         * modules/termios (Depends-on): Update.
26558         * modules/time (Depends-on): Update.
26559         * modules/unistd (Depends-on): Update.
26560         * modules/wchar (Depends-on): Update.
26561         * modules/wctype-h (Depends-on): Update.
26562         * MODULES.html.sh (Support for building libraries and executables):
26563         Update.
26565         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
26566         * modules/snippet/unused-parameter: Renamed from
26567         modules/unused-parameter.
26568         (Files, Makefile.am): Update.
26569         * build-aux/snippet/unused-parameter.h: Renamed from
26570         build-aux/unused-parameter.h.
26571         * modules/selinux-h (Depends-on): Update.
26572         * modules/unistr/base (Depends-on): Update.
26573         * MODULES.html.sh (Core language properties): Update.
26575         Rename module 'link-warning' to 'snippet/link-warning'.
26576         * modules/snippet/link-warning: Renamed from modules/link-warning.
26577         (Files, Makefile.am): Update.
26578         * build-aux/snippet/link-warning.h: Renamed from
26579         build-aux/link-warning.h.
26580         * MODULES.html.sh (Support for building libraries and executables):
26581         Update.
26583         Rename module 'c++defs' to 'snippet/c++defs'.
26584         * modules/snippet/c++defs: Renamed from modules/c++defs.
26585         (Files, Makefile.am): Update.
26586         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
26587         * modules/arpa_inet (Depends-on): Update.
26588         * modules/ctype (Depends-on): Update.
26589         * modules/dirent (Depends-on): Update.
26590         * modules/fcntl-h (Depends-on): Update.
26591         * modules/glob (Depends-on): Update.
26592         * modules/iconv-h (Depends-on): Update.
26593         * modules/langinfo (Depends-on): Update.
26594         * modules/locale (Depends-on): Update.
26595         * modules/math (Depends-on): Update.
26596         * modules/netdb (Depends-on): Update.
26597         * modules/poll-h (Depends-on): Update.
26598         * modules/pty (Depends-on): Update.
26599         * modules/search (Depends-on): Update.
26600         * modules/signal (Depends-on): Update.
26601         * modules/spawn (Depends-on): Update.
26602         * modules/stdio (Depends-on): Update.
26603         * modules/stdlib (Depends-on): Update.
26604         * modules/string (Depends-on): Update.
26605         * modules/strings (Depends-on): Update.
26606         * modules/sys_ioctl (Depends-on): Update.
26607         * modules/sys_select (Depends-on): Update.
26608         * modules/sys_socket (Depends-on): Update.
26609         * modules/sys_stat (Depends-on): Update.
26610         * modules/sys_time (Depends-on): Update.
26611         * modules/sys_wait (Depends-on): Update.
26612         * modules/termios (Depends-on): Update.
26613         * modules/time (Depends-on): Update.
26614         * modules/unistd (Depends-on): Update.
26615         * modules/wchar (Depends-on): Update.
26616         * modules/wctype-h (Depends-on): Update.
26618         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
26619         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
26620         (Files, Makefile.am): Update.
26621         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
26622         * modules/argv-iter (Depends-on): Update.
26623         * modules/arpa_inet (Depends-on): Update.
26624         * modules/dirent (Depends-on): Update.
26625         * modules/fcntl-h (Depends-on): Update.
26626         * modules/fnmatch (Depends-on): Update.
26627         * modules/getopt-posix (Depends-on): Update.
26628         * modules/glob (Depends-on): Update.
26629         * modules/iconv-h (Depends-on): Update.
26630         * modules/inttypes-incomplete (Depends-on): Update.
26631         * modules/locale (Depends-on): Update.
26632         * modules/math (Depends-on): Update.
26633         * modules/netdb (Depends-on): Update.
26634         * modules/search (Depends-on): Update.
26635         * modules/signal (Depends-on): Update.
26636         * modules/spawn (Depends-on): Update.
26637         * modules/stdio (Depends-on): Update.
26638         * modules/stdlib (Depends-on): Update.
26639         * modules/string (Depends-on): Update.
26640         * modules/strings (Depends-on): Update.
26641         * modules/sys_socket (Depends-on): Update.
26642         * modules/sys_stat (Depends-on): Update.
26643         * modules/sys_time (Depends-on): Update.
26644         * modules/sys_times (Depends-on): Update.
26645         * modules/sys_utsname (Depends-on): Update.
26646         * modules/time (Depends-on): Update.
26647         * modules/unistd (Depends-on): Update.
26648         * modules/wchar (Depends-on): Update.
26649         * MODULES.html.sh (Support for building libraries and executables):
26650         Update.
26652 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
26654         Improvements on _Noreturn and related modules.
26656         modules/_Exit-tests: test _Noreturn too
26657         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
26658         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
26659         (main): Use them.
26661         stdnoreturn, stdnoreturn-tests: remove modules
26662         They're not needed here and a bit premature for use elsewhere.  See
26663         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
26664         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
26665         * tests/test-stdnoreturn.c: Remove files.
26666         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
26667         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
26668         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
26669         and using noreturn.
26670         * modules/openat, modules/sigpipe-die, modules/xalloc:
26671         * modules/xmemdup0, modules/xstrtol:
26672         Remove dependency on stdnoreturn.
26674         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
26675         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
26676         Reparenthesize to avoid GCC warning.
26677         Support Microsoft's syntax.
26678         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
26680         _Noreturn-tests: remove module
26681         * modules/_Noreturn-tests: Remove.
26682         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
26683         * tests/test-_Noreturn.c: Remove.
26684         * tests/test-stdnoreturn.c: Merge from the old
26685         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
26687 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
26689         _Noreturn, stdnoreturn, and related modules.
26691         * top/maint.mk: Adjust to new noreturn support.
26692         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
26693         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
26695         xalloc: use stdnoreturn.h
26696         * lib/xalloc.h: Include <stdnoreturn.h>.
26697         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
26698         * modules/xalloc (Depends-on): Add stdnoreturn.
26700         xstrtol: use stdnoreturn.h
26701         * lib/xstrtol.h: Include <stdnoreturn.h>.
26702         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
26703         * modules/xstrtol (Depends-on): Add stdnoreturn.
26705         xmemdup0: use stdnoreturn.h
26706         * lib/xmemdup0.h: Include <stdnoreturn.h>.
26707         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
26708         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
26710         sigpipe-die: use stdnoreturn.h
26711         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
26712         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
26713         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
26715         openat: use stdnoreturn.h
26716         * lib/openat.h: Include <stdnoreturn.h>.
26717         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
26718         * modules/openat (Depends-on): Add stdnoreturn.
26720         * lib/openat-die.c (openat_save_fail): Modernize comment.
26722         * lib/xalloc-die.c (xalloc_die): Modernize comment.
26724         * lib/glthread/thread.h: Modernize comment.
26726         obstack: use _Noreturn
26727         * lib/obstack.c (__attribute__): Remove macro.
26728         (print_and_abort): Use _Noreturn.
26730         c-stack: use _Noreturn
26731         * lib/c-stack.c (die, overflow_handler, segv_handler):
26732         Use _Noreturn rather than __attribute__((noreturn)).
26734         argmatch-tests, exclude_tests: use _Noreturn
26735         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
26736         Remove.
26737         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
26739         stdlib: use _Noreturn
26740         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
26741         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
26742         * modules/stdlib (Depends-on): Add _Noreturn.
26743         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
26745         stdnoreturn-tests: new module
26746         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
26748         stdnoreturn: new module
26749         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
26750         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
26752         _Noreturn-tests: new module
26753         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
26755         _Noreturn: new module
26756         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
26757         New section, mentioning it.
26758         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
26760         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
26762 2011-07-11  Eric Blake  <eblake@redhat.com>
26764         ffs: new module
26765         * modules/ffs: New file.
26766         * m4/ffs.m4: Likewise.
26767         * lib/ffs.c: Likewise.
26768         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
26769         * modules/strings (Makefile.am): Substitute witness.
26770         (Depends-on): Add c++defs.
26771         * lib/strings.in.h (ffs): Declare.
26772         * modules/ffs-tests: New test file.
26773         * tests/test-ffs.c: Test new module.
26774         * MODULES.html.sh (Integer arithmetic functions): Mention it.
26775         * doc/posix-functions/ffs.texi (ffs): Likewise.
26777         regex: avoid compiler warning
26778         * lib/regex.c (includes): Include <strings.h>, for use of
26779         strcasecmp in regcomp.c.
26780         Reported by Joachim Schmitz.
26782 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26784         stdint: respect system's intmax_t if INTMAX_MAX
26785         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
26786         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
26787         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
26788         long but int64_t is long long, and where we will clash with the
26789         system intmax_t if we override it.  See
26790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
26791         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
26792         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
26793         similarly for UINTMAX_C.
26795 2011-07-08  Bruno Haible  <bruno@clisp.org>
26797         pthread_sigmask tests: Avoid a compiler warning.
26798         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
26799         non-zero.
26801         sigprocmask tests: A better way to avoid a compiler warning.
26802         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
26803         (main): Complain if system() returns non-zero.
26804         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
26806 2011-07-08  Bruno Haible  <bruno@clisp.org>
26808         pthread_sigmask: Work around IRIX bug.
26809         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
26810         bug.
26811         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
26812         there may be unblocked pending signals.
26813         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
26815 2011-07-08  Bruno Haible  <bruno@clisp.org>
26817         pthread_sigmask: Work around Cygwin bug.
26818         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
26819         bug.
26820         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
26821         the system's pthread_sigmask function.
26822         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
26824 2011-07-08  Bruno Haible  <bruno@clisp.org>
26826         pthread_sigmask: Work around bug in single-threaded implementation.
26827         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
26828         FreeBSD, HP-UX, Solaris bug.
26829         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
26830         * lib/pthread_sigmask.c: Include <stddef.h>.
26831         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
26832         the system's pthread_sigmask function.
26833         * modules/pthread_sigmask (configure.ac): Invoke
26834         gl_PREREQ_PTHREAD_SIGMASK.
26835         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
26836         HP-UX, Solaris.
26838 2011-07-08  Eric Blake  <eblake@redhat.com>
26840         test-sigprocmask: avoid compiler warning
26841         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
26842         * tests/test-sigprocmask.c (main): Use it to silence warning.
26843         Reported by Jim Meyering.
26845         test-snprintf: avoid compiler warning
26846         * tests/test-snprintf.c (main): Avoid shadowed declaration.
26847         * tests/test-vsnprintf.c (main): Likewise.
26848         Reported by Jim Meyering.
26850 2011-07-08  Bruno Haible  <bruno@clisp.org>
26852         Tests for module 'pthread_sigmask'.
26853         * modules/pthread_sigmask-tests: New file.
26854         * tests/test-pthread_sigmask1.c: New file, based on
26855         tests/test-sigprocmask.c.
26856         * tests/test-pthread_sigmask2.c: New file.
26858 2011-07-08  Jim Meyering  <meyering@redhat.com>
26860         test-getopt.h: avoid warning about an unused variable
26861         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
26863 2011-07-07  Jim Meyering  <meyering@redhat.com>
26865         maint: reduce list of files exempt from sc_prohibit_leading_TABs
26866         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
26867         now that it no longer contains leading TABs.
26868         Remove unused "url=FIXME" statement.
26870 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26872         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
26873         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
26874         When gl_THREADLIB is not in use, assume that the POSIX sematics
26875         are desired.  This is better for Emacs, which uses POSIX semantics
26876         on GNUish and/or POSIXish platforms, and does not use threads at
26877         all otherwise.
26879         pthread_sigmask: fix typo when testing for libraries
26880         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
26881         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
26883 2011-07-08  Eric Blake  <eblake@redhat.com>
26885         fts: introduce FTS_NOATIME
26886         * lib/fts_.h (FTS_NOATIME): New bit flag.
26887         (FTS_OPTIONMASK): Adjust.
26888         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
26889         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
26891 2011-07-08  Bruno Haible  <bruno@clisp.org>
26893         Tests for module 'thread'.
26894         * modules/thread-tests: New file.
26895         * tests/test-thread_self.c: New file.
26896         * tests/test-thread_create.cc: New file.
26898 2011-07-08  Bruno Haible  <bruno@clisp.org>
26900         thread: Avoid gcc warnings when using gl_thread_self().
26901         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
26902         'void *'.
26903         (gl_thread_self_pointer): Update.
26905 2011-07-07  Bruno Haible  <bruno@clisp.org>
26907         signal-c++-tests: Check declaration of pthread_sigmask.
26908         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
26909         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
26910         $(LIB_PTHREAD_SIGMASK).
26912 2011-07-07  Bruno Haible  <bruno@clisp.org>
26914         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
26915         * lib/signal.in.h (pthread_sigmask): Override if
26916         REPLACE_PTHREAD_SIGMASK is 1.
26917         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26918         REPLACE_PTHREAD_SIGMASK.
26919         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
26920         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
26921         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
26922         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
26923         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
26925 2011-07-07  Bruno Haible  <bruno@clisp.org>
26927         pthread_sigmask: Ensure declaration in <signal.h>.
26928         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
26929         include <pthread.h>.
26930         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
26931         problem.
26933 2011-07-07  Bruno Haible  <bruno@clisp.org>
26935         pthread_sigmask: Document the module.
26936         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
26938 2011-07-07  Bruno Haible  <bruno@clisp.org>
26940         pthread_sigmask: Follow gnulib conventions.
26941         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
26942         gl_PTHREAD_SIGMASK.
26943         * modules/pthread_sigmask (configure.ac): Update.
26945 2011-07-07  Bruno Haible  <bruno@clisp.org>
26947         pthread_sigmask: Make declaration C++ safe.
26948         * lib/signal.in.h: In two special conditions, just do an #include_next.
26949         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
26950         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
26951         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
26952         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
26953         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
26954         not REPLACE_PTHREAD_MASK.
26955         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
26956         not REPLACE_PTHREAD_MASK.
26957         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
26959 2011-07-07  Bruno Haible  <bruno@clisp.org>
26961         pthread_sigmask: Fix return value.
26962         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
26963         * lib/pthread_sigmask.c: New file.
26964         * modules/pthread_sigmask (Files): Add it.
26965         (configure.ac): Invoke AC_LIBOBJ.
26967 2011-07-07  Eric Blake  <eblake@redhat.com>
26969         getopt: more portable argv creation
26970         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
26971         const, use char arrays rather than strings.
26972         Suggested by Paul Eggert.
26974 2011-07-07  Bruno Haible  <bruno@clisp.org>
26976         Tests for module 'sigprocmask'.
26977         * modules/sigprocmask-tests: New file.
26978         * tests/test-sigprocmask.c: New file.
26980 2011-07-07  Bruno Haible  <bruno@clisp.org>
26982         float tests: Tweak.
26983         * tests/test-float.c (main): Tweak skip message.
26985 2011-07-07  Eric Blake  <eblake@redhat.com>
26987         getopt: avoid compiler warning during configure
26988         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
26989         assigning string literals to non-const pointer.
26991         getopt-gnu: avoid crash in glibc getopt
26992         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
26993         * tests/test-getopt.h (test_getopt): Enhance test.
26994         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26995         * doc/posix-functions/getopt.texi (getopt): Document it.
26996         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26997         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26998         Likewise.
27000 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
27002         getopt: handle W; without long options in getopt [BZ #12922]
27003         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
27004         but no long options are defined, just return 'W'.
27006 2011-07-07  Bruno Haible  <bruno@clisp.org>
27008         Avoid literal tabs.
27009         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
27010         variable containing a tab instead of a literal tab.
27011         Reported by Jim Meyering.
27013 2011-07-07  Bruno Haible  <bruno@clisp.org>
27015         Comments.
27016         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
27018 2011-07-06  Bruno Haible  <bruno@clisp.org>
27020         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
27021         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
27022         <winsock2.h>.
27023         (rpl_fd_isset, FD_ISSET): New definitions, copied from
27024         lib/sys_socket.in.h.
27025         (close, gethostname): Hide declarations from <winsock2.h>.
27026         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27027         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
27028         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
27029         (select): Don't override if gnulib's <sys/select.h> was already
27030         included.
27031         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
27032         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
27033         setsockopt, shutdown, select): Tweak indentation.
27035 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
27037         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
27038         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
27039         in an application that does not use the sys_select module.
27041 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
27043         poll: do not return 0 on timeout=-1
27044         * lib/poll.c: Loop with yield if no events occurred.
27046 2011-07-06  Eric Blake  <eblake@redhat.com>
27048         pthread_sigmask: always replace when not using pthread
27049         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
27050         replacement when using some threading other than pthread.  Fix
27051         logic bug.
27053 2011-07-06  Bruno Haible  <bruno@clisp.org>
27055         Comments.
27056         * m4/printf.m4: Update comments about mingw.
27058 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
27060         sys_select: define sigset_t more portably
27061         * lib/sys_select.in.h: Always include <sys/types.h>, since
27062         we now need sigset_t and mingw defines it there.
27063         Include <signal.h> before split inclusion guard, to avoid
27064         mishaps on Solaris, whose <signal.h> eventually includes us.
27065         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
27066         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
27067         which come from ...
27068         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
27069         gl_CHECK_TYPE_SIGSET_T.
27070         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
27071         does the real work.
27072         * modules/sys_select (Depends-on): Add 'signal'.
27074         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
27075         Suggested by Bruno Haible.
27077         pselect: Use pthread_sigmask, not sigprocmask.
27078         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
27079         multithreaded apps better than sigprocmask does.
27080         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
27081         sigprocmask directly.
27083 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
27085         * lib/pselect.c (pselect): Use plain name, without "rpl_".
27086         Don't #undef,  since we don't need any underlying pselect.
27087         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
27088         (Depends-on): Add select.
27089         (Link): Add $(LIBSOCKET).
27090         These changes suggested by Bruno Haible.
27092         pselect: document better
27093         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
27094         * doc/posix-functions/pselect.texi (pselect): Document new module.
27096         pthread_sigmask: new module
27097         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
27098         * doc/posix-functions/pthread_sigmask.texi: Document new module.
27099         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
27100         This is done only as a macro; I don't know how well that'll
27101         work for C++.  Move <sys/types.h> include before the include_next,
27102         to avoid mishap on Solaris.
27103         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
27104         * modules/signal (Makefile.am): Substitute the check's results.
27105         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
27107         test-pselect: new module
27108         * modules/pselect-tests, tests/test-pselect.c: New files.
27109         * tests/test-select.c, tests/test-sys_select-c++.cc:
27110         If TEST_PSELECT is defined, test pselect instead of testing select.
27112         * tests/test-sys_select.c (sigset_t): Test for it, too.
27113         Suggested by Bruno Haible.
27115 2011-07-05  Eric Blake  <eblake@redhat.com>
27117         snprintf: guarantee %1$d, for libintl
27118         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
27119         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
27120         * doc/posix-functions/snprintf.texi (snprintf): Update.
27121         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27122         * tests/test-snprintf.c (main): Enhance test.
27123         * tests/test-vsnprintf.c (main): Likewise.
27125 2011-07-05  Jim Meyering  <meyering@redhat.com>
27127         maint: exempt stdio-read.c and stdio-write.c from the cppi check
27128         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
27129         per Bruno's request, to accommodate this idiom (no space after "#")
27130         even when the function is inside an #if block:
27131         char *
27132         gets (char *s)
27133         #undef gets
27134         {
27135           ...
27136         }
27138 2011-07-04  Jim Meyering  <meyering@redhat.com>
27140         maint: indent with spaces, not TABs, and add a rule to check this
27141         * tests/test-userspec.c: Indent with spaces, not TABs.
27142         * tests/test-argp.c: Likewise.
27143         * tests/test-c-stack2.sh: Likewise.
27144         * tests/test-parse-duration.sh: Likewise
27145         * m4/strtod.m4: Likewise.
27146         * m4/alloca.m4: Likewise.
27147         * m4/pselect.m4: Likewise.
27148         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
27150 2011-07-03  Jim Meyering  <meyering@redhat.com>
27152         maint.mk: correct omissions in prohibit_argmatch_without_use check
27153         This rule would mistakenly report that argmatch.h is included without
27154         use even when both the argmatch and invalid_arg macro were used.
27155         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
27156         of argmatch and invalid_arg.
27158 2011-07-03  Bruno Haible  <bruno@clisp.org>
27160         Comments about EINTR.
27161         * lib/safe-read.h: Explain the purpose of this module.
27162         * lib/safe-write.h: Likewise.
27163         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
27164         module.
27165         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
27166         module.
27167         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27169 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
27171         xnanosleep: Rewrite to use new dtotimespec module.
27172         It has the conversion code that used to be in xnanosleep.
27173         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
27174         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
27175         (TIME_T_MAX): Remove.
27176         (xnanosleep): Rewrite in terms of dtotimespec.
27177         * modules/xnanosleep (Depends-on): Add dtotimespec.
27178         Remove intprops, stdbool.
27180         timespec-add, timespec-sub: new modules
27181         * lib/timespec.h (timespec_add, timespec_sub): New decls.
27182         * lib/timespec-add.c, lib/timespec-sub.c:
27183         * modules/timespec-add, modules/timespec-sub: New files.
27185         dtotimespec: new module
27186         * lib/timespec.h (dtotimespec): New decl.
27187         * lib/dtotimespec.c, modules/dtotimespec: New files.
27189         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
27191         pselect: new module
27192         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
27193         (pselect): New decls.
27194         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
27195         since the standard pselect decl uses 'restrict'.
27196         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
27197         HAVE_PSELECT, REPLACE_PSELECT.
27198         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
27199         HAVE_PSELECT, REPLACE_PSELECT.
27200         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
27202         sys_select: don't depend on sys_socket
27203         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
27204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
27205         This fix works on GNU and GNU-like platforms, but has not been tested
27206         on native Windows.
27207         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
27208         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
27209         gl_HEADER_SYS_SOCKET.
27210         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
27211         gl_PREREQ_SYS_H_WINSOCK2.
27213 2011-06-29  Eric Blake  <eblake@redhat.com>
27215         pipe2: fix C89 compile problem
27216         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
27217         Reported by Bruno Haible.
27219         pipe, pipe2: don't corrupt fd on error
27220         * lib/pipe.c (pipe): Leave fd unchanged on error.
27221         * lib/pipe2.c (pipe2): Likewise.
27222         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
27223         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
27225 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
27227         mmap-anon: do not use regular expressions inadvertently
27228         * m4/mmap-anon.m4: Remove trailing period from strings sought
27229         in the output.
27231 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
27233         nanosleep: fix integer overflow problem
27234         * lib/nanosleep.c (my_usleep): Don't assume signed integer
27235         arithmetic wraps around on overflow.
27237         nanosleep: simplify carrying
27238         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
27239         first call to the underyling nanosleep, not for the last one.
27240         This doesn't fix any bugs, but it simplifies the computation of
27241         the remaining delay.  Found while auditing integer overflow issues.
27243         dup2: remove test for existence of fcntl
27244         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
27245         "#if HAVE_FCNTL", in the configure-time test program.
27246         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
27247         and therefore speeds up "configure" a bit.  Found while
27248         adding the dup2 module to Emacs.
27250 2011-06-24  Eric Blake  <eblake@redhat.com>
27252         maint.mk: enhance useless header checks
27253         * top/maint.mk (_sc_header_without_use): Check both include
27254         styles.
27255         (sc_prohibit_assert_without_use)
27256         (sc_prohibit_close_stream_without_use)
27257         (sc_prohibit_getopt_without_use)
27258         (sc_prohibit_quotearg_without_use)
27259         (sc_prohibit_quote_without_use)
27260         (sc_prohibit_long_options_without_use)
27261         (sc_prohibit_inttostr_without_use)
27262         (sc_prohibit_ignore_value_without_use)
27263         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
27264         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
27265         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
27266         (sc_prohibit_hash_pjw_without_use)
27267         (sc_prohibit_safe_read_without_use)
27268         (sc_prohibit_argmatch_without_use)
27269         (sc_prohibit_canonicalize_without_use)
27270         (sc_prohibit_root_dev_ino_without_use)
27271         (sc_prohibit_openat_without_use)
27272         (sc_prohibit_c_ctype_without_use)
27273         (sc_prohibit_signal_without_use)
27274         (sc_prohibit_stdio--_without_use)
27275         (sc_prohibit_stdio-safer_without_use)
27276         (sc_prohibit_strings_without_use)
27277         (sc_prohibit_intprops_without_use)
27278         (sc_prohibit_stddef_without_use)
27279         (sc_prohibit_xfreopen_without_use): Update clients.
27281 2011-06-24  Jim Meyering  <meyering@redhat.com>
27283         syntax-check: keep one maint.mk rule in sync with its header
27284         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
27285         of the bug Eric has just fixed, with today's commit 25e4c2ec.
27286         I prefer to avoid temporary files here, so use <(...), but that
27287         is not supported by /bin/sh, so...
27288         (SHELL): Define to /bin/bash.
27290 2011-06-24  Eric Blake  <eblake@redhat.com>
27292         maint.mk: update sc_prohibit_intprops_without_use
27293         * top/maint.mk (_intprops_names): Match recent changes.
27295 2011-06-24  Bruno Haible  <bruno@clisp.org>
27297         strerror-override: No-op tweak.
27298         * lib/strerror-override.h (strerror_override): Reorder conditions,
27299         for consistency with lib/strerror-override.c.
27301 2011-06-23  Eric Blake  <eblake@redhat.com>
27303         maint.mk: test further PATH_MAX issues
27304         * top/maint.mk (sc_prohibit_path_max_array): Rename...
27305         (sc_prohibit_path_max_allocation): ...and also test alloca.
27306         Suggested by Jim Meyering.
27308 2011-06-22  Eric Blake  <eblake@redhat.com>
27310         maint.mk: add syntax-check to avoid char[PATH_MAX]
27311         * top/maint.mk (sc_prohibit_path_max_array): New rule.
27313         stat: be robust to PATH_MAX definition
27314         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
27315         * modules/stat (Depends-on): Add verify.
27317         link: work around IRIX bug
27318         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
27319         * lib/link.c (rpl_link): Work around it.
27320         * tests/test-link.h (test_link): Enhance test.
27321         * doc/posix-functions/link.texi (link): Document the bug.
27323         getopt: silence clang warning
27324         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
27325         dereference.
27326         Reported by Gustavo Martin Domato.
27328 2011-06-22  Jim Meyering  <meyering@redhat.com>
27330         bootstrap: do not insert a blank line into each .gitignore file
27331         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
27333 2011-06-21  Eric Blake  <eblake@redhat.com>
27335         perror: test for output mismatch
27336         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
27337         perror on IRIX.
27339         strerror_r: fix OpenBSD behavior on out-of-range
27340         * lib/strerror_r.c (strerror_r): Always use maximal string.
27341         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
27343         strerror_r: fix OpenBSD behavior on 0
27344         * lib/strerror-override.c (strerror_override): Also override 0
27345         when needed.
27346         * lib/strerror-override.h (strerror_override): Likewise.
27347         * lib/strerror.c (strerror): Simplify, now that 0 override is done
27348         earlier.
27349         * lib/strerror_r.c (strerror_r): Likewise.
27350         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
27351         behavior...
27352         (gl_FUNC_STRERROR_0): ...into new macro.
27353         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
27354         is overridden.
27355         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
27356         * modules/strerror-override (Files): Add strerror.m4.
27357         (configure.ac): Also provide override for 0 when needed.
27358         * doc/posix-functions/strerror.texi (strerror): Document this.
27359         * doc/posix-functions/perror.texi (perror): Likewise.
27361         perror: adjust array size
27362         * modules/perror (Depends-on): Add strerror-override.
27363         * lib/perror.c (perror): Use it to avoid magic number.
27365         strerror-override: reduce size
27366         * lib/strerror-override.c (strerror_override): Use fewer lines.
27368 2011-06-20  Bruno Haible  <bruno@clisp.org>
27370         pathmax: Ensure correct value for PATH_MAX on HP-UX.
27371         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
27373 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
27375         alloca: port to compilers that can optimize like GCC 4.6.0
27376         * lib/alloca.c (find_stack_direction): New signature, taken from
27377         Autoconf git.  This works with GCC 4.6.0.  This code should never
27378         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
27379         be used with other compilers that optimize as well as GCC 4.6.0 does.
27380         (alloca): Adjust to new signature.
27381         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
27382         New macro, which patches Autoconf in a similar way.
27384         c-stack: stop worrying about stack direction
27385         * lib/c-stack.c (find_stack_direction): Remove.
27386         (segv_handler): Don't worry about stack direction growth, as it's
27387         too much of a pain to configure this correctly, given how compilers
27388         are optimizing-away our stack-growth detection code.  Instead, assume
27389         that any access to just before or just after the stack is OK.
27390         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
27391         Don't require AC_FUNC_ALLOCA; no longer needed.
27393 2011-06-20  Eric Blake  <eblake@redhat.com>
27395         test-stat: don't allocate PATH_MAX bytes
27396         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
27397         PATH_MAX-sized buffer.
27398         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
27399         * modules/stat-tests (Depends-on): Likewise.
27400         * tests/test-fstatat.c (includes): Drop pathmax.h.
27401         * tests/test-stat.c (includes): Likewise.
27402         Reported by Bruno Haible.
27404 2011-06-20  Bruno Haible  <bruno@clisp.org>
27406         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
27407         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
27408         * lib/float.c: New file.
27409         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
27410         REPLACE_FLOAT_LDBL.
27411         * modules/float (Files): Add lib/float.c.
27412         (configure.ac): Invoke AC_LIBOBJ.
27413         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
27415 2011-06-20  Bruno Haible  <bruno@clisp.org>
27417         Tests for module 'float'.
27418         * modules/float-tests: New file.
27419         * tests/test-float.c: New file.
27421 2011-06-19  Bruno Haible  <bruno@clisp.org>
27423         isinf: Coding style.
27424         * lib/isinf.c: Use GNU coding style.
27426 2011-06-19  Bruno Haible  <bruno@clisp.org>
27428         linkat test: Avoid test failure on AIX 7.1.
27429         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
27430         * tests/test-link.h (test_link): Likewise.
27432 2011-06-19  Bruno Haible  <bruno@clisp.org>
27434         pread test: Avoid test failure on OpenBSD 4.9.
27435         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
27437 2011-06-19  Bruno Haible  <bruno@clisp.org>
27439         sprintf-posix: Fix test failure on AIX 7.1.
27440         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
27441         * doc/posix-functions/dprintf.texi: Mention limited precision problem
27442         on AIX.
27443         * doc/posix-functions/fprintf.texi: Likewise.
27444         * doc/posix-functions/printf.texi: Likewise.
27445         * doc/posix-functions/snprintf.texi: Likewise.
27446         * doc/posix-functions/sprintf.texi: Likewise.
27447         * doc/posix-functions/vdprintf.texi: Likewise.
27448         * doc/posix-functions/vfprintf.texi: Likewise.
27449         * doc/posix-functions/vprintf.texi: Likewise.
27450         * doc/posix-functions/vsnprintf.texi: Likewise.
27451         * doc/posix-functions/vsprintf.texi: Likewise.
27453 2011-06-19  Bruno Haible  <bruno@clisp.org>
27455         roundl-ieee: Fix test failure on AIX 7.1.
27456         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
27457         * doc/posix-functions/roundl.texi: Mention problem with negative
27458         arguments.
27460 2011-06-19  Bruno Haible  <bruno@clisp.org>
27462         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
27463         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
27464         * doc/posix-functions/round.texi: Mention problem with negative
27465         arguments.
27466         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
27468 2011-06-19  Bruno Haible  <bruno@clisp.org>
27470         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
27471         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
27472         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
27473         * doc/posix-functions/roundf.texi: Mention problem with negative
27474         arguments.
27475         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
27477 2011-06-19  Bruno Haible  <bruno@clisp.org>
27479         ceilf-ieee: Work around bug on MacOS X 10.5.
27480         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
27482         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
27483         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
27484         IEEE compliant, avoid compiler optimizations.
27485         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
27486         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
27487         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
27488         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
27489         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27490         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27491         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27492         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
27493         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
27494         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
27496 2011-06-19  Bruno Haible  <bruno@clisp.org>
27498         ceilf-ieee: Work around bug on AIX 7.1.
27499         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
27500         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
27502 2011-06-19  Bruno Haible  <bruno@clisp.org>
27504         ceil-ieee: Work around bug on AIX 7.1.
27505         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
27506         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
27508 2011-06-18  Bruno Haible  <bruno@clisp.org>
27510         fsync test: Avoid test failure on MacOS X and AIX.
27511         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
27512         EINVAL.
27514 2011-06-18  Bruno Haible  <bruno@clisp.org>
27516         openat, fdopendir tests: Fix link errors.
27517         * modules/openat-tests (Depends-on): Add progname.
27518         * modules/fdopendir-tests (Depends-on): Likewise.
27519         * tests/test-fchownat.c: Include progname.h.
27520         (main): Call set_program_name.
27521         * tests/test-fstatat.c: Include progname.h.
27522         (main): Call set_program_name.
27523         * tests/test-mkdirat.c: Include progname.h.
27524         (main): Call set_program_name.
27525         * tests/test-openat.c: Include progname.h.
27526         (main): Call set_program_name.
27527         * tests/test-unlinkat.c: Include progname.h.
27528         (main): Call set_program_name.
27529         * tests/test-fdopendir.c: Include progname.h.
27530         (main): Call set_program_name.
27532 2011-06-18  Bruno Haible  <bruno@clisp.org>
27534         Doc update.
27535         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
27536         HP-UX.
27537         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
27539 2011-06-18  Bruno Haible  <bruno@clisp.org>
27541         getcwd tests: Avoid compilation error on HP-UX 11.31.
27542         * modules/getcwd-tests (Depends-on): Add pathmax.
27543         * tests/test-getcwd.c: Include pathmax.h.
27545 2011-06-18  Bruno Haible  <bruno@clisp.org>
27547         isfinite, isinf: Fix link error on AIX 6 and 7.
27548         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
27549         needed, also test the macro with a 'float' argument.
27550         * m4/isinf.m4 (gl_ISINF): Likewise.
27552 2011-06-18  Bruno Haible  <bruno@clisp.org>
27554         getloadavg: Don't clobber LIBS. Regression from previous commit.
27555         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
27556         AC_CHECK_LIB from here...
27557         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
27558         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
27559         gl_func_getloadavg_done.
27560         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27562 2011-06-18  Bruno Haible  <bruno@clisp.org>
27564         clean-temp: Improve documentation.
27565         * lib/clean-temp.h: Explain better how to use this module.
27566         Reported by John Darrington <john@darrington.wattle.id.au>.
27568 2011-06-17  Bruno Haible  <bruno@clisp.org>
27570         pread, pwrite: Avoid cc warning on AIX.
27571         * lib/unistd.in.h (pread): Undefine before defining as a macro.
27572         (pwrite): Likewise.
27574 2011-06-17  Bruno Haible  <bruno@clisp.org>
27576         spawn-pipe tests: Fix link error.
27577         * tests/test-spawn-pipe-child.c: Undefine fprintf.
27578         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27580 2011-06-17  Bruno Haible  <bruno@clisp.org>
27582         Tests: Remove unnecessary dependency.
27583         * modules/canonicalize-tests (Depends-on): Remove progname.
27584         * modules/chown-tests (Depends-on): Likewise.
27585         * modules/dirname-tests (Depends-on): Likewise.
27586         * modules/fdopendir-tests (Depends-on): Likewise.
27587         * modules/fdutimensat-tests (Depends-on): Likewise.
27588         * modules/hash-tests (Depends-on): Likewise.
27589         * modules/lchown-tests (Depends-on): Likewise.
27590         * modules/linkat-tests (Depends-on): Likewise.
27591         * modules/renameat-tests (Depends-on): Likewise.
27592         * modules/spawn-pipe-tests (Depends-on): Likewise.
27593         * modules/utimensat-tests (Depends-on): Likewise.
27595 2011-06-17  Bruno Haible  <bruno@clisp.org>
27597         spawn-pipe tests: Fix link error.
27598         * tests/test-spawn-pipe-child.c: Undefine fflush.
27600 2011-06-17  Bruno Haible  <bruno@clisp.org>
27602         Fix tests link errors.
27603         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
27604         * modules/chown-tests (Makefile.am): Don't link test-chown with
27605         LIBINTL.
27606         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
27607         LIBINTL.
27608         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
27609         LIBINTL.
27610         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
27611         LIBINTL.
27613 2011-06-16  Bruno Haible  <bruno@clisp.org>
27615         crypto/gc-sha1: Fix recent regression.
27616         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
27617         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
27619         crypto/gc-md5: Fix recent regression.
27620         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
27622         crypto/gc-md4: Fix recent regression.
27623         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
27624         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
27626         crypto/gc-arctwo: Fix recent regression.
27627         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
27628         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
27630         crypto/gc-rijndael: Fix recent regression.
27631         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
27632         (configure.ac): Invoke AC_LIBOBJ here.
27633         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
27634         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27636         crypto/gc-hmac-sha1: Fix recent regression.
27637         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
27638         (configure.ac): Invoke AC_LIBOBJ here.
27639         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
27640         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27642         crypto/gc-hmac-md5: Fix recent regression.
27643         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
27644         (configure.ac): Invoke AC_LIBOBJ here.
27645         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
27646         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27648         crypto/gc-des: Fix recent regression.
27649         * modules/crypto/gc-des (Files): Remove m4/des.m4.
27650         (configure.ac): Invoke AC_LIBOBJ here.
27651         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
27652         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27654         crypto/gc-arcfour: Fix recent regression.
27655         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
27656         (configure.ac): Invoke AC_LIBOBJ here.
27657         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
27658         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27660 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
27662         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
27663         After the 2011-05-21 change, this macro requires
27664         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
27665         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27667 2011-06-16  Bruno Haible  <bruno@clisp.org>
27669         fprintftime: Move AC_LIBOBJ invocations to module description.
27670         * m4/fprintftime.m4: Remove file.
27671         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
27672         (configure.ac): Remove gl_FPRINTFTIME call.
27673         (Makefile.am): Augment lib_SOURCES.
27674         Reported by Jim Meyering.
27676 2011-06-16  Bruno Haible  <bruno@clisp.org>
27678         tmpfile-safer: Finish 2011-05-23 commit.
27679         * m4/stdio-safer.m4: Really remove file.
27680         Reported by Jim Meyering.
27682 2011-06-16  Bruno Haible  <bruno@clisp.org>
27684         syntax-check: Fix typo.
27685         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
27686         printf-posix.m4.
27687         Reported by Jim Meyering.
27689 2011-06-13  Jim Meyering  <meyering@redhat.com>
27691         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
27692         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
27694 2011-05-23  Bruno Haible  <bruno@clisp.org>
27696         yesno: Move AC_LIBOBJ invocations to module description.
27697         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
27698         * modules/yesno (Makefile.am): Augment lib_SOURCES.
27700 2011-05-23  Bruno Haible  <bruno@clisp.org>
27702         xstrtol: Move AC_LIBOBJ invocations to module description.
27703         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
27704         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
27706 2011-05-23  Bruno Haible  <bruno@clisp.org>
27708         xstrtold: Move AC_LIBOBJ invocations to module description.
27709         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
27710         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
27712 2011-05-23  Bruno Haible  <bruno@clisp.org>
27714         xstrtod: Move AC_LIBOBJ invocations to module description.
27715         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
27716         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
27718 2011-05-23  Bruno Haible  <bruno@clisp.org>
27720         xnanosleep: Move AC_LIBOBJ invocations to module description.
27721         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
27722         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
27724 2011-05-23  Bruno Haible  <bruno@clisp.org>
27726         xgetcwd: Move AC_LIBOBJ invocations to module description.
27727         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
27728         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
27730 2011-05-23  Bruno Haible  <bruno@clisp.org>
27732         xalloc: Move AC_LIBOBJ invocations to module description.
27733         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
27734         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
27736 2011-05-23  Bruno Haible  <bruno@clisp.org>
27738         write-any-file: Move AC_LIBOBJ invocations to module description.
27739         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
27740         invocation.
27741         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
27743 2011-05-23  Bruno Haible  <bruno@clisp.org>
27745         utimens: Move AC_LIBOBJ invocations to module description.
27746         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
27747         * modules/utimens (Makefile.am): Augment lib_SOURCES.
27749 2011-05-23  Bruno Haible  <bruno@clisp.org>
27751         utimecmp: Move AC_LIBOBJ invocations to module description.
27752         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
27753         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
27755 2011-05-23  Bruno Haible  <bruno@clisp.org>
27757         userspec: Move AC_LIBOBJ invocations to module description.
27758         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
27759         * modules/userspec (Makefile.am): Augment lib_SOURCES.
27761 2011-05-23  Bruno Haible  <bruno@clisp.org>
27763         unlinkdir: Move AC_LIBOBJ invocations to module description.
27764         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
27765         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
27767 2011-05-23  Bruno Haible  <bruno@clisp.org>
27769         unistd-safer: Move AC_LIBOBJ invocations to module description.
27770         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
27771         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
27773 2011-05-23  Bruno Haible  <bruno@clisp.org>
27775         tempname: Move AC_LIBOBJ invocations to module description.
27776         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
27777         * modules/tempname (Makefile.am): Augment lib_SOURCES.
27779 2011-05-23  Bruno Haible  <bruno@clisp.org>
27781         strftime: Move AC_LIBOBJ invocations to module description.
27782         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
27783         * modules/strftime (Makefile.am): Augment lib_SOURCES.
27785 2011-05-23  Bruno Haible  <bruno@clisp.org>
27787         stdlib-safer: Move AC_LIBOBJ invocations to module description.
27788         * m4/stdlib-safer.m4: Remove file.
27789         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
27790         (configure.ac): Remove gl_STDLIB_SAFER call.
27791         (Makefile.am): Augment lib_SOURCES.
27793 2011-05-23  Bruno Haible  <bruno@clisp.org>
27795         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
27796         * m4/stdio-safer.m4: Remove file.
27797         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
27798         (configure.ac): Remove gl_TMPFILE_SAFER call.
27799         (Makefile.am): Augment lib_SOURCES.
27801 2011-05-23  Bruno Haible  <bruno@clisp.org>
27803         popen-safer: Move AC_LIBOBJ invocations to module description.
27804         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
27805         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
27806         (configure.ac): Remove gl_POPEN_SAFER call.
27807         (Makefile.am): Augment lib_SOURCES.
27809 2011-05-23  Bruno Haible  <bruno@clisp.org>
27811         freopen-safer: Move AC_LIBOBJ invocations to module description.
27812         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
27813         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
27814         (configure.ac): Remove gl_FREOPEN_SAFER call.
27815         (Makefile.am): Augment lib_SOURCES.
27817 2011-05-23  Bruno Haible  <bruno@clisp.org>
27819         fopen-safer: Move AC_LIBOBJ invocations to module description.
27820         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
27821         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
27822         (configure.ac): Remove gl_FOPEN_SAFER call.
27823         (Makefile.am): Augment lib_SOURCES.
27825 2011-05-23  Bruno Haible  <bruno@clisp.org>
27827         crypto/sha512: Move AC_LIBOBJ invocations to module description.
27828         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
27829         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
27831 2011-05-23  Bruno Haible  <bruno@clisp.org>
27833         crypto/sha256: Move AC_LIBOBJ invocations to module description.
27834         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
27835         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
27837 2011-05-23  Bruno Haible  <bruno@clisp.org>
27839         crypto/sha1: Move AC_LIBOBJ invocations to module description.
27840         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
27841         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
27843 2011-05-23  Bruno Haible  <bruno@clisp.org>
27845         settime: Move AC_LIBOBJ invocations to module description.
27846         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
27847         * modules/settime (Makefile.am): Augment lib_SOURCES.
27849 2011-05-23  Bruno Haible  <bruno@clisp.org>
27851         savedir: Move AC_LIBOBJ invocations to module description.
27852         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
27853         * modules/savedir (Makefile.am): Augment lib_SOURCES.
27855 2011-05-23  Bruno Haible  <bruno@clisp.org>
27857         save-cwd: Move AC_LIBOBJ invocations to module description.
27858         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
27859         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
27861 2011-05-23  Bruno Haible  <bruno@clisp.org>
27863         same: Move AC_LIBOBJ invocations to module description.
27864         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
27865         * modules/same (Makefile.am): Augment lib_SOURCES.
27867 2011-05-23  Bruno Haible  <bruno@clisp.org>
27869         safe-write: Move AC_LIBOBJ invocations to module description.
27870         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
27871         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
27872         instead of gl_SAFE_WRITE.
27873         (Makefile.am): Augment lib_SOURCES.
27875 2011-05-23  Bruno Haible  <bruno@clisp.org>
27877         safe-read: Move AC_LIBOBJ invocations to module description.
27878         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
27879         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
27880         of gl_SAFE_READ.
27881         (Makefile.am): Augment lib_SOURCES.
27883 2011-05-23  Bruno Haible  <bruno@clisp.org>
27885         safe-alloc: Move AC_LIBOBJ invocations to module description.
27886         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
27887         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
27889 2011-05-23  Bruno Haible  <bruno@clisp.org>
27891         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
27892         * m4/rijndael.m4: Remove file.
27893         * modules/crypto/rijndael (Files): Remove it.
27894         (configure.ac): Remove gl_RIJNDAEL call.
27895         (Makefile.am): Augment lib_SOURCES.
27897 2011-05-23  Bruno Haible  <bruno@clisp.org>
27899         readtokens: Move AC_LIBOBJ invocations to module description.
27900         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
27901         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
27903 2011-05-23  Bruno Haible  <bruno@clisp.org>
27905         read-file: Move AC_LIBOBJ invocations to module description.
27906         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
27907         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
27908         of gl_FUNC_READ_FILE.
27909         (Makefile.am): Augment lib_SOURCES.
27911 2011-05-23  Bruno Haible  <bruno@clisp.org>
27913         quotearg: Move AC_LIBOBJ invocations to module description.
27914         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
27915         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
27917 2011-05-23  Bruno Haible  <bruno@clisp.org>
27919         quote: Move AC_LIBOBJ invocations to module description.
27920         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
27921         * modules/quote (Makefile.am): Augment lib_SOURCES.
27923 2011-05-23  Bruno Haible  <bruno@clisp.org>
27925         posixver: Move AC_LIBOBJ invocations to module description.
27926         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
27927         * modules/posixver (Makefile.am): Augment lib_SOURCES.
27929 2011-05-23  Bruno Haible  <bruno@clisp.org>
27931         posixtm: Move AC_LIBOBJ invocations to module description.
27932         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
27933         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
27935 2011-05-23  Bruno Haible  <bruno@clisp.org>
27937         physmem: Move AC_LIBOBJ invocations to module description.
27938         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
27939         * modules/physmem (Makefile.am): Augment lib_SOURCES.
27941 2011-05-23  Bruno Haible  <bruno@clisp.org>
27943         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
27944         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
27945         invocation.
27946         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
27948 2011-05-23  Bruno Haible  <bruno@clisp.org>
27950         mpsort: Move AC_LIBOBJ invocations to module description.
27951         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
27952         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
27954 2011-05-23  Bruno Haible  <bruno@clisp.org>
27956         modechange: Move AC_LIBOBJ invocations to module description.
27957         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
27958         * modules/modechange (Makefile.am): Augment lib_SOURCES.
27960 2011-05-23  Bruno Haible  <bruno@clisp.org>
27962         mkdir-p: Move AC_LIBOBJ invocations to module description.
27963         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
27964         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
27966 2011-05-23  Bruno Haible  <bruno@clisp.org>
27968         mkancesdirs: Move AC_LIBOBJ invocations to module description.
27969         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
27970         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
27972 2011-05-23  Bruno Haible  <bruno@clisp.org>
27974         mgetgroups: Move AC_LIBOBJ invocations to module description.
27975         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
27976         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
27978 2011-05-23  Bruno Haible  <bruno@clisp.org>
27980         memxor: Move AC_LIBOBJ invocations to module description.
27981         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
27982         * modules/memxor (Makefile.am): Augment lib_SOURCES.
27984 2011-05-23  Bruno Haible  <bruno@clisp.org>
27986         memcoll: Move AC_LIBOBJ invocations to module description.
27987         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
27988         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
27990 2011-05-23  Bruno Haible  <bruno@clisp.org>
27992         memcasecmp: Move AC_LIBOBJ invocations to module description.
27993         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
27994         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
27996 2011-05-23  Bruno Haible  <bruno@clisp.org>
27998         crypto/md5: Move AC_LIBOBJ invocations to module description.
27999         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
28000         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
28002 2011-05-23  Bruno Haible  <bruno@clisp.org>
28004         crypto/md4: Move AC_LIBOBJ invocations to module description.
28005         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
28006         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
28008 2011-05-23  Bruno Haible  <bruno@clisp.org>
28010         crypto/md2: Move AC_LIBOBJ invocations to module description.
28011         * m4/md2.m4: Remove file.
28012         * modules/crypto/md2 (Files): Remove it.
28013         (configure.ac): Remove gl_MD2 call.
28014         (Makefile.am): Augment lib_SOURCES.
28016 2011-05-23  Bruno Haible  <bruno@clisp.org>
28018         long-options: Move AC_LIBOBJ invocations to module description.
28019         * m4/long-options.m4: Remove file.
28020         * modules/long-options (Files): Remove it.
28021         (configure.ac): Remove gl_LONG_OPTIONS call.
28022         (Makefile.am): Augment lib_SOURCES.
28024 2011-05-23  Bruno Haible  <bruno@clisp.org>
28026         i-ring: Move AC_LIBOBJ invocations to module description.
28027         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
28028         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
28030 2011-05-23  Bruno Haible  <bruno@clisp.org>
28032         idcache: Move AC_LIBOBJ invocations to module description.
28033         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
28034         * modules/idcache (Makefile.am): Augment lib_SOURCES.
28036 2011-05-23  Bruno Haible  <bruno@clisp.org>
28038         human: Move AC_LIBOBJ invocations to module description.
28039         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
28040         * modules/human (Makefile.am): Augment lib_SOURCES.
28042 2011-05-23  Bruno Haible  <bruno@clisp.org>
28044         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
28045         * m4/hmac-sha1.m4: Remove file.
28046         * modules/crypto/hmac-sha1 (Files): Remove it.
28047         (configure.ac): Remove gl_HMAC_SHA1 call.
28048         (Makefile.am): Augment lib_SOURCES.
28050 2011-05-23  Bruno Haible  <bruno@clisp.org>
28052         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
28053         * m4/hmac-md5.m4: Remove file.
28054         * modules/crypto/hmac-md5 (Files): Remove it.
28055         (configure.ac): Remove gl_HMAC_MD5 call.
28056         (Makefile.am): Augment lib_SOURCES.
28058 2011-05-23  Bruno Haible  <bruno@clisp.org>
28060         hash: Move AC_LIBOBJ invocations to module description.
28061         * m4/hash.m4: Remove file.
28062         * modules/hash (Files): Remove it.
28063         (configure.ac): Remove gl_HASH call.
28064         (Makefile.am): Augment lib_SOURCES.
28066 2011-05-23  Bruno Haible  <bruno@clisp.org>
28068         hard-locale: Move AC_LIBOBJ invocations to module description.
28069         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
28070         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
28072 2011-05-23  Bruno Haible  <bruno@clisp.org>
28074         getugroups: Move AC_LIBOBJ invocations to module description.
28075         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
28076         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
28078 2011-05-23  Bruno Haible  <bruno@clisp.org>
28080         gettime: Move AC_LIBOBJ invocations to module description.
28081         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
28082         * modules/gettime (Makefile.am): Augment lib_SOURCES.
28084 2011-05-23  Bruno Haible  <bruno@clisp.org>
28086         getndelim2: Move AC_LIBOBJ invocations to module description.
28087         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
28088         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
28090 2011-05-23  Bruno Haible  <bruno@clisp.org>
28092         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
28093         * m4/gc-pbkdf2-sha1.m4: Remove file.
28094         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
28095         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
28096         (Makefile.am): Augment lib_SOURCES.
28098 2011-05-23  Bruno Haible  <bruno@clisp.org>
28100         fts: Move AC_LIBOBJ invocations to module description.
28101         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
28102         * modules/fts (configure.ac): ... to here.
28104 2011-05-23  Bruno Haible  <bruno@clisp.org>
28106         file-type: Move AC_LIBOBJ invocations to module description.
28107         * m4/file-type.m4: Remove file.
28108         * modules/file-type (Files): Remove it.
28109         (configure.ac): Remove gl_FILE_TYPE call.
28110         (Makefile.am): Augment lib_SOURCES.
28112 2011-05-23  Bruno Haible  <bruno@clisp.org>
28114         filenamecat*: Respect rules for use of AC_LIBOBJ.
28115         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
28116         Remove AC_LIBOBJ invocation.
28117         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
28118         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
28120 2011-05-23  Bruno Haible  <bruno@clisp.org>
28122         filemode: Move AC_LIBOBJ invocations to module description.
28123         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
28124         * modules/filemode (Makefile.am): Augment lib_SOURCES.
28126 2011-05-23  Bruno Haible  <bruno@clisp.org>
28128         openat-safer: Move AC_LIBOBJ invocations to module description.
28129         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
28130         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
28132 2011-05-23  Bruno Haible  <bruno@clisp.org>
28134         fcntl-safer: Move AC_LIBOBJ invocations to module description.
28135         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
28136         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
28138 2011-05-23  Bruno Haible  <bruno@clisp.org>
28140         exclude: Move AC_LIBOBJ invocations to module description.
28141         * m4/exclude.m4: Remove file.
28142         * modules/exclude (Files): Remove it.
28143         (configure.ac): Remove gl_EXCLUDE call.
28144         (Makefile.am): Augment lib_SOURCES.
28146 2011-05-23  Bruno Haible  <bruno@clisp.org>
28148         dirname*: Respect rules for use of AC_LIBOBJ.
28149         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
28150         invocations.
28151         * modules/dirname (Makefile.am): Augment lib_SOURCES.
28152         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
28154 2011-05-23  Bruno Haible  <bruno@clisp.org>
28156         dirent-safer: Move AC_LIBOBJ invocations to module description.
28157         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
28158         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
28160 2011-05-23  Bruno Haible  <bruno@clisp.org>
28162         crypto/des: Move AC_LIBOBJ invocations to module description.
28163         * m4/des.m4: Remove file.
28164         * modules/crypto/des (Files): Remove it.
28165         (configure.ac): Remove gl_DES call.
28166         (Makefile.am): Augment lib_SOURCES.
28168 2011-05-23  Bruno Haible  <bruno@clisp.org>
28170         cycle-check: Move AC_LIBOBJ invocations to module description.
28171         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
28172         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
28174 2011-05-23  Bruno Haible  <bruno@clisp.org>
28176         c-strtold: Move AC_LIBOBJ invocations to module description.
28177         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
28178         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
28180 2011-05-23  Bruno Haible  <bruno@clisp.org>
28182         c-strtod: Move AC_LIBOBJ invocations to module description.
28183         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
28184         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
28186 2011-05-23  Bruno Haible  <bruno@clisp.org>
28188         crc: Move AC_LIBOBJ invocations to module description.
28189         * m4/crc.m4: Remove file.
28190         * modules/crc (Files): Remove it.
28191         (configure.ac): Remove gl_CRC call.
28192         (Makefile.am): Augment lib_SOURCES.
28194 2011-05-23  Bruno Haible  <bruno@clisp.org>
28196         close-stream: Move AC_LIBOBJ invocations to module description.
28197         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
28198         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
28200 2011-05-23  Bruno Haible  <bruno@clisp.org>
28202         closeout: Move AC_LIBOBJ invocations to module description.
28203         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
28204         * modules/closeout (Makefile.am): Augment lib_SOURCES.
28206 2011-05-23  Bruno Haible  <bruno@clisp.org>
28208         closein: Move AC_LIBOBJ invocations to module description.
28209         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
28210         * modules/closein (Makefile.am): Augment lib_SOURCES.
28212 2011-05-23  Bruno Haible  <bruno@clisp.org>
28214         cloexec: Move AC_LIBOBJ invocations to module description.
28215         * m4/cloexec.m4: Remove file.
28216         * modules/cloexec (Files): Remove it.
28217         (configure.ac): Remove gl_CLOEXEC call.
28218         (Makefile.am): Augment lib_SOURCES.
28220 2011-05-23  Bruno Haible  <bruno@clisp.org>
28222         check-version: Move AC_LIBOBJ invocations to module description.
28223         * m4/check-version.m4: Remove file.
28224         * modules/check-version (Files): Remove it.
28225         (configure.ac): Remove gl_CHECK_VERSION call.
28226         (Makefile.am): Augment lib_SOURCES.
28228 2011-05-23  Bruno Haible  <bruno@clisp.org>
28230         chdir-safer: Move AC_LIBOBJ invocations to module description.
28231         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
28232         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
28234 2011-05-23  Bruno Haible  <bruno@clisp.org>
28236         canonicalize: Move AC_LIBOBJ invocations to module description.
28237         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
28238         AC_LIBOBJ invocation.
28239         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
28241 2011-05-23  Bruno Haible  <bruno@clisp.org>
28243         canon-host: Move AC_LIBOBJ invocations to module description.
28244         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
28245         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
28246         instead of gl_CANON_HOST.
28247         (Makefile.am): Augment lib_SOURCES.
28249 2011-05-23  Bruno Haible  <bruno@clisp.org>
28251         backupfile: Move AC_LIBOBJ invocations to module description.
28252         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
28253         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
28255 2011-05-23  Bruno Haible  <bruno@clisp.org>
28257         argmatch: Move AC_LIBOBJ invocations to module description.
28258         * m4/argmatch.m4: Remove file.
28259         * modules/argmatch (Files): Remove it.
28260         (configure.ac): Remove gl_ARGMATCH call.
28261         (Makefile.am): Augment lib_SOURCES.
28263 2011-05-23  Bruno Haible  <bruno@clisp.org>
28265         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
28266         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
28267         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
28269 2011-05-23  Bruno Haible  <bruno@clisp.org>
28271         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
28272         * m4/arcfour.m4: Remove file.
28273         * modules/crypto/arcfour (Files): Remove it.
28274         (configure.ac): Remove gl_ARCFOUR call.
28275         (Makefile.am): Augment lib_SOURCES.
28277 2011-05-22  Bruno Haible  <bruno@clisp.org>
28279         write: Move AC_LIBOBJ invocations to module description.
28280         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
28281         * modules/write (configure.ac): ... to here.
28283 2011-05-22  Bruno Haible  <bruno@clisp.org>
28285         wmemset: Move AC_LIBOBJ invocations to module description.
28286         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
28287         here...
28288         * modules/wmemset (configure.ac): ... to here.
28290 2011-05-22  Bruno Haible  <bruno@clisp.org>
28292         wmemmove: Move AC_LIBOBJ invocations to module description.
28293         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
28294         here...
28295         * modules/wmemmove (configure.ac): ... to here.
28297 2011-05-22  Bruno Haible  <bruno@clisp.org>
28299         wmemcpy: Move AC_LIBOBJ invocations to module description.
28300         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
28301         here...
28302         * modules/wmemcpy (configure.ac): ... to here.
28304 2011-05-22  Bruno Haible  <bruno@clisp.org>
28306         wmemcmp: Move AC_LIBOBJ invocations to module description.
28307         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
28308         here...
28309         * modules/wmemcmp (configure.ac): ... to here.
28311 2011-05-22  Bruno Haible  <bruno@clisp.org>
28313         wmemchr: Move AC_LIBOBJ invocations to module description.
28314         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
28315         here...
28316         * modules/wmemchr (configure.ac): ... to here.
28318 2011-05-22  Bruno Haible  <bruno@clisp.org>
28320         wcswidth: Move AC_LIBOBJ invocations to module description.
28321         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
28322         here...
28323         * modules/wcswidth (configure.ac): ... to here.
28325 2011-05-22  Bruno Haible  <bruno@clisp.org>
28327         wcwidth: Respect rules for use of AC_LIBOBJ.
28328         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
28329         invocation from here...
28330         * modules/wcwidth (configure.ac): ... to here.
28331         (Depends-on): Update conditions.
28333 2011-05-22  Bruno Haible  <bruno@clisp.org>
28335         wctype: Move AC_LIBOBJ invocations to module description.
28336         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
28337         invocation from here...
28338         * modules/wctype (configure.ac): ... to here.
28339         (Depends-on): Update conditions.
28341 2011-05-22  Bruno Haible  <bruno@clisp.org>
28343         wctrans: Move AC_LIBOBJ invocations to module description.
28344         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
28345         invocation from here...
28346         * modules/wctrans (configure.ac): ... to here.
28348 2011-05-22  Bruno Haible  <bruno@clisp.org>
28350         wctomb: Move AC_LIBOBJ invocations to module description.
28351         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
28352         invocations from here...
28353         * modules/wctomb (configure.ac): ... to here.
28355 2011-05-22  Bruno Haible  <bruno@clisp.org>
28357         wctob: Move AC_LIBOBJ invocations to module description.
28358         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
28359         gl_PREREQ_WCTOB invocations from here...
28360         * modules/wctob (configure.ac): ... to here.
28361         (Depends-on): Update conditions.
28363 2011-05-22  Bruno Haible  <bruno@clisp.org>
28365         wcsxfrm: Move AC_LIBOBJ invocations to module description.
28366         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
28367         here...
28368         * modules/wcsxfrm (configure.ac): ... to here.
28370 2011-05-22  Bruno Haible  <bruno@clisp.org>
28372         wcstok: Move AC_LIBOBJ invocations to module description.
28373         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
28374         * modules/wcstok (configure.ac): ... to here.
28376 2011-05-22  Bruno Haible  <bruno@clisp.org>
28378         wcsstr: Move AC_LIBOBJ invocations to module description.
28379         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
28380         * modules/wcsstr (configure.ac): ... to here.
28382 2011-05-22  Bruno Haible  <bruno@clisp.org>
28384         wcsspn: Move AC_LIBOBJ invocations to module description.
28385         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
28386         * modules/wcsspn (configure.ac): ... to here.
28388 2011-05-22  Bruno Haible  <bruno@clisp.org>
28390         wcsrtombs: Move AC_LIBOBJ invocations to module description.
28391         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
28392         gl_PREREQ_WCSRTOMBS invocations from here...
28393         * modules/wcsrtombs (configure.ac): ... to here.
28395 2011-05-22  Bruno Haible  <bruno@clisp.org>
28397         wcsrchr: Move AC_LIBOBJ invocations to module description.
28398         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
28399         here...
28400         * modules/wcsrchr (configure.ac): ... to here.
28402 2011-05-22  Bruno Haible  <bruno@clisp.org>
28404         wcspbrk: Move AC_LIBOBJ invocations to module description.
28405         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
28406         here...
28407         * modules/wcspbrk (configure.ac): ... to here.
28409 2011-05-22  Bruno Haible  <bruno@clisp.org>
28411         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
28412         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
28413         gl_PREREQ_WCSNRTOMBS invocations from here...
28414         * modules/wcsnrtombs (configure.ac): ... to here.
28416 2011-05-22  Bruno Haible  <bruno@clisp.org>
28418         wcsnlen: Move AC_LIBOBJ invocations to module description.
28419         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
28420         here...
28421         * modules/wcsnlen (configure.ac): ... to here.
28423 2011-05-22  Bruno Haible  <bruno@clisp.org>
28425         wcsncpy: Move AC_LIBOBJ invocations to module description.
28426         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
28427         here...
28428         * modules/wcsncpy (configure.ac): ... to here.
28430 2011-05-22  Bruno Haible  <bruno@clisp.org>
28432         wcsncmp: Move AC_LIBOBJ invocations to module description.
28433         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
28434         here...
28435         * modules/wcsncmp (configure.ac): ... to here.
28437 2011-05-22  Bruno Haible  <bruno@clisp.org>
28439         wcsncat: Move AC_LIBOBJ invocations to module description.
28440         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
28441         here...
28442         * modules/wcsncat (configure.ac): ... to here.
28444 2011-05-22  Bruno Haible  <bruno@clisp.org>
28446         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
28447         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
28448         from here...
28449         * modules/wcsncasecmp (configure.ac): ... to here.
28451 2011-05-22  Bruno Haible  <bruno@clisp.org>
28453         wcslen: Move AC_LIBOBJ invocations to module description.
28454         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
28455         * modules/wcslen (configure.ac): ... to here.
28457 2011-05-22  Bruno Haible  <bruno@clisp.org>
28459         wcsdup: Move AC_LIBOBJ invocations to module description.
28460         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
28461         * modules/wcsdup (configure.ac): ... to here.
28463 2011-05-22  Bruno Haible  <bruno@clisp.org>
28465         wcscspn: Move AC_LIBOBJ invocations to module description.
28466         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
28467         here...
28468         * modules/wcscspn (configure.ac): ... to here.
28470 2011-05-22  Bruno Haible  <bruno@clisp.org>
28472         wcscpy: Move AC_LIBOBJ invocations to module description.
28473         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
28474         * modules/wcscpy (configure.ac): ... to here.
28476 2011-05-22  Bruno Haible  <bruno@clisp.org>
28478         wcscoll: Move AC_LIBOBJ invocations to module description.
28479         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
28480         here...
28481         * modules/wcscoll (configure.ac): ... to here.
28483 2011-05-22  Bruno Haible  <bruno@clisp.org>
28485         wcscmp: Move AC_LIBOBJ invocations to module description.
28486         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
28487         * modules/wcscmp (configure.ac): ... to here.
28489 2011-05-22  Bruno Haible  <bruno@clisp.org>
28491         wcschr: Move AC_LIBOBJ invocations to module description.
28492         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
28493         * modules/wcschr (configure.ac): ... to here.
28495 2011-05-22  Bruno Haible  <bruno@clisp.org>
28497         wcscat: Move AC_LIBOBJ invocations to module description.
28498         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
28499         * modules/wcscat (configure.ac): ... to here.
28501 2011-05-22  Bruno Haible  <bruno@clisp.org>
28503         wcscasecmp: Move AC_LIBOBJ invocations to module description.
28504         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
28505         here...
28506         * modules/wcscasecmp (configure.ac): ... to here.
28508 2011-05-22  Bruno Haible  <bruno@clisp.org>
28510         wcrtomb: Move AC_LIBOBJ invocations to module description.
28511         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
28512         invocations from here...
28513         * modules/wcrtomb (configure.ac): ... to here.
28515 2011-05-22  Bruno Haible  <bruno@clisp.org>
28517         wcpncpy: Move AC_LIBOBJ invocations to module description.
28518         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
28519         here...
28520         * modules/wcpncpy (configure.ac): ... to here.
28522 2011-05-22  Bruno Haible  <bruno@clisp.org>
28524         wcpcpy: Move AC_LIBOBJ invocations to module description.
28525         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
28526         * modules/wcpcpy (configure.ac): ... to here.
28528 2011-05-22  Bruno Haible  <bruno@clisp.org>
28530         waitpid: Move AC_LIBOBJ invocations to module description.
28531         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
28532         invocation from here...
28533         * modules/waitpid (configure.ac): ... to here.
28535 2011-05-22  Bruno Haible  <bruno@clisp.org>
28537         utimensat: Move AC_LIBOBJ invocations to module description.
28538         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
28539         here...
28540         * modules/utimensat (configure.ac): ... to here.
28542 2011-05-22  Bruno Haible  <bruno@clisp.org>
28544         usleep: Move AC_LIBOBJ invocations to module description.
28545         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
28546         here...
28547         * modules/usleep (configure.ac): ... to here.
28549 2011-05-22  Bruno Haible  <bruno@clisp.org>
28551         unlockpt: Move AC_LIBOBJ invocations to module description.
28552         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
28553         gl_PREREQ_UNLOCKPT invocations from here...
28554         * modules/unlockpt (configure.ac): ... to here.
28556 2011-05-22  Bruno Haible  <bruno@clisp.org>
28558         unlink: Respect rules for use of AC_LIBOBJ.
28559         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
28560         * modules/unlink (configure.ac): ... to here.
28562 2011-05-22  Bruno Haible  <bruno@clisp.org>
28564         uname: Move AC_LIBOBJ invocations to module description.
28565         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
28566         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
28567         here...
28568         * modules/uname (configure.ac): ... to here.
28570 2011-05-22  Bruno Haible  <bruno@clisp.org>
28572         ttyname_r: Move AC_LIBOBJ invocations to module description.
28573         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
28574         gl_PREREQ_TTYNAME_R invocations from here...
28575         * modules/ttyname_r (configure.ac): ... to here.
28577 2011-05-22  Bruno Haible  <bruno@clisp.org>
28579         tsearch: Move AC_LIBOBJ invocations to module description.
28580         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
28581         invocations from here...
28582         * modules/tsearch (configure.ac): ... to here.
28584 2011-05-22  Bruno Haible  <bruno@clisp.org>
28586         towctrans: Move AC_LIBOBJ invocations to module description.
28587         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
28588         AC_LIBOBJ invocation from here...
28589         * modules/towctrans (configure.ac): ... to here.
28591 2011-05-22  Bruno Haible  <bruno@clisp.org>
28593         tmpfile: Move AC_LIBOBJ invocations to module description.
28594         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
28595         invocations from here...
28596         * modules/tmpfile (configure.ac): ... to here.
28598 2011-05-22  Bruno Haible  <bruno@clisp.org>
28600         times: Move AC_LIBOBJ invocations to module description.
28601         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
28602         * modules/times (configure.ac): ... to here.
28604 2011-05-22  Bruno Haible  <bruno@clisp.org>
28606         time_r: Move AC_LIBOBJ invocations to module description.
28607         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
28608         invocations from here...
28609         * modules/time_r (configure.ac): ... to here.
28611 2011-05-22  Bruno Haible  <bruno@clisp.org>
28613         timegm: Move AC_LIBOBJ invocations to module description.
28614         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
28615         invocations from here...
28616         * modules/timegm (configure.ac): ... to here.
28618 2011-05-22  Bruno Haible  <bruno@clisp.org>
28620         tcgetsid: Move AC_LIBOBJ invocations to module description.
28621         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
28622         and gl_PREREQ_TCGETSID invocations from here...
28623         * modules/tcgetsid (configure.ac): ... to here.
28624         (Depends-on): Update conditions.
28626 2011-05-22  Bruno Haible  <bruno@clisp.org>
28628         symlinkat: Move AC_LIBOBJ invocations to module description.
28629         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
28630         here...
28631         * modules/symlinkat (configure.ac): ... to here.
28633 2011-05-22  Bruno Haible  <bruno@clisp.org>
28635         symlink: Move AC_LIBOBJ invocations to module description.
28636         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
28637         here...
28638         * modules/symlink (configure.ac): ... to here.
28640 2011-05-22  Bruno Haible  <bruno@clisp.org>
28642         strverscmp: Move AC_LIBOBJ invocations to module description.
28643         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
28644         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
28645         from here...
28646         * modules/strverscmp (configure.ac): ... to here.
28648 2011-05-22  Bruno Haible  <bruno@clisp.org>
28650         strtok_r: Move AC_LIBOBJ invocations to module description.
28651         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
28652         and gl_PREREQ_STRTOK_R invocations from here...
28653         * modules/strtok_r (configure.ac): ... to here.
28654         (Depends-on): Update conditions.
28656 2011-05-22  Bruno Haible  <bruno@clisp.org>
28658         strtoumax: Move AC_LIBOBJ invocations to module description.
28659         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
28660         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
28661         from here...
28662         * modules/strtoumax (configure.ac): ... to here.
28664 2011-05-22  Bruno Haible  <bruno@clisp.org>
28666         strtoimax: Move AC_LIBOBJ invocations to module description.
28667         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
28668         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
28669         from here...
28670         * modules/strtoimax (configure.ac): ... to here.
28672 2011-05-22  Bruno Haible  <bruno@clisp.org>
28674         strtoull: Move AC_LIBOBJ invocations to module description.
28675         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
28676         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
28677         from here...
28678         * modules/strtoull (configure.ac): ... to here.
28680 2011-05-22  Bruno Haible  <bruno@clisp.org>
28682         strtoll: Move AC_LIBOBJ invocations to module description.
28683         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
28684         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
28685         here...
28686         * modules/strtoll (configure.ac): ... to here.
28688 2011-05-22  Bruno Haible  <bruno@clisp.org>
28690         strtoul: Move AC_LIBOBJ invocations to module description.
28691         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
28692         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
28693         * modules/strtoul (configure.ac): ... to here.
28695 2011-05-22  Bruno Haible  <bruno@clisp.org>
28697         strtol: Move AC_LIBOBJ invocations to module description.
28698         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
28699         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
28700         * modules/strtol (configure.ac): ... to here.
28702 2011-05-22  Bruno Haible  <bruno@clisp.org>
28704         strtod: Move AC_LIBOBJ invocations to module description.
28705         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
28706         invocations from here...
28707         * modules/strtod (configure.ac): ... to here.
28709 2011-05-22  Bruno Haible  <bruno@clisp.org>
28711         strstr*: Move AC_LIBOBJ invocations to module description.
28712         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
28713         invocations from here...
28714         * modules/strstr-simple (configure.ac): ... to here.
28715         * modules/strstr (configure.ac): ... and here.
28717 2011-05-22  Bruno Haible  <bruno@clisp.org>
28719         strsignal: Move AC_LIBOBJ invocations to module description.
28720         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
28721         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
28722         * modules/strsignal (configure.ac): ... to here.
28723         (Depends-on): Update conditions.
28725 2011-05-22  Bruno Haible  <bruno@clisp.org>
28727         strsep: Move AC_LIBOBJ invocations to module description.
28728         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
28729         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
28730         here...
28731         * modules/strsep (configure.ac): ... to here.
28733 2011-05-22  Bruno Haible  <bruno@clisp.org>
28735         strptime: Move AC_LIBOBJ invocations to module description.
28736         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
28737         gl_PREREQ_STRPTIME invocations from here...
28738         * modules/strptime (configure.ac): ... to here.
28740 2011-05-22  Bruno Haible  <bruno@clisp.org>
28742         strpbrk: Move AC_LIBOBJ invocations to module description.
28743         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
28744         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
28745         here...
28746         * modules/strpbrk (configure.ac): ... to here.
28748 2011-05-22  Bruno Haible  <bruno@clisp.org>
28750         strnlen: Move AC_LIBOBJ invocations to module description.
28751         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
28752         invocations from here...
28753         * modules/strnlen (configure.ac): ... to here.
28755 2011-05-22  Bruno Haible  <bruno@clisp.org>
28757         strndup: Move AC_LIBOBJ invocations to module description.
28758         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
28759         invocations from here...
28760         * modules/strndup (configure.ac): ... to here.
28761         (Depends-on): Update conditions.
28763 2011-05-22  Bruno Haible  <bruno@clisp.org>
28765         strncat: Move AC_LIBOBJ invocations to module description.
28766         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
28767         invocations from here...
28768         * modules/strncat (configure.ac): ... to here.
28770 2011-05-22  Bruno Haible  <bruno@clisp.org>
28772         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
28773         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
28774         invocations from here...
28775         * modules/strdup (configure.ac): ... to here.
28776         * modules/strdup-posix (configure.ac): ... and here.
28778 2011-05-22  Bruno Haible  <bruno@clisp.org>
28780         strcspn: Move AC_LIBOBJ invocations to module description.
28781         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
28782         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
28783         here...
28784         * modules/strcspn (configure.ac): ... to here.
28786 2011-05-22  Bruno Haible  <bruno@clisp.org>
28788         strchrnul: Move AC_LIBOBJ invocations to module description.
28789         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
28790         gl_PREREQ_STRCHRNUL invocations from here...
28791         * modules/strchrnul (configure.ac): ... to here.
28793 2011-05-22  Bruno Haible  <bruno@clisp.org>
28795         strcasestr*: Move AC_LIBOBJ invocations to module description.
28796         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
28797         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
28798         * modules/strcasestr-simple (configure.ac): ... to here.
28799         * modules/strcasestr (configure.ac): ... and here.
28801 2011-05-22  Bruno Haible  <bruno@clisp.org>
28803         strcase: Move AC_LIBOBJ invocations to module description.
28804         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
28805         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
28806         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
28807         gl_PREREQ_STRNCASECMP invocations from here...
28808         * modules/strcase (configure.ac): ... to here.
28810 2011-05-22  Bruno Haible  <bruno@clisp.org>
28812         stpncpy: Move AC_LIBOBJ invocations to module description.
28813         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
28814         here...
28815         * modules/stpncpy (configure.ac): ... to here.
28817 2011-05-22  Bruno Haible  <bruno@clisp.org>
28819         stpcpy: Move AC_LIBOBJ invocations to module description.
28820         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
28821         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
28822         here...
28823         * modules/stpcpy (configure.ac): ... to here.
28825 2011-05-21  Bruno Haible  <bruno@clisp.org>
28827         stat: Move AC_LIBOBJ invocations to module description.
28828         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
28829         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
28830         here...
28831         * modules/stat (configure.ac): ... to here.
28833 2011-05-21  Bruno Haible  <bruno@clisp.org>
28835         sleep: Move AC_LIBOBJ invocations to module description.
28836         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
28837         * modules/sleep (configure.ac): ... to here.
28839 2011-05-21  Bruno Haible  <bruno@clisp.org>
28841         signbit: Move AC_LIBOBJ invocations to module description.
28842         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
28843         * modules/signbit (configure.ac): ... to here.
28845 2011-05-21  Bruno Haible  <bruno@clisp.org>
28847         sigprocmask: Move AC_LIBOBJ invocations to module description.
28848         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
28849         gl_PREREQ_SIGPROMASK invocations from here...
28850         * modules/sigprocmask (configure.ac): ... to here.
28852 2011-05-21  Bruno Haible  <bruno@clisp.org>
28854         sigaction: Move AC_LIBOBJ invocations to module description.
28855         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
28856         gl_PREREQ_SIGACTION invocations from here...
28857         * modules/sigaction (configure.ac): ... to here.
28859 2011-05-21  Bruno Haible  <bruno@clisp.org>
28861         sig2str: Move AC_LIBOBJ invocations to module description.
28862         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
28863         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
28864         here...
28865         * modules/sig2str (configure.ac): ... to here.
28867 2011-05-21  Bruno Haible  <bruno@clisp.org>
28869         setlocale: Move AC_LIBOBJ invocations to module description.
28870         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
28871         gl_PREREQ_SETLOCALE invocations from here...
28872         * modules/setlocale (configure.ac): ... to here.
28874 2011-05-21  Bruno Haible  <bruno@clisp.org>
28876         unsetenv: Move AC_LIBOBJ invocations to module description.
28877         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
28878         and gl_PREREQ_UNSETENV invocations from here...
28879         * modules/unsetenv (configure.ac): ... to here.
28880         (Depends-on): Update.
28882 2011-05-21  Bruno Haible  <bruno@clisp.org>
28884         setenv: Move AC_LIBOBJ invocations to module description.
28885         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
28886         here...
28887         * modules/setenv (configure.ac): ... to here.
28889 2011-05-21  Bruno Haible  <bruno@clisp.org>
28891         selinux-h: Move AC_LIBOBJ invocations to module description.
28892         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
28893         AC_LIBOBJ invocation from here...
28894         * modules/selinux-h (configure.ac): ... to here.
28896 2011-05-21  Bruno Haible  <bruno@clisp.org>
28898         select: Respect rules for use of AC_LIBOBJ.
28899         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
28900         here...
28901         * modules/select (configure.ac): ... to here.
28903 2011-05-21  Bruno Haible  <bruno@clisp.org>
28905         scandir: Move AC_LIBOBJ invocations to module description.
28906         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
28907         invocations from here...
28908         * modules/scandir (configure.ac): ... to here.
28910 2011-05-21  Bruno Haible  <bruno@clisp.org>
28912         rpmatch: Move AC_LIBOBJ invocations to module description.
28913         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
28914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
28915         here...
28916         * modules/rpmatch (configure.ac): ... to here.
28918 2011-05-21  Bruno Haible  <bruno@clisp.org>
28920         rmdir: Respect rules for use of AC_LIBOBJ.
28921         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
28922         * modules/rmdir (configure.ac): ... to here.
28924 2011-05-21  Bruno Haible  <bruno@clisp.org>
28926         renameat: Move AC_LIBOBJ invocations to module description.
28927         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
28928         here...
28929         * modules/renameat (configure.ac): ... to here.
28931 2011-05-21  Bruno Haible  <bruno@clisp.org>
28933         rename: Respect rules for use of AC_LIBOBJ.
28934         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
28935         here...
28936         * modules/rename (configure.ac): ... to here.
28938 2011-05-21  Bruno Haible  <bruno@clisp.org>
28940         remove: Move AC_LIBOBJ invocations to module description.
28941         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
28942         here...
28943         * modules/remove (configure.ac): ... to here.
28945 2011-05-21  Bruno Haible  <bruno@clisp.org>
28947         relocatable-lib: Move AC_LIBOBJ invocations to module description.
28948         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
28949         macro.
28950         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
28951         * modules/relocatable-lib (configure.ac): ... to here.
28952         * modules/relocatable-prog-wrapper (configure.ac): Invoke
28953         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
28955 2011-05-21  Bruno Haible  <bruno@clisp.org>
28957         relocatable-prog: Move AC_LIBOBJ invocations to module description.
28958         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
28959         here...
28960         * modules/relocatable-prog (configure.ac): ... to here.
28962 2011-05-21  Bruno Haible  <bruno@clisp.org>
28964         regex: Move AC_LIBOBJ invocations to module description.
28965         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
28966         invocations from here...
28967         * modules/regex (configure.ac): ... to here.
28969 2011-05-21  Bruno Haible  <bruno@clisp.org>
28971         realloc-*: Move AC_LIBOBJ invocations to module description.
28972         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
28973         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
28974         AC_LIBOBJ invocations from here...
28975         * modules/realloc-gnu (configure.ac): ... to here.
28976         * modules/realloc-posix (configure.ac): ... and here.
28978 2011-05-21  Bruno Haible  <bruno@clisp.org>
28980         readutmp: Move AC_LIBOBJ invocations to module description.
28981         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
28982         * modules/readutmp (configure.ac): ... to here.
28984 2011-05-21  Bruno Haible  <bruno@clisp.org>
28986         readlinkat: Move AC_LIBOBJ invocations to module description.
28987         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
28988         here...
28989         * modules/readlinkat (configure.ac): ... to here.
28991 2011-05-21  Bruno Haible  <bruno@clisp.org>
28993         readlink: Move AC_LIBOBJ invocations to module description.
28994         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
28995         gl_PREREQ_READLINK invocations from here...
28996         * modules/readlink (configure.ac): ... to here.
28998 2011-05-21  Bruno Haible  <bruno@clisp.org>
29000         readline: Move AC_LIBOBJ invocations to module description.
29001         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
29002         gl_PREREQ_READLINE invocations from here...
29003         * modules/readline (configure.ac): ... to here.
29005 2011-05-21  Bruno Haible  <bruno@clisp.org>
29007         read: Move AC_LIBOBJ invocations to module description.
29008         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
29009         * modules/read (configure.ac): ... to here.
29011 2011-05-21  Bruno Haible  <bruno@clisp.org>
29013         rawmemchr: Move AC_LIBOBJ invocations to module description.
29014         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
29015         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
29016         from here...
29017         * modules/rawmemchr (configure.ac): ... to here.
29019 2011-05-21  Bruno Haible  <bruno@clisp.org>
29021         random_r: Move AC_LIBOBJ invocations to module description.
29022         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
29023         gl_PREREQ_RANDOM_R invocations from here...
29024         * modules/random_r (configure.ac): ... to here.
29026 2011-05-21  Bruno Haible  <bruno@clisp.org>
29028         pwrite: Move AC_LIBOBJ invocations to module description.
29029         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
29030         * modules/pwrite (configure.ac): ... to here.
29032 2011-05-21  Bruno Haible  <bruno@clisp.org>
29034         putenv: Move AC_LIBOBJ invocations to module description.
29035         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
29036         * modules/putenv (configure.ac): ... to here.
29038 2011-05-21  Bruno Haible  <bruno@clisp.org>
29040         login_tty: Move AC_LIBOBJ invocations to module description.
29041         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
29042         * modules/login_tty (configure.ac): ... to here.
29044 2011-05-21  Bruno Haible  <bruno@clisp.org>
29046         openpty: Move AC_LIBOBJ invocations to module description.
29047         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
29048         * modules/openpty (configure.ac): ... to here.
29050 2011-05-21  Bruno Haible  <bruno@clisp.org>
29052         forkpty: Move AC_LIBOBJ invocations to module description.
29053         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
29054         * modules/forkpty (configure.ac): ... to here.
29056 2011-05-21  Bruno Haible  <bruno@clisp.org>
29058         ptsname: Move AC_LIBOBJ invocations to module description.
29059         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
29060         invocations from here...
29061         * modules/ptsname (configure.ac): ... to here.
29063 2011-05-21  Bruno Haible  <bruno@clisp.org>
29065         pread: Move AC_LIBOBJ invocations to module description.
29066         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
29067         * modules/pread (configure.ac): ... to here.
29069 2011-05-21  Bruno Haible  <bruno@clisp.org>
29071         posix_spawn*: Move AC_LIBOBJ invocations to module description.
29072         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
29073         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
29074         * modules/posix_spawn (configure.ac): ... to here.
29075         * modules/posix_spawnp (configure.ac): ... and here.
29077 2011-05-21  Bruno Haible  <bruno@clisp.org>
29079         popen: Move AC_LIBOBJ invocations to module description.
29080         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
29081         invocations from here...
29082         * modules/popen (configure.ac): ... to here.
29084 2011-05-21  Bruno Haible  <bruno@clisp.org>
29086         poll: Move AC_LIBOBJ invocations to module description.
29087         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
29088         invocations from here...
29089         * modules/poll (configure.ac): ... to here.
29091 2011-05-21  Bruno Haible  <bruno@clisp.org>
29093         pipe-posix: Move AC_LIBOBJ invocations to module description.
29094         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
29095         * modules/pipe-posix (configure.ac): ... to here.
29097 2011-05-21  Bruno Haible  <bruno@clisp.org>
29099         openat: Respect rules for use of AC_LIBOBJ.
29100         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
29101         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
29102         * modules/openat (configure.ac): ... to here.
29104 2011-05-21  Bruno Haible  <bruno@clisp.org>
29106         obstack-printf*: Move AC_LIBOBJ invocations to module description.
29107         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
29108         invocation from here...
29109         * modules/obstack-printf (configure.ac): ... to here.
29110         * modules/obstack-printf-posix (configure.ac): ... and here.
29112 2011-05-21  Bruno Haible  <bruno@clisp.org>
29114         nl_langinfo: Move AC_LIBOBJ invocations to module description.
29115         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
29116         from here...
29117         * modules/nl_langinfo (configure.ac): ... to here.
29119 2011-05-21  Bruno Haible  <bruno@clisp.org>
29121         nanosleep: Move AC_LIBOBJ invocations to module description.
29122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
29123         gl_PREREQ_NANOSLEEP invocations from here...
29124         * modules/nanosleep (configure.ac): ... to here.
29126 2011-05-21  Bruno Haible  <bruno@clisp.org>
29128         mountlist: Move AC_LIBOBJ invocations to module description.
29129         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
29130         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
29131         * modules/mountlist (configure.ac): ... to here.
29133 2011-05-21  Bruno Haible  <bruno@clisp.org>
29135         mktime: Respect rules for use of AC_LIBOBJ.
29136         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
29137         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
29138         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
29139         (gl_FUNC_MKTIME_INTERNAL): ... and here...
29140         * modules/mktime (configure.ac): ... to here.
29141         * modules/mktime-internal (configure.ac): ... and here.
29142         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
29144 2011-05-21  Bruno Haible  <bruno@clisp.org>
29146         mkstemps: Move AC_LIBOBJ invocations to module description.
29147         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
29148         here...
29149         * modules/mkstemps (configure.ac): ... to here.
29151 2011-05-21  Bruno Haible  <bruno@clisp.org>
29153         mkstemp: Move AC_LIBOBJ invocations to module description.
29154         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
29155         gl_PREREQ_MKSTEMP invocations from here...
29156         * modules/mkstemp (configure.ac): ... to here.
29158 2011-05-21  Bruno Haible  <bruno@clisp.org>
29160         mkostemps: Move AC_LIBOBJ invocations to module description.
29161         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
29162         here...
29163         * modules/mkostemps (configure.ac): ... to here.
29165 2011-05-21  Bruno Haible  <bruno@clisp.org>
29167         mkostemp: Move AC_LIBOBJ invocations to module description.
29168         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
29169         gl_PREREQ_MKOSTEMP invocations from here...
29170         * modules/mkostemp (configure.ac): ... to here.
29172 2011-05-21  Bruno Haible  <bruno@clisp.org>
29174         mknod: Move AC_LIBOBJ invocations to module description.
29175         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
29176         * modules/mknod (configure.ac): ... to here.
29178 2011-05-21  Bruno Haible  <bruno@clisp.org>
29180         mkfifoat: Move AC_LIBOBJ invocations to module description.
29181         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
29182         here...
29183         * modules/mkfifoat (configure.ac): ... to here.
29185 2011-05-21  Bruno Haible  <bruno@clisp.org>
29187         mkfifo: Respect rules for use of AC_LIBOBJ.
29188         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
29189         here...
29190         * modules/mkfifo (configure.ac): ... to here.
29192 2011-05-21  Bruno Haible  <bruno@clisp.org>
29194         mkdtemp: Move AC_LIBOBJ invocations to module description.
29195         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
29196         invocations from here...
29197         * modules/mkdtemp (configure.ac): ... to here.
29199 2011-05-21  Bruno Haible  <bruno@clisp.org>
29201         mkdir: Move AC_LIBOBJ invocations to module description.
29202         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
29203         * modules/mkdir (configure.ac): ... to here.
29205 2011-05-21  Bruno Haible  <bruno@clisp.org>
29207         memset: Move AC_LIBOBJ invocations to module description.
29208         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
29209         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
29210         here...
29211         * modules/memset (configure.ac): ... to here.
29213 2011-05-21  Bruno Haible  <bruno@clisp.org>
29215         memrchr: Move AC_LIBOBJ invocations to module description.
29216         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
29217         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
29218         here...
29219         * modules/memrchr (configure.ac): ... to here.
29221 2011-05-21  Bruno Haible  <bruno@clisp.org>
29223         mempcpy: Move AC_LIBOBJ invocations to module description.
29224         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
29225         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
29226         here...
29227         * modules/mempcpy (configure.ac): ... to here.
29229 2011-05-21  Bruno Haible  <bruno@clisp.org>
29231         memmove: Move AC_LIBOBJ invocations to module description.
29232         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
29233         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
29234         here...
29235         * modules/memmove (configure.ac): ... to here.
29237 2011-05-21  Bruno Haible  <bruno@clisp.org>
29239         memmem*: Move AC_LIBOBJ invocations to module description.
29240         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
29241         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
29242         here...
29243         (gl_FUNC_MEMMEM): ... and here...
29244         * modules/memmem-simple (configure.ac): ... to here.
29245         * modules/memmem (configure.ac): ... and here.
29247 2011-05-21  Bruno Haible  <bruno@clisp.org>
29249         memcpy: Move AC_LIBOBJ invocations to module description.
29250         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
29251         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
29252         here...
29253         * modules/memcpy (configure.ac): ... to here.
29255 2011-05-21  Bruno Haible  <bruno@clisp.org>
29257         memcmp: Simplify autoconf macro.
29258         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
29259         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
29260         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
29262 2011-05-21  Bruno Haible  <bruno@clisp.org>
29264         memcmp: Move AC_LIBOBJ invocations to module description.
29265         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
29266         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
29267         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
29268         * modules/memcmp (configure.ac): ... to here.
29269         (Depends-on): Update conditions.
29271 2011-05-21  Bruno Haible  <bruno@clisp.org>
29273         memchr: Respect rules for use of AC_LIBOBJ.
29274         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
29275         invocations from here...
29276         * modules/memchr (configure.ac): ... to here.
29278 2011-05-21  Bruno Haible  <bruno@clisp.org>
29280         mbtowc: Move AC_LIBOBJ invocations to module description.
29281         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
29282         invocations from here...
29283         * modules/mbtowc (configure.ac): ... to here.
29285 2011-05-21  Bruno Haible  <bruno@clisp.org>
29287         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
29288         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
29289         gl_PREREQ_MBSRTOWCS invocations from here...
29290         * modules/mbsrtowcs (configure.ac): ... to here.
29292 2011-05-21  Bruno Haible  <bruno@clisp.org>
29294         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
29295         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
29296         gl_PREREQ_MBSNRTOWCS invocations from here...
29297         * modules/mbsnrtowcs (configure.ac): ... to here.
29299 2011-05-21  Bruno Haible  <bruno@clisp.org>
29301         mbsinit: Move AC_LIBOBJ invocations to module description.
29302         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
29303         invocations from here...
29304         * modules/mbsinit (configure.ac): ... to here.
29306 2011-05-21  Bruno Haible  <bruno@clisp.org>
29308         mbrlen: Move AC_LIBOBJ invocations to module description.
29309         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
29310         invocations from here...
29311         * modules/mbrlen (configure.ac): ... to here.
29313 2011-05-21  Bruno Haible  <bruno@clisp.org>
29315         mbrtowc: Respect rules for use of AC_LIBOBJ.
29316         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
29317         invocations from here...
29318         * modules/mbrtowc (configure.ac): ... to here.
29320 2011-05-21  Bruno Haible  <bruno@clisp.org>
29322         malloc-*: Move AC_LIBOBJ invocations to module description.
29323         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
29324         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
29325         AC_LIBOBJ invocations from here...
29326         * modules/malloc-gnu (configure.ac): ... to here.
29327         * modules/malloc-posix (configure.ac): ... and here.
29329 2011-05-21  Bruno Haible  <bruno@clisp.org>
29331         lstat, openat: Respect rules for use of AC_LIBOBJ.
29332         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
29333         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
29334         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
29335         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
29336         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
29337         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
29338         here.
29339         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
29341 2011-05-21  Bruno Haible  <bruno@clisp.org>
29343         lseek: Move AC_LIBOBJ invocations to module description.
29344         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
29345         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
29346         * modules/lseek (configure.ac): ... to here.
29348 2011-05-21  Bruno Haible  <bruno@clisp.org>
29350         linkat: Move AC_LIBOBJ invocations to module description.
29351         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
29352         here...
29353         * modules/linkat (configure.ac): ... to here.
29355 2011-05-21  Bruno Haible  <bruno@clisp.org>
29357         link: Respect rules for use of AC_LIBOBJ.
29358         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
29359         * modules/link (configure.ac): ... to here.
29361 2011-05-21  Bruno Haible  <bruno@clisp.org>
29363         lchown: Move AC_LIBOBJ invocations to module description.
29364         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
29365         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
29366         * modules/lchown (configure.ac): ... to here.
29368 2011-05-21  Bruno Haible  <bruno@clisp.org>
29370         iswctype: Move AC_LIBOBJ invocations to module description.
29371         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
29372         here...
29373         * modules/iswctype (configure.ac): ... to here.
29375 2011-05-21  Bruno Haible  <bruno@clisp.org>
29377         iswblank: Move AC_LIBOBJ invocations to module description.
29378         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
29379         here...
29380         * modules/iswblank (configure.ac): ... to here.
29382 2011-05-21  Bruno Haible  <bruno@clisp.org>
29384         atanl: Move AC_LIBOBJ invocations to module description.
29385         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
29386         * modules/atanl (configure.ac): ... to here.
29388 2011-05-21  Bruno Haible  <bruno@clisp.org>
29390         acosl: Move AC_LIBOBJ invocations to module description.
29391         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
29392         * modules/acosl (configure.ac): ... to here.
29394 2011-05-21  Bruno Haible  <bruno@clisp.org>
29396         asinl: Respect rules for use of AC_LIBOBJ.
29397         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
29398         * modules/asinl (configure.ac): ... to here.
29400 2011-05-21  Bruno Haible  <bruno@clisp.org>
29402         tanl: Move AC_LIBOBJ invocations to module description.
29403         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
29404         * modules/tanl (configure.ac): ... to here.
29406 2011-05-21  Bruno Haible  <bruno@clisp.org>
29408         cosl: Move AC_LIBOBJ invocations to module description.
29409         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
29410         * modules/cosl (configure.ac): ... to here.
29412 2011-05-21  Bruno Haible  <bruno@clisp.org>
29414         sinl: Move AC_LIBOBJ invocations to module description.
29415         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
29416         * modules/sinl (configure.ac): ... to here.
29418 2011-05-21  Bruno Haible  <bruno@clisp.org>
29420         logl: Move AC_LIBOBJ invocations to module description.
29421         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
29422         * modules/logl (configure.ac): ... to here.
29424 2011-05-21  Bruno Haible  <bruno@clisp.org>
29426         expl: Move AC_LIBOBJ invocations to module description.
29427         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
29428         * modules/expl (configure.ac): ... to here.
29430 2011-05-21  Bruno Haible  <bruno@clisp.org>
29432         roundl: Move AC_LIBOBJ invocations to module description.
29433         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
29434         * modules/roundl (configure.ac): ... to here.
29436 2011-05-21  Bruno Haible  <bruno@clisp.org>
29438         round: Move AC_LIBOBJ invocations to module description.
29439         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
29440         * modules/round (configure.ac): ... to here.
29442 2011-05-21  Bruno Haible  <bruno@clisp.org>
29444         roundf: Move AC_LIBOBJ invocations to module description.
29445         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
29446         * modules/roundf (configure.ac): ... to here.
29448 2011-05-21  Bruno Haible  <bruno@clisp.org>
29450         truncl: Move AC_LIBOBJ invocations to module description.
29451         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
29452         * modules/truncl (configure.ac): ... to here.
29454 2011-05-21  Bruno Haible  <bruno@clisp.org>
29456         trunc: Move AC_LIBOBJ invocations to module description.
29457         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
29458         * modules/trunc (configure.ac): ... to here.
29460 2011-05-21  Bruno Haible  <bruno@clisp.org>
29462         truncf: Move AC_LIBOBJ invocations to module description.
29463         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
29464         * modules/truncf (configure.ac): ... to here.
29466 2011-05-21  Bruno Haible  <bruno@clisp.org>
29468         ceill: Move AC_LIBOBJ invocations to module description.
29469         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
29470         * modules/ceill (configure.ac): ... to here.
29472 2011-05-21  Bruno Haible  <bruno@clisp.org>
29474         ceil: Move AC_LIBOBJ invocations to module description.
29475         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
29476         * modules/ceil (configure.ac): ... to here.
29478 2011-05-21  Bruno Haible  <bruno@clisp.org>
29480         ceilf: Move AC_LIBOBJ invocations to module description.
29481         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
29482         * modules/ceilf (configure.ac): ... to here.
29484 2011-05-21  Bruno Haible  <bruno@clisp.org>
29486         floorl: Respect rules for use of AC_LIBOBJ.
29487         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
29488         * modules/floorl (configure.ac): ... to here.
29490 2011-05-21  Bruno Haible  <bruno@clisp.org>
29492         floor: Respect rules for use of AC_LIBOBJ.
29493         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
29494         * modules/floor (configure.ac): ... to here.
29496 2011-05-21  Bruno Haible  <bruno@clisp.org>
29498         floorf: Move AC_LIBOBJ invocations to module description.
29499         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
29500         * modules/floorf (configure.ac): ... to here.
29502 2011-05-20  Bruno Haible  <bruno@clisp.org>
29504         sqrtl: Respect rules for use of AC_LIBOBJ.
29505         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
29506         * modules/sqrtl (configure.ac): ... to here.
29508 2011-05-20  Bruno Haible  <bruno@clisp.org>
29510         ldexpl: Respect rules for use of AC_LIBOBJ.
29511         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
29512         * modules/ldexpl (configure.ac): ... to here.
29514 2011-05-20  Bruno Haible  <bruno@clisp.org>
29516         frexpl*: Respect rules for use of AC_LIBOBJ.
29517         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
29518         invocation from here...
29519         * modules/frexpl (configure.ac): ... to here.
29520         * modules/frexpl-nolibm (configure.ac): ... and here.
29522 2011-05-20  Bruno Haible  <bruno@clisp.org>
29524         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
29525         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
29526         invocation from here...
29527         * modules/frexp (configure.ac): ... to here.
29528         * modules/frexp-nolibm (configure.ac): ... and here.
29530 2011-05-20  Bruno Haible  <bruno@clisp.org>
29532         isnan: Respect rules for use of AC_LIBOBJ.
29533         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
29534         invocations here.
29535         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
29536         REPLACE_ISNAN.
29537         * modules/isnand (configure.ac): Likewise.
29538         * modules/isnanl (configure.ac): Likewise.
29540 2011-05-20  Bruno Haible  <bruno@clisp.org>
29542         isnanl*: Respect rules for use of AC_LIBOBJ.
29543         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
29544         invocation from here...
29545         * modules/isnanl (configure.ac): ... to here.
29546         * modules/isnanl-nolibm (configure.ac): ... and here.
29548 2011-05-20  Bruno Haible  <bruno@clisp.org>
29550         isnand*: Move AC_LIBOBJ invocations to module description.
29551         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
29552         invocation from here...
29553         * modules/isnand (configure.ac): ... to here.
29554         * modules/isnand-nolibm (configure.ac): ... and here.
29556 2011-05-20  Bruno Haible  <bruno@clisp.org>
29558         isnanf*: Move AC_LIBOBJ invocations to module description.
29559         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
29560         invocation from here...
29561         * modules/isnanf (configure.ac): ... to here.
29562         * modules/isnanf-nolibm (configure.ac): ... and here.
29564 2011-05-20  Bruno Haible  <bruno@clisp.org>
29566         isnan*: Separate the AC_LIBOBJ invocations.
29567         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
29568         AC_LIBOBJ invocation.
29569         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
29570         here.
29571         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
29572         AC_LIBOBJ invocation.
29573         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
29574         here.
29575         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
29576         AC_LIBOBJ invocation.
29577         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
29578         here.
29579         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
29581 2011-05-08  Bruno Haible  <bruno@clisp.org>
29583         isinf: Move AC_LIBOBJ invocations to module description.
29584         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
29585         * modules/isinf (configure.ac): ... to here.
29587 2011-05-08  Bruno Haible  <bruno@clisp.org>
29589         isfinite: Move AC_LIBOBJ invocations to module description.
29590         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
29591         * modules/isfinite (configure.ac): ... to here.
29593 2011-05-08  Bruno Haible  <bruno@clisp.org>
29595         isblank: Move AC_LIBOBJ invocations to module description.
29596         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
29597         here...
29598         * modules/isblank (configure.ac): ... to here.
29600 2011-05-08  Bruno Haible  <bruno@clisp.org>
29602         isapipe: Move AC_LIBOBJ invocations to module description.
29603         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
29604         gl_PREREQ_ISAPIPE invocations from here...
29605         * modules/isapipe (configure.ac): ... to here.
29606         (Depends-on): Update condition.
29608 2011-05-08  Bruno Haible  <bruno@clisp.org>
29610         ioctl: Move AC_LIBOBJ invocations to module description.
29611         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
29612         invocations from here...
29613         * modules/ioctl (configure.ac): ... to here.
29614         (Depends-on): Update condition.
29616 2011-05-08  Bruno Haible  <bruno@clisp.org>
29618         imaxdiv: Move AC_LIBOBJ invocations to module description.
29619         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
29620         invocations from here...
29621         * modules/imaxdiv (configure.ac): ... to here.
29623 2011-05-08  Bruno Haible  <bruno@clisp.org>
29625         imaxabs: Move AC_LIBOBJ invocations to module description.
29626         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
29627         invocations from here...
29628         * modules/imaxabs (configure.ac): ... to here.
29630 2011-05-08  Bruno Haible  <bruno@clisp.org>
29632         getaddrinfo: Move AC_LIBOBJ invocations to module description.
29633         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
29634         AC_LIBOBJ invocations from here...
29635         * modules/getaddrinfo (configure.ac): ... to here.
29636         (Depends-on): Add conditions.
29638 2011-05-08  Bruno Haible  <bruno@clisp.org>
29640         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
29641         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
29642         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
29643         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
29644         (gl_PREREQ_INET_PTON): ... from here.
29645         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
29646         gl_PREREQ_INET_PTON here.
29647         (Depends-on): Update condition.
29649 2011-05-08  Bruno Haible  <bruno@clisp.org>
29651         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
29652         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
29653         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
29654         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
29655         (gl_PREREQ_INET_NTOP): ... from here.
29656         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
29657         gl_PREREQ_INET_NTOP here.
29658         (Depends-on): Update condition.
29660 2011-05-08  Bruno Haible  <bruno@clisp.org>
29662         iconv_open: Move AC_LIBOBJ invocations to module description.
29663         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
29664         AC_LIBOBJ invocations from here...
29665         * modules/iconv_open (configure.ac): ... to here.
29667 2011-05-08  Bruno Haible  <bruno@clisp.org>
29669         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
29670         If module 'iconv_open' is among the main modules and module
29671         'iconv_open-utf' is among the tests dependencies, then
29672         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
29673         return the special iconv_t values. Therefore iconv() and iconv_close()
29674         must support these special iconv_t values, already in lib, not only in
29675         tests.
29676         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
29677         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
29678         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
29679         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
29680         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
29681         (Depends-on): Add the dependencies of iconv_open-utf.
29682         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
29683         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
29684         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
29686 2011-05-08  Bruno Haible  <bruno@clisp.org>
29688         group-member: Move AC_LIBOBJ invocations to module description.
29689         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
29690         gl_PREREQ_GROUP_MEMBER invocations from here...
29691         * modules/group-member (configure.ac): ... to here.
29693 2011-05-08  Bruno Haible  <bruno@clisp.org>
29695         grantpt: Move AC_LIBOBJ invocations to module description.
29696         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
29697         invocations from here...
29698         * modules/grantpt (configure.ac): ... to here.
29700 2011-05-08  Bruno Haible  <bruno@clisp.org>
29702         glob: Move AC_LIBOBJ invocations to module description.
29703         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
29704         from here...
29705         * modules/glob (configure.ac): ... to here.
29707 2011-05-08  Bruno Haible  <bruno@clisp.org>
29709         getusershell: Move AC_LIBOBJ invocations to module description.
29710         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
29711         Move AC_LIBOBJ invocation from here...
29712         * modules/getusershell (configure.ac): ... to here.
29713         (Depends-on): Update condition.
29715 2011-05-08  Bruno Haible  <bruno@clisp.org>
29717         gettimeofday: Move AC_LIBOBJ invocations to module description.
29718         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
29719         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
29720         gl_PREREQ_GETTIMEOFDAY invocations from here...
29721         * modules/gettimeofday (configure.ac): ... to here.
29723 2011-05-08  Bruno Haible  <bruno@clisp.org>
29725         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
29726         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
29727         just gl_FUNC_TZSET.
29728         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
29729         (gl_FUNC_TZSET_CLOBBER): Remove actions.
29730         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
29731         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
29733 2011-05-08  Bruno Haible  <bruno@clisp.org>
29735         getsubopt: Move AC_LIBOBJ invocations to module description.
29736         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
29737         gl_PREREQ_GETSUBOPT invocations from here...
29738         * modules/getsubopt (configure.ac): ... to here.
29740 2011-05-08  Bruno Haible  <bruno@clisp.org>
29742         getpass-gnu: Move AC_LIBOBJ invocations to module description.
29743         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
29744         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
29745         * modules/getpass-gnu (configure.ac): ... to here.
29747 2011-05-08  Bruno Haible  <bruno@clisp.org>
29749         getpass: Move AC_LIBOBJ invocations to module description.
29750         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
29751         gl_PREREQ_GETPASS invocations from here...
29752         * modules/getpass (configure.ac): ... to here.
29754 2011-05-08  Bruno Haible  <bruno@clisp.org>
29756         getpagesize: Move AC_LIBOBJ invocations to module description.
29757         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
29758         from here...
29759         * modules/getpagesize (configure.ac): ... to here.
29761 2011-05-08  Bruno Haible  <bruno@clisp.org>
29763         getopt: Move AC_LIBOBJ invocations to module description.
29764         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
29765         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
29766         invocations from here...
29767         * modules/getopt-gnu (configure.ac): ... to here.
29768         * modules/getopt-posix (configure.ac): ... and here.
29769         (Depends-on): Update condition.
29771 2011-05-08  Bruno Haible  <bruno@clisp.org>
29773         getopt, argp: Respect rules for use of AC_LIBOBJ.
29774         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
29775         (gl_REPLACE_GETOPT_ALWAYS): New macro.
29776         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
29777         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
29779 2011-05-08  Bruno Haible  <bruno@clisp.org>
29781         getlogin_r: Move AC_LIBOBJ invocations to module description.
29782         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
29783         gl_PREREQ_GETLOGIN_R invocations from here...
29784         * modules/getlogin_r (configure.ac): ... to here.
29786 2011-05-08  Bruno Haible  <bruno@clisp.org>
29788         getlogin: Move AC_LIBOBJ invocations to module description.
29789         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
29790         here...
29791         * modules/getlogin (configure.ac): ... to here.
29793 2011-05-08  Bruno Haible  <bruno@clisp.org>
29795         getloadavg: Move AC_LIBOBJ invocations to module description.
29796         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
29797         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
29798         * modules/getloadavg (configure.ac): ... to here.
29800 2011-05-08  Bruno Haible  <bruno@clisp.org>
29802         gethrxtime: Move AC_LIBOBJ invocations to module description.
29803         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
29804         LIB_GETHRXTIME from here...
29805         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
29806         invocations from here...
29807         * modules/gethrxtime (configure.ac): ... to here.
29809 2011-05-08  Bruno Haible  <bruno@clisp.org>
29811         gethostname: Move AC_LIBOBJ invocations to module description.
29812         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
29813         gl_PREREQ_GETHOSTNAME invocations from here...
29814         * modules/gethostname (configure.ac): ... to here.
29816 2011-05-08  Bruno Haible  <bruno@clisp.org>
29818         getgroups: Move AC_LIBOBJ invocations to module description.
29819         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
29820         here...
29821         * modules/getgroups (configure.ac): ... to here.
29823 2011-05-08  Bruno Haible  <bruno@clisp.org>
29825         getdtablesize: Move AC_LIBOBJ invocations to module description.
29826         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
29827         invocation from here...
29828         * modules/getdtablesize (configure.ac): ... to here.
29830 2011-05-08  Bruno Haible  <bruno@clisp.org>
29832         getdomainname: Move AC_LIBOBJ invocations to module description.
29833         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
29834         gl_PREREQ_GETDOMAINNAME invocations from here...
29835         * modules/getdomainname (configure.ac): ... to here.
29837 2011-05-08  Bruno Haible  <bruno@clisp.org>
29839         getline: Move AC_LIBOBJ invocations to module description.
29840         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
29841         invocations from here...
29842         * modules/getline (configure.ac): ... to here.
29844 2011-05-08  Bruno Haible  <bruno@clisp.org>
29846         getline: Simplify.
29847         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
29848         It's already handled through the module dependency.
29850 2011-05-08  Bruno Haible  <bruno@clisp.org>
29852         getdelim: Move AC_LIBOBJ invocations to module description.
29853         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
29854         and gl_PREREQ_GETDELIM invocations from here...
29855         * modules/getdelim (configure.ac): ... to here.
29856         (Depends-on): Fix condition.
29858 2011-05-08  Bruno Haible  <bruno@clisp.org>
29860         getcwd: Move AC_LIBOBJ invocations to module description.
29861         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
29862         invocations from here...
29863         * modules/getcwd (configure.ac): ... to here.
29865 2011-05-08  Bruno Haible  <bruno@clisp.org>
29867         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
29868         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
29869         here...
29870         * modules/getcwd-lgpl (configure.ac): ... to here.
29872 2011-05-07  Bruno Haible  <bruno@clisp.org>
29874         crypto/gc: Move AC_LIBOBJ invocations to module description.
29875         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
29876         * modules/crypto/gc (configure.ac): ... to here.
29878 2011-05-07  Bruno Haible  <bruno@clisp.org>
29880         fwriting: Move AC_LIBOBJ invocations to module description.
29881         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
29882         here...
29883         * modules/fwriting (configure.ac): ... to here.
29885 2011-05-07  Bruno Haible  <bruno@clisp.org>
29887         fwritable: Move AC_LIBOBJ invocations to module description.
29888         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
29889         here...
29890         * modules/fwritable (configure.ac): ... to here.
29892 2011-05-07  Bruno Haible  <bruno@clisp.org>
29894         futimens: Move AC_LIBOBJ invocations to module description.
29895         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
29896         here...
29897         * modules/futimens (configure.ac): ... to here.
29899 2011-05-07  Bruno Haible  <bruno@clisp.org>
29901         ftruncate: Move AC_LIBOBJ invocations to module description.
29902         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
29903         gl_PREREQ_FTRUNCATE invocations from here...
29904         * modules/ftruncate (configure.ac): ... to here.
29906 2011-05-07  Bruno Haible  <bruno@clisp.org>
29908         fsync: Move AC_LIBOBJ invocations to module description.
29909         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
29910         invocations from here...
29911         * modules/fsync (configure.ac): ... to here.
29913 2011-05-07  Bruno Haible  <bruno@clisp.org>
29915         fsusage: Move AC_LIBOBJ invocations to module description.
29916         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
29917         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
29918         * modules/fsusage (configure.ac): ... to here.
29920 2011-05-07  Bruno Haible  <bruno@clisp.org>
29922         freopen: Move AC_LIBOBJ invocations to module description.
29923         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
29924         invocations from here...
29925         * modules/freopen (configure.ac): ... to here.
29927 2011-05-07  Bruno Haible  <bruno@clisp.org>
29929         free: Move AC_LIBOBJ invocations to module description.
29930         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
29931         invocations from here...
29932         * modules/free (configure.ac): ... to here.
29934 2011-05-07  Bruno Haible  <bruno@clisp.org>
29936         freadable: Move AC_LIBOBJ invocations to module description.
29937         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
29938         here...
29939         * modules/freadable (configure.ac): ... to here.
29941 2011-05-07  Bruno Haible  <bruno@clisp.org>
29943         fpurge: Move AC_LIBOBJ invocations to module description.
29944         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
29945         invocations from here...
29946         * modules/fpurge (configure.ac): ... to here.
29948 2011-05-07  Bruno Haible  <bruno@clisp.org>
29950         fpending: Move AC_LIBOBJ invocations to module description.
29951         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
29952         gl_FUNC_FPENDING.
29953         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
29954         invocations from here...
29955         * modules/fpending (configure.ac): ... to here.
29957 2011-05-07  Bruno Haible  <bruno@clisp.org>
29959         fopen: Move AC_LIBOBJ invocations to module description.
29960         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
29961         invocations from here...
29962         * modules/fopen (configure.ac): ... to here.
29964 2011-05-07  Bruno Haible  <bruno@clisp.org>
29966         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
29967         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
29968         gl_FUNC_FNMATCH_POSIX.
29969         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
29970         invocations from here...
29971         * modules/fnmatch (configure.ac): ... to here.
29972         * modules/fnmatch-gnu (configure.ac): ... and here.
29974 2011-05-07  Bruno Haible  <bruno@clisp.org>
29976         flock: Move AC_LIBOBJ invocations to module description.
29977         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
29978         invocations from here...
29979         * modules/flock (configure.ac): ... to here.
29981 2011-05-07  Bruno Haible  <bruno@clisp.org>
29983         fileblocks: Move AC_LIBOBJ invocations to module description.
29984         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
29985         gl_PREREQ_FILEBLOCKS invocations from here...
29986         * modules/fileblocks (configure.ac): ... to here.
29988 2011-05-06  Bruno Haible  <bruno@clisp.org>
29990         fflush: Move AC_LIBOBJ invocations to module description.
29991         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
29992         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
29993         invocations from here...
29994         * modules/fflush (configure.ac): ... to here.
29996 2011-05-06  Bruno Haible  <bruno@clisp.org>
29998         fdopendir: Move AC_LIBOBJ invocations to module description.
29999         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
30000         here...
30001         * modules/fdopendir (configure.ac): ... to here.
30002         (Depends-on): Improve conditions.
30004 2011-05-06  Bruno Haible  <bruno@clisp.org>
30006         _Exit: Move AC_LIBOBJ invocations to module description.
30007         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
30008         invocations from here...
30009         * modules/_Exit (configure.ac): ... to here.
30011 2011-05-21  Bruno Haible  <bruno@clisp.org>
30013         euidaccess: Respect rules for use of AC_LIBOBJ.
30014         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
30015         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
30016         from here...
30017         * modules/euidaccess (configure.ac): ... to here.
30019 2011-05-06  Bruno Haible  <bruno@clisp.org>
30021         error: Move AC_LIBOBJ invocations to module description.
30022         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
30023         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
30024         invocations from here...
30025         * modules/error (configure.ac): ... to here.
30027 2011-05-06  Bruno Haible  <bruno@clisp.org>
30029         duplocale: Move AC_LIBOBJ invocations to module description.
30030         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
30031         gl_PREREQ_DUPLOCALE invocations from here...
30032         * modules/duplocale (configure.ac): ... to here.
30034 2011-05-05  Bruno Haible  <bruno@clisp.org>
30036         dirfd: Move AC_LIBOBJ invocations to module description.
30037         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
30038         gl_FUNC_DIRFD.
30039         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
30040         here...
30041         * modules/dirfd (configure.ac): ... to here.
30042         (Depends-on): Fix condition.
30044 2011-05-05  Bruno Haible  <bruno@clisp.org>
30046         chown: Respect rules for use of AC_LIBOBJ.
30047         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
30048         * modules/chown (configure.ac): ... to here.
30050 2011-05-05  Bruno Haible  <bruno@clisp.org>
30052         chdir-long: Move AC_LIBOBJ invocations to module description.
30053         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
30054         gl_PREREQ_CHDIR_LONG invocations from here...
30055         * modules/chdir-long (configure.ac): ... to here.
30057 2011-05-05  Bruno Haible  <bruno@clisp.org>
30059         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
30060         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
30061         from here...
30062         * modules/canonicalize-lgpl (configure.ac): ... to here.
30064 2011-05-05  Bruno Haible  <bruno@clisp.org>
30066         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
30067         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
30068         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
30069         REPLACE_CALLOC.
30070         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
30071         * modules/calloc-gnu (configure.ac): Likewise.
30073 2011-05-05  Bruno Haible  <bruno@clisp.org>
30075         btowc: Move AC_LIBOBJ invocations to module description.
30076         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
30077         invocations from here...
30078         * modules/btowc (configure.ac): ... to here.
30080 2011-05-21  Bruno Haible  <bruno@clisp.org>
30082         atexit: Move AC_LIBOBJ invocations to module description.
30083         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
30084         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
30085         here...
30086         * modules/atexit (configure.ac): ... to here.
30088 2011-05-05  Bruno Haible  <bruno@clisp.org>
30090         atoll: Move AC_LIBOBJ invocations to module description.
30091         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
30092         invocations from here...
30093         * modules/atoll (configure.ac): ... to here.
30095 2011-05-05  Bruno Haible  <bruno@clisp.org>
30097         argz: Move AC_LIBOBJ invocations to module description.
30098         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
30099         * modules/argz (configure.ac): ... to here.
30101 2011-05-05  Bruno Haible  <bruno@clisp.org>
30103         alphasort: Move AC_LIBOBJ invocations to module description.
30104         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
30105         gl_PREREQ_ALPHASORT invocations from here...
30106         * modules/alphasort (configure.ac): ... to here.
30108 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30110         verify: new macro verify_expr; verify_true deprecated
30111         * NEWS: Mention this.
30112         * doc/verify.texi (Compile-time Assertions): Document this.
30113         * lib/verify.h (verify_true): Deprecate.
30114         (verify_expr): New macro.
30115         * tests/test-verify.c (function): Test verify_expr.
30117 2011-06-14  Jim Meyering  <meyering@redhat.com>
30119         init.sh: give more portable redirection-related advice in a comment
30120         * tests/init.sh (stderr_fileno_): Update the advice in comments.
30121         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
30122         for lots of discussion.  Stefano Lattarini suggested the solution
30123         of putting "9>&2" after the command.  Reported by Bruno Haible.
30125 2011-06-13  Bruno Haible  <bruno@clisp.org>
30127         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
30128         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
30129         'none'.
30131 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
30133         ftoastr: use strtof only if HAVE_STRTOF
30134         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
30135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
30136         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
30137         * modules/ftoastr (configure.ac): Check for strtof.
30139 2011-06-13  Bruno Haible  <bruno@clisp.org>
30141         gnulib-tool: Addendum to 2011-06-08 commit.
30142         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
30143         and --witness-c-macro have been given, augment AM_CPPFLAGS.
30145 2011-06-13  Bruno Haible  <bruno@clisp.org>
30147         fseeko: Provide a non-inline replacement of fseek().
30148         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
30149         * modules/fseeko (Depends-on): Add fseek.
30150         * modules/fseek (License): Change to LGPLv2+.
30152 2011-06-13  Bruno Haible  <bruno@clisp.org>
30154         ftello: Provide a non-inline replacement of ftell().
30155         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
30156         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
30157         not have ftello() (such as on mingw).
30158         * modules/ftello (Depends-on): Add ftell.
30159         * modules/ftell (License): Change to LGPLv2+.
30161 2011-05-07  Bruno Haible  <bruno@clisp.org>
30163         ftell: Move AC_LIBOBJ invocations to module description.
30164         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
30165         * modules/ftell (configure.ac): ... to here.
30167 2011-05-07  Bruno Haible  <bruno@clisp.org>
30169         ftello: Respect rules for use of AC_LIBOBJ.
30170         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
30171         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
30172         here...
30173         * modules/ftello (configure.ac): ... to here.
30175 2011-05-07  Bruno Haible  <bruno@clisp.org>
30177         fseeko: Simplify.
30178         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
30179         (gl_FUNC_FSEEKO): Inline it here.
30181 2011-05-07  Bruno Haible  <bruno@clisp.org>
30183         fseek: Move AC_LIBOBJ invocations to module description.
30184         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
30185         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
30186         * modules/fseek (configure.ac): ... to here.
30188 2011-05-07  Bruno Haible  <bruno@clisp.org>
30190         fseek: Respect rules for use of AC_LIBOBJ.
30191         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
30192         here...
30193         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
30195 2011-05-07  Bruno Haible  <bruno@clisp.org>
30197         fseeko: Respect rules for use of AC_LIBOBJ.
30198         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
30199         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
30200         here...
30201         * modules/fseeko (configure.ac): ... to here.
30203 2011-06-13  Bruno Haible  <bruno@clisp.org>
30205         gnulib-tool: Allow comments in the 'Depends-on' section.
30206         * doc/gnulib.texi (Module description): Mention comment syntax in the
30207         Depends-on section.
30208         * gnulib-tool (func_get_dependencies): Filter out comment lines.
30210 2011-06-13  Bruno Haible  <bruno@clisp.org>
30212         file-set.h: guard __attibute__ use, now that it's not always defined
30213         * lib/file-set.h (record_file): Use __attribute__ only with compiler
30214         versions that support it.  This fixes a coreutils build failure with
30215         the vendor cc on HP-UX 11.31.
30217 2011-06-12  Bruno Haible  <bruno@clisp.org>
30219         acl: Add support for HP-UX >= 11.11 JFS ACLs.
30220         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
30221         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
30222         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
30223         (acl, aclsort): New declarations.
30224         (aclv_nontrivial): New declaration.
30225         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
30226         (file_has_acl): Read also the second kind of HP-UX ACLs.
30227         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
30228         kind of HP-UX ACLs if the first kind fails.
30229         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
30230         second kind of HP-UX ACLs.
30231         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
30232         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
30233         agree.
30234         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
30235         hpuxjfs.
30236         Handle hpuxjfs.
30237         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
30238         hpuxjfs.
30239         Handle hpuxjfs.
30240         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
30241         (func_test_same_acls): Use both lsacl and getacl.
30242         Handle hpuxjfs.
30243         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
30244         (func_test_same_acls): Use both lsacl and getacl.
30245         Handle hpuxjfs.
30247 2011-06-12  Bruno Haible  <bruno@clisp.org>
30249         acl: Complete the 2010-08-10 fix.
30250         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
30251         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
30252         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
30253         explicitly.
30254         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
30255         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
30257 2011-06-12  Bruno Haible  <bruno@clisp.org>
30259         spawn-pipe tests: Comments.
30260         * tests/test-spawn-pipe-child.c (main): Update comment.
30261         Reported by James Youngman <jay@gnu.org>.
30263 2011-06-11  James Youngman  <jay@gnu.org>
30265         New module 'stat-size'.
30266         * modules/stat-size: New module.  Provides macros for accessing
30267         file size information in instances of struct stat.  Depends on the
30268         fileblocks module because it calls st_blocks.
30269         * lib/stat-size.h: New file, adapted from coreutils' system.h.
30270         * doc/gnulib.texi: Include stat-size.texi.
30271         * doc/stat-size.texi: Documentation for this module.
30272         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
30273         * m4/fileblocks.m4: Mention that stat-size depends on the call to
30274         AC_STRUCT_ST_BLOCKS.
30276 2011-06-09  Bruno Haible  <bruno@clisp.org>
30278         thread: Support pthreads-win32.
30279         * lib/glthread/thread.h (gl_thread_self): Define differently on
30280         pthreads-win32.
30281         (gl_null_thread): New declaration.
30282         (gl_thread_self_pointer): New macro.
30283         * lib/glthread/thread.c (gl_null_thread): New constant.
30284         * tests/test-lock.c: Use gl_thread_self_pointer instead of
30285         gl_thread_self.
30286         * tests/test-tls.c: Likewise.
30287         Suggested by Paul Eggert. Reported by Eric Blake.
30289 2011-06-09  Bruno Haible  <bruno@clisp.org>
30291         thread: Fix confusion between NULL and 0.
30292         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
30293         Reported by Paul Eggert.
30295 2011-06-09  Bruno Haible  <bruno@clisp.org>
30297         spawn-pipe tests: Avoid test failure on HP-UX 11.
30298         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
30299         is closed.
30301 2011-06-09  Bruno Haible  <bruno@clisp.org>
30303         acl tests: Fix compilation error on HP-UX 11.
30304         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
30306 2011-06-09  Bruno Haible  <bruno@clisp.org>
30308         rmdir: Avoid test failure on HP-UX 10.20.
30309         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
30310         EEXIST.
30312 2011-06-08  Eric Blake  <eblake@redhat.com>
30314         perror: fix test on mingw
30315         * modules/perror-tests (Depends-on): Add dup2.
30317         strerror_r-posix: fix on MacOS
30318         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
30319         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
30320         logic bug.
30321         * lib/strerror_r.c (strerror_r): Fix the bug.
30322         * lib/strerror.c (strerror): Likewise.
30323         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
30324         problem.
30325         * doc/posix-functions/strerror.texi (strerror): Likewise.
30326         * doc/posix-functions/perror.texi (perror): Likewise.
30327         * tests/test-strerror.c (main): Enhance test.
30328         * tests/test-strerror_r.c (main): Likewise.
30330 2011-06-08  Bruno Haible  <bruno@clisp.org>
30332         gnulib-tool: Better isolation between different gnulib-tool invocations.
30333         * gnulib-tool: New option --witness-c-macro.
30334         (witness_c_macro): New variable.
30335         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
30336         AM_CPPFLAGS define it as a C macro.
30337         (func_emit_tests_Makefile_am): Likewise.
30338         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
30339         read it from there.
30340         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
30341         m4_define, not AC_DEFUN.
30342         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
30343         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
30344         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
30345         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
30346         s|...|...|, to substitute the values of the GNULIB_* module indicator
30347         variables.
30348         * modules/dirent (Makefile.am): Likewise.
30349         * modules/fcntl-h (Makefile.am): Likewise.
30350         * modules/iconv-h (Makefile.am): Likewise.
30351         * modules/langinfo (Makefile.am): Likewise.
30352         * modules/locale (Makefile.am): Likewise.
30353         * modules/math (Makefile.am): Likewise.
30354         * modules/netdb (Makefile.am): Likewise.
30355         * modules/poll-h (Makefile.am): Likewise.
30356         * modules/pty (Makefile.am): Likewise.
30357         * modules/search (Makefile.am): Likewise.
30358         * modules/signal (Makefile.am): Likewise.
30359         * modules/spawn (Makefile.am): Likewise.
30360         * modules/stdio (Makefile.am): Likewise.
30361         * modules/stdlib (Makefile.am): Likewise.
30362         * modules/string (Makefile.am): Likewise.
30363         * modules/sys_ioctl (Makefile.am): Likewise.
30364         * modules/sys_select (Makefile.am): Likewise.
30365         * modules/sys_socket (Makefile.am): Likewise.
30366         * modules/sys_stat (Makefile.am): Likewise.
30367         * modules/sys_times (Makefile.am): Likewise.
30368         * modules/sys_utsname (Makefile.am): Likewise.
30369         * modules/sys_wait (Makefile.am): Likewise.
30370         * modules/termios (Makefile.am): Likewise.
30371         * modules/time (Makefile.am): Likewise.
30372         * modules/unistd (Makefile.am): Likewise.
30373         * modules/wchar (Makefile.am): Likewise.
30375 2011-06-08  Eric Blake  <eblake@redhat.com>
30377         strerror: simplify replacement
30378         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
30379         * modules/strerror (configure.ac): No prereqs needed here...
30380         * modules/strerror-override (configure.ac): ...but this needs it.
30381         (Files): Add file for needed prereq macro.
30383 2011-06-08  Bruno Haible  <bruno@clisp.org>
30385         strerror_r-posix: Tweaks.
30386         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
30387         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
30388         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
30389         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
30390         (gl_FUNC_STRERROR_R): ... to here.
30391         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
30393 2011-06-07  Eric Blake  <eblake@redhat.com>
30395         perror: document fixed bugs
30396         * doc/posix-functions/perror.texi (perror): Document recent
30397         patches.
30399 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
30401         stat-time: get_stat_birthtime failure is better-defined
30402         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
30403         return a timestamp whose tv_sec and tv_nsec values are both -1.
30404         Previously, the spec said only that the tv_nsec value was negative.
30405         This upward-compatible change simplifies GNU tar a bit.
30407 2011-06-07  Eric Blake  <eblake@redhat.com>
30409         strerror_r-posix: work around cygwin 1.7.9
30410         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
30411         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
30412         bug without replacing strerror_r.
30413         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
30414         strerror_r is buggy, but without requiring strerror_r compilation.
30415         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
30417         test-perror: relax test to ignore cygwin bug
30418         * tests/test-perror2.c (main): Relax test on requiring detection
30419         of stream errors, and use unbuffered stream.
30420         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
30421         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
30422         * doc/posix-functions/fputc.texi (fputc): Likewise.
30423         * doc/posix-functions/fputs.texi (fputs): Likewise.
30424         * doc/posix-functions/fputws.texi (fputws): Likewise.
30425         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
30426         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
30427         * doc/posix-functions/getopt.texi (getopt): Likewise.
30428         * doc/posix-functions/perror.texi (perror): Likewise.
30429         * doc/posix-functions/printf.texi (printf): Likewise.
30430         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
30431         * doc/posix-functions/psignal.texi (psignal): Likewise.
30432         * doc/posix-functions/putc.texi (putc): Likewise.
30433         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
30434         Likewise.
30435         * doc/posix-functions/putchar.texi (putchar): Likewise.
30436         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
30437         Likewise.
30438         * doc/posix-functions/puts.texi (puts): Likewise.
30439         * doc/posix-functions/putwc.texi (putwc): Likewise.
30440         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
30441         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
30442         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
30443         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
30444         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
30445         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
30446         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
30447         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
30449 2011-05-22  Bruno Haible  <bruno@clisp.org>
30451         strerror: Move AC_LIBOBJ invocations to module description.
30452         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
30453         gl_PREREQ_STRERROR invocations from here...
30454         * modules/strerror (configure.ac): ... to here.
30456 2011-05-21  Bruno Haible  <bruno@clisp.org>
30458         perror: Use common idiom.
30459         * modules/perror (configure.ac): Reorder statements.
30461 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
30463         tests: fix usage message in 'mktempd_'
30464         * tests/init.sh (mktempd_): In the usage message, use literal
30465         'mktempd_', not '$ME' (which is even undefined), as the name of
30466         the subroutine.
30468 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
30470         tests init: new function 'fatal_', for hard errors
30471         Before this patch, the only way offered by tests/init.sh to
30472         properly signal a hard error was the `framework_failure_'
30473         function.  But the error message issued by that function,
30474         as its name would suggest, refers to a set-up failure in the
30475         testsuite, while hard errors can obviously also be due to
30476         other reasons.  The best way to fix this inconsistency is to
30477         introduce a new function with a more general error message.
30478         * tests/init.sh (fatal_): New function.
30480 2011-06-06  Eric Blake  <eblake@redhat.com>
30482         canonicalize-lgpl: use common idiom
30483         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
30484         over newer POSIX -Rf.
30485         Reported by Bruno Haible.
30487         canonicalize-lgpl: work around AIX realpath bug
30488         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
30489         * doc/posix-functions/realpath.texi (realpath): Document it.
30490         Reported by Bruno Haible.
30492         strerror: work around FreeBSD bug
30493         * lib/strerror.c (strerror): Special case 0.
30494         Reported by Bruno Haible.
30496         strerror-override: avoid bloating errno module
30497         * modules/errno (Files, configure.ac): Move replacement strings...
30498         * modules/strerror-override: ...to new module.
30499         * modules/strerror (Depends-on): Add strerror-override.
30500         * modules/strerror_r-posix (Depends-on): Likewise.
30501         * MODULES.html.sh: Document new module.
30502         Reported by Bruno Haible.
30504 2011-06-06  Bruno Haible  <bruno@clisp.org>
30506         spawn-pipe tests: Rename program.
30507         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
30508         * tests/test-spawn-pipe-child.c: Update comment.
30509         * tests/test-spawn-pipe.sh: Update.
30510         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
30512         spawn-pipe tests: Link the child program only against libc.
30513         * tests/test-spawn-pipe-child.c: New file, extracted from
30514         tests/test-spawn-pipe.c.
30515         (main): Expect only one argument.
30516         (is_open): New function, copied from tests/test-pipe.c.
30517         * tests/test-spawn-pipe.c: Don't include <errno.h>.
30518         (child_main): Remove function.
30519         (test_pipe): Pass only one argument to the child program.
30520         (main): Remove child process code. Expect the child program's name as
30521         first argument.
30522         * tests/test-spawn-pipe.sh: Pass the child program's name as first
30523         argument.
30524         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
30525         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
30526         test-spawn-pipe-child against no libraries.
30528 2011-06-06  Bruno Haible  <bruno@clisp.org>
30530         careadlinkat: Avoid mismatch between ssize_t and int.
30531         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
30532         * lib/careadlinkat.c (careadlinkatcwd): Define always.
30534 2011-06-06  Jim Meyering  <meyering@redhat.com>
30536         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
30537         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
30538         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
30540 2011-06-05  Bruno Haible  <bruno@clisp.org>
30542         ansi-c++-opt: Interoperability with libtool.
30543         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
30544         set the variable to "no", not to ":".
30545         * NEWS: Mention the change.
30547 2011-06-05  Bruno Haible  <bruno@clisp.org>
30549         acl: Fix test failure on AIX 7.
30550         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
30551         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
30553 2011-06-05  Bruno Haible  <bruno@clisp.org>
30555         pipe-filter-ii: Fix test failure on AIX and IRIX.
30556         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
30557         with EAGAIN, retry with a smaller buffer size.
30559 2011-06-05  Bruno Haible  <bruno@clisp.org>
30561         localename: Fix link dependencies.
30562         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
30563         * modules/localename-tests (Makefile.am): Link test-localename with
30564         $(LIBTHREAD).
30566 2011-06-05  Bruno Haible  <bruno@clisp.org>
30568         error: Avoid gcc warning.
30569         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
30571 2011-06-05  Bruno Haible  <bruno@clisp.org>
30573         unsetenv: Avoid gcc warning.
30574         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
30576 2011-06-05  Bruno Haible  <bruno@clisp.org>
30578         setenv: Avoid gcc warning.
30579         * lib/setenv.c (setenv): Provide declaration if system lacks it.
30581 2011-06-05  Bruno Haible  <bruno@clisp.org>
30583         sys_select: Ensure memset is declared also on AIX 7.
30584         * lib/sys_select.in.h: Include <string.h> also on AIX.
30585         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
30586         self-contained also on AIX 7.1.
30588 2011-06-04  Jim Meyering  <meyering@redhat.com>
30590         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
30591         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
30592         function name, "error".
30593         (_gl_translatable_diag_func_re): New configurable variable.
30595 2011-06-04  Bruno Haible  <bruno@clisp.org>
30597         getopt: Avoid gcc warning.
30598         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
30600 2011-06-04  Bruno Haible  <bruno@clisp.org>
30602         strerror_r: Fix comments.
30603         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
30604         commit.
30606 2011-06-04  Bruno Haible  <bruno@clisp.org>
30608         perror: Fix compilation error.
30609         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
30610         Undefine fprintf, not sprintf.
30611         * modules/perror (Depends-on): Remove intprops, verify.
30613 2011-06-04  Bruno Haible  <bruno@clisp.org>
30615         setlocale: Enable replacement on Cygwin 1.5.
30616         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
30617         Cygwin 1.5.x.
30618         * doc/posix-functions/setlocale.texi: Mention that the problem with the
30619         LC_CTYPE category also exists on Cygwin 1.5.x.
30621 2011-06-04  Bruno Haible  <bruno@clisp.org>
30623         strerror-override: Don't disable symbol renamings.
30624         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
30625         * lib/strerror-override.c: Include config.h.
30626         (strerror_override): Don't undefine.
30628 2011-06-03  Bruno Haible  <bruno@clisp.org>
30630         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
30631         * lib/localename.h: Update copyright header.
30632         * lib/localename.c: Likewise.
30633         * lib/relocatable.h: Likewise.
30634         * lib/relocatable.c: Likewise.
30636 2011-06-02  Bruno Haible  <bruno@clisp.org>
30638         doc: Fix a module name.
30639         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
30641 2011-06-02  Bruno Haible  <bruno@clisp.org>
30643         pipe2: Remove dependency on 'nonblocking' module.
30644         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
30645         O_NONBLOCK is defined by gnulib.
30646         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
30647         is zero.
30648         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
30649         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
30650         defined by gnulib.
30651         (get_nonblocking_flag): New function.
30652         (main): Test O_NONBLOCK flag only if it is nonzero.
30653         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
30655 2011-06-03  Jim Meyering  <meyering@redhat.com>
30657         maint: three new prohibit-header-without-use rules
30658         Prohibit use of cloexec.h, posixver.h, same.h without use.
30659         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
30660         (sc_prohibit_posixver_without_use): Likewise.
30661         (sc_prohibit_same_without_use): Likewise.
30663 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30665         allocator: 'die' routine is now given requested size
30666         * lib/allocator.h (struct allocator.die): New size arg.
30667         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
30668         If the actual problem is an ssize_t limitation, not a size_t or
30669         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
30671 2011-06-01  Eric Blake  <eblake@redhat.com>
30673         strerror: drop strerror_r dependency
30674         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
30675         * lib/strerror-override.c (strerror_override): ...to new file.
30676         * lib/strerror-override.h: Add prototype.
30677         * lib/strerror-impl.h: Delete.
30678         * lib/strerror.c (strerror): New implementation.
30679         * modules/errno (Files): Add new files.
30680         (configure.ac): Compile new file as appropriate.
30681         * modules/strerror (Files): Drop unused file.
30682         (Depends-on): Drop strerror_r-posix.
30683         * MODULES.html.sh: Document strerror_r-posix.
30684         Requested by Sam Steingold.
30686         perror: call strerror_r directly
30687         * modules/perror (Files): Drop strerror-impl.h.
30688         * lib/perror.c (perror): Use our own stack buffer, rather than
30689         calling a wrapper that uses static storage.
30690         * doc/posix-functions/perror.texi (perror): Document a limitation
30691         of our replacement.
30693         strerror_r: fix includes for FreeBSD
30694         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
30695         since we use abort on some platforms.
30696         Reported by Matthias Bolte.
30698 2011-05-31  Bruno Haible  <bruno@clisp.org>
30700         Fix link errors in tests: openat-die uses gettext-h.
30701         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
30702         against $(LIBINTL).
30703         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
30704         against $(LIBINTL).
30705         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
30706         $(LIBINTL).
30707         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
30708         against $(LIBINTL).
30709         * modules/linkat-tests (Makefile.am): Link test-linkat against
30710         $(LIBINTL).
30711         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
30712         $(LIBINTL).
30713         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
30714         against $(LIBINTL).
30715         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
30716         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
30717         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
30718         $(LIBINTL).
30719         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
30720         $(LIBINTL).
30721         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
30722         $(LIBINTL).
30723         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30725 2011-05-31  Bruno Haible  <bruno@clisp.org>
30727         Fix link errors in tests: wait-process uses gettext-h.
30728         * modules/nonblocking-pipe-tests (Makefile.am): Set
30729         test_nonblocking_pipe_main_LDADD.
30730         * modules/nonblocking-socket-tests (Makefile.am): Link
30731         test-nonblocking-socket-main against $(LIBINTL).
30732         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30734 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
30736         assert-h: work around 'verify' incompatibility
30737         * lib/verify.h: Use @...@ directives, not ifdef.
30738         * modules/assert-h (assert.h): Implement the directives.
30739         (assert.h): Substitute the symbol-prefix more consistently.
30741 2011-05-29  Jim Meyering  <meyering@redhat.com>
30743         trim: remove three superfluous assignments
30744         * lib/trim.c (trim2): Remove three superfluous assignments
30745         and correct brace positioning.
30747 2011-05-29  Bruno Haible  <bruno@clisp.org>
30749         wctype-h: Avoid namespace pollution on Solaris 2.6.
30750         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
30751         identifiers.
30752         * doc/posix-headers/wctype.texi: Mention the problem.
30753         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30755 2011-05-28  Jim Meyering  <meyering@redhat.com>
30757         parse-datetime.y: accommodate -Wstrict-overflow
30758         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
30759         placate -Wstrict-overflow.
30761         trim: avoid a warning from -O2 -Wstrict-overflow
30762         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
30764 2011-05-29  Bruno Haible  <bruno@clisp.org>
30766         gnulib-tool: Fix bug in yesterday's commit.
30767         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
30768         twice.
30770 2011-05-29  Bruno Haible  <bruno@clisp.org>
30772         Allow multiple gnulib generated include files to be combined.
30773         * gnulib-tool (func_compute_include_guard_prefix): New function.
30774         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
30775         ${gl_include_guard_prefix} references.
30776         (func_import, func_create_testdir): Invoke
30777         func_compute_include_guard_prefix.
30778         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
30779         * lib/ctype.in.h: Likewise.
30780         * lib/dirent.in.h: Likewise.
30781         * lib/errno.in.h: Likewise.
30782         * lib/fcntl.in.h: Likewise.
30783         * lib/float.in.h: Likewise.
30784         * lib/getopt.in.h: Likewise.
30785         * lib/iconv.in.h: Likewise.
30786         * lib/langinfo.in.h: Likewise.
30787         * lib/locale.in.h: Likewise.
30788         * lib/math.in.h: Likewise.
30789         * lib/netdb.in.h: Likewise.
30790         * lib/netinet_in.in.h: Likewise.
30791         * lib/poll.in.h: Likewise.
30792         * lib/pthread.in.h: Likewise.
30793         * lib/pty.in.h: Likewise.
30794         * lib/sched.in.h: Likewise.
30795         * lib/se-selinux.in.h: Likewise.
30796         * lib/search.in.h: Likewise.
30797         * lib/signal.in.h: Likewise.
30798         * lib/spawn.in.h: Likewise.
30799         * lib/stdarg.in.h: Likewise.
30800         * lib/stddef.in.h: Likewise.
30801         * lib/stdint.in.h: Likewise.
30802         * lib/stdio.in.h: Likewise.
30803         * lib/stdlib.in.h: Likewise.
30804         * lib/string.in.h: Likewise.
30805         * lib/strings.in.h: Likewise.
30806         * lib/sys_file.in.h: Likewise.
30807         * lib/sys_ioctl.in.h: Likewise.
30808         * lib/sys_select.in.h: Likewise.
30809         * lib/sys_socket.in.h: Likewise.
30810         * lib/sys_stat.in.h: Likewise.
30811         * lib/sys_time.in.h: Likewise.
30812         * lib/sys_times.in.h: Likewise.
30813         * lib/sys_uio.in.h: Likewise.
30814         * lib/sys_utsname.in.h: Likewise.
30815         * lib/sys_wait.in.h: Likewise.
30816         * lib/sysexits.in.h: Likewise.
30817         * lib/termios.in.h: Likewise.
30818         * lib/time.in.h: Likewise.
30819         * lib/unistd.in.h: Likewise.
30820         * lib/wchar.in.h: Likewise.
30821         * lib/wctype.in.h: Likewise.
30822         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
30823         * modules/ctype (Makefile.am): Likewise.
30824         * modules/dirent (Makefile.am): Likewise.
30825         * modules/errno (Makefile.am): Likewise.
30826         * modules/fcntl-h (Makefile.am): Likewise.
30827         * modules/float (Makefile.am): Likewise.
30828         * modules/getopt-posix (Makefile.am): Likewise.
30829         * modules/iconv-h (Makefile.am): Likewise.
30830         * modules/langinfo (Makefile.am): Likewise.
30831         * modules/locale (Makefile.am): Likewise.
30832         * modules/math (Makefile.am): Likewise.
30833         * modules/netdb (Makefile.am): Likewise.
30834         * modules/netinet_in (Makefile.am): Likewise.
30835         * modules/poll-h (Makefile.am): Likewise.
30836         * modules/pthread (Makefile.am): Likewise.
30837         * modules/pty (Makefile.am): Likewise.
30838         * modules/sched (Makefile.am): Likewise.
30839         * modules/search (Makefile.am): Likewise.
30840         * modules/selinux-h (Makefile.am): Likewise.
30841         * modules/signal (Makefile.am): Likewise.
30842         * modules/spawn (Makefile.am): Likewise.
30843         * modules/stdarg (Makefile.am): Likewise.
30844         * modules/stddef (Makefile.am): Likewise.
30845         * modules/stdint (Makefile.am): Likewise.
30846         * modules/stdio (Makefile.am): Likewise.
30847         * modules/stdlib (Makefile.am): Likewise.
30848         * modules/string (Makefile.am): Likewise.
30849         * modules/strings (Makefile.am): Likewise.
30850         * modules/sys_file (Makefile.am): Likewise.
30851         * modules/sys_ioctl (Makefile.am): Likewise.
30852         * modules/sys_select (Makefile.am): Likewise.
30853         * modules/sys_socket (Makefile.am): Likewise.
30854         * modules/sys_stat (Makefile.am): Likewise.
30855         * modules/sys_time (Makefile.am): Likewise.
30856         * modules/sys_times (Makefile.am): Likewise.
30857         * modules/sys_uio (Makefile.am): Likewise.
30858         * modules/sys_utsname (Makefile.am): Likewise.
30859         * modules/sys_wait (Makefile.am): Likewise.
30860         * modules/sysexits (Makefile.am): Likewise.
30861         * modules/termios (Makefile.am): Likewise.
30862         * modules/time (Makefile.am): Likewise.
30863         * modules/unistd (Makefile.am): Likewise.
30864         * modules/wchar (Makefile.am): Likewise.
30865         * modules/wctype-h (Makefile.am): Likewise.
30866         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
30868 2011-05-29  Bruno Haible  <bruno@clisp.org>
30870         assert-h: Allow multiple gnulib generated replacements to coexist.
30871         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
30873 2011-05-29  Bruno Haible  <bruno@clisp.org>
30875         argp: Allow coexistence with strerror_r-posix module.
30876         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
30877         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
30878         by gnulib's <string.h> replacement), assume it has the POSIX signature,
30879         not the glibc signature.
30881 2011-05-28  Bruno Haible  <bruno@clisp.org>
30883         gnulib-tool: Alternative structure of testdirs, similar to --import.
30884         * gnulib-tool: New option --single-configure.
30885         (func_usage): Document it.
30886         (single_configure): New variable.
30887         (func_modules_transitive_closure_separately,
30888         func_modules_transitive_closure_separately,
30889         func_determine_use_libtests, func_modules_add_dummy_separately,
30890         func_modules_to_filelist_separately): New functions, extracted from
30891         func_import.
30892         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
30893         (func_import): Use the new functions.
30894         (func_create_testdir): Set final_modules. Handle $single_configure =
30895         true case.
30897 2011-05-28  Bruno Haible  <bruno@clisp.org>
30899         getloadavg: Remove an unreliable safety check.
30900         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
30901         getloadavg.c is in place.
30902         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
30903         Reported by Sam Steingold <sds@gnu.org>.
30905 2011-05-28  Bruno Haible  <bruno@clisp.org>
30907         doc: Cleanup yet another file produced by texinfo.tex.
30908         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
30910 2011-05-28  Bruno Haible  <bruno@clisp.org>
30912         Finish the conditional dependencies mechanism.
30913         * gnulib-tool: New option --no-conditional-dependencies.
30914         (func_usage): Document it. Don't mark --conditional-dependencies as
30915         experimental.
30916         (cond_dependencies): The possible values can now be true, false, empty.
30917         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
30918         (func_import): Store setting in gnulib-cache.m4 and read it from there.
30919         * doc/gnulib-tool.texi (Conditional dependencies): New section.
30921 2011-05-28  Bruno Haible  <bruno@clisp.org>
30923         doc: Use a recent texinfo.tex.
30924         * doc/Makefile (tex_opts): New variable.
30925         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
30927 2011-05-28  Jim Meyering  <meyering@redhat.com>
30929         intprops.h: adjust comment to match code change
30930         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
30931         only once, it *may* have side effects.  Also fix an unrelated typo.
30932         (_GL_INT_SIGNED): Likewise.
30934 2011-05-26  Simon Josefsson  <simon@josefsson.org>
30936         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
30938 2011-05-26  Bruno Haible  <bruno@clisp.org>
30940         mbsrchr: Avoid collision with system function on Interix.
30941         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
30942         Reported by Markus Duft <mduft@gentoo.org>.
30944 2011-05-15  James Youngman  <jay@gnu.org>
30946         getopt: for ambiguous options, enumerate the possibilities.
30947         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
30948         the ambiguous options when an ambiguous prefix is given. This was
30949         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
30950         glibc change was
30951         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
30953 2011-05-25  Eric Blake  <eblake@redhat.com>
30955         getcwd: work around mingw bug
30956         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
30957         * doc/posix-functions/getcwd.texi (getcwd): Document it.
30958         Reported by Matthias Bolte.
30960 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
30962         test-intprops: disable -Wtype-limits diagnostics
30963         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
30964         diagnostics.  Otherwise, the integer overflow macros generate many
30965         diagnostics.  Reported by Jim Meyering in
30966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
30968         intprops: shorten, to pacify gcc -Woverlength-strings
30969         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
30970         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
30971         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
30972         likely to run afoul of C compiler limits for string constant lengths.
30973         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
30975 2011-05-24  Eric Blake  <eblake@redhat.com>
30977         docs: document recently fixed glibc printf bug
30978         * doc/posix-functions/fprintf.texi (fprintf): Document it.
30979         * doc/posix-functions/printf.texi (printf): Likewise.
30980         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
30981         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
30983         closein-tests: convert to init.sh
30984         * modules/closein-tests (Files): Add init.sh
30985         * tests/test-closein.sh Use it.
30987         yesno-tests: convert to init.sh
30988         * modules/yesno-tests (Files): Add init.sh.
30989         * tests/test-yesno.sh: Use it.
30991         atexit-tests: ensure reliable exit status
30992         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
30993         Reported by Bruno Haible.
30995 2011-05-24  Bruno Haible  <bruno@clisp.org>
30997         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
30998         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
30999         gl_PREREQ_STRERROR_R invocations from here...
31000         * modules/strerror_r-posix (configure.ac): ... to here.
31002 2011-05-24  Eric Blake  <eblake@redhat.com>
31004         strerror_r: fix missing header
31005         * lib/strerror_r.c: Avoid compiler warning about snprintf.
31007         strerror_r: fix AIX test failures
31008         * lib/strerror_r.c (strerror_r): Convert silent truncation to
31009         ERANGE failure.
31011         strerror_r: fix Solaris test failures
31012         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
31013         failures.
31014         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
31016         strerror_r: enforce POSIX recommendations
31017         * lib/strerror_r.c (safe_copy): New helper method.
31018         (strerror_r): Guarantee a non-empty string.
31019         * tests/test-strerror_r.c (main): Enhance tests to incorporate
31020         recent POSIX rulings and to match our strerror guarantees.
31021         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
31023 2011-05-24  Jim Meyering  <meyering@redhat.com>
31025         test-perror2.c: avoid warning about unused variable
31026         * tests/test-perror2.c (main): Remove declaration of unused "fp".
31028 2011-05-24  Eric Blake  <eblake@redhat.com>
31030         perror: avoid spurious test failure on HP-UX
31031         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
31033         tests: fix logic bug in init.sh
31034         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
31035         shell.
31037 2011-05-24  Jim Meyering  <meyering@redhat.com>
31039         utimensat: do not reference an out-of-scope buffer
31040         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
31041         declared in an inner scope, yet "times" would be dereferenced outside
31042         the scope in which "ts" was valid.
31043         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
31044         of ts[2] "out/up", so that the use of aliased "times" (via
31045         "times = ts;") does not end up referencing an out-of-scope "ts"
31047         opendir-safer.c: don't clobber errno; don't close negative FD
31048         * lib/opendir-safer.c (opendir_safer):
31049         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
31050         file descriptor, and more importantly, don't clobber the
31051         offending errno value with EINVAL.  Before, upon failure
31052         of dup_safer, we would pass the negative file descriptor to
31053         fdopendir, which would clobber errno.
31055 2011-05-23  Bruno Haible  <bruno@clisp.org>
31057         idcache: Fix module description.
31058         * modules/idcache (Include): Set to "idcache.h".
31060 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
31062         gnulib-tool: fix portability problem with MacOS sed
31063         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
31064         before the "}".  Problem reported by Leo in
31065         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
31066         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
31067         sed_extract_condition1, sed_extract_condition2.
31069 2011-05-23  Bruno Haible  <bruno@clisp.org>
31071         hash: Simplify autoconf macro.
31072         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
31074 2011-05-23  Bruno Haible  <bruno@clisp.org>
31076         getugroups: Fix module description.
31077         * modules/getugroups (Include): Set to "getugroups.h".
31079 2011-05-23  Bruno Haible  <bruno@clisp.org>
31081         linkat: Simplify autoconf macro.
31082         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
31084 2011-05-23  Bruno Haible  <bruno@clisp.org>
31085             Eric Blake  <eblake@redhat.com>
31087         linkat, renameat: Update dependencies.
31088         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
31089         * modules/linkat (Depends-on): Likewise. Remove also readlink,
31090         symlinkat.
31092 2011-05-23  Jim Meyering  <meyering@redhat.com>
31094         maint.mk: more tight_scope improvements
31095         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
31096         (_gl_TS_headers): Define only in if-0'd block.
31097         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
31098         sometimes we must *not* use it.  Adjust uses accordingly.
31099         (sc_tight_scope): Use much simpler grep-based test to determine
31100         whether we skip this rule.
31102         maint.mk: generalize/improve the tight-scope rule
31103         * top/maint.mk: Emit a warning when the test is skipped.
31104         (_gl_TS_dir): Add $(srcdir)/ prefix.
31105         (_gl_TS_function_match): Simplify, rather than trying
31106         to enumerate common types.  Otherwise, it would fail to match an
31107         "extern unsigned char const *" declaration in idutils.
31108         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
31109         a way to support use of that type of macro.
31110         (_gl_TS_var_match): Simplify regexp.
31111         (_gl_TS_obj_files): New configurable variable.
31112         (_gl_TS_headers): Likewise.
31114 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31116         verify: fix bug when gnulib <assert.h> is also included
31117         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
31118         is defined, not if _GL_STATIC_ASSERT_H is not defined.
31119         Perhaps there's a better way, but this fixes the immediate problem.
31120         Problem reported by Bruno Haible in
31121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
31123 2011-05-22  Bruno Haible  <bruno@clisp.org>
31125         xgetcwd: Simplify autoconf macro.
31126         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
31128 2011-05-22  Bruno Haible  <bruno@clisp.org>
31130         New module 'mktime-internal'.
31131         * modules/mktime-internal: New file.
31132         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
31133         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
31134         mktime_internal as a C macro if libc has __mktime_internal.
31135         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
31136         conditions.
31137         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
31139 2011-05-22  Bruno Haible  <bruno@clisp.org>
31141         timegm: Correct mktime replacement statements.
31142         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
31143         defining mktime as a C macro. This completes a 2009-07-28 commit.
31145 2011-05-22  Bruno Haible  <bruno@clisp.org>
31147         timegm: Simplify autoconf macro.
31148         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
31150 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
31152         clock-time: change to LGPLv2+.
31153         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
31154         BSD-like but we have no mark for that; this is good enough for now.
31156 2011-05-21  Bruno Haible  <bruno@clisp.org>
31158         strerror_r: Fix comments.
31159         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
31161 2011-05-21  Bruno Haible  <bruno@clisp.org>
31163         relocatable-prog-wrapper: Fix possible link error.
31164         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
31165         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
31166         (gl_FUNC_SETENV): ... to here.
31167         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
31168         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
31170 2011-05-21  Bruno Haible  <bruno@clisp.org>
31172         relocatable-prog-wrapper: Assume strerror() exists.
31173         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
31174         m4/strerror.m4.
31175         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
31176         * lib/relocwrapper.c: Remove mention of strerror module.
31177         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
31178         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
31179         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
31180         C macro.
31182 2011-05-21  Bruno Haible  <bruno@clisp.org>
31184         select: Simplify replacement idiom.
31185         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
31186         Win32 platforms.
31187         * lib/sys_select.in.h (select): Simplify accordingly.
31188         * modules/select (Depends-on): Likewise.
31190 2011-05-21  Bruno Haible  <bruno@clisp.org>
31192         mkdir-p: Simplify autoconf macro.
31193         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
31194         gl_FUNC_LCHOWN.
31196 2011-05-21  Eric Blake  <eblake@redhat.com>
31198         strerror_r: avoid clobbering strerror on cygwin
31199         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
31200         fall back instead to sys_errlist.
31201         * modules/strerror (configure.ac): Add witness.
31202         * tests/test-strerror_r.c (main): Enhance test.
31203         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
31204         * tests/test-perror2.c (main): Free memory before exit.
31206 2011-05-21  Bruno Haible  <bruno@clisp.org>
31208         mkdtemp: Use gnulib naming conventions.
31209         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
31210         * modules/mkdtemp (configure.ac): Update.
31212 2011-05-20  Eric Blake  <eblake@redhat.com>
31214         strerror_r: avoid corrupting errno on Solaris
31215         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
31216         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
31218         strerror_r: avoid compiler warning
31219         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
31221         strerror_r: simplify AIX code
31222         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
31224         test-perror: avoid spurious failure on FreeBSD
31225         * modules/perror-tests (Depends-on): Add strerror, now that
31226         strerror_r no longer pulls it in.
31228 2011-05-20  Bruno Haible  <bruno@clisp.org>
31230         strerror_r-posix: Remove unused dependencies.
31231         * modules/strerror_r-posix (Depends-on): Remove strerror.
31232         Reported by Eric Blake.
31234 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
31236         intprops: remove assumption about A|B representation
31237         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
31238         is a valid integer if both A and B are.  Although this is true for
31239         all known practical hosts, the C standard doesn't guarantee it,
31240         and the code need not assume it.  Also, this change may work around
31241         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
31242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
31244 2011-05-20  Eric Blake  <eblake@redhat.com>
31246         perror: work around FreeBSD bug
31247         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
31248         is broken.  Move AC_LIBOBJ...
31249         * modules/perror (configure.ac): Here.
31250         * doc/posix-functions/perror.texi (perror): Document this.
31251         * tests/test-perror2.c (main): Enhance test.
31253         test-perror: check for strerror interactions
31254         * tests/macros.h (STREQ): Add macro.
31255         * modules/perror-tests (Files): Add second test.
31256         * tests/test-perror2.c (main): New file.
31257         * doc/posix-functions/perror.texi (perror): Document glibc bug.
31259         test-perror: rewrite to use init script
31260         * modules/perror-tests (Files): Add init.sh.
31261         * tests/test-perror.sh: Use temporary directory.
31263 2011-05-20  Jim Meyering  <meyering@redhat.com>
31265         maint: replace misused "a" with "an"
31266         * doc/intprops.texi: "a integer"
31267         * doc/regex.texi: "a explanation"
31268         * lib/alignof.h: "a object"
31269         * lib/argmatch.h: "a explanation"
31270         * lib/argp-help.c: "a option" and "a OPTION_DOC"
31271         * lib/stdint.in.h: "a integer"
31272         * lib/userspec.c: "a owner"
31273         * doc/gnulib.texi: Fix "a idea", and reword.
31275 2011-05-19  Jim Meyering  <meyering@redhat.com>
31277         maint: correct misuse of "a" and "an"
31278         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
31279         * lib/argp-help.c: "an docum...": s/an/a/
31280         * lib/argp-parse.c: "An vector": s/An/A/
31281         * lib/execute.c: "an native": s/an/a/
31282         * lib/spawn-pipe.c: Likewise.
31283         * lib/gc.h: "an Gc_rc": s/an/a/
31284         * lib/unigbrk.in.h: "an grapheme": s/an/a/
31285         * lib/fts.c: "an stat.st_dev": s/an/a/
31287 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31289         intprops-tests: work around HP-UX 11.23 cc bug with constants
31290         * tests/test-intprops.c (VERIFY): New macro.
31291         (main): Use it, instead of verify, to work around the compiler bug; see
31292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
31294         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
31295         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
31296         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
31297         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
31298         (_GL_REMAINDER_OVERFLOW): Use it.
31300         intprops-tests: revert unsigned part of previous change
31301         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
31302         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
31303         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
31304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
31306 2011-05-19  Bruno Haible  <bruno@clisp.org>
31308         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
31309         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
31310         strerror_r() returned without filling the buffer.
31311         Reported by Eric Blake.
31313 2011-05-19  Eric Blake  <eblake@redhat.com>
31315         strerror_r: guarantee unchanged errno
31316         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
31317         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
31318         failure.
31319         * tests/test-strerror_r.c (main): Enhance test.
31321 2011-05-19  Bruno Haible  <bruno@clisp.org>
31323         strerror_r: Reorder #if blocks.
31324         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
31325         for consistency with the previous commit.
31327 2011-05-19  Bruno Haible  <bruno@clisp.org>
31329         perror: Avoid clobbering the strerror buffer when possible.
31330         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
31331         * lib/strerror.c: Include it.
31332         * modules/strerror (Files): Add lib/strerror-impl.h.
31333         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
31334         (my_strerror): New function, defined through lib/strerror-impl.h.
31335         (perror): Use it instead of strerror.
31336         * modules/perror (Files): Add lib/strerror-impl.h.
31337         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
31339 2011-05-19  Eric Blake  <eblake@redhat.com>
31341         strerror_r: fix on newer cygwin
31342         * lib/strerror_r.c (strerror_r): Cygwin now has
31343         __xpg_strerror_r, use it.
31345 2011-05-19  Bruno Haible  <bruno@clisp.org>
31347         strerror_r: Avoid clobbering the strerror buffer when possible.
31348         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
31349         (sys_nerr, sys_errlist): New declarations.
31350         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
31351         HP-UX, native Win32, IRIX, and 32-bit Solaris.
31352         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
31354 2011-05-19  Bruno Haible  <bruno@clisp.org>
31356         strerror_r: Fix test failure on mingw.
31357         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
31358         EXTEND_STRERROR_R.
31359         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
31360         macros from errno.in.h instead.
31362 2011-05-19  Eric Blake  <eblake@redhat.com>
31364         strerror: relax test for Solaris
31365         * tests/test-strerror.c (main): Permit Solaris behavior.
31366         * tests/test-strerror_r.c (main): Likewise.
31368         strerror: enforce POSIX ruling on strerror(0)
31369         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
31370         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
31371         * lib/strerror_r.c (rpl_strerror_r): Work around it.
31372         * doc/posix-functions/strerror.texi (strerror): Document it.
31373         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
31374         * tests/test-strerror.c (main): Strengthen test.
31375         * tests/test-strerror_r.c (main): Likewise.
31377 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31379         intprop-tests: port to older and more-pedantic compilers
31380         * modules/intprops-tests (Files): Add tests/macros.h.
31381         * tests/test-intprops.c: Include macros.h.
31382         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
31383         it's no longer documented to expand to an integer constant expression.
31384         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
31385         argument is floating point, as it's no longer documented to expand
31386         to an integer constant expression in that case.
31387         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
31388         compiler bugs reported by Bruno Haible.  See
31389         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
31390         (U0, U1): New constants, to work around the same bugs.  Also,
31391         in tests, use e.g., "(unsigned int) 39" rather than "39u".
31393         intprops: work around C compiler bugs
31394         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
31395         bug in Sun C 5.11 2010/08/13 and other compilers; see
31396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
31398         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
31399         * doc/intprops.texi (Integer Type Determination): Fix
31400         documentation for TYPE_IS_INTEGER: it returns an constant
31401         expression, not an integer constant expression.  Fix doc for
31402         TYPE_SIGNED: it returns an integer constant expression only if its
31403         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
31404         hardly worth documented that way....)
31406 2011-05-18  Bruno Haible  <bruno@clisp.org>
31408         strerror_r: Avoid clobbering the strerror buffer when possible.
31409         * lib/strerror_r.c (strerror_r): Merge the three implementations.
31410         Handle gnulib defined errno values here. When strerror() returns NULL
31411         or an empty string, return EINVAL.
31412         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
31413         gnulib defined errno values here.
31414         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
31416 2011-05-18  Eric Blake  <eblake@redhat.com>
31418         fnmatch: avoid compiler warning
31419         * lib/fnmatch_loop.c (FCT): Use correct type.
31420         Reported by Matthias Bolte.
31422 2011-05-13  Jim Meyering  <meyering@redhat.com>
31424         maint.mk: three new prohibit_<HDR>_without_use rules
31425         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
31426         (sc_prohibit_stdio-safer_without_use): Likewise.
31427         (sc_prohibit_xfreopen_without_use): Likewise.
31429 2011-05-17  Jim Meyering  <meyering@redhat.com>
31431         announce-gen: fail if the NEWS delta is empty
31432         If there's nothing noteworthy in NEWS, then either you forgot
31433         or you shouldn't be releasing.
31434         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
31436 2011-05-17  Pádraig Brady <P@draigBrady.com>
31438         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
31439         reserved symbols starting with double underscore from the check.
31441 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
31443         intprops: add doc
31444         * doc/intprops.texi: New file, documenting intprops.
31445         * doc/gnulib.texi (Particular Modules): Include it.
31447         verify: add doc to gnulib manual and fix example
31448         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
31449         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
31450         (Compile-time Assertions): Fix example so it can't overflow.
31452 2011-05-17  Jim Meyering  <meyering@redhat.com>
31454         warnings.m4: don't usurp save_CPPFLAGS variable name
31455         * m4/warnings.m4: Prefix local temporary variable name with gl_.
31457         doc: fix typo
31458         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
31460 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31461             Bruno Haible  <bruno@clisp.org>
31463         doc: Tweak recent change.
31464         * README (Portability guidelines): Tweak new text.
31465         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
31466         Interix 6.1.
31468 2011-05-16  Eric Blake  <eblake@redhat.com>
31470         inttypes: avoid autoconf warning
31471         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
31472         * m4/stdint.m4 (gl_STDINT_H): Likewise.
31474 2011-05-16  Sam Steingold <sds@gnu.org>
31475         and Eric Blake  <eblake@redhat.com>
31477         vc-list-files: accept multiple directory operands
31478         * build-aux/vc-list-files: Iterate over all remaining operands.
31480 2011-05-16  Bruno Haible  <bruno@clisp.org>
31482         Fix confusion regarding deprecated modules.
31483         * modules/calloc (Status, Notice): Mark module as deprecated, not
31484         obsolete.
31485         * modules/fnmatch-posix (Status, Notice): Likewise.
31486         * modules/getdate (Status, Notice): Likewise.
31487         * modules/getopt (Status, Notice): Likewise.
31488         * modules/malloc (Status, Notice): Likewise.
31489         * modules/pipe (Status, Notice): Likewise.
31490         * modules/realloc (Status, Notice): Likewise.
31491         * modules/rename-dest-slash (Status, Notice): Likewise.
31492         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
31493         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
31494         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
31495         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
31496         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
31498 2011-05-16  Bruno Haible  <bruno@clisp.org>
31500         doc: List the target platforms.
31501         * doc/gnulib-intro.texi (Target Platforms): New section.
31502         * doc/gnulib.texi (Introduction): Update menu.
31503         * README (Portability guidelines): Refer to the new section. Update
31504         statement about oldest supported environment. Remove rationale why
31505         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
31506         unportable C89 function.
31507         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
31508         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
31510 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31512         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
31514 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
31516         intprops-tests: new module
31517         * modules/intprops-tests, tests/test-intprops.c: New files.
31519         intprops: add safe, portable integer overflow checking
31520         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
31521         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
31522         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
31523         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
31524         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
31525         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
31526         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
31527         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
31528         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
31529         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
31530         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
31532 2011-05-12  James Youngman  <jay@gnu.org>
31534         Add a test for glibc's Bugzilla bug #12378.
31535         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
31536         doesn't allow the literal matching of a lone "[" (which is
31537         required by POSIX).
31538         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
31540 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
31542         Sync glibc change fixing Bugzilla bug #12378.
31543         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
31544         beginning and fall back to matching as normal character if the
31545         string ends before the matching ']' is found.  This is what POSIX
31546         requires.
31548 2011-05-13  Eric Blake  <eblake@redhat.com>
31550         getcwd-lgpl: relax test for FreeBSD
31551         * doc/posix-functions/getcwd.texi (getcwd): Document portability
31552         issue.
31553         * tests/test-getcwd-lgpl.c (main): Relax test.
31554         Reported by Matthias Bolte.
31556 2011-05-11  Eric Blake  <eblake@redhat.com>
31558         test-fflush: silence compiler warning
31559         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
31561 2011-05-11  Bruno Haible  <bruno@clisp.org>
31563         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
31564         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
31565         * modules/canonicalize (Depends-on): Add 'nocrash'.
31566         * modules/canonicalize-lgpl (Depends-on): Likewise.
31567         * doc/posix-functions/realpath.texi: Update platforms list.
31568         Reported by Ryan Schmidt <ryandesign@macports.org>.
31570 2011-05-11  Bruno Haible  <bruno@clisp.org>
31572         group-member: Declare function in <unistd.h>.
31573         * lib/unistd.in.h (group_member): New declaration.
31574         * lib/group-member.h: Remove file.
31575         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
31576         * tests/test-unistd-c++.cc: Check signature of group_member.
31577         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
31578         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
31579         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
31580         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
31581         HAVE_GROUP_MEMBER.
31582         * modules/group-member (Files): Remove lib/group-member.h.
31583         (Depends-on): Add unistd. Specify conditions.
31584         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31585         (Include): Change to <unistd.h>.
31586         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
31587         HAVE_GROUP_MEMBER.
31588         * NEWS: Mention the change.
31589         * lib/euidaccess.c: Don't include group-member.h.
31591 2011-05-11  Bruno Haible  <bruno@clisp.org>
31593         group-member: Document module.
31594         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
31595         module.
31597 2011-05-11  Bruno Haible  <bruno@clisp.org>
31599         fclose: Fix mistake earlier today.
31600         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
31602 2011-05-11  Eric Blake  <eblake@redhat.com>
31604         fclose: preserve fflush errors
31605         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
31606         Reported by Jim Meyering.
31608         bootstrap: support a prereq of 'rpcgen -' on RHEL5
31609         * build-aux/bootstrap (check_versions): When no specific version
31610         is required, merely check that the app produces an exit status
31611         that indicates its existence.
31613         maint.mk: drop redundant check
31614         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
31615         the same but better.
31617 2011-05-11  Bruno Haible  <bruno@clisp.org>
31619         fclose: Fix possible link error.
31620         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
31621         unregister_shadow_fd. Improve comments.
31622         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
31623         Eric Blake.
31625 2011-05-11  Jim Meyering  <meyering@redhat.com>
31627         maint.mk: improve "can not" detection and generalize rule name
31628         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
31629         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
31630         Use the same technique as in sc_prohibit_doubled_word, so that
31631         we recognize "can not" also when the words are separated by a newline.
31632         Suggested by Eric Blake.
31633         (perl_filename_lineno_text_): Define.  Factored out of...
31634         (prohibit_doubled_word_): ...here.  Use the new definition.
31635         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
31636         (prohibit_undesirable_word_seq_RE_): New overridable variable.
31637         (ignore_undesirable_word_sequence_RE_): New overridable variable.
31639 2011-05-10  Eric Blake  <eblake@redhat.com>
31641         fclose: avoid double close race when possible
31642         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
31643         all but WINDOWS_SOCKETS.
31645 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
31647         openat: correct new comment
31648         * lib/openat-proc.c (openat_proc_name): Correct the comment.
31650 2011-05-10  Jim Meyering  <meyering@redhat.com>
31652         openat: add comments
31653         * lib/openat-proc.c (openat_proc_name): Add comments,
31654         mostly from Eric Blake.
31656 2011-05-09  Eric Blake  <eblake@redhat.com>
31658         openat: reduce syscalls in first probe of /proc
31659         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
31660         be a directory.  Simplify the probe for .. bugs.
31661         * modules/openat (Depends-on): Drop same-inode.
31662         Reported by Bastien ROUCARIES.
31664 2011-05-09  Jim Meyering  <meyering@redhat.com>
31666         maint.mk: change semantics/name of tight_scope variables
31667         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
31668         Rename variables to align with semantics that make them more useful.
31670         maint.mk: tweak new rule's name not to impinge
31671         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
31672         (sc_tight_scope): Use new rule name rather than $@-0.
31674         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
31675         * top/maint.mk (sc_tight_scope): New rule.
31676         (sc_tight_scope-0): New rule, ifdef'd out.
31677         (_gl_TS_dir): Default.
31678         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
31679         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
31681 2011-05-09  Simon Josefsson  <simon@josefsson.org>
31683         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
31684         Haible <bruno@clisp.org>.
31686 2011-05-08  Bruno Haible  <bruno@clisp.org>
31688         Comments.
31689         * m4/isnanf.m4: Add comment.
31690         * m4/isnanl.m4: Likewise.
31692 2011-05-08  Bruno Haible  <bruno@clisp.org>
31694         glob: Remove obsolete macro.
31695         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
31697 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
31699         intprops: Sun C 5.11 supports __typeof__
31700         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
31701         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
31702         which is new.
31703         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
31705         intprops: switch to usual gnulib indenting and naming
31706         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
31707         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
31709         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
31711 2011-05-08  Jim Meyering  <meyering@redhat.com>
31713         maint.mk: suppress "Entering/Leaving directory" diag in announcement
31714         * top/maint.mk (release-prep): Use make's --no-print-directory
31715         option when generating the announcement.  This eliminates the
31716         pesky "make[2]: Entering/Leaving directory" diagnostics in the
31717         generated announcement template.
31719 2011-05-08  Bruno Haible  <bruno@clisp.org>
31721         tzset: Fix gettimeofday wrapper on Solaris 2.6.
31722         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
31723         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
31725 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
31727         ignore-value, verify: Omit include files from lib_SOURCES.
31728         * modules/ignore-value, modules/verify (Makefile.am):
31729         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
31730         that leads Automake to duplicate use of am__objects_... variables
31731         in Makefile.in.  See
31732         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
31734 2011-05-07  Bruno Haible  <bruno@clisp.org>
31736         fclose: Simplify autoconf macro.
31737         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
31738         defined.
31740 2011-05-07  Bruno Haible  <bruno@clisp.org>
31742         canonicalize-lgpl: Fix autoconf macro ordering bug.
31743         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
31744         gl_STDLIB_H_DEFAULTS.
31746 2011-05-06  Eric Blake  <eblake@redhat.com>
31748         maintainer-makefile: make sc_po_check easier to tune
31749         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
31750         to probe for strings, such as an alternate location for gnulib.
31752         fclose: guarantee behavior on seekable stdin
31753         * modules/fclose (Depends-on): Add fflush.
31754         * doc/posix-functions/fclose.texi (fclose): Document this.
31755         * tests/test-fclose.c (main): Make test for this unconditional.
31757 2011-05-06  Bruno Haible  <bruno@clisp.org>
31759         fflush, fpurge: Relicense under LGPLv2+.
31760         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
31761         * modules/fpurge (License): Likewise.
31762         With permission from Eric Blake and Jim Meyering.
31763         Suggested by Eric Blake.
31765 2011-05-06  Karl Berry  <karl@gnu.org>
31767         * MODULES.html.sh (func_all_modules): remove exit.
31769 2011-05-06  Jim Meyering  <meyering@redhat.com>
31771         maint.mk: use info-gnu@ as the default only for a stable release
31772         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
31773         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
31774         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
31775         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
31777 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31779         assert-h: new module, which supports C1X-style static_assert
31780         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
31781         * lib/verify.h: Revamp so that this can be copied into assert.h,
31782         while retaining the ability to use it standalone as before.
31783         Rename private identifiers so as not to encroach on the
31784         standard C namespace, since this is now used by assert.h.
31785         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
31786         the old verify_true.
31787         (_GL_VERIFY_TRUE): New macro, with much of the contents of
31788         the old verify_true.  Use _GL_VERIFY_TYPE.
31789         (_GL_VERIFY): New macro, with much of the contents of the old verify.
31790         (static_assert): New macro, if _GL_STATIC_ASSERT_H
31791         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
31792         defined when this file is copied into the replacement assert.h.
31793         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
31794         and _Static_assert is not built in.
31795         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
31796         defined, and use the new macros mentioned above.
31797         * doc/posix-headers/assert.texi: Document this.
31799 2011-05-05  Bruno Haible  <bruno@clisp.org>
31801         fclose, fflush: Respect rules for use of AC_LIBOBJ.
31802         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
31803         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
31804         gl_REPLACE_FCLOSE here.
31805         * modules/fflush (Depends-on): Remove fclose.
31806         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
31807         combination with module 'fclose'.
31809 2011-05-05  Bruno Haible  <bruno@clisp.org>
31811         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
31812         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
31813         gl_FUNC_FFLUSH.
31814         (gl_FUNC_FFLUSH): Use it.
31815         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
31816         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
31817         gl_REPLACE_FSEEKO here.
31819 2011-05-05  Bruno Haible  <bruno@clisp.org>
31821         tzset: Relicense under LGPL.
31822         * modules/tzset (License): Change to LGPL.
31823         No agreement needed; it's a no-op.
31825         strtoimax, strtoumax: Relicense under LGPL.
31826         * modules/strtoimax (License): Change to LGPL.
31827         * modules/strtoumax (License): Likewise.
31828         With permission from Jim Meyering, Paul Eggert:
31829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
31830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
31832         getgroups: Relicense under LGPL.
31833         * modules/getgroups (License): Change to LGPL.
31834         With permission from Jim Meyering, Paul Eggert, Eric Blake:
31835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
31836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
31837         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
31839         nanosleep: Relicense under LGPL.
31840         * modules/nanosleep (License): Change to LGPL.
31841         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
31842         Haible:
31843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
31844         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
31845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
31846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
31848         futimens: Relicense under LGPL.
31849         * modules/futimens (License): Change to LGPL.
31850         With permission from Eric Blake:
31851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
31853         fflush: Relicense under LGPL.
31854         * modules/fflush (License): Change to LGPL.
31855         With permission from Eric Blake, Bruno Haible, Jim Meyering:
31856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
31857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
31858         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
31860         tmpfile: Relicense under LGPL.
31861         * modules/tmpfile (License): Change to LGPL.
31862         With permission from Ben Pfaff:
31863         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
31865         isfinite: Relicense under LGPL.
31866         * modules/isfinite (License): Change to LGPL.
31867         With permission from Ben Pfaff, Bruno Haible:
31868         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
31869         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
31871         acosl..tanl: Relicense under LGPL.
31872         * modules/acosl (License): Change to LGPL.
31873         * modules/asinl (License): Likewise.
31874         * modules/atanl (License): Likewise.
31875         * modules/cosl (License): Likewise.
31876         * modules/expl (License): Likewise.
31877         * modules/logl (License): Likewise.
31878         * modules/sinl (License): Likewise.
31879         * modules/sqrtl (License): Likewise.
31880         * modules/tanl (License): Likewise.
31881         Source code originally from glibc and Paolo Bonzini. Agreements:
31882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
31883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
31885 2011-05-05  Bruno Haible  <bruno@clisp.org>
31887         signal: Define sighandler_t.
31888         * lib/signal.in.h (sighandler_t): New type.
31889         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
31890         whether sighandler_t is defined.
31891         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
31892         * modules/signal (Depends-on): Add extensions.
31893         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
31894         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
31895         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
31897 2011-05-05  Eric Blake  <eblake@redhat.com>
31899         maint: remove useless REPLACE_*_H macros
31900         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
31901         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
31902         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
31903         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
31904         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
31905         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
31906         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
31907         * m4/btowc.m4: Update callers.
31908         * m4/dirfd.m4: Likewise.
31909         * m4/duplocale.m4: Likewise.
31910         * m4/fchdir.m4: Likewise.
31911         * m4/fdopendir.m4: Likewise.
31912         * m4/inet_ntop.m4: Likewise.
31913         * m4/inet_pton.m4: Likewise.
31914         * m4/ioctl.m4: Likewise.
31915         * m4/mbrlen.m4: Likewise.
31916         * m4/mbrtowc.m4: Likewise.
31917         * m4/mbsinit.m4: Likewise.
31918         * m4/mbsnrtowcs.m4: Likewise.
31919         * m4/mbsrtowcs.m4: Likewise.
31920         * m4/poll.m4: Likewise.
31921         * m4/setlocale.m4: Likewise.
31922         * m4/wcrtomb.m4: Likewise.
31923         * m4/wcsnrtombs.m4: Likewise.
31924         * m4/wcsrtombs.m4: Likewise.
31925         * m4/wctob.m4: Likewise.
31926         * m4/wcwidth.m4: Likewise.
31927         * modules/posix_spawn: Likewise.
31928         * modules/posix_spawn_file_actions_addclose: Likewise.
31929         * modules/posix_spawn_file_actions_adddup2: Likewise.
31930         * modules/posix_spawn_file_actions_addopen: Likewise.
31931         * modules/posix_spawn_file_actions_destroy: Likewise.
31932         * modules/posix_spawn_file_actions_init: Likewise.
31933         * modules/posix_spawnattr_destroy: Likewise.
31934         * modules/posix_spawnattr_getflags: Likewise.
31935         * modules/posix_spawnattr_getpgroup: Likewise.
31936         * modules/posix_spawnattr_getschedparam: Likewise.
31937         * modules/posix_spawnattr_getschedpolicy: Likewise.
31938         * modules/posix_spawnattr_getsigdefault: Likewise.
31939         * modules/posix_spawnattr_getsigmask: Likewise.
31940         * modules/posix_spawnattr_init: Likewise.
31941         * modules/posix_spawnattr_setflags: Likewise.
31942         * modules/posix_spawnattr_setpgroup: Likewise.
31943         * modules/posix_spawnattr_setschedparam: Likewise.
31944         * modules/posix_spawnattr_setschedpolicy: Likewise.
31945         * modules/posix_spawnattr_setsigdefault: Likewise.
31946         * modules/posix_spawnattr_setsigmask: Likewise.
31947         * modules/posix_spawnp: Likewise.
31949 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
31951         Add option to do-release-commit-and-tag to specify branch.
31952         * build-aux/do-release-commit-and-tag: Add --branch.
31954 2011-05-03  Bruno Haible  <bruno@clisp.org>
31956         Avoid unnecessary compilation units, through conditional dependencies.
31957         * modules/accept (Depends-on): Add conditions to the dependencies.
31958         * modules/acosl (Depends-on): Likewise.
31959         * modules/argz (Depends-on): Likewise.
31960         * modules/asinl (Depends-on): Likewise.
31961         * modules/atanl (Depends-on): Likewise.
31962         * modules/atoll (Depends-on): Likewise.
31963         * modules/bind (Depends-on): Likewise.
31964         * modules/btowc (Depends-on): Likewise.
31965         * modules/canonicalize-lgpl (Depends-on): Likewise.
31966         * modules/ceil (Depends-on): Likewise.
31967         * modules/ceilf (Depends-on): Likewise.
31968         * modules/ceill (Depends-on): Likewise.
31969         * modules/chdir-long (Depends-on): Likewise.
31970         * modules/chown (Depends-on): Likewise.
31971         * modules/close (Depends-on): Likewise.
31972         * modules/connect (Depends-on): Likewise.
31973         * modules/cosl (Depends-on): Likewise.
31974         * modules/dirfd (Depends-on): Likewise.
31975         * modules/dprintf (Depends-on): Likewise.
31976         * modules/dprintf-posix (Depends-on): Likewise.
31977         * modules/error (Depends-on): Likewise.
31978         * modules/euidaccess (Depends-on): Likewise.
31979         * modules/expl (Depends-on): Likewise.
31980         * modules/faccessat (Depends-on): Likewise.
31981         * modules/fchdir (Depends-on): Likewise.
31982         * modules/fclose (Depends-on): Likewise.
31983         * modules/fcntl (Depends-on): Likewise.
31984         * modules/fdopendir (Depends-on): Likewise.
31985         * modules/fflush (Depends-on): Likewise.
31986         * modules/floor (Depends-on): Likewise.
31987         * modules/floorf (Depends-on): Likewise.
31988         * modules/floorl (Depends-on): Likewise.
31989         * modules/fnmatch (Depends-on): Likewise.
31990         * modules/fopen (Depends-on): Likewise.
31991         * modules/fprintf-posix (Depends-on): Likewise.
31992         * modules/frexp (Depends-on): Likewise.
31993         * modules/frexp-nolibm (Depends-on): Likewise.
31994         * modules/frexpl (Depends-on): Likewise.
31995         * modules/frexpl-nolibm (Depends-on): Likewise.
31996         * modules/fseek (Depends-on): Likewise.
31997         * modules/fsusage (Depends-on): Likewise.
31998         * modules/ftell (Depends-on): Likewise.
31999         * modules/ftello (Depends-on): Likewise.
32000         * modules/futimens (Depends-on): Likewise.
32001         * modules/getcwd (Depends-on): Likewise.
32002         * modules/getcwd-lgpl (Depends-on): Likewise.
32003         * modules/getdelim (Depends-on): Likewise.
32004         * modules/getdomainname (Depends-on): Likewise.
32005         * modules/getgroups (Depends-on): Likewise.
32006         * modules/gethostname (Depends-on): Likewise.
32007         * modules/getline (Depends-on): Likewise.
32008         * modules/getlogin_r (Depends-on): Likewise.
32009         * modules/getopt-posix (Depends-on): Likewise.
32010         * modules/getpeername (Depends-on): Likewise.
32011         * modules/getsockname (Depends-on): Likewise.
32012         * modules/getsockopt (Depends-on): Likewise.
32013         * modules/getsubopt (Depends-on): Likewise.
32014         * modules/getusershell (Depends-on): Likewise.
32015         * modules/glob (Depends-on): Likewise.
32016         * modules/grantpt (Depends-on): Likewise.
32017         * modules/iconv_open (Depends-on): Likewise.
32018         * modules/iconv_open-utf (Depends-on): Likewise.
32019         * modules/inet_ntop (Depends-on): Likewise.
32020         * modules/inet_pton (Depends-on): Likewise.
32021         * modules/ioctl (Depends-on): Likewise.
32022         * modules/isapipe (Depends-on): Likewise.
32023         * modules/isfinite (Depends-on): Likewise.
32024         * modules/isinf (Depends-on): Likewise.
32025         * modules/lchown (Depends-on): Likewise.
32026         * modules/ldexpl (Depends-on): Likewise.
32027         * modules/link (Depends-on): Likewise.
32028         * modules/linkat (Depends-on): Likewise.
32029         * modules/listen (Depends-on): Likewise.
32030         * modules/logl (Depends-on): Likewise.
32031         * modules/lstat (Depends-on): Likewise.
32032         * modules/mbrlen (Depends-on): Likewise.
32033         * modules/mbrtowc (Depends-on): Likewise.
32034         * modules/mbsinit (Depends-on): Likewise.
32035         * modules/mbsnrtowcs (Depends-on): Likewise.
32036         * modules/mbsrtowcs (Depends-on): Likewise.
32037         * modules/mbtowc (Depends-on): Likewise.
32038         * modules/memcmp (Depends-on): Likewise.
32039         * modules/mkdir (Depends-on): Likewise.
32040         * modules/mkdtemp (Depends-on): Likewise.
32041         * modules/mkfifo (Depends-on): Likewise.
32042         * modules/mkfifoat (Depends-on): Likewise.
32043         * modules/mknod (Depends-on): Likewise.
32044         * modules/mkostemp (Depends-on): Likewise.
32045         * modules/mkostemps (Depends-on): Likewise.
32046         * modules/mkstemp (Depends-on): Likewise.
32047         * modules/mkstemps (Depends-on): Likewise.
32048         * modules/mktime (Depends-on): Likewise.
32049         * modules/nanosleep (Depends-on): Likewise.
32050         * modules/open (Depends-on): Likewise.
32051         * modules/openat (Depends-on): Likewise.
32052         * modules/perror (Depends-on): Likewise.
32053         * modules/poll (Depends-on): Likewise.
32054         * modules/popen (Depends-on): Likewise.
32055         * modules/posix_spawn (Depends-on): Likewise.
32056         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
32057         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
32058         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
32059         * modules/posix_spawnp (Depends-on): Likewise.
32060         * modules/pread (Depends-on): Likewise.
32061         * modules/printf-posix (Depends-on): Likewise.
32062         * modules/ptsname (Depends-on): Likewise.
32063         * modules/putenv (Depends-on): Likewise.
32064         * modules/pwrite (Depends-on): Likewise.
32065         * modules/readline (Depends-on): Likewise.
32066         * modules/readlink (Depends-on): Likewise.
32067         * modules/readlinkat (Depends-on): Likewise.
32068         * modules/recv (Depends-on): Likewise.
32069         * modules/recvfrom (Depends-on): Likewise.
32070         * modules/regex (Depends-on): Likewise.
32071         * modules/remove (Depends-on): Likewise.
32072         * modules/rename (Depends-on): Likewise.
32073         * modules/renameat (Depends-on): Likewise.
32074         * modules/rmdir (Depends-on): Likewise.
32075         * modules/round (Depends-on): Likewise.
32076         * modules/roundf (Depends-on): Likewise.
32077         * modules/roundl (Depends-on): Likewise.
32078         * modules/rpmatch (Depends-on): Likewise.
32079         * modules/select (Depends-on): Likewise.
32080         * modules/send (Depends-on): Likewise.
32081         * modules/sendto (Depends-on): Likewise.
32082         * modules/setenv (Depends-on): Likewise.
32083         * modules/setlocale (Depends-on): Likewise.
32084         * modules/setsockopt (Depends-on): Likewise.
32085         * modules/shutdown (Depends-on): Likewise.
32086         * modules/sigaction (Depends-on): Likewise.
32087         * modules/signbit (Depends-on): Likewise.
32088         * modules/sigprocmask (Depends-on): Likewise.
32089         * modules/sinl (Depends-on): Likewise.
32090         * modules/sleep (Depends-on): Likewise.
32091         * modules/snprintf (Depends-on): Likewise.
32092         * modules/snprintf-posix (Depends-on): Likewise.
32093         * modules/socket (Depends-on): Likewise.
32094         * modules/sprintf-posix (Depends-on): Likewise.
32095         * modules/sqrtl (Depends-on): Likewise.
32096         * modules/stat (Depends-on): Likewise.
32097         * modules/strchrnul (Depends-on): Likewise.
32098         * modules/strdup-posix (Depends-on): Likewise.
32099         * modules/strerror (Depends-on): Likewise.
32100         * modules/strerror_r-posix (Depends-on): Likewise.
32101         * modules/strndup (Depends-on): Likewise.
32102         * modules/strnlen (Depends-on): Likewise.
32103         * modules/strptime (Depends-on): Likewise.
32104         * modules/strsep (Depends-on): Likewise.
32105         * modules/strsignal (Depends-on): Likewise.
32106         * modules/strstr-simple (Depends-on): Likewise.
32107         * modules/strtod (Depends-on): Likewise.
32108         * modules/strtoimax (Depends-on): Likewise.
32109         * modules/strtok_r (Depends-on): Likewise.
32110         * modules/strtoumax (Depends-on): Likewise.
32111         * modules/symlink (Depends-on): Likewise.
32112         * modules/symlinkat (Depends-on): Likewise.
32113         * modules/tanl (Depends-on): Likewise.
32114         * modules/tcgetsid (Depends-on): Likewise.
32115         * modules/tmpfile (Depends-on): Likewise.
32116         * modules/trunc (Depends-on): Likewise.
32117         * modules/truncf (Depends-on): Likewise.
32118         * modules/truncl (Depends-on): Likewise.
32119         * modules/uname (Depends-on): Likewise.
32120         * modules/unlink (Depends-on): Likewise.
32121         * modules/unlockpt (Depends-on): Likewise.
32122         * modules/unsetenv (Depends-on): Likewise.
32123         * modules/usleep (Depends-on): Likewise.
32124         * modules/utimensat (Depends-on): Likewise.
32125         * modules/vasprintf (Depends-on): Likewise.
32126         * modules/vdprintf (Depends-on): Likewise.
32127         * modules/vdprintf-posix (Depends-on): Likewise.
32128         * modules/vfprintf-posix (Depends-on): Likewise.
32129         * modules/vprintf-posix (Depends-on): Likewise.
32130         * modules/vsnprintf (Depends-on): Likewise.
32131         * modules/vsnprintf-posix (Depends-on): Likewise.
32132         * modules/vsprintf-posix (Depends-on): Likewise.
32133         * modules/wcrtomb (Depends-on): Likewise.
32134         * modules/wcscasecmp (Depends-on): Likewise.
32135         * modules/wcscspn (Depends-on): Likewise.
32136         * modules/wcsdup (Depends-on): Likewise.
32137         * modules/wcsncasecmp (Depends-on): Likewise.
32138         * modules/wcsnrtombs (Depends-on): Likewise.
32139         * modules/wcspbrk (Depends-on): Likewise.
32140         * modules/wcsrtombs (Depends-on): Likewise.
32141         * modules/wcsspn (Depends-on): Likewise.
32142         * modules/wcsstr (Depends-on): Likewise.
32143         * modules/wcstok (Depends-on): Likewise.
32144         * modules/wcswidth (Depends-on): Likewise.
32145         * modules/wctob (Depends-on): Likewise.
32146         * modules/wctomb (Depends-on): Likewise.
32147         * modules/wctype (Depends-on): Likewise.
32148         * modules/wcwidth (Depends-on): Likewise.
32149         * modules/write (Depends-on): Likewise.
32151 2011-05-03  Bruno Haible  <bruno@clisp.org>
32153         Support for conditional dependencies.
32154         * doc/gnulib.texi (Module description): Document the syntax of
32155         conditional dependencies.
32156         * gnulib-tool: New option --conditional-dependencies.
32157         (func_usage): Document it.
32158         (cond_dependencies): New variable.
32159         (func_get_automake_snippet_conditional,
32160         func_get_automake_snippet_unconditional): New functions, extracted from
32161         func_get_automake_snippet.
32162         (func_get_automake_snippet): Use them.
32163         (sed_first_32_chars): New variable.
32164         (func_module_shellfunc_name): New function.
32165         (func_module_shellvar_name): New function.
32166         (func_module_conditional_name): New function.
32167         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
32168         func_cond_module_condition): New functions.
32169         (func_modules_transitive_closure): Add support for conditional
32170         dependencies.
32171         (func_emit_lib_Makefile_am): For a conditional module, enclose the
32172         conditional automake snippet in an automake conditional.
32173         (func_emit_autoconf_snippets): Emit shell functions that contain the
32174         code for conditional modules.
32175         (func_import, func_create_testdir): Update specification.
32177 2011-05-03  Eric Blake  <eblake@redhat.com>
32179         test-getaddrinfo: report error information
32180         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
32182 2011-05-03  Jim Meyering  <meyering@redhat.com>
32184         bootstrap: avoid build failure when $GZIP is set
32185         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
32186         program name.  If defined at all, it is supposed to list gzip options.
32187         Reported by Alan Curry in http://debbugs.gnu.org/8609
32189 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
32191         readme-release: new module with release instructions
32192         * modules/readme-release: New module.
32193         * top/README-release: New file, from coreutils, grep, diffutils.
32194         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32196 2011-05-02  Eric Blake  <eblake@redhat.com>
32198         fflush: also replace fclose when fixing fflush
32199         * modules/fflush (Depends-on): Add fclose.
32200         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
32201         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
32202         memstreams with no backing fd.
32203         * doc/posix-functions/fclose.texi (fclose): Document the use of
32204         fflush module to fix the bug.
32205         * tests/test-fclose.c (main): Relax test when fclose is used in
32206         isolation.
32208         fclose: add some tests
32209         * modules/fclose-tests: New test module.
32210         * tests/test-fclose.c: New file.
32211         * doc/posix-functions/fclose.texi (fclose): Document the bug.
32213         fclose: reduced dependencies
32214         * modules/fclose (Depends-on): Switch from fflush/fseeko to
32215         simpler lseek.
32216         * lib/fclose.c (rpl_fclose): Likewise.
32217         Reported by Simon Josefsson.
32219         exit: drop remaining clients
32220         * modules/argmatch (Depends-on): Replace exit with stdlib.
32221         * modules/copy-file (Depends-on): Likewise.
32222         * modules/execute (Depends-on): Likewise.
32223         * modules/exitfail (Depends-on): Likewise.
32224         * modules/obstack (Depends-on): Likewise.
32225         * modules/pagealign_alloc (Depends-on): Likewise.
32226         * modules/pipe-filter-gi (Depends-on): Likewise.
32227         * modules/pipe-filter-ii (Depends-on): Likewise.
32228         * modules/savewd (Depends-on): Likewise.
32229         * modules/spawn-pipe (Depends-on): Likewise.
32230         * modules/wait-process (Depends-on): Likewise.
32231         * modules/xsetenv (Depends-on): Likewise.
32232         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
32233         * modules/git-merge-changelog (Depends-on): Likewise.
32234         * modules/long-options (Depends-on): Likewise.
32235         * modules/pt_chown (Depends-on): Likewise.
32236         * modules/sysexits (Depends-on): Likewise.
32238         freading: relax license from LGPLv3+ to LGPLv2+
32239         * modules/freading (License): Relax LGPL version.
32241 2011-05-02  Bruno Haible  <bruno@clisp.org>
32243         fchdir: Remove unused dependencies.
32244         * modules/fchdir (Depends-on): Remove include_next.
32246 2011-05-02  Bruno Haible  <bruno@clisp.org>
32248         gnulib-tool: Refactor.
32249         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
32250         from func_emit_autoconf_snippets.
32251         (func_emit_autoconf_snippets): Use it.
32253 2011-05-02  Simon Josefsson  <simon@josefsson.org>
32255         * NEWS: Document removal of 'exit'.
32256         * modules/exit: Remove file.
32258 2011-05-01  Bruno Haible  <bruno@clisp.org>
32260         Update DEPENDENCIES.
32261         * DEPENDENCIES (gettext): Recommend the newest release.
32262         Reported by Simon Josefsson.
32264 2011-05-01  Bruno Haible  <bruno@clisp.org>
32266         gnulib-tool: Reduce code duplication.
32267         * gnulib-tool (func_emit_autoconf_snippets): New function.
32268         (func_import, func_create_testdir): Use it.
32270 2011-04-30  Eric Blake  <eblake@redhat.com>
32272         fclose: don't fail on non-seekable input stream
32273         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
32274         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
32275         since fflush is allowed to fail in that case.
32277 2011-04-30  Bruno Haible  <bruno@clisp.org>
32279         dup3: cleanup
32280         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
32282 2011-04-30  Bruno Haible  <bruno@clisp.org>
32284         netdb: Make it work in C++ mode.
32285         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
32286         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
32287         module.
32288         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
32289         gl_MODULE_INDICATOR_FOR_TESTS.
32290         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
32291         * modules/netdb-c++-tests: New file.
32292         * tests/test-netdb-c++.cc: New file.
32294 2011-04-30  Bruno Haible  <bruno@clisp.org>
32296         New modules 'vfscanf', 'vscanf'.
32297         * modules/vfscanf: New file.
32298         * modules/vscanf: New file.
32299         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
32300         here.
32301         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
32302         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
32304 2011-04-30  Bruno Haible  <bruno@clisp.org>
32306         passfd: Add comments.
32307         * lib/passfd.c: Add comments about platforms.
32309 2011-04-30  Bruno Haible  <bruno@clisp.org>
32311         sys_uio: Make <sys/uio.h> self-contained.
32312         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
32313         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
32315 2011-04-30  Bruno Haible  <bruno@clisp.org>
32317         sys_socket: Ensure 'struct iovec' definition.
32318         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
32319         <sys/socket.h>.
32320         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
32322 2011-04-30  Bruno Haible  <bruno@clisp.org>
32324         sys_uio: Protect definition of 'struct iovec'.
32325         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
32326         it as a C struct.
32328 2011-04-30  Bruno Haible  <bruno@clisp.org>
32330         manywarnings: fix indentation
32331         * m4/manywarnings.m4: Indent by 2 spaces consistently.
32333 2011-04-30  Pádraig Brady <P@draigBrady.com>
32335         manywarnings: add -Wno-missing-field-initializers if needed.
32336         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
32337         option if it's needed to allow initialization with { 0, }
32339 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
32341         announce-gen: cosmetic improvement
32342         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
32344 2011-04-29  Jim Meyering  <meyering@redhat.com>
32346         vc-list-files: indent with spaces, not TABs
32347         * build-aux/vc-list-files: Convert leading TABs to spaces,
32348         to match the style of most other files in gnulib.
32350         announce-gen: indent with spaces, not TABs
32351         * build-aux/announce-gen: Convert all TABs to spaces, to match
32352         the style of most other files in gnulib.
32354 2011-04-29  Eric Blake  <eblake@redhat.com>
32356         quotearg: avoid uninitialized variable use
32357         * lib/quotearg.c (quoting_options_from_style): Initialize
32358         remaining fields, and ensure that custom styles are only used via
32359         quoting_options rather than quoting_style.
32361 2011-04-29  Jim Meyering  <meyering@redhat.com>
32363         maint.mk: remove unused VC-tag variable
32364         * top/maint.mk (VC-tag): Remove unused variable.
32366 2011-04-29  Bruno Haible  <bruno@clisp.org>
32368         netdb: fix gai_strerror replacements
32369         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
32370         * modules/netdb: Substitute it.
32372 2011-04-29  Jim Meyering  <meyering@redhat.com>
32374         test-getcwd.c: avoid new set-but-not-used warning
32375         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
32376         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
32377         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
32378         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
32380         test-hash.c: avoid a new shadowing warning
32381         * tests/test-hash.c (main): Don't shadow "dup".
32383 2011-04-28  Eric Blake  <eblake@redhat.com>
32385         getaddrinfo: fix gai_strerror signature
32386         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
32387         and work around mingw with UNICODE defined.
32388         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
32389         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
32390         * modules/netdb (Makefile.am): Substitute it.
32391         * lib/netdb.in.h (gai_strerror): Declare replacement.
32392         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
32393         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
32394         the fix.
32396         getsockopt: avoid compiler warning
32397         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
32398         Reported by Matthias Bolte.
32400         tests: drop unused link dependency
32401         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
32402         * modules/dirent-safer-tests (Makefile.am): Likewise.
32403         * modules/fdopendir-tests (Makefile.am): Likewise.
32404         * modules/mkfifoat-tests (Makefile.am): Likewise.
32405         * modules/openat-safer-tests (Makefile.am): Likewise.
32406         * modules/openat-tests (Makefile.am): Likewise.
32407         * modules/readlinkat-tests (Makefile.am): Likewise.
32408         * modules/symlinkat-tests (Makefile.am): Likewise.
32409         * modules/linkat-tests (Makefile.am): Likewise.
32410         (Depends-on): Switch to filenamecat-lgpl.
32411         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
32412         LIBINTL.
32413         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
32414         * tests/test-linkat.c (main): Don't require xalloc.
32416         hash, mgetgroups: drop xalloc dependency
32417         * lib/hash.c (includes): Adjust includes.
32418         * lib/mgetgroups.c (includes): Likewise.
32419         (xgetgroups): Move...
32420         * lib/xgetgroups.c: ...to new file.
32421         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
32422         * modules/xgetgroups: New file, split from...
32423         * modules/mgetgroups: ...here.
32424         (Depends-on): Add xalloc-oversized.
32425         * modules/hash (Depends-on): Likewise.
32426         * modules/hash-tests (Depends-on): Drop xalloc.
32427         (test_hash_LDADD): Drop unused library.
32428         * tests/test-hash.c (main): Break xalloc dependency.
32429         (includes): Drop unused include.
32431         xalloc-oversized: new module
32432         * modules/xalloc-oversized: New module.
32433         * modules/xalloc (Depends-on): Add it.
32434         * lib/xalloc.h (xalloc_oversized): Move...
32435         * lib/xalloc-oversized.h: ...into new file.
32437         utimecmp: drop dependency on xmalloc
32438         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
32439         due to memory pressure.
32440         * modules/utimecmp (Depends-on): Drop xalloc.
32442 2011-04-27  Eric Blake  <eblake@redhat.com>
32444         getcwd: fix mingw bugs
32445         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
32446         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
32447         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
32449 2011-04-27  Bruno Haible  <bruno@clisp.org>
32451         mkstemps: Ensure declaration on MacOS X 10.5.
32452         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
32453         * doc/glibc-functions/mkstemps.texi: Document header file problem on
32454         MacOS X.
32456 2011-04-27  Bruno Haible  <bruno@clisp.org>
32458         mkstemp: More documentation.
32459         * doc/posix-functions/mkstemp.texi: Document header file problem on
32460         MacOS X.
32462 2011-04-27  Bruno Haible  <bruno@clisp.org>
32464         mkstemp: Tweak configure message when cross-compiling.
32465         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
32466         result as a guess.
32468 2011-04-27  Bruno Haible  <bruno@clisp.org>
32470         clean-temp: Clarify what it does.
32471         * lib/clean-temp.h: Add more comments.
32472         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
32473         module.
32474         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
32475         * doc/glibc-functions/mkstemps.texi: Likewise.
32476         * doc/glibc-functions/mkostemps.texi: Likewise.
32478 2011-04-27  Eric Blake  <eblake@redhat.com>
32480         fchdir: avoid extra chdir and fix test
32481         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
32482         getcwd-lgpl.
32483         * lib/fchdir.c (get_name): Any absolute name will do; it does not
32484         have to be canonical.
32485         (canonicalize_file_name): Drop unused macro.
32486         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
32488         filenamecat-lgpl: fix licence
32489         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
32490         when it was first created.
32492         linkat, renameat: add missing dependency
32493         * modules/linkat (Depends-on): Require getcwd-lgpl.
32494         * modules/renameat (Depends-on): Likewise.
32496         tests: reduce dependencies
32497         * tests/test-linkat.c (main): Use lighter-weight getcwd.
32498         * tests/test-renameat.c (main): Likewise.
32499         * modules/linkat-tests (Depends-on): Relax dependency.
32500         * modules/renameat-tests (Depends-on): Likewise.
32501         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
32502         dependency explicit.
32504         save-cwd: reduce default dependency
32505         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
32506         * lib/save-cwd.c: Update comments.
32507         * NEWS: Document the semantic change.
32509         getcwd: enhance tests
32510         * tests/test-getcwd-lgpl.c: New file, taken from...
32511         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
32512         repeat long path stress tests from m4 probe.
32513         * modules/getcwd-lgpl-tests: New module.
32514         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
32515         * m4/getcwd-abort-bug.m4: Update comment.
32516         * m4/getcwd-path-max.m4: Likewise.
32518         getcwd-lgpl: new module
32519         * modules/getcwd-lgpl: New module.
32520         * lib/getcwd-lgpl.c: New file.
32521         * doc/posix-functions/getcwd.texi (getcwd): Document it.
32522         * MODULES.html.sh (lacking POSIX:2008): Likewise.
32523         * modules/getcwd (configure.ac): Set C witness.
32524         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
32526         getcwd: tweak comments
32527         * m4/getcwd-abort-bug.m4: Fix comments.
32528         * m4/getcwd-path-max.m4: Likewise.
32529         * m4/getcwd.m4: Likewise.
32531 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
32532         and Eric Blake  <eblake@redhat.com>
32534         mkstemp: replace if system version uses wrong permissions
32535         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
32536         read/write mode bits set in file created by mkstemp.
32537         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
32539 2011-04-27  Eric Blake  <eblake@redhat.com>
32541         passfd: avoid compiler warning
32542         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
32543         Reported by Laine Stump.
32545 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
32547         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
32548         required by the NetBSD (and perhaps other 4.4BSD derived) join.
32550 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
32551         and Eric Blake  <eblake@redhat.com>
32553         mkstemp: mention clean-temp module
32554         * lib/mkstemp.c: Add comment.
32555         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
32557 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
32559         inttypes: also provide default values for 32-bit tests
32560         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
32561         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
32563 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
32565         strtoumax: remove dependency on strtoimax
32566         This is like the strtoull change of yesterday.
32567         * modules/strtoumax (Files): Add lib/strtoimax.c.
32568         (Depends-on): Remove strtoimax and add verify.
32570         inttypes-incomplete: new module
32571         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
32572         all but the PRI* and SCN* parts of gl_INTTYPES_H.
32573         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
32574         of gl_INTTYPES_H.
32575         (gl_INTTYPES_H): Rewrite in terms of these new macros.
32576         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
32577         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
32578         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
32579         * modules/strtoumax, modules/xstrtol (Depends-on):
32580         Depend on inttypes-incomplete, not inttypes.
32581         * modules/inttypes-incomplete: New module, containing the contents
32582         of the old modules/inttypes module, except that the Files: section
32583         omits m4/inttypes-pri.m4, and the configure.ac section invokes
32584         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
32585         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
32586         (Depends-on): Depend only on inttypes-incomplete.
32587         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
32589         inttypes: omit now-redundant strtoimax and strtoumax work
32590         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
32591         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
32593         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
32594         This supports apps that need pointers to strtoimax and strtoumax,
32595         and ports to HP-UX 11.00 64.bit, which has macros that expand to
32596         nonexistent functions.  See
32597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
32598         et seq.
32599         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
32600         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
32601         a macro.
32602         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
32604 2011-04-25  Simon Josefsson  <simon@josefsson.org>
32606         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
32608 2011-04-25  Bruno Haible  <bruno@clisp.org>
32610         strtol, strtoul: Mark modules as obsolete.
32611         * modules/strtol (Status, Notice): New sections.
32612         * modules/strtoul (Status, Notice): New sections.
32614 2011-04-25  Bruno Haible  <bruno@clisp.org>
32616         strtod: Remove check for strtod, unless supporting old platforms.
32617         * modules/strtod-obsolete: New file.
32618         * m4/strtod-obsolete.m4: New file.
32619         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
32620         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
32621         * modules/strtod (Depends-on): Add strtod-obsolete.
32622         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
32624 2011-04-25  Bruno Haible  <bruno@clisp.org>
32626         strcase: Make module obsolete.
32627         * modules/strcase (Status, Notice): New sections.
32629 2011-04-25  Bruno Haible  <bruno@clisp.org>
32631         dup2: Remove check for dup2, unless supporting old obsolete platforms.
32632         * modules/dup2-obsolete: New file.
32633         * m4/dup2-obsolete.m4: New file.
32634         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
32635         gl_FUNC_DUP2_OBSOLETE is not also defined.
32636         * modules/dup2 (Depends-on): Add dup2-obsolete.
32637         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
32639 2011-04-25  Bruno Haible  <bruno@clisp.org>
32641         strnlen: Avoid memchr related link error on old obsolete platforms.
32642         * modules/memchr-obsolete: New file.
32643         * m4/memchr-obsolete.m4: New file.
32644         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
32645         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
32646         * modules/memchr (Depends-on): Add memchr-obsolete.
32647         * modules/strnlen (Depends-on): Likewise.
32648         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
32650 2011-04-25  Jim Meyering  <meyering@redhat.com>
32652         maint.mk: makefile_at_at_check extend and clean up
32653         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
32654         in addition to */Makefile.am.
32655         Exempt legitimate uses of @VAR@ notation, e.g.,
32656         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
32657         Remove obsolete coreutils-specific comment.
32658         Prompted by discussion here:
32659         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
32661 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
32663         strtoul: remove dependency on strtol
32664         This is so that 'configure' need not check for strtol merely because
32665         the application needs strtoul.
32666         * modules/strtoul (Files): Add lib/strtol.c.
32667         (Depends-on): Remove strtol.
32669         strtoull: remove dependency on strtoul
32670         This is like the strtoll change.
32671         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
32672         (Depends-on): Remove strtoul.
32674         strtoll: remove dependency on strtol
32675         This is so that 'configure' need not check for strtol merely because
32676         the application needs strtoll.
32677         * modules/strtoll (Files): Add lib/strtol.c.
32678         (Depends-on): Remove strtol.
32680 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
32682         inttypes: Move some configure check to module 'imaxdiv'.
32683         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
32684         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
32685         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
32687 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
32689         inttypes: Move some configure check to module 'imaxabs'.
32690         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
32691         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
32692         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
32694 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
32696         inttypes: Remove configure tests that are not needed since 2009-12-31.
32697         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
32698         gl_cv_header_working_inttypes_h.
32700 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
32702         * modules/strnlen (Depends-on): Remove memchr.
32703         The strnlen implementation doesn't need the memchr module's fixes; see
32704         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
32706         strtol: remove dependency on wchar
32707         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
32708         * modules/strtol (Depends-on): Remove wchar.
32710 2011-04-21  Eric Blake  <eblake@redhat.com>
32712         passfd: fix test regression on Linux
32713         * modules/passfd-tests (configure.ac): Correct socketpair check.
32715         passfd: speed up configure and drop unused code
32716         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
32717         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
32718         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
32719         Instead of probing at configure for unix_scm_rights_bsd44_way,
32720         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
32721         check to a struct member probe.
32722         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
32723         (sendfd, recvfd): Update preprocessor checks.
32724         * modules/passfd (Files): Reflect rename, and drop unused file.
32725         (Depends-on): Drop unused dependency.
32727         passfd: allow compilation on mingw
32728         * modules/sys_socket (Depends-on): Add sys_uio.
32729         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
32730         iovec and a minimal struct msghdr.
32731         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
32732         * tests/test-sys_socket.c (main): Enhance test.
32733         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
32734         guaranteed to provide what we need.
32735         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
32736         * modules/passfd-tests (Depends-on): Add sys_wait.
32737         * tests/test-passfd.c (main): Skip test on mingw, for now.
32738         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
32739         partial 'struct msghdr' implementation.
32741         sys_uio: new module
32742         * modules/sys_uio: New module.
32743         * modules/sys_uio-tests: Likewise.
32744         * lib/sys_uio.in.h: New file.
32745         * m4/sys_uio_h.m4: Likewise.
32746         * tests/test-sys_uio.c: Likewise.
32747         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
32748         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
32750 2011-04-20  Jim Meyering  <meyering@redhat.com>
32752         useless-if-before-free: avoid false-positive
32753         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
32754         disjunct so that it too requires a terminating ";".  Without that,
32755         this script would identify as useless one statement from gcc that
32756         was not:
32757           if (aligned_ptr)
32758             free (((void **) aligned_ptr) [-1]);
32760 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
32762         doc: update users.txt.
32763         * users.txt: Add barcode.
32765 2011-04-19  Bruno Haible  <bruno@clisp.org>
32767         ioctl: Remove link dependency on native Windows.
32768         * lib/fd-hook.h: Renamed from lib/close-hook.h.
32769         (gl_close_fn, gl_ioctl_fn): New types.
32770         (struct fd_hook): Renamed from struct close_hook. Change type of
32771         private_close_fn field. Add private_ioctl_fn field.
32772         (close_hook_fn): Add parameter for primary close method.
32773         (execute_close_hooks, execute_all_close_hooks): Likewise.
32774         (ioctl_hook_fn): New type.
32775         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
32776         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
32777         argument.
32778         (unregister_fd_hook): Renamed from unregister_close_hook.
32779         * lib/fd-hook.c: Renamed from lib/close-hook.c.
32780         Don't include <unistd.h>.
32781         (close): Remove undef.
32782         (anchor): Update.
32783         (execute_close_hooks): Add argument for primary close method.
32784         (execute_all_close_hooks): Likewise.
32785         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
32786         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
32787         argument. Allow each argument to be NULL.
32788         (unregister_fd_hook): Renamed from unregister_close_hook.
32789         * lib/close.c (rpl_close): Pass 'close' function pointer to
32790         execute_all_close_hooks.
32791         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
32792         (primary_ioctl): New function.
32793         (ioctl): Don't call ioctlsocket here. Instead, call
32794         execute_all_ioctl_hooks.
32795         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
32796         close method.
32797         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
32798         (fd_sockets_hook): Renamed from close_sockets_hook.
32799         (gl_sockets_startup, gl_sockets_cleanup): Update.
32800         * modules/fd-hook: Renamed from modules/close-hook. Update.
32801         * modules/close (Depends-on): Add fd-hook, remove close-hook.
32802         * modules/sockets (Depends-on): Likewise.
32803         * modules/ioctl (Depends-on): Add fd-hook.
32804         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
32805         GNULIB_SOCKET.
32807 2011-04-19  Bruno Haible  <bruno@clisp.org>
32809         Move the support of O_NONBLOCK in open() to the 'open' module.
32810         * modules/nonblocking (Depends-on): Remove 'open'.
32811         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
32812         gl_cv_have_open_O_NONBLOCK.
32813         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
32814         O_NONBLOCK support.
32815         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
32817 2011-04-17  Bruno Haible  <bruno@clisp.org>
32819         pipe2: Simplify code.
32820         * lib/pipe2.c (pipe2): Reduce code duplication.
32822 2011-04-17  Bruno Haible  <bruno@clisp.org>
32824         nonblocking: Add comment.
32825         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
32827 2011-04-17  Bruno Haible  <bruno@clisp.org>
32829         nonblocking: Add tests for sockets.
32830         * tests/test-nonblocking-socket.sh: New file.
32831         * tests/test-nonblocking-socket-main.c: New file.
32832         * tests/test-nonblocking-socket-child.c: New file.
32833         * tests/test-nonblocking-socket.h: New file.
32834         * tests/socket-server.h: New file.
32835         * tests/socket-client.h: New file.
32836         * modules/nonblocking-socket-tests: New file.
32837         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
32839 2011-04-17  Bruno Haible  <bruno@clisp.org>
32841         nonblocking: Add tests for pipes.
32842         * tests/test-nonblocking-pipe.sh: New file.
32843         * tests/test-nonblocking-pipe-main.c: New file.
32844         * tests/test-nonblocking-pipe-child.c: New file.
32845         * tests/test-nonblocking-pipe.h: New file.
32846         * tests/test-nonblocking-writer.h: New file.
32847         * tests/test-nonblocking-reader.h: New file.
32848         * tests/test-nonblocking-misc.h: New file.
32849         * modules/nonblocking-pipe-tests: New file.
32850         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
32852 2011-04-16  Bruno Haible  <bruno@clisp.org>
32854         gettext: Clarify the needed programmer actions.
32855         * modules/gettext (Notice): New field.
32856         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
32858 2011-04-16  Bruno Haible  <bruno@clisp.org>
32860         strchrnul: Tweak last commit.
32861         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
32862         bug.
32863         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
32864         as in _GL_FUNCDECL_SYS.
32865         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
32866         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
32868 2011-04-15  Eric Blake  <eblake@redhat.com>
32870         strchrnul: work around cygwin bug
32871         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
32872         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
32873         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
32874         * modules/string (Makefile.am): Substitute it.
32875         * lib/string.in.h (strchrnul): Use it.
32877 2011-04-15  Bruno Haible  <bruno@clisp.org>
32879         Don't require lib/stdio-write.c when only module 'stdio' is used.
32880         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
32881         invocation.
32882         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
32884 2011-04-14  Bruno Haible  <bruno@clisp.org>
32886         Support non-blocking pipe I/O in read() on native Windows.
32887         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
32888         (read): New declaration.
32889         * lib/read.c: New file.
32890         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
32891         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
32892         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
32893         vscanf): New declarations.
32894         * lib/stdio-read.c: New file.
32895         * m4/read.m4: New file.
32896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
32897         REPLACE_READ.
32898         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
32899         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
32900         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
32901         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
32902         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
32903         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
32904         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
32905         * modules/read: New file.
32906         * modules/nonblocking (Files): Add lib/stdio-read.c.
32907         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
32908         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
32909         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
32910         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
32911         * modules/pread (Depends-on): Add read.
32912         * modules/safe-read (Depends-on): Likewise.
32913         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
32914         gets, scanf, vfscanf, vscanf): Verify signatures.
32915         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
32916         problem with non-blocking pipes.
32917         * doc/posix-functions/fgetc.texi: Likewise.
32918         * doc/posix-functions/fgets.texi: Likewise.
32919         * doc/posix-functions/fread.texi: Likewise.
32920         * doc/posix-functions/fscanf.texi: Likewise.
32921         * doc/posix-functions/getc.texi: Likewise.
32922         * doc/posix-functions/getchar.texi: Likewise.
32923         * doc/posix-functions/gets.texi: Likewise.
32924         * doc/posix-functions/scanf.texi: Likewise.
32925         * doc/posix-functions/vfscanf.texi: Likewise.
32926         * doc/posix-functions/vscanf.texi: Likewise.
32928 2011-04-14  Bruno Haible  <bruno@clisp.org>
32930         Support non-blocking pipe I/O in write() on native Windows.
32931         * lib/write.c (rpl_write): Split a write request that failed merely
32932         because the byte count was larger than the pipe buffer's size.
32933         * doc/posix-functions/write.texi: Mention the problem with large byte
32934         counts.
32936 2011-04-14  Bruno Haible  <bruno@clisp.org>
32938         wchar: Ensure that wchar_t gets defined on uClibc.
32939         * lib/wchar.in.h: On uClibc, include <stddef.h>.
32940         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
32942 2011-04-13  Bruno Haible  <bruno@clisp.org>
32944         safe-write, full-read: Avoid unnecessary compilation units.
32945         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
32946         (Depends-on): Remove safe-read. Add ssize_t.
32947         * modules/full-read (Files): Add lib/full-write.c.
32948         (Depends-on): Add full-write.
32950 2011-04-13  Bruno Haible  <bruno@clisp.org>
32952         Support non-blocking pipe I/O and SIGPIPE in pwrite().
32953         * modules/pwrite (Depends-on): Add 'write'.
32955 2011-04-13  Bruno Haible  <bruno@clisp.org>
32957         Support non-blocking pipe I/O in write() on native Windows.
32958         * lib/unistd.in.h (write): Enable replacement also if
32959         GNULIB_UNISTD_H_NONBLOCKING is 1.
32960         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
32961         (rpl_write): When failing to write on a non-blocking pipe, change
32962         errno from ENOSPC to EAGAIN.
32963         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
32964         putchar, puts, vfprintf, vprintf): Enable replacement also if
32965         GNULIB_STDIO_H_NONBLOCKING is 1.
32966         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
32967         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
32968         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
32969         CALL_WITH_SIGPIPE_EMULATION.
32970         (CALL_WITH_SIGPIPE_EMULATION): Use them.
32971         * m4/nonblocking.m4: New file.
32972         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
32973         for non-blocking I/O support.
32974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32975         GNULIB_UNISTD_H_NONBLOCKING.
32976         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
32977         required for non-blocking I/O support.
32978         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
32979         * modules/nonblocking (Files): Add m4/nonblocking.m4,
32980         lib/stdio-write.c, m4/asm-underscore.m4.
32981         (Depends-on): Add stdio, unistd.
32982         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
32983         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
32984         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
32985         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
32986         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
32987         problem with non-blocking pipes.
32988         * doc/posix-functions/fputc.texi: Likewise.
32989         * doc/posix-functions/fputs.texi: Likewise.
32990         * doc/posix-functions/fwrite.texi: Likewise.
32991         * doc/posix-functions/printf.texi: Likewise.
32992         * doc/posix-functions/putc.texi: Likewise.
32993         * doc/posix-functions/putchar.texi: Likewise.
32994         * doc/posix-functions/puts.texi: Likewise.
32995         * doc/posix-functions/vfprintf.texi: Likewise.
32996         * doc/posix-functions/vprintf.texi: Likewise.
32997         * doc/posix-functions/write.texi: Likewise.
32999 2011-04-10  Jim Meyering  <meyering@redhat.com>
33001         maint.mk: prohibit doubled words
33002         Detect them also when they're separated by a newline.
33003         There are 3 ways to customize it:
33004           - disable the test on a per file basis, as usual with rules using
33005             $(VC_LIST_EXCEPT)
33006           - replace the default doubled-word-selecting regexp (affects all files)
33007           - ignore a particular file-vs-doubled-word match
33008         I nearly used that last one to ignore the "is is" match in
33009         coreutils' NEWS file, since the text was "ls -is is ..."
33010         To do that, I would have added this line to cfg.mk:
33011           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
33012         but it would have ignored any "is is" match in NEWS.
33013         Low probability, but still...
33014         Instead, I changed the text, slightly:
33015           -  ls -is is now consistent with ls -lis in ignoring values returned
33016           +  "ls -is" is now consistent with ls -lis in ignoring values returned
33017         * top/maint.mk (prohibit_double_word_RE_): Provide default.
33018         (prohibit_doubled_word_): Define.
33019         (sc_prohibit_doubled_word): New rule.
33020         (sc_prohibit_the_the): Remove.  Subsumed by the above.
33022 2011-04-10  Jim Meyering  <meyering@redhat.com>
33024         maint: fix doubled-word typo in comment
33025         * m4/gethostname.m4: s/is is/it is/
33026         * m4/getdomainname.m4: Likewise.
33028 2011-04-10  Jim Meyering  <meyering@redhat.com>
33030         maint: remove doubled word: s/it it/it/
33031         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
33033 2011-04-10  Jim Meyering  <meyering@redhat.com>
33035         maint.mk: remove useless semicolon and backslash
33036         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
33037         semicolon and backslash.
33039 2011-04-10  Bruno Haible  <bruno@clisp.org>
33041         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
33042         * modules/stdint-tests (Depends-on): Add wchar.
33044 2011-04-10  Jim Meyering  <meyering@redhat.com>
33046         maint: remove doubled words in comments, e.g., s/a a/a/
33047         * lib/strptime.c (day_of_the_week): s/the the/the/
33048         * tests/test-chown.h (test_chown): s/a a/a/
33050         test-chown.h: correct a cast
33051         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
33052         when the destination is a stat.st_gid.
33054 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
33056         getaddrinfo: Fix test for sa_len member.
33057         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
33058         include <sys/types.h> before <sys/socket.h>.
33060 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33062         maint: change "can not" to "cannot"
33063         * doc/posix-functions/iconv.texi (iconv): This one crossed line
33064         boundaries.
33066 2011-04-09  Jim Meyering  <meyering@redhat.com>
33068         maint: change "a a" to "a"
33069         * tests/test-lchown.h (test_lchown): s/a a/a/
33071         maint.mk: prohibit \<the the\>
33072         * top/maint.mk (sc_prohibit_the_the): New rule.
33074         maint: fix "the the" in comment
33075         * lib/count-one-bits.h: s/the the/the/
33077         maint: change "can not" to "cannot"
33078         But do not change the occurrences in maintain.texi or in
33079         build-aux/po/Makefile.in.in, which I presume comes from gettext.
33080         * doc/gnulib-tool.texi: s/can not/cannot/
33081         * doc/posix-functions/accept.texi (accept): Likewise.
33082         * doc/posix-functions/socket.texi (socket): Likewise.
33083         * lib/mbrtowc.c: Likewise.
33085         maint.mk: prohibit use of "can not"
33086         * top/maint.mk (sc_prohibit_can_not): New rule.
33087         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
33089 2011-04-09  Bruno Haible  <bruno@clisp.org>
33091         careadlinkat: Guard against misuse of careadlinkatcwd.
33092         * lib/careadlinkat.c: Include <stdlib.h>.
33093         (careadlinkatcwd): Check that the fd argument is as expected.
33095 2011-04-09  Bruno Haible  <bruno@clisp.org>
33097         careadlinkat: Use common coding style.
33098         * lib/careadlinkat.c: Move gnulib includes after system includes.
33100 2011-04-09  Bruno Haible  <bruno@clisp.org>
33102         careadlinkat: Clarify specification.
33103         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
33104         (careadlinkatcwd): Add comment.
33105         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
33107 2011-04-09  Bruno Haible  <bruno@clisp.org>
33109         areadlinkat: Avoid link error on many platforms.
33110         * modules/areadlinkat (Depends-on): Add areadlink.
33112 2011-04-09  Bruno Haible  <bruno@clisp.org>
33114         allocator, careadlinkat: Fix double-inclusion guard.
33115         * lib/allocator.h: Fix double-inclusion guard.
33116         * lib/careadlinkat.h: Likewise.
33118 2011-04-09  Bruno Haible  <bruno@clisp.org>
33120         relocatable-prog-wrapper: Update after module 'areadlink' changed.
33121         * lib/relocwrapper.c: Update dependencies hierarchy.
33122         * build-aux/install-reloc: Update list of files to be compiled.
33123         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
33124         lib/allocator.[hc].
33126 2011-04-08  Eric Blake  <eblake@redhat.com>
33128         strftime: silence gnulib-tool warning
33129         * modules/strftime-tests (Depends-on): Drop automatic dependency.
33131 2011-04-08  Bruno Haible  <bruno@clisp.org>
33133         verify: Fix syntax error with GCC 4.6 in C++ mode.
33134         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
33135         (HAVE_STATIC_ASSERT): New macro.
33136         (verify_true, verify): Use 'static_assert' if it is supported and
33137         '_Static_assert' is not supported.
33139 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
33141         allocator: New module.
33142         * modules/allocator, lib/allocator.c: New files.
33143         * lib/allocator.h (stdlib_allocator): New decl.
33144         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
33145         Remove.  Do not include <stdlib.h>.
33146         (careadlinkat): Use stdlib_allocator instead of rolling our own.
33147         * modules/careadlinkat (Files): Remove lib/allocator.h.
33148         (Depends-on): Add allocator.
33150         stdlib: let modules use system malloc, realloc
33151         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
33152         if !_GL_USE_STDLIB_ALLOC.
33153         (malloc, realloc): Limit this change to a smaller scope.
33155         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
33156         (malloc, realloc): Don't #undef; no longer needed.
33157         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
33158         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
33159         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
33160         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
33161         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
33162         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
33163         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
33164         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
33166         careadlinkat: rename members to avoid problem
33167         * lib/allocator.h (struct allocator): Rename members from
33168         malloc/realloc to allocate/reallocate, to avoid problems if malloc
33169         and realloc are #define'd.  Reported by Eric Blake in
33170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
33171         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
33173 2011-04-08  Eric Blake  <eblake@redhat.com>
33175         nonblocking: reduce dependency
33176         * tests/test-nonblocking.c: Only test sockets when in use.
33177         * modules/nonblocking-tests (Depends-on): Drop socket.
33178         (Makefile.am): Link even if sockets are not present.
33179         * modules/pipe2-tests (Makefile.am): Likewise.
33180         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
33182         pipe2: fix O_NONBLOCK support on mingw
33183         * modules/pipe2 (Depends-on): Add nonblocking.
33184         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
33185         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
33186         * tests/test-nonblocking.c (main): Likewise.
33187         * modules/pipe2-tests (Makefile.am): Avoid link failure.
33189         fcntl-h: fix O_ACCMODE on cygwin
33190         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
33191         * lib/fcntl.in.h (O_ACCMODE): Fix it.
33193         pipe-filter: drop O_NONBLOCK workarounds
33194         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
33195         * modules/pipe-filter-ii (Depends-on): Likewise.
33196         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
33198         nonblocking: provide O_NONBLOCK for mingw
33199         * modules/nonblocking (Depends-on): Add open.
33200         (configure.ac): Set new witness macro.
33201         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
33202         * modules/fcntl-h (Makefile.am): Substitute it.
33203         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
33204         nonblocking module is in use.
33205         * lib/nonblocking.c: Adjust portability test.
33206         * lib/open.c (open): Don't let native open see gnulib flag.
33207         * tests/test-fcntl-h.c (main): Enhance test.
33208         * tests/test-open.h (test_open): Likewise.
33209         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
33211         careadlinkat: fix compilation error on mingw
33212         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
33213         within struct allocator.
33215 2011-04-06  Eric Blake  <eblake@redhat.com>
33217         binary-io: relicense under LGPLv2+
33218         * modules/binary-io (License): Relax to LGPLv2+.
33219         Requested for libvirt, and required by pipe2.
33221 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
33223         verify: use _Static_assert if available
33224         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
33225         (verify_true, verify): Use it if available.  This generates better
33226         diagnostics with GCC 4.6.0 and later.
33228 2011-04-05  Bruno Haible  <bruno@clisp.org>
33230         Remove leftover generated .h files after config.status changed.
33232         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
33233         GL_GENERATE_ALLOCA_H.
33234         * modules/alloca-opt (Makefile.am): Remove alloca.h if
33235         GL_GENERATE_ALLOCA_H evaluates to false.
33237         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
33238         GL_GENERATE_ARGZ_H.
33239         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
33240         evaluates to false.
33242         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
33243         GL_GENERATE_BYTESWAP_H.
33244         * modules/byteswap (Makefile.am): Remove byteswap.h if
33245         GL_GENERATE_BYTESWAP_H evaluates to false.
33247         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
33248         GL_GENERATE_ERRNO_H.
33249         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
33250         evaluates to false.
33252         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
33253         GL_GENERATE_FLOAT_H.
33254         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
33255         evaluates to false.
33257         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
33258         GL_GENERATE_FNMATCH_H.
33259         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
33260         GL_GENERATE_FNMATCH_H evaluates to false.
33262         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
33263         GL_GENERATE_GLOB_H.
33264         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
33265         evaluates to false.
33267         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
33268         automake conditional GL_GENERATE_ICONV_H.
33269         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
33270         evaluates to false.
33272         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
33273         GL_GENERATE_NETINET_IN_H.
33274         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
33275         GL_GENERATE_NETINET_IN_H evaluates to false.
33277         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
33278         conditional GL_GENERATE_PTHREAD_H.
33279         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
33280         * modules/pthread (Makefile.am): Remove pthread.h if
33281         GL_GENERATE_PTHREAD_H evaluates to false.
33283         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
33284         GL_GENERATE_SCHED_H.
33285         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
33286         evaluates to false.
33288         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
33289         conditional GL_GENERATE_SELINUX_CONTEXT_H.
33290         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
33291         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
33293         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
33294         GL_GENERATE_STDARG_H.
33295         * modules/stdarg (Makefile.am): Remove stdarg.h if
33296         GL_GENERATE_STDARG_H evaluates to false.
33298         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
33299         GL_GENERATE_STDBOOL_H.
33300         * modules/stdbool (Makefile.am): Remove stdbool.h if
33301         GL_GENERATE_STDBOOL_H evaluates to false.
33303         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
33304         conditional GL_GENERATE_STDDEF_H.
33305         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
33306         * modules/stddef (Makefile.am): Remove stddef.h if
33307         GL_GENERATE_STDDEF_H evaluates to false.
33309         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
33310         GL_GENERATE_STDINT_H.
33311         * modules/stdint (Makefile.am): Remove stdint.h if
33312         GL_GENERATE_STDINT_H evaluates to false.
33314         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
33315         GL_GENERATE_SYSEXITS_H.
33316         * modules/sysexits (Makefile.am): Remove sysexits.h if
33317         GL_GENERATE_SYSEXITS_H evaluates to false.
33319         Reported by Karl Berry and Ralf Wildenhues.
33321 2011-04-05  Bruno Haible  <bruno@clisp.org>
33323         Ensure to rebuild generated .h files when config.status has changed.
33324         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
33325         config.status.
33326         * modules/ctype (Makefile.am): Likewise.
33327         * modules/dirent (Makefile.am): Likewise.
33328         * modules/errno (Makefile.am): Likewise.
33329         * modules/fcntl-h (Makefile.am): Likewise.
33330         * modules/float (Makefile.am): Likewise.
33331         * modules/getopt-posix (Makefile.am): Likewise.
33332         * modules/glob (Makefile.am): Likewise.
33333         * modules/iconv-h (Makefile.am): Likewise.
33334         * modules/inttypes (Makefile.am): Likewise.
33335         * modules/langinfo (Makefile.am): Likewise.
33336         * modules/locale (Makefile.am): Likewise.
33337         * modules/math (Makefile.am): Likewise.
33338         * modules/netdb (Makefile.am): Likewise.
33339         * modules/netinet_in (Makefile.am): Likewise.
33340         * modules/poll-h (Makefile.am): Likewise.
33341         * modules/pthread (Makefile.am): Likewise.
33342         * modules/pty (Makefile.am): Likewise.
33343         * modules/sched (Makefile.am): Likewise.
33344         * modules/search (Makefile.am): Likewise.
33345         * modules/selinux-h (Makefile.am): Likewise.
33346         * modules/signal (Makefile.am): Likewise.
33347         * modules/spawn (Makefile.am): Likewise.
33348         * modules/stdarg (Makefile.am): Likewise.
33349         * modules/stdbool (Makefile.am): Likewise.
33350         * modules/stddef (Makefile.am): Likewise.
33351         * modules/stdint (Makefile.am): Likewise.
33352         * modules/stdio (Makefile.am): Likewise.
33353         * modules/stdlib (Makefile.am): Likewise.
33354         * modules/string (Makefile.am): Likewise.
33355         * modules/strings (Makefile.am): Likewise.
33356         * modules/sys_file (Makefile.am): Likewise.
33357         * modules/sys_ioctl (Makefile.am): Likewise.
33358         * modules/sys_select (Makefile.am): Likewise.
33359         * modules/sys_socket (Makefile.am): Likewise.
33360         * modules/sys_stat (Makefile.am): Likewise.
33361         * modules/sys_time (Makefile.am): Likewise.
33362         * modules/sys_times (Makefile.am): Likewise.
33363         * modules/sys_utsname (Makefile.am): Likewise.
33364         * modules/sys_wait (Makefile.am): Likewise.
33365         * modules/sysexits (Makefile.am): Likewise.
33366         * modules/termios (Makefile.am): Likewise.
33367         * modules/time (Makefile.am): Likewise.
33368         * modules/unistd (Makefile.am): Likewise.
33369         * modules/wchar (Makefile.am): Likewise.
33370         * modules/wctype-h (Makefile.am): Likewise.
33371         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
33373 2011-04-05  Bruno Haible  <bruno@clisp.org>
33375         pipe2: Relicense under LGPLv2+.
33376         * modules/pipe2 (License): Change to LGPLv2+.
33377         Requested by Eric Blake, for libvirt.
33379 2011-04-05  Bruce Korb  <bkorb@gnu.org>
33381         bootstrap: compute gnulib_extra_files after updating build_aux
33382         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
33383         change build_aux or also supply gnulib_extra_files.  Handle correctly.
33385 2011-04-05  Eric Blake  <eblake@redhat.com>
33387         bootstrap: preserve git whitelist item sorting
33388         * build-aux/bootstrap (sort_patterns): New function.
33389         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
33391 2011-04-05  Simon Josefsson  <simon@josefsson.org>
33393         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
33394         sc_space_tab check.
33396 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
33398         areadlink, areadlinkat: rewrite in terms of careadlinkat
33399         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
33400         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
33401         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
33402         (malloc, realloc): Remove #undefs.
33403         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
33404         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
33405         readlink, ssize_t, stdint, unistd.
33406         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
33407         areadlink, stdint.
33409         careadlinkat: new module
33410         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
33411         * modules/careadlinkat: New files, written by me with
33412         a review and feedback from Ben Pfaff in
33413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
33415 2011-04-01  Bruno Haible  <bruno@clisp.org>
33417         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
33418         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
33419         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
33420         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
33421         Reported by Bruce Korb <bruce.korb@gmail.com>.
33423 2011-04-01  Bruno Haible  <bruno@clisp.org>
33425         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
33426         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
33427         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
33428         * modules/wcpcpy (Depends-on): Add extensions.
33429         * modules/wcpncpy (Depends-on): Likewise.
33430         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
33431         systems.
33432         * doc/posix-functions/wcpncpy.texi: Likewise.
33433         * doc/posix-functions/wcwidth.texi: Likewise.
33435 2011-03-31  Eric Blake  <eblake@redhat.com>
33437         nonblocking: fix mingw test failures
33438         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
33439         non-blocking flag on regular file.
33440         (get_nonblocking_flag): Set errno on invalid fd.
33441         * tests/test-nonblocking.c (main): Avoid test failure on
33442         directories if fchdir is not active.
33443         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
33445 2011-03-31  Bruno Haible  <bruno@clisp.org>
33447         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
33448         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
33449         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
33450         Reported by Simon Josefsson <simon@josefsson.org>.
33452 2011-03-31  Bruno Haible  <bruno@clisp.org>
33453         and Eric Blake  <eblake@redhat.com>
33455         nonblocking: new module
33456         * modules/nonblocking: New module.
33457         * modules/nonblocking-tests: Likewise.
33458         * lib/nonblocking.h: New file.
33459         * lib/nonblocking.c: Likewise.
33460         * tests/test-nonblocking.c: New test.
33461         * lib/ioctl.c (ioctl) [mingw]: Update comment.
33463 2011-03-30  Bruno Haible  <bruno@clisp.org>
33465         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
33466         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
33467         instead of 'printf' format for GCC >= 4.4.
33468         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
33469         (fprintf, printf, vfprintf, vprintf): Declare with
33470         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
33471         the system's vfprintf() function.
33472         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
33474 2011-03-30  Eric Blake  <eblake@redhat.com>
33476         passfd: fix scoping bug
33477         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
33478         before sendmsg/recvmsg.
33480         passfd: standardize coding conventions
33481         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
33482         can be learned at compile time.
33483         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
33484         ifdefs.
33485         (sendfd, recvfd): Follow gnulib code conventions.
33487         passfd: fix incorrect sendmsg arguments
33488         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
33489         incorrect msg_controllen value.
33490         * modules/passfd-tests (Depends-on): Check for alarm.
33491         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
33492         Reported by Bastien ROUCARIES.
33494 2011-03-30  Bruno Haible  <bruno@clisp.org>
33496         c-strcasestr: Relicense under LGPLv2+.
33497         * modules/c-strcasestr (License): Change to LGPLv2+.
33498         Requested by Eric Blake, for libvirt.
33500 2011-03-30  Simon Josefsson  <simon@josefsson.org>
33502         * users.txt: Add libidn2.  Fix libtasn1 link.
33504 2011-03-30  Jim Meyering  <meyering@redhat.com>
33506         tests: readlink* ("",... fails with EINVAL on newer kernels
33507         readlink and readlinkat have typically failed with ENOENT for
33508         the invalid, empty file name,  "".  However, with the advent
33509         of linux-2.6.39, they fail with EINVAL.
33510         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
33511         when operating on the empty file name.
33512         * tests/test-readlink.h (test_readlink): Likewise.
33514 2011-03-29  Bruno Haible  <bruno@clisp.org>
33516         Relicense some modules under LGPLv2+, for libidn2.
33517         * modules/array-mergesort (License): Change to LGPLv2+.
33518         * modules/c-strcaseeq (License): Likewise.
33519         * modules/striconveh (License): Likewise.
33520         * modules/striconveha (License): Likewise.
33521         * modules/uniconv/base (License): Likewise.
33522         * modules/uniconv/u8-conv-from-enc (License): Likewise.
33523         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
33524         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
33525         * modules/unictype/base (License): Likewise.
33526         * modules/unictype/bidiclass-of (License): Likewise.
33527         * modules/unictype/category-M (License): Likewise.
33528         * modules/unictype/category-none (License): Likewise.
33529         * modules/unictype/category-of (License): Likewise.
33530         * modules/unictype/category-test (License): Likewise.
33531         * modules/unictype/category-test-withtable (License): Likewise.
33532         * modules/unictype/combining-class (License): Likewise.
33533         * modules/unictype/joiningtype-of (License): Likewise.
33534         * modules/unictype/scripts (License): Likewise.
33535         * modules/uninorm/base (License): Likewise.
33536         * modules/uninorm/canonical-decomposition (License): Likewise.
33537         * modules/uninorm/composition (License): Likewise.
33538         * modules/uninorm/decompose-internal (License): Likewise.
33539         * modules/uninorm/decomposition-table (License): Likewise.
33540         * modules/uninorm/nfc (License): Likewise.
33541         * modules/uninorm/nfd (License): Likewise.
33542         * modules/uninorm/u32-normalize (License): Likewise.
33543         * modules/unistr/base (License): Likewise.
33544         * modules/unistr/u32-cpy (License): Likewise.
33545         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
33546         * modules/unistr/u32-to-u8 (License): Likewise.
33547         * modules/unistr/u32-uctomb (License): Likewise.
33548         * modules/unistr/u8-check (License): Likewise.
33549         * modules/unistr/u8-mblen (License): Likewise.
33550         * modules/unistr/u8-mbtouc (License): Likewise.
33551         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
33552         * modules/unistr/u8-mbtoucr (License): Likewise.
33553         * modules/unistr/u8-prev (License): Likewise.
33554         * modules/unistr/u8-strlen (License): Likewise.
33555         * modules/unistr/u8-to-u32 (License): Likewise.
33556         * modules/unistr/u8-uctomb (License): Likewise.
33557         * modules/unitypes (License): Likewise.
33558         Requested by Simon Josefsson.
33560 2011-03-29  Simon Josefsson  <simon@josefsson.org>
33562         lib-symbol-visibility: Add a notice.
33563         * modules/lib-symbol-visibility (Notice): New field.
33565 2011-03-29  Bruno Haible  <bruno@clisp.org>
33567         getaddrinfo: Doc fix.
33568         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
33569         section "fixed in Gnulib".
33571 2011-03-28  Simon Josefsson  <simon@josefsson.org>
33573         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
33574         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
33576 2011-03-26  Bruno Haible  <bruno@clisp.org>
33578         unictype/property-byname: Reduce the number of load-time relocations.
33579         * lib/unictype/pr_byname.c: Include <stdlib.h>.
33580         (UC_PROPERTY_INDEX_*): New enumeration values.
33581         (uc_property_byname): Convert an index from the lookup table to an
33582         uc_property_t.
33583         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
33584         values.
33586 2011-03-26  Bruno Haible  <bruno@clisp.org>
33588         unictype/property-byname: Allow omitted word separators and aliases.
33589         * lib/unictype/pr_byname.gperf: Add property names without word
33590         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
33591         for 'space'.
33593 2011-03-26  Bruno Haible  <bruno@clisp.org>
33595         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
33596         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
33597         also hyphens to space.
33598         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
33599         without spaces.
33600         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
33602 2011-03-26  Bruno Haible  <bruno@clisp.org>
33604         unictype/joiningtype-byname: Recognize long names as well.
33605         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
33606         a long name.
33607         * lib/unictype/joiningtype_byname.c: Include <string.h>,
33608         unictype/joiningtype_byname.h.
33609         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
33610         * lib/unictype/joiningtype_byname.gperf: New file.
33611         * modules/unictype/joiningtype-byname (Files): Add
33612         lib/unictype/joiningtype_byname.gperf.
33613         (Depends-on): Add gperf.
33614         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
33615         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
33616         long names.
33618         Tests for module 'unictype/joiningtype-longname'.
33619         * modules/unictype/joiningtype-longname-tests: New file.
33620         * tests/unictype/test-joiningtype_longname.c: New file.
33622         New module 'unictype/joiningtype-longname'.
33623         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
33624         * lib/unictype/joiningtype_longname.c: New file.
33625         * modules/unictype/joiningtype-longname: New file.
33626         * modules/unictype/joiningtype-all (Depends-on): Add
33627         unictype/joiningtype-longname.
33629 2011-03-26  Bruno Haible  <bruno@clisp.org>
33631         unictype/bidiclass-byname: Recognize long names as well.
33632         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
33633         name.
33634         * lib/unictype/bidi_byname.c: Include <string.h>,
33635         unictype/bidi_byname.h.
33636         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
33637         * lib/unictype/bidi_byname.gperf: New file.
33638         * modules/unictype/bidiclass-byname (Files): Add
33639         lib/unictype/bidi_byname.gperf.
33640         (Depends-on): Add gperf.
33641         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
33642         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
33643         long names.
33645         Tests for module 'unictype/bidiclass-longname'.
33646         * modules/unictype/bidiclass-longname-tests: New file.
33647         * tests/unictype/test-bidi_longname.c: New file.
33649         New module 'unictype/bidiclass-longname'.
33650         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
33651         * lib/unictype/bidi_longname.c: New file.
33652         * modules/unictype/bidiclass-longname: New file.
33653         * modules/unictype/bidiclass-all (Depends-on): Add
33654         unictype/bidiclass-longname.
33656 2011-03-26  Bruno Haible  <bruno@clisp.org>
33658         unictype/bidi*: Rename modules.
33659         * modules/unictype/bidiclass-all: Renamed from
33660         modules/unictype/bidicategory-all.
33661         * modules/unictype/bidiclass-name: Renamed from
33662         modules/unictype/bidiclass-name.
33663         (Description): Update.
33664         * modules/unictype/bidiclass-name-tests: Renamed from
33665         modules/unictype/bidicategory-name-tests.
33666         * modules/unictype/bidiclass-byname: Renamed from
33667         modules/unictype/bidicategory-byname.
33668         (Description): Update.
33669         * modules/unictype/bidiclass-byname-tests: Renamed from
33670         modules/unictype/bidicategory-byname-tests.
33671         * modules/unictype/bidiclass-of: Renamed from
33672         modules/unictype/bidicategory-of.
33673         (Description): Update.
33674         * modules/unictype/bidiclass-of-tests: Renamed from
33675         modules/unictype/bidicategory-of-tests.
33676         * modules/unictype/bidiclass-test: Renamed from
33677         modules/unictype/bidicategory-test.
33678         (Description): Update.
33679         * modules/unictype/bidiclass-test-tests: Renamed from
33680         modules/unictype/bidicategory-test-tests.
33681         * modules/unictype/bidicategory-all: New file, a simple redirection.
33682         * modules/unictype/bidicategory-name: Likewise.
33683         * modules/unictype/bidicategory-byname: Likewise.
33684         * modules/unictype/bidicategory-of: Likewise.
33685         * modules/unictype/bidicategory-test: Likewise.
33686         * modules/unictype/property-bidi-* (Dependencies): Update.
33687         * lib/unictype/bidi_*.c: Update comment.
33689 2011-03-26  Bruno Haible  <bruno@clisp.org>
33691         unictype/bidi*: Rename functions, part 2.
33692         * modules/unictype/bidicategory-name (configure.ac): Update required
33693         libunistring version.
33694         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
33696 2011-03-25  Bruno Haible  <bruno@clisp.org>
33698         New module 'unictype/combining-class-all'.
33699         * modules/unictype/combining-class-all: New file.
33701         Tests for module 'unictype/combining-class-byname'.
33702         * modules/unictype/combining-class-byname-tests: New file.
33703         * tests/unictype/test-combiningclass_byname.c: New file.
33705         New module 'unictype/combining-class-byname'.
33706         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
33707         * lib/unictype/combiningclass_byname.c: New file.
33708         * lib/unictype/combiningclass_byname.gperf: New file.
33709         * modules/unictype/combining-class-byname: New file.
33711         Tests for module 'unictype/combining-class-longname'.
33712         * modules/unictype/combining-class-longname-tests: New file.
33713         * tests/unictype/test-combiningclass_longname.c: New file.
33715         New module 'unictype/combining-class-longname'.
33716         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
33717         * lib/unictype/combiningclass_longname.c: New file.
33718         * modules/unictype/combining-class-longname: New file.
33720         Tests for module 'unictype/combining-class-name'.
33721         * modules/unictype/combining-class-name-tests: New file.
33722         * tests/unictype/test-combiningclass_name.c: New file.
33724         New module 'unictype/combining-class-name'.
33725         * lib/unictype.in.h (uc_combining_class_name): New declaration.
33726         * lib/unictype/combiningclass_name.c: New file.
33727         * modules/unictype/combining-class-name: New file.
33729 2011-03-25  Bruno Haible  <bruno@clisp.org>
33731         unictype/combining-class: Rename source files.
33732         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
33733         of unictype/combining.h.
33734         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
33735         Update.
33736         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
33737         * modules/unictype/combining-class (Description): Fix.
33738         (Files, Makefile.am): Update.
33739         * tests/unictype/test-combiningclass.c: Renamed from
33740         tests/unictype/test-combining.c.
33741         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
33743 2011-03-25  Bruno Haible  <bruno@clisp.org>
33745         unictype: Update list of canonical combining classes.
33746         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
33748 2011-03-25  Bruno Haible  <bruno@clisp.org>
33750         unictype/category-byname: Recognize long names as well.
33751         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
33752         a long name.
33753         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
33754         unictype/categ_byname.h.
33755         (UC_CATEGORY_INDEX_*): New enumeration values.
33756         (uc_general_category_byname): Use uc_general_category_lookup and
33757         convert from index to value.
33758         * lib/unictype/categ_byname.gperf: New file.
33759         * modules/unictype/category-byname (Files): Add
33760         lib/unictype/categ_byname.gperf.
33761         (Depends-on): Add gperf.
33762         (Makefile.am): Add rule for generating unictype/categ_byname.h.
33763         * tests/unictype/test-categ_byname.c (main): Test the recognition of
33764         long names.
33766         Tests for module 'unictype/category-longname'.
33767         * modules/unictype/category-longname-tests: New file.
33768         * tests/unictype/test-categ_longname.c: New file.
33770         New module 'unictype/category-longname'.
33771         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
33772         * lib/unictype/categ_longname.c: New file.
33773         * modules/unictype/category-longname: New file.
33774         * modules/unictype/category-all (Depends-on): Add it.
33776 2011-03-25  Bruno Haible  <bruno@clisp.org>
33778         Tests for module 'unictype/category-LC'.
33779         * modules/unictype/category-LC-tests: New file.
33780         * tests/unictype/test-categ_LC.c: New file, automatically generated.
33782         New module 'unictype/category-LC'.
33783         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
33784         (UC_CATEGORY_LC): New declaration.
33785         (UC_CASED_LETTER): New macro.
33786         * lib/gen-uni-tables.c (is_category_LC): New function.
33787         (output_categories): Also handle category LC.
33788         (UC_CATEGORY_MASK_LC): New enumeration value.
33789         (general_category_byname): Also handle category LC.
33790         * lib/unictype/categ_LC.c: New file.
33791         * lib/unictype/categ_LC.h: New file, automatically generated.
33792         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
33793         category LC.
33794         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
33795         * modules/unictype/category-LC: New file.
33796         * modules/unictype/category-byname (Depends-on): Add
33797         unictype/category-LC.
33798         * modules/unictype/category-all (Depends-on): Likewise.
33800 2011-03-25  Eric Blake  <eblake@redhat.com>
33802         xmalloc: revert yesterday's regression
33803         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
33804         realloc's underlying behavior (allowing allocation of zero-size
33805         objects, especially if malloc-gnu is also in use).
33807 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
33809         maint.mk: add missing version to VC-tag
33810         * top/maint.mk: git tag was missing actual tag name; add it.
33812         valgrind: do leak checking, and exit with code 1 on error (not 0)
33813         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
33814         to VALGRIND.
33816 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
33818         posix-modules: say what it does.
33819         * posix-modules: Add a line to the --help output saying what it does.
33821 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
33823         xmalloc: Do not leak if underlying realloc is C99 compatible.
33824         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
33825         This avoids a leak on C99-based systems.  See
33826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
33828 2011-03-24  Eric Blake  <eblake@redhat.com>
33830         realloc: document portability problem
33831         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
33832         passing 0 size to realloc.
33834 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
33836         doc: update users.txt
33837         * users.txt: Add cvsps, tmpwatch
33839 2011-03-23  Matt Rice  <ratmice@gmail.com>
33841         doc: update users.txt
33842         * users.txt: Add gdb.
33844 2011-03-23  Jim Meyering  <meyering@redhat.com>
33846         doc: update users.txt
33847         Looking through matches up to the following URL (there are still
33848         several more pages), I found several projects that use gnulib:
33849         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
33850         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
33851         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
33853 2011-03-22  Bruno Haible  <bruno@clisp.org>
33855         unictype/bidi*: Rename functions.
33856         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
33857         uc_bidi_class, uc_is_bidi_class): New declarations.
33858         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
33859         uc_bidi_category_byname.
33860         (uc_bidi_category_byname): New function.
33861         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
33862         u_bidi_category_name.
33863         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
33864         (uc_bidi_category_name): New function.
33865         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
33866         uc_bidi_category.
33867         (uc_bidi_category): New function.
33868         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
33869         uc_is_bidi_category. Invoke uc_bidi_class.
33870         (uc_is_bidi_category): New function.
33871         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
33872         instead of uc_bidi_category_byname.
33873         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
33874         instead of uc_bidi_category_name.
33875         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
33876         uc_bidi_category.
33877         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
33878         instead of uc_is_bidi_category.
33880 2011-03-21  Bruno Haible  <bruno@clisp.org>
33882         New module 'unictype/joininggroup-all'.
33883         * modules/unictype/joininggroup-all: New file.
33885         Tests for module 'unictype/joininggroup-of'.
33886         * modules/unictype/joininggroup-of-tests: New file.
33887         * tests/unictype/test-joininggroup_of.c: New file.
33888         * tests/unictype/test-joininggroup_of.h: New file, automatically
33889         generated by gen-uni-tables.
33891         New module 'unictype/joininggroup-of'.
33892         * modules/unictype/joininggroup-of: New file.
33893         * lib/unictype/joininggroup_of.c: New file.
33894         * lib/unictype/joininggroup_of.h: New file, automatically generated by
33895         gen-uni-tables.
33897         Tests for module 'unictype/joininggroup-byname'.
33898         * modules/unictype/joininggroup-byname-tests: New file.
33899         * tests/unictype/test-joininggroup_byname.c: New file.
33901         New module 'unictype/joininggroup-byname'.
33902         * modules/unictype/joininggroup-byname: New file.
33903         * lib/unictype/joininggroup_byname.c: New file.
33904         * lib/unictype/joininggroup_byname.gperf: New file.
33906         Tests for module 'unictype/joininggroup-name'.
33907         * modules/unictype/joininggroup-name-tests: New file.
33908         * tests/unictype/test-joininggroup_name.c: New file.
33910         New module 'unictype/joininggroup-name'.
33911         * modules/unictype/joininggroup-name: New file.
33912         * lib/unictype/joininggroup_name.c: New file.
33913         * lib/unictype/joininggroup_name.h: New file.
33915         New module 'unictype/joiningtype-all'.
33916         * modules/unictype/joiningtype-all: New file.
33918         Tests for module 'unictype/joiningtype-of'.
33919         * modules/unictype/joiningtype-of-tests: New file.
33920         * tests/unictype/test-joiningtype_of.c: New file.
33921         * tests/unictype/test-joiningtype_of.h: New file, automatically
33922         generated by gen-uni-tables.
33924         New module 'unictype/joiningtype-of'.
33925         * modules/unictype/joiningtype-of: New file.
33926         * lib/unictype/joiningtype_of.c: New file.
33927         * lib/unictype/joiningtype_of.h: New file, automatically generated by
33928         gen-uni-tables.
33930         Tests for module 'unictype/joiningtype-byname'.
33931         * modules/unictype/joiningtype-byname-tests: New file.
33932         * tests/unictype/test-joiningtype_byname.c: New file.
33934         New module 'unictype/joiningtype-byname'.
33935         * modules/unictype/joiningtype-byname: New file.
33936         * lib/unictype/joiningtype_byname.c: New file.
33938         Tests for module 'unictype/joiningtype-name'.
33939         * modules/unictype/joiningtype-name-tests: New file.
33940         * tests/unictype/test-joiningtype_name.c: New file.
33942         New module 'unictype/joiningtype-name'.
33943         * modules/unictype/joiningtype-name: New file.
33944         * lib/unictype/joiningtype_name.c: New file.
33946         unictype: Add support for Arabic shaping properties.
33947         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
33948         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
33949         declarations.
33950         (UC_JOINING_GROUP_*): New enumeration values.
33951         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
33952         declarations.
33953         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
33954         (unicode_joining_type): New variable.
33955         (UC_JOINING_GROUP_*): New enumeration values.
33956         (unicode_joining_group): New variable.
33957         (fill_arabicshaping, joining_type_as_c_identifier,
33958         output_joining_type_test, output_joining_type,
33959         joining_group_as_c_identifier, output_joining_group_test,
33960         output_joining_group): New functions.
33961         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
33962         fill_arabicshaping and output_joining_type_test, output_joining_type,
33963         output_joining_group_test, output_joining_group.
33964         Reported by Simon Josefsson.
33966 2011-03-21  Jim Meyering  <meyering@redhat.com>
33968         strftime: fix a bug in yesterday's change
33969         * lib/strftime.c (add): Accommodate width's initial value of -1.
33970         Otherwise, nstrftime would copy uninitialized data into
33971         the result buffer.
33973 2011-03-21  Jim Meyering  <meyering@redhat.com>
33975         tests: add strftime-tests module
33976         * tests/test-strftime.c: New file.
33977         * modules/strftime-tests: New module.
33979 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
33981         strftime: don't assume a byte count fits in 'int'
33982         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
33983         found this problem by static analysis, using gcc -Wstrict-overflow
33984         (GCC 4.5.2, x86-64).  This reported an optimization that depended
33985         on an integer overflow having undefined behavior, but it turns out
33986         that the argument is a size, which might not fit in 'int' anyway,
33988 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
33990         stdio: don't require ignore_value around fwrite
33992         This patch works around libc bug 11959
33993         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
33994         Without this patch, applications must often write
33995         ignore_value (fwrite (...)) even though the ignore_value is
33996         not helpful here.  It's common to write many objects, using
33997         fwrite/printf/etc., and then use ferror to detect output error.
33999         I considered making this patch optional, but decided against it,
34000         because libc is obviously being inconsistent here: there is no
34001         reason libc should insist that user code must inspect fwrite
34002         return's value without also insisting that it inspect printf's,
34003         putchar's, etc.  If user code wants to have a strict style where
34004         all these functions' values are checked (so that ferror need not
34005         be checked), we could add support for that style in a new gnulib
34006         module, but in the meantime it's better to be consistent and to
34007         support common usage.
34009         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
34010         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
34011         that we are compiling in checking mode, and if not C++, and
34012         if not already wrapping fwrite for some other reason.
34013         (fwrite): #define to rpl_fwrite if the latter is defined.
34015 2011-03-20  Bruno Haible  <bruno@clisp.org>
34017         verror: Fix compilation error introduced on 2011-02-13.
34018         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
34019         instead of __attribute__.
34020         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34022 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
34023             Bruno Haible  <bruno@clisp.org>
34025         socklen: do not depend on sys_socket
34026         While trying to modify Emacs to use gnulib's socklen module,
34027         I discovered a circular dependency: socklen depends on sys_socket
34028         and vice versa.  Emacs can use socklen, but it does not need
34029         sys_socket because it has its own substitute for sys/socket.h.
34030         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
34031         gl_TYPE_SOCKLEN_T.
34032         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
34033         gl_PREREQ_SYS_H_SOCKET.
34034         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
34035         gl_PREREQ_SYS_H_SOCKET.
34036         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
34037         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
34038         * modules/socklen (Depends-on): Do not depend on sys_socket.
34039         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
34041 2011-03-20  Jim Meyering  <meyering@redhat.com>
34043         maint.mk: sort file names *after* new transformation
34044         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
34045         prefix would have led to an unwarranted failure in GNU parted.
34046         Sort after that transformation.
34048 2011-03-19  Jim Meyering  <meyering@redhat.com>
34050         maint.mk: fix po-file syntax-check rule
34051         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
34052         Patch by Bruno Haible.
34054 2011-03-19  Bruno Haible  <bruno@clisp.org>
34056         socklen: Update comment.
34057         * m4/socklen.m4: Update comment about platforms.
34059 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34060             Bruno Haible  <bruno@clisp.org>
34062         inet_ntop, inet_pton: Simplify.
34063         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
34064         documented to provide socklen_t and we already depend on sys_socket.
34065         * modules/inet_pton (Depends-on): Likewise.
34066         * lib/arpa_inet.in.h: Adjust comment.
34068 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34069             Bruno Haible  <bruno@clisp.org>
34071         netdb: Simplify.
34072         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
34073         documented to provide socklen_t and we already depend on sys_socket.
34074         * lib/netdb.in.h: Adjust comment.
34076 2011-03-19  Bruno Haible  <bruno@clisp.org>
34078         sys_socket, netdb: Document problem with socklen_t.
34079         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
34080         platforms.
34081         * doc/posix-headers/netdb.texi: Likewise.
34083 2011-03-18  Eric Blake  <eblake@redhat.com>
34085         maint.mk: let po check work in VPATH build
34086         * top/maint.mk (po_file): Allow cfg.mk override.
34087         (sc_po_check): Allow VPATH use.
34088         Reported by Jiri Denemark.
34090 2011-03-16  Jim Meyering  <meyering@redhat.com>
34092         maint.mk: allow fine-grained syntax-check exclusion via Make variables
34093         Before, you would have had to create one .x-sc_ file per rule in order
34094         to exempt offending files.  Now, you may instead use a Make variable --
34095         usually defined in cfg.mk -- whose name identifies the affected rule.
34096         * top/maint.mk (_sc_excl): Define.
34097         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
34098         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
34100 2011-03-13  Bruno Haible  <bruno@clisp.org>
34102         ignore-value tests: Avoid warnings.
34103         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
34104         empty for gcc < 3.4.
34106 2011-03-13  Bruno Haible  <bruno@clisp.org>
34108         passfd: Fix link error on Solaris.
34109         * modules/passfd (Description): Correct.
34110         (Depends-on): Add socketlib.
34111         (Link): New section.
34112         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
34114 2011-03-13  Bruno Haible  <bruno@clisp.org>
34116         passfd: Fix link error on AIX 5.2.
34117         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
34119 2011-03-13  Bruno Haible  <bruno@clisp.org>
34121         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
34122         * lib/sys_socket.in.h: Include <stddef.h>.
34123         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
34124         CMSG_FIRSTHDR. Remove unused variable.
34126 2011-03-13  Bruno Haible  <bruno@clisp.org>
34128         passfd: Fix compilation error on OpenBSD.
34129         * lib/passfd.c: Include <sys/uio.h>.
34131 2011-03-13  Bruno Haible  <bruno@clisp.org>
34133         passfd test: Fix warnings.
34134         * tests/test-passfd.c: Include <sys/wait.h>.
34135         (main): Fix typo.
34137 2011-03-13  Bruno Haible  <bruno@clisp.org>
34139         passfd module, part 4, tweaks.
34140         * tests/test-passfd.c: Reorder includes.
34141         (main): Fix perror and printf calls.
34143 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
34145         passfd module, part 4.
34146         * modules/passfd-tests: New file.
34147         * tests/test-passfd.c: New file.
34149 2011-03-13  Jim Meyering  <meyering@redhat.com>
34151         Makefile: rely on GNU make; derive syntax-check rule names
34152         Rather than requiring that each sc_ rule be listed as a dependent
34153         of "check", use features of GNU make to derive the list.
34154         * Makefile (syntax-check-rules): Define.
34155         (check): Depend on the new variable, not the hard-coded list.
34157 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
34158             Bruno Haible  <bruno@clisp.org>
34160         passfd module, part 3.
34161         * lib/passfd.h (recvfd): Add a flags argument.
34162         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
34163         (recvfd): Add a flags argument.
34164         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
34165         exists.
34166         * modules/passfd (Depends-on): Add cloexec.
34167         Suggested by Eric Blake.
34169 2011-03-13  Bruno Haible  <bruno@clisp.org>
34171         passfd module, part 2, tweaks.
34172         * modules/passfd (Files): Reorder.
34173         (Depends-on): Remove errno.
34174         (Include): Remove <sys/socket.h>, <sys/un.h>.
34175         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
34176         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
34177         specification header. Include <sys/socket.h> always. Don't include
34178         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
34179         (sendfd): Clarify that it sets errno when it fails.
34180         (recvfd): Fix specification.
34182 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
34184         passfd module, part 2.
34185         * modules/passfd: New file.
34186         * lib/passfd.h: New file.
34187         * lib/passfd.c: New file.
34189 2011-03-12  Bruno Haible  <bruno@clisp.org>
34191         wcswidth, mbswidth: Avoid integer overflow.
34192         * lib/wcswidth.c: Include <limits.h>.
34193         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
34194         * lib/mbswidth.c: Include <limits.h>.
34195         (mbsnwidth): Avoid 'int' overflow.
34196         Reported by Jim Meyering.
34198 2011-03-12  Bruno Haible  <bruno@clisp.org>
34200         futimens, utimensat: Avoid endless recursion on Solaris 10.
34201         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
34202         Solaris.
34203         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
34204         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
34206 2011-03-11  Jim Meyering  <meyering@redhat.com>
34208         maint.mk: relax a regexp to accommodate other formatting styles
34209         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
34210         between "ngettext" and the following "(".
34212 2011-03-11  Pádraig Brady <P@draigBrady.com>
34214         maint.mk: suppress a false positive warning
34215         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
34216         diagnostics are marked with ngettext.
34218 2011-03-10  Eric Blake  <eblake@redhat.com>
34220         wchar: add explicit dependencies, for Tru64
34221         * modules/mbmemcasecoll (Depends-on): Add wchar.
34222         * modules/mbtowc (Depends-on): Likewise.
34223         * modules/vasnprintf (Depends-on): Likewise.
34224         * modules/unistdio/u-printf-args (Depends-on): Likewise.
34225         * modules/wctomb (Depends-on): Likewise.
34226         Reported by Peter O'Gorman.
34228 2011-03-08  Bruno Haible  <bruno@clisp.org>
34230         passfd module, part 1, tweaks.
34231         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
34232         Improve indentation. Improve AC_MSG_CHECKING messages.
34233         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
34234         gl_SOCKET_FAMILIES.
34236 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
34238         passfd module, part 1.
34239         * m4/afunix.m4: New file.
34240         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
34241         sockets.
34243 2011-03-08  Bruno Haible  <bruno@clisp.org>
34245         regex-quote: New API.
34246         * lib/regex-quote.h: Include <stdbool.h>.
34247         (struct regex_quote_spec): New type.
34248         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
34249         New declarations.
34250         (regex_quote_length, regex_quote_copy, regex_quote): Take a
34251         'const struct regex_quote_spec *' argument.
34252         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
34253         (pcre_special): New constant.
34254         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
34255         New functions.
34256         (regex_quote_length, regex_quote_copy, regex_quote): Take a
34257         'const struct regex_quote_spec *' argument.
34258         * modules/regex-quote (Depends-on): Add stdbool.
34259         * tests/test-regex-quote.c (check): Update for new API. Add test for
34260         anchored results.
34261         * NEWS: Mention the API change.
34262         Reported by Reuben Thomas and Eric Blake.
34264 2011-03-06  Bruno Haible  <bruno@clisp.org>
34266         regex-quote: Fix creation of POSIX extended regular expressions.
34267         * lib/regex-quote.c (ere_special): Add grouping and alternation
34268         operators.
34270 2011-03-05  Bruno Haible  <bruno@clisp.org>
34272         doc: Improve doc regarding autopoint vs. gnulib.
34273         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
34274         disable autopoint while running autoreconf.
34275         Suggested by Ralf Wildenhues.
34277 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34279         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
34280         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
34282 2011-03-03  Bruce Korb  <bkorb@gnu.org>
34284         parse-duration: remove xalloc.h dependency
34285         * lib/parse-duration.c (parse_period): handle NULL return from
34286         strdup instead of calling xstrdup().
34287         * modules/parse-duration: remove "xalloc" dependency
34289 2011-03-03  Matthew Booth  <mbooth@redhat.com>
34291         bootstrap: honor m4_base when running aclocal
34292         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
34294 2011-03-02  Jim Meyering  <meyering@redhat.com>
34296         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
34297         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
34298         on request from Matt Booth.
34300 2011-03-01  Eric Blake  <eblake@redhat.com>
34302         test-link: work on Hurd
34303         * tests/test-link.h (test_link): Hurd rejects linking directories
34304         with EISDIR instead of the POSIX-mandated EPERM.
34306 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
34308         stdio: simplify by moving files to printf-posix, sigpipe
34309         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
34310         since this symbol is needed only if printf is replaced.
34311         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
34312         Require gl_ASM_SYMBOL_PREFIX.
34313         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
34314         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
34315         (Depends-on): Add 'raise'.
34316         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
34317         * modules/stdio (Files): Remove lib/stdio-write.c,
34318         m4/asm-underscore.m4.
34319         (Depends-on): Remove 'raise'.
34321         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
34322         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
34323         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
34324         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
34326 2011-02-28  Bruno Haible  <bruno@clisp.org>
34328         localcharset: Assume ANSI C behaviour of free().
34329         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
34330         calling free().
34331         Suggested by Simon Josefsson <simon@josefsson.org>.
34333 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
34334             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
34335             Bruno Haible  <bruno@clisp.org>  (tiny change)
34337         On Cygwin, use /proc file system instead of win32 API.
34338         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
34339         Win32 file names.
34340         (DllMain): Simplify by removing Cygwin specific code.
34341         (find_shared_library_fullname): Use Linux specific implementation also
34342         for Cygwin.
34343         (get_shared_library_fullname): Update accordingly.
34344         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
34345         Win32 file names.
34346         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
34347         Cygwin specific code.
34349 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
34350             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
34352         Fix OpenMP flag detection for various Fortran compilers.
34353         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
34354         OpenMP-conditional compilation construct, to force compile
34355         failure with missing OpenMP flag.
34356         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
34358 2011-02-25  Eric Blake  <eblake@redhat.com>
34360         strstr: expand test coverage
34361         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
34362         compilation.
34363         * tests/test-memmem.c (main): Duplicate tests.
34364         * tests/test-strcasestr.c (main): Likewise.
34365         * tests/test-c-strcasestr.c (main): Likewise.
34367 2011-02-25  Jim Meyering  <meyering@redhat.com>
34369         maint.mk: detect missing-NL-at-EOF, too
34370         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
34371         it also detects when a file lacks a newline at EOF.
34372         (require_exactly_one_NL_at_EOF_): Renamed from
34373         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
34374         since people may well have .x-sc_... file names tied to the
34375         existing name.  Suggested by Eric Blake.
34377 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
34379         dirname: move m4/dos.m4 functionality into lib/dosname.h
34381         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
34382         extracts symbols from it, puts them into config.h; but it's much
34383         easier to use the symbols directly.  filename.h already does this,
34384         but it disagrees with dos.m4 in some respects.  This patch
34385         introduces a different include file dosname.h that packages up
34386         dos.m4, and then later we can work on merging filename.h and
34387         dosname.h.  Applications that need only the easy-to-configure
34388         symbols should consider including dosname.h rather than dirname.h.
34389         * NEWS: Mention incompatible changes.
34390         * m4/dos.m4: Remove.
34391         * lib/dosname.h, modules/dosname: New files.
34392         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
34393         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
34394         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
34395         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
34396         Include dosname.h, not dirname.h.
34397         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
34398         Include dosname.h, for definitions of symbols like ISSLASH
34399         that used to be in config.h.
34400         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
34401         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
34402         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34403         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34404         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
34405         * modules/rmdir (Files): Likewise.
34406         * modules/stat (Files): Likewise.
34407         * modules/unlink (Files): Likewise.
34408         * modules/dirname-lgpl (Depends-on): Add dosname.
34409         * modules/lstat (Depends-on): Likewise.
34410         * modules/openat (Depends-on): Likewise.
34411         * modules/rmdir (Depends-on): Likewise.
34412         * modules/savewd (Depends-on): Likewise.
34413         * modules/stat (Depends-on): Likewise.
34414         * modules/unlink (Depends-on): Likewise.
34415         * modules/openat (Depends-on): Remove dirname-lgpl.
34416         * modules/savewd (Depends-on): Likewise.
34417         * tests/test-dirname.c: Do not use removed symbols like
34418         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
34419         the remaining symbols, e.g., ISSLASH ('\\').
34421 2011-02-25  Eric Blake  <eblake@redhat.com>
34423         strstr: revert patches that introduced bug and pessimization
34424         * lib/str-two-way.h: Add another reference.
34425         (two_way_short_needle, two_way_long_needle): Revert changes from
34426         2011-02-24; they pessimize search speed.
34427         (critical_factorization): Partially revert changes from
34428         2010-06-22; they violate the requirement that the left half of the
34429         needle be smaller than the period of the needle.
34431 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
34433         filenamecat: remove unnecessary dependency on dirname-lgpl
34434         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
34435         is no direct dependency, just an indirect one via filenamecat-lgpl.
34437         remove: remove unnecessary use of m4/dos.m4
34438         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
34439         * modules/remove (FILES): Remove m4/dos.m4.
34441         * lib/openat-proc.c: Don't include dirname.h; not needed.
34443         backupfile: remove unnecessary use of m4/dos.m4
34444         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
34445         of its symbols are used by the backupfile code.  backupfile.c does
34446         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
34447         for the rare case of programs that want all their backup file
34448         names to live within 8+3 limits, and dos.m4 doesn't address that.
34449         * modules/backupfile (Files): Remove m4/dos.m4.
34451 2011-02-24  Jim Meyering  <meyering@redhat.com>
34453         strstr: fix a bug whereby strstr would mistakenly return NULL
34454         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
34455         in period calculation.
34456         (two_way_long_needle): Likewise.
34457         The original problem was reported by Mike Stump in
34458         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
34459         Ralf Wildenhues provided the short needle and haystack.
34460         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
34461         Add a more involved test to trigger the bug in two_way_long_needle.
34463 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
34465         gnulib-tool: remove use of bold display in help screen
34466         * gnulib-tool (func_usage): Do not use bold display anymore in the
34467         help screen.  That was just meant to be a temporary emphasis for a
34468         backward-incompatible change.
34470 2011-02-23  Bruno Haible  <bruno@clisp.org>
34472         Fix misindentation of preprocessor directives.
34473         * lib/argp-namefrob.h: Reindent preprocessor directives.
34474         * lib/getopt_int.h (struct _getopt_data): Likewise.
34475         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
34476         * lib/vasnprintf.c (decode_long_double): Likewise.
34477         * tests/test-argmatch.c: Insert blank lines, for clarity.
34478         * tests/test-exclude.c: Likewise.
34480 2011-02-22  Bruno Haible  <bruno@clisp.org>
34482         ioctl: Fix for MacOS X in 64-bit mode.
34483         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
34484         value.
34485         Suggested by Eric Blake.
34486         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
34488 2011-02-22  Jim Meyering  <meyering@redhat.com>
34490         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
34491         * Makefile (sc_cpp_indent_check): Don't limit the check to files
34492         in lib/.
34494 2011-02-22  Eric Blake  <eblake@redhat.com>
34496         maint: avoid any CDPATH issue
34497         * Makefile (sc_cpp_indent_check): Anchor cd argument.
34499         maint: adjust cpp indentation for my modules, as well
34500         * Makefile (sc_cpp_indent_check): Add my name.
34501         * lib/fbufmode.c: Filter through cppi.
34502         * lib/fpurge.c: Likewise.
34503         * lib/freadable.c: Likewise.
34504         * lib/freading.c: Likewise.
34505         * lib/fwritable.c: Likewise.
34506         * lib/fwriting.c: Likewise.
34507         * lib/sigaction.c: Likewise.
34509 2011-02-22  Jim Meyering  <meyering@redhat.com>
34511         maint: adjust cpp indentation to reflect nesting depth
34512         I.e., in a block of code that begins with an unnested "#if",
34513         put one space between the "#" in column 1 and following token.
34514         For example,
34515         -#include <sys/vfs.h>
34516         +# include <sys/vfs.h>
34517         Do this only in .c files that are part of a module I maintain.
34518         * lib/linkat.c: Filter through cppi.
34519         * lib/nanosleep.c: Likewise.
34520         * lib/openat.c: Likewise.
34521         * lib/openat-die.c: Likewise.
34522         * lib/dup3.c: Likewise.
34523         * lib/fchownat.c: Likewise.
34524         * lib/flock.c: Likewise.
34525         * lib/fsync.c: Likewise.
34526         * lib/fts.c: Likewise.
34527         * lib/getpass.c: Likewise.
34528         * lib/gettimeofday.c: Likewise.
34529         * lib/userspec.c: Likewise.
34530         * Makefile (sc_cpp_indent_check): New rule, to check this.
34532 2011-02-22  Bruno Haible  <bruno@clisp.org>
34534         New module 'wctomb'.
34535         * lib/stdlib.in.h (wctomb): New declaration.
34536         * lib/wctomb.c: New file.
34537         * lib/wctomb-impl.h: New file.
34538         * m4/wctomb.m4: New file.
34539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
34540         REPLACE_WCTOMB.
34541         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
34542         REPLACE_WCTOMB.
34543         * modules/wctomb: New file.
34544         * tests/test-stdlib-c++.cc: Test signature of wctomb.
34545         * doc/posix-functions/wctomb.texi: Mention the new module.
34546         * modules/wctob (Depends-on): Add wctomb.
34548 2011-02-22  Bruno Haible  <bruno@clisp.org>
34550         New module 'mbtowc'.
34551         * lib/stdlib.in.h (mbtowc): New declaration.
34552         * lib/mbtowc.c: New file.
34553         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
34554         * m4/mbtowc.m4: New file.
34555         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
34556         REPLACE_MBTOWC.
34557         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
34558         REPLACE_MBTOWC.
34559         * modules/mbtowc: New file.
34560         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
34561         * doc/posix-functions/mbtowc.texi: Mention the new module.
34562         * modules/btowc (Depends-on): Add mbtowc.
34564 2011-02-22  Bruno Haible  <bruno@clisp.org>
34566         wcrtomb: Add more tests for native Windows platforms.
34567         * tests/test-wcrtomb-w32-1.sh: New file.
34568         * tests/test-wcrtomb-w32-2.sh: New file.
34569         * tests/test-wcrtomb-w32-3.sh: New file.
34570         * tests/test-wcrtomb-w32-4.sh: New file.
34571         * tests/test-wcrtomb-w32-5.sh: New file.
34572         * tests/test-wcrtomb-w32.c: New file.
34573         * modules/wcrtomb-tests (Files): Add them.
34574         (Makefile.am): Arrange to run these tests.
34575         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
34576         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
34578 2011-02-20  Bruno Haible  <bruno@clisp.org>
34580         wcrtomb: Enhance test.
34581         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
34583 2011-02-20  Bruno Haible  <bruno@clisp.org>
34585         mbrtowc: Tiny optimization.
34586         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
34588 2011-02-20  Jim Meyering  <meyering@redhat.com>
34590         test-exclude.c: remove unmatched #endif
34591         * tests/test-exclude.c: Remove stray #endif, left over from
34592         the change of a week ago.
34594 2011-02-19  Jim Meyering  <meyering@redhat.com>
34596         git-version-gen: skip "-dirty" check when appropriate
34597         * build-aux/git-version-gen: Don't run any git commands when the
34598         version string comes from .tarball-version.  Prior to this, we
34599         would run git update-index --refresh even from a just-unpacked
34600         tarball directory, and that could affect a .git/ directory in a
34601         parent of the build directory.  Reported by Mike Frysinger.
34603 2011-02-19  Bruno Haible  <bruno@clisp.org>
34605         unictype/property-byname: Reduce the size of the 'data' segment.
34606         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
34608 2011-02-19  Bruno Haible  <bruno@clisp.org>
34610         unictype/scripts: Reduce the size of the 'data' segment.
34611         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
34612         '%pic'.
34613         * lib/unictype/scripts_byname.gperf: Regenerated.
34615 2011-02-19  Bruno Haible  <bruno@clisp.org>
34617         stdint: Update documentation.
34618         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
34620 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
34622         stdint: omit redundant check for wchar.h
34623         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
34624         always tests whether wchar.h exists, so remove the now-redundant test.
34626 2011-02-18  Bruno Haible  <bruno@clisp.org>
34628         stdint: Cut dependency to module 'wchar'.
34629         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
34630         include the necessary prerequisites.
34631         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
34632         * modules/stdint (Depends-on): Remove wchar.
34633         (Makefile.am): Substitute HAVE_WCHAR_H.
34634         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
34636 2011-02-18  Eric Blake  <eblake@redhat.com>
34638         longlong: skip, rather than fail, on cross-compilation
34639         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
34640         when cross-compiling; regression from 2011-02-16.
34642 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
34644         * NEWS: Mention 2011-02-08 change to stdlib.
34646 2011-02-17  Bruno Haible  <bruno@clisp.org>
34648         getloadavg: Add comments about platforms.
34649         * m4/getloadavg.m4: Add comment.
34650         * lib/getloadavg.c: Likewise.
34652 2011-02-17  Bruno Haible  <bruno@clisp.org>
34654         getloadavg: Fix link error on Solaris 2.6.
34655         * modules/getloadavg (Link): New section.
34656         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
34657         linking test-getloadavg.
34658         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
34659         getloadavg.
34661 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
34663         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
34664         It was 'int', but this doesn't match the IRIX 6.5 manual.
34665         Suggested by Bruno Haible in
34666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
34668 2011-02-17  Bruno Haible  <bruno@clisp.org>
34670         havelib: Fix comments.
34671         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
34672         change.
34674 2011-02-17  Bruno Haible  <bruno@clisp.org>
34676         havelib: Update config.rpath.
34677         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
34679 2011-02-17  Bruno Haible  <bruno@clisp.org>
34681         getloadavg test: Add some plausibility checks.
34682         * tests/test-getloadavg.c (check_avg): Print a warning when the value
34683         is improbable.
34685 2011-02-16  Eric Blake  <eblake@redhat.com>
34687         maintainer-makefile: make syntax-check a no-op from tarballs
34688         * top/maint.mk (no-vc-detected): New rule.
34689         (local-checks-available): Use it to avoid hanging if someone tries
34690         'make syntax-check' from a tarball.  Also append to any non-syntax
34691         checks already defined in cfg.mk.
34693 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
34695         longlong: tune, particularly for common case of c99
34697         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
34698         or running anything if c99, or if unsigned long long int does not
34699         work.  In either case, we know the answer without further tests.
34700         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
34701         it at most once, and use its results for both long long int and
34702         unsigned long long int.  This is more likely to be efficient in
34703         the common case where the program wants to check for both long
34704         long int and unsigned long long int.
34705         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
34706         since the answer is already known.
34708 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
34710         getloadavg: set errno
34711         * lib/getloadavg.c: Set errno when returning -1.  If no other
34712         error number looks appropriate, set it to ENOSYS if the getloadavg
34713         looks like it can't possibly ever work, ENOTSUP otherwise.
34714         Suggested by Bruno Haible in
34715         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
34717         getloadavg: trim unused parts and speed up 'configure'
34718         * NEWS: Document this.
34719         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
34720         always compiled if getloadavg is absent.
34721         Move test code to ...
34722         * tests/test-getloadavg.c: New file, containing previous
34723         contents of test from lib/getloadavg.c.  It also contains
34724         suggestions by Bruno Haible in
34725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
34726         * modules/getloadavg-tests: New file.
34727         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
34728         Do tests in the same order as they're needed for getloadavg.c.
34729         Omit setgid-related tests that generate symbols KMEM_GROUP,
34730         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
34731         Do only the tests that are needed to see whether the system has
34732         getloadavg, moving the other tests into ...
34733         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
34734         NLIST_NAME_UNION; nobody should be using it.  Do not define
34735         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
34736         relevant, as the user of this module shouldn't care how getloadavg
34737         is implemented.
34739         getloadavg: omit unused var
34740         * lib/getloadavg.c (getloadavg): Omit unused local variable.
34742 2011-02-15  Jim Meyering  <meyering@redhat.com>
34744         doc: update users.txt
34745         * users.txt: Update iwhd's URL.
34747 2011-02-13  Bruno Haible  <bruno@clisp.org>
34749         Consistent macro naming for macros that use GCC __attribute__.
34750         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
34751         _ATTRIBUTE_NONNULL_.
34752         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
34753         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
34754         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
34755         ATTRIBUTE_DEPRECATED.
34756         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
34757         ATTRIBUTE_NORETURN.
34758         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
34759         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
34760         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
34761         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
34762         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
34763         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
34764         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
34765         ATTRIBUTE_SENTINEL.
34766         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
34767         ATTRIBUTE_RETURN_CHECK.
34768         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
34769         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
34770         ATTRIBUTE_NORETURN.
34771         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
34772         Reported by Paul Eggert.
34774 2011-02-13  Bruno Haible  <bruno@clisp.org>
34776         Don't interfere with a program's definition of __attribute__.
34777         * lib/argp.h (__attribute__): Remove definition.
34778         (_GL_ATTRIBUTE_FORMAT): New macro.
34779         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
34780         * lib/argp-fmtstream.h (__attribute__): Remove definition.
34781         (_GL_ATTRIBUTE_FORMAT): New macro.
34782         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
34783         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
34784         GCC 3 or newer.
34785         * lib/error.h (__attribute__): Remove definition.
34786         (_GL_ATTRIBUTE_FORMAT): New macro.
34787         (error, error_at_line): Use it.
34788         * lib/hash.h (__attribute__): Remove definition.
34789         (ATTRIBUTE_WUR): Update definition. Define always.
34790         * lib/openat.h (__attribute__): Remove definition.
34791         (ATTRIBUTE_NORETURN): Update definition. Define always.
34792         * lib/sigpipe-die.h (__attribute__): Remove definition.
34793         (ATTRIBUTE_NORETURN): Update definition. Define always.
34794         * lib/vasnprintf.h (__attribute__): Remove definition.
34795         (_GL_ATTRIBUTE_FORMAT): New macro.
34796         (asnprintf, vasnprintf): Use it.
34797         * lib/xalloc.h (__attribute__): Remove definition.
34798         (ATTRIBUTE_NORETURN): Update definition. Define always.
34799         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
34800         * lib/xmemdup0.h (__attribute__): Remove definition.
34801         (ATTRIBUTE_NORETURN): Update definition. Define always.
34802         * lib/xprintf.h (__attribute__): Remove definition.
34803         (_GL_ATTRIBUTE_FORMAT): New macro.
34804         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
34805         * lib/xstrtol.h (__attribute__): Remove definition.
34806         (ATTRIBUTE_NORETURN): Update definition. Define always.
34807         * lib/xvasprintf.h (__attribute__): Remove definition.
34808         (_GL_ATTRIBUTE_FORMAT): New macro.
34809         (xasprintf, xvasprintf): Use it.
34810         * tests/test-argmatch.c (__attribute__): Remove definition.
34811         (ATTRIBUTE_NORETURN): Update definition. Define always.
34812         * tests/test-exclude.c (__attribute__): Remove definition.
34813         (ATTRIBUTE_NORETURN): Update definition. Define always.
34814         Reported by Paul Eggert.
34816 2011-02-13  Bruno Haible  <bruno@clisp.org>
34818         mbrtowc: Add more tests for native Windows platforms.
34819         * tests/test-mbrtowc-w32-1.sh: New file.
34820         * tests/test-mbrtowc-w32-2.sh: New file.
34821         * tests/test-mbrtowc-w32-3.sh: New file.
34822         * tests/test-mbrtowc-w32-4.sh: New file.
34823         * tests/test-mbrtowc-w32-5.sh: New file.
34824         * tests/test-mbrtowc-w32.c: New file.
34825         * modules/mbrtowc-tests (Files): Add them.
34826         (Makefile.am): Arrange to run these tests.
34827         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
34828         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
34830 2011-02-13  Bruno Haible  <bruno@clisp.org>
34832         mbrtowc: Work around native Windows bug.
34833         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
34834         guess when no suitable locale for testing was found.
34835         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
34837 2011-02-13  Bruno Haible  <bruno@clisp.org>
34839         mbsinit: Work around mingw bug.
34840         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
34841         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
34842         Windows.
34843         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
34845 2011-02-13  Bruno Haible  <bruno@clisp.org>
34847         mbsinit: Don't crash for a NULL argument.
34848         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
34849         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
34851 2011-02-13  Bruno Haible  <bruno@clisp.org>
34853         Don't interfere with a program's definition of __attribute__.
34854         * lib/stdio.in.h (__attribute__): Remove definition.
34855         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
34856         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
34857         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
34858         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
34859         * lib/string.in.h (__attribute__): Remove definition.
34860         Reported by Paul Eggert.
34862 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34864         stdlib: don't get in the way of non-GCC __attribute__
34865         See thread starting at
34866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
34867         Revert previous stdlib change, installing the following instead:
34868         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
34869         to get in the way of a non-GCC compiler that supports __attribute__.
34870         (_GL_ATTRIBUTE_RETURN): New macro.
34871         (_Exit): Use it instead of __attribute__.
34873 2011-02-12  Bruno Haible  <bruno@clisp.org>
34875         quotearg test: Avoid test failure on mingw.
34876         * tests/test-quotearg.sh: Convert the locale identifier from native
34877         Windows syntax to Unix syntax.
34879 2011-02-12  Bruno Haible  <bruno@clisp.org>
34881         setlocale: Prefer gnulib's override over libintl's override.
34882         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
34883         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
34884         GNULIB_defined_setlocale is set.
34886 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34888         stdlib: support non-GCC __attribute__
34890         Fix a serious and tricky problem encountered when attempting to
34891         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
34892         5.5, but it crashed due to memory corruption on Solaris 10 with
34893         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
34894         bits that are otherwise zero.  This tagging is optional inside
34895         Emacs but is preferred and is used when __attribute__ ((__aligned
34896         (8))) works, as it does with both recent-enough GCC and with Sun C
34897         5.11.  However, Sun C 5.11 is not GCC and does not #define
34898         __GNUC__ and __GNUC_MINOR__.
34900         When I added the getloadavg module to Emacs, it brought in
34901         stdlib.in.h, which contained this fragment:
34903            #ifndef __attribute__
34904            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
34905            #  define __attribute__(Spec)   /* empty */
34906            # endif
34907            #endif
34909         When files that include <stdlib.h> were compiled with Sun C 5.11,
34910         the above code disabled __attribute__ ((__aligned (8))), which
34911         caused variables to not be properly aligned, which eventually led
34912         to the pointer corruption mentioned above.  (This was a bit hard
34913         to diagnose, unfortunately.)
34915         Several "#define __attribute__(X) /* empty */" code snippets need
34916         to be eradicated from Gnulib to work with non-GCC compilers that
34917         support __attribute__.  The Autoconf way to do this is to test for
34918         each kind of attribute that we want support for, and selectively
34919         enable that in source code.
34921         Fix this problem just for stdlib.h, by adding a test for the
34922         __noreturn__ attribute, and change stdlib.in.h to use that test
34923         when needed.  This technique can be easily generalized to the
34924         other *.in.h files and attributes, and a similar technique can be
34925         used for *.h and *.c files.  This patch is enough to solve the
34926         problem for Emacs + getloadavg, and I thought I'd publish it for
34927         feedback before undertaking further, similar fixes in other
34928         modules.
34930         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
34931         because it's not needed for stdlib.h.  It merely substitutes the
34932         value directly into stdlib.h.  We may well need to #define it, or
34933         similar symbols, for other modules, but it's nice to also have an
34934         option to not #define it for applications like Emacs that do not
34935         need it.
34937         * lib/stdlib.in.h (__attribute__): Do not #define.
34938         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
34939         be defined only if the _Exit module is also used.
34940         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
34941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
34942         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
34943         platforms.
34944         * modules/_Exit (Files): Add m4/attribute.m4.
34945         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
34946         * m4/attribute.m4: New file.
34948 2011-02-12  Bruno Haible  <bruno@clisp.org>
34950         wcsrtombs: Work around bug on native Windows.
34951         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
34952         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
34953         instead of len.
34954         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
34956 2011-02-12  Bruno Haible  <bruno@clisp.org>
34958         mbsrtowcs: Work around bug on native Windows.
34959         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
34960         against mingw bug.
34961         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
34963 2011-02-12  Bruno Haible  <bruno@clisp.org>
34965         Avoid setlocale bugs in tests.
34966         * modules/btowc (Dependencies): Add setlocale.
34967         * modules/c-strcase (Dependencies): Likewise.
34968         * modules/mbmemcasecmp (Dependencies): Likewise.
34969         * modules/mbmemcasecoll (Dependencies): Likewise.
34970         * modules/mbrtowc (Dependencies): Likewise.
34971         * modules/mbscasecmp (Dependencies): Likewise.
34972         * modules/mbscasestr (Dependencies): Likewise.
34973         * modules/mbschr (Dependencies): Likewise.
34974         * modules/mbscspn (Dependencies): Likewise.
34975         * modules/mbsinit (Dependencies): Likewise.
34976         * modules/mbsncasecmp (Dependencies): Likewise.
34977         * modules/mbsnrtowcs (Dependencies): Likewise.
34978         * modules/mbspbrk (Dependencies): Likewise.
34979         * modules/mbspcasecmp (Dependencies): Likewise.
34980         * modules/mbsrchr (Dependencies): Likewise.
34981         * modules/mbsrtowcs (Dependencies): Likewise.
34982         * modules/mbsspn (Dependencies): Likewise.
34983         * modules/mbsstr (Dependencies): Likewise.
34984         * modules/nl_langinfo (Dependencies): Likewise.
34985         * modules/quotearg (Dependencies): Likewise.
34986         * modules/unicase/locale-language (Dependencies): Likewise.
34987         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
34988         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
34989         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
34990         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
34991         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
34992         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
34993         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
34994         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
34995         * modules/vasnprintf-posix (Dependencies): Likewise.
34996         * modules/wcrtomb (Dependencies): Likewise.
34997         * modules/wcsnrtombs (Dependencies): Likewise.
34998         * modules/wcsrtombs (Dependencies): Likewise.
35000 2011-02-12  Bruno Haible  <bruno@clisp.org>
35002         setlocale: Workaround native Windows bug.
35003         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
35004         succeeds but sets LC_CTYPE to "C", report a failure.
35005         * tests/test-setlocale2.sh: New file.
35006         * tests/test-setlocale2.c: New file.
35007         * modules/setlocale-tests (Files): Add the new files.
35008         (Makefile.am): Enable test-setlocale2.sh test.
35009         * doc/posix-functions/setlocale.texi: Mention workaround.
35011 2011-02-11  Bruno Haible  <bruno@clisp.org>
35013         Tests for module 'setlocale'.
35014         * modules/setlocale-tests: New file.
35015         * tests/test-setlocale1.sh: New file.
35016         * tests/test-setlocale1.c: New file.
35018         New module 'setlocale'.
35019         * lib/locale.in.h (setlocale): New declaration.
35020         * lib/setlocale.c: New file, based on
35021         gettext/gettext-runtime/intl/setlocale.c.
35022         * m4/setlocale.m4: New file.
35023         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
35024         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
35025         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
35026         REPLACE_SETLOCALE.
35027         * modules/setlocale: New file.
35028         * tests/test-locale-c++.cc: Test the declaration of setlocale.
35029         * doc/posix-functions/setlocale.texi: Mention the new module.
35031 2011-02-11  Bruno Haible  <bruno@clisp.org>
35033         Prepare for locale dependent tests on mingw.
35034         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
35035         because it has the wrong locale encoding.
35036         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
35037         French_France.1252 instead of "fr".
35038         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
35039         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
35040         because it has the wrong locale encoding.
35041         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
35042         native Windows, try Turkish_Turkey.65001.
35043         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
35044         Chinese_China.54936.
35046         Prepare for locale dependent tests on mingw.
35047         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
35048         differently.
35049         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
35050         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
35051         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35052         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35054 2011-02-11  Eric Blake  <eblake@redhat.com>
35056         strptime: avoid compiler warnings
35057         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
35058         compiler warnings about dead code.
35059         Reported by Daniel P. Berrange.
35061 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
35063         doc: update users.txt
35064         * users.txt: Add rcs.
35066 2011-02-10  John W. Eaton  <jwe@gnu.org>
35068         doc: update users.txt
35069         * users.txt: Add octave.
35071 2011-02-10  Jim Meyering  <meyering@redhat.com>
35073         doc: update users.txt
35074         * users.txt: Add iwhd.
35076 2011-02-09  Bruno Haible  <bruno@clisp.org>
35078         gnulib-tool: Make copyright notice adjustment more robust.
35079         * gnulib-tool (func_import): In sed_transform_main_lib_file,
35080         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
35081         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
35082         License".
35083         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
35085 2011-02-06  Bruno Haible  <bruno@clisp.org>
35087         New module 'towctrans'.
35088         * modules/towctrans: New file.
35089         * lib/wctype.in.h (towctrans): New declaration.
35090         * lib/towctrans.c: New file.
35091         * lib/towctrans-impl.h: New file.
35092         * m4/towctrans.m4: New file.
35093         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
35094         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
35095         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
35096         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
35097         * doc/posix-functions/towctrans.texi: Mention the new module.
35099 2011-02-06  Bruno Haible  <bruno@clisp.org>
35101         New module 'wctrans'.
35102         * modules/wctrans: New file.
35103         * lib/wctype.in.h (wctrans): New declaration.
35104         * lib/wctrans.c: New file.
35105         * lib/wctrans-impl.h: New file.
35106         * m4/wctrans.m4: New file.
35107         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
35108         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
35109         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
35110         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
35111         * doc/posix-functions/wctrans.texi: Mention the new module.
35113 2011-02-06  Bruno Haible  <bruno@clisp.org>
35115         New module 'iswctype'.
35116         * modules/iswctype: New file.
35117         * lib/wctype.in.h (iswctype): New declaration.
35118         * lib/iswctype.c: New file.
35119         * lib/iswctype-impl.h: New file.
35120         * m4/iswctype.m4: New file.
35121         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
35122         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
35123         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
35124         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
35125         * doc/posix-functions/iswctype.texi: Mention the new module and the
35126         HP-UX 11.00 problem.
35128 2011-02-06  Bruno Haible  <bruno@clisp.org>
35130         New module 'wctype'.
35131         * modules/wctype: Change to represent the wctype() substitute.
35132         * lib/wctype.in.h (wctype): New declaration.
35133         * lib/wctype.c: New file.
35134         * lib/wctype-impl.h: New file.
35135         * m4/wctype.m4: New file.
35136         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
35137         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
35138         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
35139         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
35140         * doc/posix-functions/wctype.texi: Mention the new module and the
35141         HP-UX 11.00 problem.
35143 2011-02-06  Bruno Haible  <bruno@clisp.org>
35145         wctype-h: Ensure wctype_t and wctrans_t are defined.
35146         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
35147         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
35148         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
35149         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
35150         HAVE_WCTRANS_T.
35151         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
35153 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
35155         flock: fix license typo
35157         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
35158         omitted.
35160 2011-02-08  Bruno Haible  <bruno@clisp.org>
35162         Split large sed scripts, for HP-UX sed.
35163         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
35164         to avoid HP-UX limit of 99 commands, in the near future.
35165         * modules/stdlib (Makefile.am): Likewise.
35166         * modules/unistd (Makefile.am): Likewise.
35167         * modules/wchar (Makefile.am): Likewise.
35168         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35169         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
35170         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
35172 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
35173             Bruno Haible  <bruno@clisp.org>
35175         stdlib: improve random_r modularization
35176         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
35177         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
35178         you also need the random_r module to get this material right.
35179         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
35180         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
35181         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
35183 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
35185         stdlib: don't depend on stdint
35186         * lib/stdlib.in.h: Don't include <stdint.h> merely because
35187         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
35188         be independent of whether stdint.h is needed.
35189         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
35190         here, instead of ...
35191         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
35192         struct random_data should be using the random_r module, not just
35193         the stdlib module (which wouldn't make sense: what package needs
35194         just struct random_data without also needing random_r?).
35195         * modules/stdlib (Depends-on): Remove stdint.
35197         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
35198         See the thread rooted at
35199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
35200         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
35201         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
35202         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
35203         __VMS)); previously it was always included (via fcntl--.h).
35204         (getloadavg): Do not use c_strtod.  Instead, approximate it by
35205         hand; this is good enough for load averages.  Also, do not use
35206         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
35207         flags directly if available and don't bother otherwise.  (Packages
35208         that need the extra reliability should use the modules that define
35209         these flags on older platforms that lack them.)
35210         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
35211         fcntl-safer.
35213 2011-02-08  Jim Meyering  <meyering@redhat.com>
35215         di-set.h, ino-map.h: add multiple-inclusion guard
35216         Technically, the guard is required only for ino-map.h, due to its
35217         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
35218         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
35219         * lib/ino-map.h: Likewise.
35221 2011-02-06  Bruno Haible  <bruno@clisp.org>
35223         iswblank: Ensure declaration on glibc systems.
35224         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
35225         * modules/iswblank (Dependencies): Add 'extensions'.
35226         * doc/posix-functions/iswblank.texi: Document the glibc problem.
35228 2011-02-06  Bruno Haible  <bruno@clisp.org>
35230         New module 'iswblank'.
35231         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
35232         * modules/iswblank: New file.
35233         * modules/wctype-h (Files): Remove lib/iswblank.c.
35234         (Makefile.am): Substitute GNULIB_ISWBLANK.
35235         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
35236         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
35237         (gl_WCTYPE_H_DEFAULTS): New macro.
35238         (gl_WCTYPE_H): Require it. Remove iswblank related code.
35239         * modules/iswblank-tests: New file.
35240         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
35241         * tests/test-wctype-h.c (main): Remove iswblank tests.
35242         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
35243         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
35244         of 'wctype-h'.
35245         * NEWS: Mention the change.
35246         * modules/mbchar (Depends-on): Add iswblank.
35248 2011-02-08  Bruno Haible  <bruno@clisp.org>
35250         di-set tests: Refactor.
35251         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
35252         unnecessary includes.
35253         (ASSERT): Remove macro.
35254         (main): Make C90 compliant by avoiding variable declaration after
35255         statement.
35256         * modules/di-set-tests (Files): Add tests/macros.h.
35258 2011-02-08  Bruno Haible  <bruno@clisp.org>
35260         ino-map tests: Refactor.
35261         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
35262         unnecessary includes.
35263         (ASSERT): Remove macro.
35264         (main): Make C90 compliant by avoiding variable declaration after
35265         statement.
35266         * modules/ino-map-tests (Files): Add tests/macros.h.
35268 2011-02-08  Jim Meyering  <meyering@redhat.com>
35270         di-set: add "const" to a cast
35271         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
35272         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
35274 2011-02-06  Bruno Haible  <bruno@clisp.org>
35276         Rename module 'wctype' to 'wctype-h'.
35277         * modules/wctype-h: Renamed from modules/wctype.
35278         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
35279         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
35280         (Files, Depends-on, Makefile.am): Update.
35281         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
35282         (Files, Makefile.am): Update.
35283         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
35284         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
35285         * doc/posix-headers/wctype.texi: Update.
35286         * doc/posix-functions/iswalnum.texi: Update.
35287         * doc/posix-functions/iswalpha.texi: Update.
35288         * doc/posix-functions/iswblank.texi: Update.
35289         * doc/posix-functions/iswcntrl.texi: Update.
35290         * doc/posix-functions/iswdigit.texi: Update.
35291         * doc/posix-functions/iswgraph.texi: Update.
35292         * doc/posix-functions/iswlower.texi: Update.
35293         * doc/posix-functions/iswprint.texi: Update.
35294         * doc/posix-functions/iswpunct.texi: Update.
35295         * doc/posix-functions/iswspace.texi: Update.
35296         * doc/posix-functions/iswupper.texi: Update.
35297         * doc/posix-functions/iswxdigit.texi: Update.
35298         * doc/posix-functions/towlower.texi: Update.
35299         * doc/posix-functions/towupper.texi: Update.
35300         * NEWS: Mention the change.
35301         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
35302         * modules/mbchar (Dependencies): Likewise.
35303         * modules/mbswidth (Dependencies): Likewise.
35304         * modules/quotearg (Dependencies): Likewise.
35305         * modules/regex (Dependencies): Likewise.
35306         * modules/wcscasecmp (Dependencies): Likewise.
35307         * modules/wcsncasecmp (Dependencies): Likewise.
35308         * modules/wcwidth (Dependencies): Likewise.
35310 2011-02-06  Bruno Haible  <bruno@clisp.org>
35312         New module 'wcswidth'.
35313         * modules/wcswidth: New file.
35314         * lib/wchar.in.h (wcswidth): New declaration.
35315         * lib/wcswidth.c: New file.
35316         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
35317         * m4/wcswidth.m4: New file.
35318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
35319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
35320         REPLACE_WCSWIDTH.
35321         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
35322         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
35323         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
35324         * doc/posix-functions/wcswidth.texi: Mention the new module.
35326 2011-02-06  Bruno Haible  <bruno@clisp.org>
35328         New module 'wcstok'.
35329         * modules/wcstok: New file.
35330         * lib/wchar.in.h (wcstok): New declaration.
35331         * lib/wcstok.c: New file.
35332         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
35333         * m4/wcstok.m4: New file.
35334         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
35335         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
35336         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
35337         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
35338         * doc/posix-functions/wcstok.texi: Mention the new module.
35340 2011-02-06  Bruno Haible  <bruno@clisp.org>
35342         New module 'wcsstr'.
35343         * modules/wcsstr: New file.
35344         * lib/wchar.in.h (wcsstr): New declaration.
35345         * lib/wcsstr.c: New file.
35346         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
35347         * m4/wcsstr.m4: New file.
35348         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
35349         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
35350         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
35351         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
35352         * doc/posix-functions/wcsstr.texi: Mention the new module.
35354 2011-02-06  Bruno Haible  <bruno@clisp.org>
35356         New module 'wcspbrk'.
35357         * modules/wcspbrk: New file.
35358         * lib/wchar.in.h (wcspbrk): New declaration.
35359         * lib/wcspbrk.c: New file.
35360         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
35361         * m4/wcspbrk.m4: New file.
35362         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
35363         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
35364         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
35365         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
35366         * doc/posix-functions/wcspbrk.texi: Mention the new module.
35368 2011-02-06  Bruno Haible  <bruno@clisp.org>
35370         New module 'wcsspn'.
35371         * modules/wcsspn: New file.
35372         * lib/wchar.in.h (wcsspn): New declaration.
35373         * lib/wcsspn.c: New file.
35374         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
35375         * m4/wcsspn.m4: New file.
35376         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
35377         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
35378         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
35379         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
35380         * doc/posix-functions/wcsspn.texi: Mention the new module.
35382 2011-02-06  Bruno Haible  <bruno@clisp.org>
35384         New module 'wcscspn'.
35385         * modules/wcscspn: New file.
35386         * lib/wchar.in.h (wcscspn): New declaration.
35387         * lib/wcscspn.c: New file.
35388         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
35389         * m4/wcscspn.m4: New file.
35390         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
35391         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
35392         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
35393         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
35394         * doc/posix-functions/wcscspn.texi: Mention the new module.
35396 2011-02-06  Bruno Haible  <bruno@clisp.org>
35398         New module 'wcsrchr'.
35399         * modules/wcsrchr: New file.
35400         * lib/wchar.in.h (wcsrchr): New declaration.
35401         * lib/wcsrchr.c: New file.
35402         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
35403         * m4/wcsrchr.m4: New file.
35404         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
35405         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
35406         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
35407         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
35408         * doc/posix-functions/wcsrchr.texi: Mention the new module.
35410 2011-02-06  Bruno Haible  <bruno@clisp.org>
35412         New module 'wcschr'.
35413         * modules/wcschr: New file.
35414         * lib/wchar.in.h (wcschr): New declaration.
35415         * lib/wcschr.c: New file.
35416         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
35417         * m4/wcschr.m4: New file.
35418         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
35419         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
35420         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
35421         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
35422         * doc/posix-functions/wcschr.texi: Mention the new module.
35424 2011-02-06  Bruno Haible  <bruno@clisp.org>
35426         New module 'wcsdup'.
35427         * modules/wcsdup: New file.
35428         * lib/wchar.in.h (wcsdup): New declaration.
35429         * lib/wcsdup.c: New file.
35430         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
35431         * m4/wcsdup.m4: New file.
35432         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
35433         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
35434         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
35435         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
35436         * doc/posix-functions/wcsdup.texi: Mention the new module.
35438 2011-02-06  Bruno Haible  <bruno@clisp.org>
35440         New module 'wcsxfrm'.
35441         * modules/wcsxfrm: New file.
35442         * lib/wchar.in.h (wcsxfrm): New declaration.
35443         * lib/wcsxfrm.c: New file.
35444         * lib/wcsxfrm-impl.h: New file.
35445         * m4/wcsxfrm.m4: New file.
35446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
35447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
35448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
35449         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
35450         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
35452 2011-02-06  Bruno Haible  <bruno@clisp.org>
35454         New module 'wcscoll'.
35455         * modules/wcscoll: New file.
35456         * lib/wchar.in.h (wcscoll): New declaration.
35457         * lib/wcscoll.c: New file.
35458         * lib/wcscoll-impl.h: New file.
35459         * m4/wcscoll.m4: New file.
35460         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
35461         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
35462         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
35463         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
35464         * doc/posix-functions/wcscoll.texi: Mention the new module.
35466 2011-02-06  Bruno Haible  <bruno@clisp.org>
35468         New module 'wcsncasecmp'.
35469         * modules/wcsncasecmp: New file.
35470         * lib/wchar.in.h (wcsncasecmp): New declaration.
35471         * lib/wcsncasecmp.c: New file.
35472         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
35473         * m4/wcsncasecmp.m4: New file.
35474         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
35475         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
35476         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
35477         HAVE_WCSNCASECMP.
35478         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
35479         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
35481 2011-02-06  Bruno Haible  <bruno@clisp.org>
35483         New module 'wcscasecmp'.
35484         * modules/wcscasecmp: New file.
35485         * lib/wchar.in.h (wcscasecmp): New declaration.
35486         * lib/wcscasecmp.c: New file.
35487         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
35488         * m4/wcscasecmp.m4: New file.
35489         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
35490         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
35491         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
35492         HAVE_WCSCASECMP.
35493         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
35494         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
35496 2011-02-05  Bruno Haible  <bruno@clisp.org>
35498         New module 'wcsncmp'.
35499         * modules/wcsncmp: New file.
35500         * lib/wchar.in.h (wcsncmp): New declaration.
35501         * lib/wcsncmp.c: New file.
35502         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
35503         * m4/wcsncmp.m4: New file.
35504         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
35505         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
35506         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
35507         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
35508         * doc/posix-functions/wcsncmp.texi: Mention the new module.
35510 2011-02-05  Bruno Haible  <bruno@clisp.org>
35512         New module 'wcscmp'.
35513         * modules/wcscmp: New file.
35514         * lib/wchar.in.h (wcscmp): New declaration.
35515         * lib/wcscmp.c: New file.
35516         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
35517         * m4/wcscmp.m4: New file.
35518         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
35519         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
35520         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
35521         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
35522         * doc/posix-functions/wcscmp.texi: Mention the new module.
35524 2011-02-05  Bruno Haible  <bruno@clisp.org>
35526         New module 'wcsncat'.
35527         * modules/wcsncat: New file.
35528         * lib/wchar.in.h (wcsncat): New declaration.
35529         * lib/wcsncat.c: New file.
35530         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
35531         * m4/wcsncat.m4: New file.
35532         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
35533         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
35534         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
35535         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
35536         * doc/posix-functions/wcsncat.texi: Mention the new module.
35538 2011-02-05  Bruno Haible  <bruno@clisp.org>
35540         New module 'wcscat'.
35541         * modules/wcscat: New file.
35542         * lib/wchar.in.h (wcscat): New declaration.
35543         * lib/wcscat.c: New file.
35544         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
35545         * m4/wcscat.m4: New file.
35546         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
35547         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
35548         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
35549         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
35550         * doc/posix-functions/wcscat.texi: Mention the new module.
35552 2011-02-05  Bruno Haible  <bruno@clisp.org>
35554         New module 'wcpncpy'.
35555         * modules/wcpncpy: New file.
35556         * lib/wchar.in.h (wcpncpy): New declaration.
35557         * lib/wcpncpy.c: New file.
35558         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
35559         * m4/wcpncpy.m4: New file.
35560         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
35561         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
35562         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
35563         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
35564         * doc/posix-functions/wcpncpy.texi: Mention the new module.
35566 2011-02-05  Bruno Haible  <bruno@clisp.org>
35568         New module 'wcsncpy'.
35569         * modules/wcsncpy: New file.
35570         * lib/wchar.in.h (wcsncpy): New declaration.
35571         * lib/wcsncpy.c: New file.
35572         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
35573         * m4/wcsncpy.m4: New file.
35574         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
35575         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
35576         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
35577         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
35578         * doc/posix-functions/wcsncpy.texi: Mention the new module.
35580 2011-02-05  Bruno Haible  <bruno@clisp.org>
35582         New module 'wcpcpy'.
35583         * modules/wcpcpy: New file.
35584         * lib/wchar.in.h (wcpcpy): New declaration.
35585         * lib/wcpcpy.c: New file.
35586         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
35587         * m4/wcpcpy.m4: New file.
35588         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
35589         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
35590         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
35591         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
35592         * doc/posix-functions/wcpcpy.texi: Mention the new module.
35594 2011-02-05  Bruno Haible  <bruno@clisp.org>
35596         New module 'wcscpy'.
35597         * modules/wcscpy: New file.
35598         * lib/wchar.in.h (wcscpy): New declaration.
35599         * lib/wcscpy.c: New file.
35600         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
35601         * m4/wcscpy.m4: New file.
35602         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
35603         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
35604         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
35605         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
35606         * doc/posix-functions/wcscpy.texi: Mention the new module.
35608 2011-02-05  Bruno Haible  <bruno@clisp.org>
35610         New module 'wcsnlen'.
35611         * modules/wcsnlen: New file.
35612         * lib/wchar.in.h (wcsnlen): New declaration.
35613         * lib/wcsnlen.c: New file.
35614         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
35615         * m4/wcsnlen.m4: New file.
35616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
35617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
35618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
35619         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
35620         * doc/posix-functions/wcsnlen.texi: Mention the new module.
35622 2011-02-05  Bruno Haible  <bruno@clisp.org>
35624         New module 'wcslen'.
35625         * modules/wcslen: New file.
35626         * lib/wchar.in.h (wcslen): New declaration.
35627         * lib/wcslen.c: New file.
35628         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
35629         * m4/wcslen.m4: New file.
35630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
35631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
35632         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
35633         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
35634         * doc/posix-functions/wcslen.texi: Mention the new module.
35636 2011-02-05  Bruno Haible  <bruno@clisp.org>
35638         New module 'wmemset'.
35639         * modules/wmemset: New file.
35640         * lib/wchar.in.h (wmemset): New declaration.
35641         * lib/wmemset.c: New file.
35642         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
35643         * m4/wmemset.m4: New file.
35644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
35645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
35646         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
35647         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
35648         * doc/posix-functions/wmemset.texi: Mention the new module.
35650 2011-02-05  Bruno Haible  <bruno@clisp.org>
35652         New module 'wmemmove'.
35653         * modules/wmemmove: New file.
35654         * lib/wchar.in.h (wmemmove): New declaration.
35655         * lib/wmemmove.c: New file.
35656         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
35657         * m4/wmemmove.m4: New file.
35658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
35659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
35660         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
35661         HAVE_WMEMMOVE.
35662         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
35663         * doc/posix-functions/wmemmove.texi: Mention the new module.
35665 2011-02-05  Bruno Haible  <bruno@clisp.org>
35667         New module 'wmemcpy'.
35668         * modules/wmemcpy: New file.
35669         * lib/wchar.in.h (wmemcpy): New declaration.
35670         * lib/wmemcpy.c: New file.
35671         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
35672         * m4/wmemcpy.m4: New file.
35673         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
35674         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
35675         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
35676         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
35677         * doc/posix-functions/wmemcpy.texi: Mention the new module.
35679 2011-02-05  Bruno Haible  <bruno@clisp.org>
35681         New module 'wmemcmp'.
35682         * modules/wmemcmp: New file.
35683         * lib/wchar.in.h (wmemcmp): New declaration.
35684         * lib/wmemcmp.c: New file.
35685         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
35686         * m4/wmemcmp.m4: New file.
35687         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
35688         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
35689         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
35690         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
35691         * doc/posix-functions/wmemcmp.texi: Mention the new module.
35693 2011-02-07  Jim Meyering  <meyering@redhat.com>
35695         di-set, ino-map: new modules, from coreutils
35696         * lib/di-set.c: New file.
35697         * lib/di-set.h: Likewise.
35698         * lib/ino-map.c: Likewise.
35699         * lib/ino-map.h: Likewise.
35700         * modules/di-set: Likewise.
35701         * modules/di-set-tests: Likewise.
35702         * modules/ino-map: Likewise.
35703         * modules/ino-map-tests: Likewise.
35704         * tests/test-di-set.c: Likewise.
35705         * tests/test-ino-map.c: Likewise.
35707 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
35709         getloadavg: merge minor changes from Emacs
35711         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
35712         (getloadavg): Use memset, not bzero.
35714         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
35715         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
35716         clash (bug#86).
35718 2010-11-14  Bruno Haible  <bruno@clisp.org>
35720         Allow multiple gnulib generated replacements to coexist.
35721         * lib/getopt.in.h (struct option): Avoid identical redefinition.
35722         * lib/inttypes.in.h (imaxdiv_t): Likewise.
35723         * lib/langinfo.in.h (nl_item): Likewise.
35724         * lib/math.in.h (_NaN, NAN): Likewise.
35725         * lib/netdb.in.h (struct addrinfo): Likewise.
35726         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
35727         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
35728         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
35729         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
35730         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
35731         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
35732         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
35733         pthread_mutexattr_init, pthread_mutexattr_settype,
35734         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
35735         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
35736         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
35737         pthread_spin_trylock, pthread_spin_unlock): Likewise.
35738         * lib/sched.in.h (struct sched_param): Likewise.
35739         * lib/se-selinux.in.h (security_class_t, security_context_t,
35740         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
35741         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
35742         lsetfilecon, fsetfilecon, security_check_context,
35743         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
35744         Likewise.
35745         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
35746         Likewise.
35747         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
35748         _gl_function_taking_int_returning_void_t, union sigval,
35749         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
35750         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
35751         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
35752         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
35753         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
35754         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
35755         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
35756         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
35757         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
35758         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
35759         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
35760         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
35761         socklen_t, rpl_fd_isset): Likewise.
35762         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
35763         * lib/sys_time.in.h (struct timeval): Likewise.
35764         * lib/sys_times.in.h (struct tms): Likewise.
35765         * lib/sys_utsname.in.h (struct utsname):
35766         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
35767         * lib/unistd.in.h (getpagesize): Likewise.
35768         * lib/wchar.in.h (mbstate_t): Likewise.
35769         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
35770         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
35771         towlower, towupper): Likewise.
35772         Reported by Sam Steingold <sds@gnu.org>.
35774 2011-02-05  Eric Blake  <eblake@redhat.com>
35776         unsetenv: work around Haiku issues
35777         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
35778         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
35780 2010-12-30  Bruce Korb  <bkorb@gnu.org>
35782         libposix: avoid calling error() within libposix
35783         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
35784         is defined.
35786 2011-02-05  Eric Blake  <eblake@redhat.com>
35788         strerror_r-posix: port to cygwin
35789         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
35790         implementation.
35791         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
35792         * tests/test-strerror_r.c (main): Fix test.
35793         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
35794         issue.
35796 2011-02-05  Bruno Haible  <bruno@clisp.org>
35798         New module 'wmemchr'.
35799         * modules/wmemchr: New file.
35800         * lib/wchar.in.h (wmemchr): New declaration.
35801         * lib/wmemchr.c: New file.
35802         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
35803         * m4/wmemchr.m4: New file.
35804         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
35805         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
35806         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
35807         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
35808         * doc/posix-functions/wmemchr.texi: Mention the new module.
35810 2011-02-04  Eric Blake  <eblake@redhat.com>
35812         fdopendir: detect FreeBSD bug
35813         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
35814         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
35816 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35818         stdbool: do not define HAVE_STDBOOL_H
35819         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
35820         AC_HEADER_STDBOOL.  All uses changed.  Do not define
35821         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
35822         imported from the latest Autoconf git.  It was motivated by Emacs,
35823         which uses gnulib but does not need HAVE_STDBOOL_H.
35825 2011-02-04  Bruno Haible  <bruno@clisp.org>
35827         wcsnrtombs: Prepare for new module wwcsnrtombs.
35828         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
35829         * lib/wcsnrtombs.c: Include it.
35830         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
35832         wcsrtombs: Prepare for new module wwcsrtombs.
35833         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
35834         * lib/wcsrtombs.c: Include it.
35835         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
35837         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
35838         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
35839         * lib/mbsnrtowcs.c: Include it.
35840         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
35842         mbsrtowcs: Prepare for new module mbsrtowwcs.
35843         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
35844         * lib/mbsrtowcs.c: Include it.
35845         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
35847 2011-02-04  Bruno Haible  <bruno@clisp.org>
35849         vasnprintf: Reduce use of malloc for small format strings.
35850         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
35851         (arguments): Add room for the first 7 arguments.
35852         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
35853         (char_directives, u8_directives, u16_directives, u32_directives): Add
35854         room for the first 7 directives.
35855         * lib/printf-parse.c: Include <string.h>.
35856         (PRINTF_PARSE): Change memory handling code so that it uses the first
35857         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
35858         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
35859         Reported by Pádraig Brady <P@draigbrady.com>.
35861 2011-01-31  Eric Blake  <eblake@redhat.com>
35863         dup2: work around Haiku bug
35864         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
35865         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
35866         * doc/posix-functions/dup2.texi (dup2): Document the bug.
35867         * tests/test-dup2.c (main): Enhance test.
35869 2011-01-31  Simon Josefsson  <simon@josefsson.org>
35871         doc: off_t is not available in eglibc 2.11.2 stdio.h.
35872         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
35873         declared by eglibc 2.11.2.
35874         * lib/stdio.in.h: Likewise.
35876 2011-01-31  Eric Blake  <eblake@redhat.com>
35878         ignore-value: add missing test dependency
35879         * tests/test-ignore-value.c: Revert previous change; stdio.h
35880         provides off_t.
35881         * modules/ignore-value-tests (Depends-on): Add missing dependency.
35883 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
35885         mktime: clarify long_int width checking
35886         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
35887         the top level, to make it clearer that the assumption about
35888         long_int width is being checked.  See
35889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
35891 2011-01-30  Simon Josefsson  <simon@josefsson.org>
35893         ignore-value: Fix self-test.
35894         * tests/test-ignore-value.c: Include sys/types.h for off_t.
35896 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35898         TYPE_MAXIMUM: avoid theoretically undefined behavior
35899         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
35900         negative number, which the C Standard says has undefined behavior.
35901         In practice this is not a problem, but might as well do it by the book.
35902         Reported by Rich Felker and Eric Blake; see
35903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
35904         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
35905         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
35906         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35907         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
35908         * m4/stdint.m4 (gl_STDINT_H): Likewise.
35909         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
35911         mktime: #undef mktime before #defining it
35912         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
35914         mktime: systematically normalize tm_isdst comparisons
35915         * lib/mktime.c (isdst_differ): New function.
35916         (__mktime_internal): Use it systematically for all isdst comparisons.
35917         This completes the fix for libc BZ #6723, and removes the need for
35918         normalizing tm_isdst.  See
35919         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
35920         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
35922         mktime: fix some integer overflow issues and sidestep the rest
35924         This was prompted by a bug report by Benjamin Lindner for MinGW
35925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
35926         His bug is due to signed integer overflow (0 - INT_MIN), and I
35927         I scanned through mktime.c looking for other integer overflow
35928         problems, fixing all the bugs I found.
35930         Although the C Standard says the resulting code is still not safe
35931         in the presence of integer overflow, in practice it should be good
35932         enough for all real-world two's-complement implementations, except
35933         for debugging environments that deliberately trap on integer
35934         overflow (e.g., gcc -ftrapv).
35936         * lib/mktime.c (WRAPV): New macro.
35937         (SHR): Also check that long_int and time_t shift right in the
35938         usual way, before using the fast-but-unportable method.
35939         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
35940         used.  The code already assumed two's complement, so there's
35941         no need to test for alternatives.  All uses removed.
35942         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
35943         the C standard.  Problem reported by Rich Felker in
35944         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
35945         (twos_complement_arithmetic): Also check long_int and time_t.
35946         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
35947         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
35948         (__mktime_internal): Avoid integer overflow with unary subtraction
35949         in two instances where -1 - X is an adequate replacement for -X,
35950         since the calculations are approximate.
35952 2011-01-29  Eric Blake  <eblake@redhat.com>
35954         mktime: avoid infinite loop
35955         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
35956         type; behavior is still undefined but portable to all known targets.
35957         Reported by Rich Felker.
35959 2011-01-29  Simon Josefsson  <simon@josefsson.org>
35961         rename, unlink, same-inode: Relicense.
35962         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
35963         * modules/unlink (License): Likewise.
35964         * modules/same-inode (License): Likewise.
35966 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
35968         mktime: avoid problems on NetBSD 5 / i386
35969         * lib/mktime.c (long_int): New type.  This works around a problem
35970         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
35971         but time_t is 64 bits, and where I expect the existing code is
35972         wrong in some cases.
35973         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
35974         (ydhms_diff): Bring back the compile-time check for wide-enough
35975         year and yday.
35977         mktime: fix misspelling in comment
35978         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
35979         This merges all recent glibc changes of importance.
35981 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35983         move-if-change: cope with concurrent mv of identical file.
35984         * build-aux/move-if-change (CMPPROG): Accept environment
35985         variable as an override for `cmp'.
35986         (usage): Document CMPPROG.
35987         Adjust comparison to drop stdout.  Cope with failure of mv if
35988         the target file exists and is identical to the source, for
35989         parallel builds.
35990         Report from H.J. Lu against binutils in PR binutils/12283.
35992 2011-01-28  Bruce Korb  <bkorb@gnu.org>
35994         * users.txt: Mention sharutils.
35996 2011-01-28  Simon Josefsson  <simon@josefsson.org>
35998         * users.txt: Mention OATH Toolkit.
36000 2011-01-27  Bruno Haible  <bruno@clisp.org>
36002         Prepare for supporting FreeBSD 10.
36003         * build-aux/config.libpath: Remove handling of freebsd1*.
36005 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
36007         Prepare for supporting FreeBSD 10.
36008         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
36009         match FreeBSD 10.0.
36011 2011-01-27  Bruno Haible  <bruno@clisp.org>
36013         vma-iter, get-rusage-as: Add OpenBSD support.
36014         * modules/vma-iter (configure.ac): Test for mquery.
36015         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
36016         * lib/vma-iter.c: Include <sys/mman.h>.
36017         (vma_iterate): Add an implementation based on mquery().
36018         * lib/resource-ext.h (get_rusage_as): Update comments.
36019         * lib/get-rusage-as.c: Likewise.
36020         * lib/get-rusage-data.c: Likewise.
36022 2011-01-26  Karl Berry  <karl@gnu.org>
36024         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
36025         variables to make it easier to override the makeinfo program used.
36027 2011-01-26  Eric Blake  <eblake@redhat.com>
36029         fcntl: work around Haiku F_DUPFD bugs
36030         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
36031         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
36032         cloexec bit on duplication.
36033         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
36035 2011-01-26  Bruno Haible  <bruno@clisp.org>
36037         Enable memory leak tests on AIX.
36038         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
36039         * tests/test-fprintf-posix3.c (main): Likewise.
36041 2011-01-26  Bruno Haible  <bruno@clisp.org>
36043         Tests for module 'get-rusage-data'.
36044         * modules/get-rusage-data-tests: New file.
36045         * tests/test-get-rusage-data.c: New file.
36047         New module 'get-rusage-data'.
36048         * lib/resource-ext.h (get_rusage_data): New declaration.
36049         * lib/get-rusage-data.c: New file.
36050         * modules/get-rusage-data: New file.
36052 2011-01-25  Bruno Haible  <bruno@clisp.org>
36054         get-rusage-as: Allow for easier testing.
36055         * lib/resource-ext.h (get_rusage_as): Add comment.
36056         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
36057         (main): New function for interactive testing.
36059 2011-01-25  Bruno Haible  <bruno@clisp.org>
36061         vma-iter: Treat Haiku like BeOS.
36062         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
36063         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
36065 2011-01-25  Eric Blake  <eblake@redhat.com>
36067         c-stack: fix regression on cygwin when libsigsegv is present
36068         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
36070 2011-01-24  Bruno Haible  <bruno@clisp.org>
36072         vma-iter: Avoid empty intervals.
36073         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
36074         on an empty interval.
36076 2011-01-24  Jim Meyering  <meyering@redhat.com>
36078         u64: remove unnecessary #include
36079         * lib/u64.h: Don't include <stddef.h>.  It was not used.
36081 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36083         Allow the user to avoid the HAVE_RAW_DECL_* macros.
36084         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
36086 2011-01-23  Bruno Haible  <bruno@clisp.org>
36088         New module 'vma-iter'.
36089         * lib/vma-iter.h: New file.
36090         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
36091         * modules/vma-iter: New file.
36092         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
36093         for get_rusage_as_via_iterator.
36094         (vma_iterate_callback): New function.
36095         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
36096         * modules/get-rusage-as (Depends-on): Add vma-iter.
36098 2011-01-23  Bruno Haible  <bruno@clisp.org>
36100         uninorm: Tweak includes.
36101         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
36102         Reported by Jim Meyering.
36104 2011-01-23  Bruno Haible  <bruno@clisp.org>
36106         get-rusage-as: Improve on NetBSD.
36107         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
36108         /proc, like on FreeBSD.
36110 2011-01-23  Jim Meyering  <meyering@redhat.com>
36112         xreadlink.h: remove unnecessary #include
36113         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
36115         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
36116         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
36118 2011-01-23  Bruno Haible  <bruno@clisp.org>
36120         get-rusage-as: Fix bug.
36121         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
36122         original limit when aborting the first loop.
36124 2011-01-23  Bruno Haible  <bruno@clisp.org>
36126         wctype: Ensure valid C syntax.
36127         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
36128         unconditionally, instead of gl_NEXT_HEADERS conditionally.
36130 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
36132         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
36133         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
36134         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
36135         as they are needed only for configure's test case.
36136         This removes two unnecessary symbols from config.h.
36138         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
36139         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
36140         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
36141         AC_CHECK_HEADERS_ONCE on a header that we also invoke
36142         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
36143         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
36144         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
36145         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
36146         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36147         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36148         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36149         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36150         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36151         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36152         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
36153         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36154         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
36155         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
36157 2011-01-21  Eric Blake  <eblake@redhat.com>
36159         maintainer-makefile: work with older git for submodule check
36160         * top/maint.mk (public-submodule-commit): Rewrite to avoid
36161         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
36162         Reported by Matthias Bolte.
36164         bootstrap: minor portability fixes
36165         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
36166         (usage): Omit leading capital and trailing . on help phrases, per
36167         GNU Coding Standards.
36168         (check_versions, top level): Prefix messages with script name.
36170 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
36172         bootstrap: support --no-git option
36173         * build-aux/bootstrap: Add --no-git option, to be used when
36174         --gnulib-srcdir points to the exact desired checkout.
36176 2011-01-21  Eric Blake  <eblake@redhat.com>
36178         strerror_r-posix: work with glibc 2.13
36179         * lib/strerror_r.c (strerror_r): Fix return type.
36181 2011-01-21  Pádraig Brady  <P@draigBrady.com>
36182             Bruno Haible  <bruno@clisp.org>
36184         uN_strstr: New unit tests.
36185         * modules/unistr/u8-strstr-tests: New file.
36186         * modules/unistr/u16-strstr-tests: New file.
36187         * modules/unistr/u32-strstr-tests: New file.
36188         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
36189         * tests/unistr/test-u8-strstr.c: New file.
36190         * tests/unistr/test-u16-strstr.c: New file.
36191         * tests/unistr/test-u32-strstr.c: New file.
36193 2011-01-21  Pádraig Brady  <P@draigBrady.com>
36194             Bruno Haible  <bruno@clisp.org>
36196         Make uN_strstr functions O(n) worst-case.
36197         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
36198         16-bit and 32-bit unit cases, use the unibyte algorithm from
36199         lib/mbsstr.c.
36200         * lib/unistr/u8-strstr.c: Include <string.h>.
36201         (UNIT_IS_UINT8_T): New macro.
36202         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
36203         (U_STRLEN, U_STRNLEN): New macros.
36204         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
36205         (U_STRLEN, U_STRNLEN): New macros.
36206         * modules/unistr/u8-strstr (Depends-on): Add strstr.
36207         (configure.ac): Update required libunistring version.
36208         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
36209         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
36210         malloca.
36211         (configure.ac): Update required libunistring version.
36212         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
36213         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
36214         malloca.
36215         (configure.ac): Update required libunistring version.
36217 2011-01-21  Pádraig Brady  <P@draigBrady.com>
36218             Bruno Haible  <bruno@clisp.org>
36220         Prepare for faster uN_strstr functions.
36221         * lib/str-kmp.h: Support definable UNITs.
36222         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
36223         needle_len argument.
36224         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
36225         * lib/mbscasestr.c (mbscasestr): Likewise.
36227 2011-01-21  Pádraig Brady <P@draigBrady.com>
36229         malloca-tests: make faster by unsetting MALLOC_PERTURB_
36230         * tests/test-malloca.c (main): Unset the environment variable
36231         to greatly speed up the test.
36232         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
36233         * modules/malloca-tests: Depend on unsetenv.
36235 2011-01-21  Pádraig Brady <P@draigBrady.com>
36237         ignore-value: remove stdint dependency
36238         * lib/ignore-value.h: Remove <stdint.h>
36239         * modules/ignore-value: Remove stdint dependency.
36241 2011-01-21  Jim Meyering  <meyering@redhat.com>
36243         maint.mk: adjust variable name to be consistent with other gl_ vars
36244         * top/maint.mk (gl_public_submodule_commit): Rename the variable
36245         to be lower case.
36247 2011-01-20  Jim Meyering  <meyering@redhat.com>
36249         maint.mk: make "check" depend on public-submodule-commit by default
36250         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
36252 2011-01-20  Bruno Haible  <bruno@clisp.org>
36254         mbfile, mbiter: Complete change from 2008-12-21.
36255         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
36256         * m4/mbiter.m4 (gl_MBITER): Likewise.
36258 2011-01-20  Jim Meyering  <meyering@redhat.com>
36260         init.sh: insert space between each function name and "()"
36261         * tests/init.sh: Make it a little easier to see that a function's
36262         name is "warn_", and not "warn" when looking at the first part of
36263         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
36265 2011-01-20  Jim Meyering  <meyering@redhat.com>
36267         mountlist: clean up code formatting
36268         * lib/mountlist.c (read_file_system_list): Split a long line,
36269         correct bracing style, use NULL in place of "(struct statfs *)0",
36270         don't parenthesize return value, add spaces around "=" and after
36271         ";-in-for-stmt".
36273 2011-01-14  Markus Duft <mduft@gentoo.org>
36275         mountlist: add support for Interix
36276         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
36277         Apply statvfs to all entries of /dev/fs.
36278         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
36279         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
36281 2011-01-20  Jim Meyering  <meyering@redhat.com>
36283         maint.mk: improve the public-submodule-commit rule
36284         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
36285         to suppress printing of its commands... unless V=1.
36286         Add git submodule's --quiet option to suppress printing of e.g.,
36287         "Entering gnulib" output.
36288         "cd" into $(srcdir) before running git submodule.
36290 2011-01-20  Bruno Haible  <bruno@clisp.org>
36292         include_next: Fix bug introduced on 2011-01-18.
36293         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
36294         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
36295         ac_cv_header_... variable if the second argument is not 'check'.
36296         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
36297         gl_NEXT_HEADERS_INTERNAL.
36299 2011-01-20  Bruno Haible  <bruno@clisp.org>
36301         Allow the user to avoid the GNULIB_TEST_* macros.
36302         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
36303         Suggested by Paul Eggert.
36305 2011-01-14  Jim Meyering  <meyering@redhat.com>
36307         bootstrap: avoid failure when there is no .gitmodules file
36308         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
36309         has been assigned to, even when its value is the empty string.
36310         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
36311         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
36312         Reported by John W. Eaton <jwe@gnu.org>.
36314 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
36316         assume <ctype.h>, ..., <time.h> exist
36317         For years gnulib has been assuming the existence of the headers
36318         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
36319         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
36320         them, since they don't appear to be needed.
36321         * README (Portability guidelines): Document this.
36322         * lib/flock.c: Assume <fcntl.h> exists.
36323         * lib/regex_internal.h: Assume <locale.h> exists.
36324         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
36325         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
36326         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
36327         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
36328         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
36329         * m4/regex.m4 (gl_REGEX): Likewise.
36330         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
36331         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
36332         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
36333         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
36334         * tests/test-argp.c: Likewise.
36335         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
36337         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
36338         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
36339         AA_APPLE_UNIVERSAL_BUILD.  See
36340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
36341         * NEWS: Document this.
36343 2011-01-19  Eric Blake  <eblake@redhat.com>
36345         c-stack: assume stack overflow if SA_SIGINFO unsupported
36346         * lib/c-stack.c (SIGACTION_WORKS): Rename...
36347         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
36348         sigaction will work.
36349         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
36350         behavior match Linux.
36351         * tests/test-c-stack.c (main): Prefer NULL for pointers.
36353         stdbool-tests: accommodate Haiku
36354         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
36356         binary-io: fix O_TEXT on Haiku
36357         * modules/binary-io (Depends-on): Add fcntl-h.
36358         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
36359         than blindly undefining O_TEXT.
36360         Reported by Scott McCreary.
36362 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
36364         include_next: do not check for standard headers like stddef.h
36366         I found this problem when modifying Emacs to use gnulib.
36367         I noticed that it added HAVE_STDDEF_H to config.h, even though
36368         gnulib always assumes <stddef.h> exists as per README and this
36369         symbol is unnecessary.
36370         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
36371         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
36372         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
36373         faster for headers like stddef.h that are known to exist.
36374         (gl_CHECK_NEXT_HEADERS): Use it.
36375         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
36376         rather than gl_CHECK_NEXT_HEADERS.
36377         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
36378         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
36380 2011-01-18  Eric Blake  <eblake@redhat.com>
36382         ansi-c++-opt: skip C++ dependency style if C++ is unused
36383         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
36384         tests when we know C++ compilation is not desired.
36385         Reported by Scott McCreary.
36387 2011-01-18  Bruno Haible  <bruno@clisp.org>
36389         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
36390         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
36391         (main): Perform test also when getrlimit and setrlimit don't exist or
36392         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
36393         limiting the address space size using setrlimit, compare the address
36394         space size before and after the the test.
36395         * tests/test-dprintf-posix2.c: Likewise.
36396         * tests/test-fprintf-posix3.sh: Update skip messages.
36397         * tests/test-dprintf-posix2.sh: Likewise.
36398         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
36399         * modules/dprintf-posix-tests (Depends-on): Likewise.
36400         Reported by Bruce Korb <bkorb@gnu.org> and
36401         Gary V. Vaughan <gary@gnu.org>.
36403 2011-01-18  Bruno Haible  <bruno@clisp.org>
36405         get-rusage-as: Improvement for Cygwin.
36406         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
36407         areas that are merely reserved.
36409 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
36411         strftime: remove dependencies on multibyte modules
36413         strftime depended on mbrlen, mbsinit, and wchar, but these modules
36414         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
36415         only if __osf__ is defined, and I suspect OSF doesn't need these
36416         other modules.  If my guess is wrong, we'll need to come up with a
36417         variant of strftime that doesn't need the multibyte modules.
36419         I discovered this problem when attempting modify Emacs to use the
36420         strftime module.  With the previous gnulib, this caused Emacs to
36421         need 31 new files, ranging from lib/config.charset to
36422         m4/wint_t.m4.  This was overkill and I expect would be offputting
36423         to the Emacs maintainers.  After this change, only 6 new files are
36424         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
36425         stdbool.m4, and tm_gmtoff.m4.
36427         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
36428         Suggested by Bruno Haible in
36429         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
36430         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
36431         and do not check for wchar.h.
36432         * modules/strftime (Files): Remove m4/mbstate_t.m4.
36433         (Depends-on): Remove mbrlen, mbsinit, wchar.
36435 2011-01-18  Bruno Haible  <bruno@clisp.org>
36437         Tests for module 'get-rusage-as'.
36438         * modules/get-rusage-as-tests: New file.
36439         * tests/test-get-rusage-as.c: New file.
36441         New module 'get-rusage-as'.
36442         * modules/get-rusage-as: New file.
36443         * lib/resource-ext.h: New file.
36444         * lib/get-rusage-as.c: New file.
36446 2011-01-17  Eric Blake  <eblake@redhat.com>
36448         sigaction: relax license from LGPLv3+ to LGPLv2+
36449         * modules/sigaction (License): Relax to LGPLv2+.
36451 2011-01-14  Bruno Haible  <bruno@clisp.org>
36453         filemode: Make function declarations usable in C++ mode.
36454         * lib/filemode.h: Enclose function declarations in extern "C" block.
36455         Reported by John W. Eaton <jwe@gnu.org>.
36457 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
36459         save-cwd: no longer include "xgetcwd.h"
36460         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
36461         This avoids a compilation failure in projects that use save-cwd
36462         without also using the xgetcwd module.
36464 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
36466         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
36467         This is so that a program like Emacs, which needs only dtoastr,
36468         does not have to bother with distributing and compiling ftoastr
36469         and ldtoastr.
36470         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
36471         * modules/dtoastr, modules/ldtoastr: New files.
36472         * modules/ftoastr: Now works just for 'float'.
36473         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
36474         (Makefile.am): Remove ftoastr.h (not needed and no effect),
36475         dtoastr.c, ldtoastr.c.
36477 2011-01-11  Jim Meyering  <meyering@redhat.com>
36479         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
36480         There is no need to work around the lack of the fchdir function,
36481         since gnulib can now provide a replacement when required.
36482         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
36483         * modules/save-cwd (Depends-on): Add fchdir.
36485 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
36487         openat, save-cwd: avoid xmalloc
36489         This removes a direct (but undocumented) dependency of openat on
36490         xalloc, along with an indirect dependency via save-cwd.  It also
36491         removes a dependency of save-cwd on xgetcwd, and thereby
36492         indirectly on xalloc.  This change causes the openat substitute
36493         to fall back on save_cwd when memory is tight, and for save_cwd to
36494         fail instead of dying when memory is tight, but that's good enough.
36495         Problem and initial idea for fix reported by Bastien Roucaries in
36496         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
36498         * lib/openat-proc.c: Include stdlib.h (for malloc), not
36499         xalloc.h (for xmalloc).
36500         (openat_proc_name): Use malloc, not xmalloc.
36501         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
36502         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
36504         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
36505         This avoids heap allocation for file names whose lengths are in
36506         the range 512..1023, with the upper bound increasing to at most
36507         4031 depending on the platform's PATH_MAX.  (We do not want
36508         pathmax.h here as it might supply a non-constant PATH_MAX.)
36509         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
36510         Perhaps they should be moved to malloca.h?
36511         (OPENAT_BUFFER_SIZE): Use them.
36513 2011-01-10  Bruno Haible  <bruno@clisp.org>
36515         doc: Update users.txt.
36516         * users.txt: Add recutils.
36518 2011-01-09  Karl Berry  <karl@gnu.org>
36520         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
36522         * doc/configmake.texi: New file.
36523         * doc/gnulib.texi: Include it.
36524         * modules/configmake: Move documentation from here.
36526 2011-01-09  Bruno Haible  <bruno@clisp.org>
36528         Update to Unicode 6.0.0.
36529         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
36530         (get_lbp): Update for Unicode 6.0.0.
36531         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
36532         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
36533         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
36534         U+11001, U+11038..U+11046. Remove U+06DE.
36535         (uc_width): Fix bounds of planes.
36536         * tests/uniwidth/test-uc_width2.sh: Same updates as in
36537         lib/uniwidth/width.c.
36538         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
36539         trailing whitespace removed.
36540         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
36541         without comments, but with the original copyright notice.
36542         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
36543         * lib/unicase/ignorable.h: Likewise.
36544         * lib/unicase/tocasefold.h: Likewise.
36545         * lib/unicase/tolower.h: Likewise.
36546         * lib/unicase/totitle.h: Likewise.
36547         * lib/unicase/toupper.h: Likewise.
36548         * lib/unictype/bidi_of.h: Likewise.
36549         * lib/unictype/blocks.h: Likewise.
36550         * lib/unictype/categ_C.h: Likewise.
36551         * lib/unictype/categ_Cn.h: Likewise.
36552         * lib/unictype/categ_L.h: Likewise.
36553         * lib/unictype/categ_Ll.h: Likewise.
36554         * lib/unictype/categ_Lm.h: Likewise.
36555         * lib/unictype/categ_Lo.h: Likewise.
36556         * lib/unictype/categ_Lu.h: Likewise.
36557         * lib/unictype/categ_M.h: Likewise.
36558         * lib/unictype/categ_Mc.h: Likewise.
36559         * lib/unictype/categ_Me.h: Likewise.
36560         * lib/unictype/categ_Mn.h: Likewise.
36561         * lib/unictype/categ_N.h: Likewise.
36562         * lib/unictype/categ_Nd.h: Likewise.
36563         * lib/unictype/categ_No.h: Likewise.
36564         * lib/unictype/categ_P.h: Likewise.
36565         * lib/unictype/categ_Po.h: Likewise.
36566         * lib/unictype/categ_S.h: Likewise.
36567         * lib/unictype/categ_Sc.h: Likewise.
36568         * lib/unictype/categ_Sk.h: Likewise.
36569         * lib/unictype/categ_Sm.h: Likewise.
36570         * lib/unictype/categ_So.h: Likewise.
36571         * lib/unictype/categ_of.h: Likewise.
36572         * lib/unictype/combining.h: Likewise.
36573         * lib/unictype/ctype_alnum.h: Likewise.
36574         * lib/unictype/ctype_alpha.h: Likewise.
36575         * lib/unictype/ctype_graph.h: Likewise.
36576         * lib/unictype/ctype_lower.h: Likewise.
36577         * lib/unictype/ctype_print.h: Likewise.
36578         * lib/unictype/ctype_punct.h: Likewise.
36579         * lib/unictype/ctype_upper.h: Likewise.
36580         * lib/unictype/decdigit.h: Likewise.
36581         * lib/unictype/digit.h: Likewise.
36582         * lib/unictype/numeric.h: Likewise.
36583         * lib/unictype/pr_alphabetic.h: Likewise.
36584         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
36585         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
36586         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
36587         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
36588         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
36589         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
36590         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
36591         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
36592         * lib/unictype/pr_case_ignorable.h: Likewise.
36593         * lib/unictype/pr_cased.h: Likewise.
36594         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
36595         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
36596         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
36597         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
36598         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
36599         * lib/unictype/pr_combining.h: Likewise.
36600         * lib/unictype/pr_composite.h: Likewise.
36601         * lib/unictype/pr_currency_symbol.h: Likewise.
36602         * lib/unictype/pr_decimal_digit.h: Likewise.
36603         * lib/unictype/pr_deprecated.h: Likewise.
36604         * lib/unictype/pr_format_control.h: Likewise.
36605         * lib/unictype/pr_grapheme_base.h: Likewise.
36606         * lib/unictype/pr_grapheme_extend.h: Likewise.
36607         * lib/unictype/pr_grapheme_link.h: Likewise.
36608         * lib/unictype/pr_id_continue.h: Likewise.
36609         * lib/unictype/pr_id_start.h: Likewise.
36610         * lib/unictype/pr_ideographic.h: Likewise.
36611         * lib/unictype/pr_lowercase.h: Likewise.
36612         * lib/unictype/pr_math.h: Likewise.
36613         * lib/unictype/pr_numeric.h: Likewise.
36614         * lib/unictype/pr_other_alphabetic.h: Likewise.
36615         * lib/unictype/pr_other_id_continue.h: Likewise.
36616         * lib/unictype/pr_other_math.h: Likewise.
36617         * lib/unictype/pr_punctuation.h: Likewise.
36618         * lib/unictype/pr_sentence_terminal.h: Likewise.
36619         * lib/unictype/pr_terminal_punctuation.h: Likewise.
36620         * lib/unictype/pr_unassigned_code_value.h: Likewise.
36621         * lib/unictype/pr_unified_ideograph.h: Likewise.
36622         * lib/unictype/pr_uppercase.h: Likewise.
36623         * lib/unictype/pr_xid_continue.h: Likewise.
36624         * lib/unictype/pr_xid_start.h: Likewise.
36625         * lib/unictype/scripts.h: Likewise.
36626         * lib/unictype/scripts_byname.gperf: Likewise.
36627         * lib/unictype/sy_java_ident.h: Likewise.
36628         * lib/unigbrk/gbrkprop.h: Likewise.
36629         * lib/unilbrk/lbrkprop1.h: Likewise.
36630         * lib/unilbrk/lbrkprop2.h: Likewise.
36631         * lib/uninorm/decomposition-table2.h: Likewise.
36632         * lib/uniwbrk/wbrkprop.h: Likewise.
36633         * tests/unicase/test-cased.c: Likewise.
36634         * tests/unicase/test-ignorable.c: Likewise.
36635         * tests/unicase/test-uc_tolower.c: Likewise.
36636         * tests/unicase/test-uc_totitle.c: Likewise.
36637         * tests/unicase/test-uc_toupper.c: Likewise.
36638         * tests/unictype/test-categ_C.c: Likewise.
36639         * tests/unictype/test-categ_Cn.c: Likewise.
36640         * tests/unictype/test-categ_L.c: Likewise.
36641         * tests/unictype/test-categ_Ll.c: Likewise.
36642         * tests/unictype/test-categ_Lm.c: Likewise.
36643         * tests/unictype/test-categ_Lo.c: Likewise.
36644         * tests/unictype/test-categ_Lu.c: Likewise.
36645         * tests/unictype/test-categ_M.c: Likewise.
36646         * tests/unictype/test-categ_Mc.c: Likewise.
36647         * tests/unictype/test-categ_Me.c: Likewise.
36648         * tests/unictype/test-categ_Mn.c: Likewise.
36649         * tests/unictype/test-categ_N.c: Likewise.
36650         * tests/unictype/test-categ_Nd.c: Likewise.
36651         * tests/unictype/test-categ_No.c: Likewise.
36652         * tests/unictype/test-categ_P.c: Likewise.
36653         * tests/unictype/test-categ_Po.c: Likewise.
36654         * tests/unictype/test-categ_S.c: Likewise.
36655         * tests/unictype/test-categ_Sc.c: Likewise.
36656         * tests/unictype/test-categ_Sk.c: Likewise.
36657         * tests/unictype/test-categ_Sm.c: Likewise.
36658         * tests/unictype/test-categ_So.c: Likewise.
36659         * tests/unictype/test-ctype_alnum.c: Likewise.
36660         * tests/unictype/test-ctype_alpha.c: Likewise.
36661         * tests/unictype/test-ctype_graph.c: Likewise.
36662         * tests/unictype/test-ctype_lower.c: Likewise.
36663         * tests/unictype/test-ctype_print.c: Likewise.
36664         * tests/unictype/test-ctype_punct.c: Likewise.
36665         * tests/unictype/test-ctype_upper.c: Likewise.
36666         * tests/unictype/test-decdigit.h: Likewise.
36667         * tests/unictype/test-digit.h: Likewise.
36668         * tests/unictype/test-numeric.h: Likewise.
36669         * tests/unictype/test-pr_alphabetic.c: Likewise.
36670         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
36671         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
36672         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
36673         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
36674         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
36675         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
36676         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
36677         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
36678         * tests/unictype/test-pr_case_ignorable.c: Likewise.
36679         * tests/unictype/test-pr_cased.c: Likewise.
36680         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
36681         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
36682         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
36683         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
36684         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
36685         * tests/unictype/test-pr_combining.c: Likewise.
36686         * tests/unictype/test-pr_composite.c: Likewise.
36687         * tests/unictype/test-pr_currency_symbol.c: Likewise.
36688         * tests/unictype/test-pr_decimal_digit.c: Likewise.
36689         * tests/unictype/test-pr_deprecated.c: Likewise.
36690         * tests/unictype/test-pr_format_control.c: Likewise.
36691         * tests/unictype/test-pr_grapheme_base.c: Likewise.
36692         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
36693         * tests/unictype/test-pr_grapheme_link.c: Likewise.
36694         * tests/unictype/test-pr_id_continue.c: Likewise.
36695         * tests/unictype/test-pr_id_start.c: Likewise.
36696         * tests/unictype/test-pr_ideographic.c: Likewise.
36697         * tests/unictype/test-pr_lowercase.c: Likewise.
36698         * tests/unictype/test-pr_math.c: Likewise.
36699         * tests/unictype/test-pr_numeric.c: Likewise.
36700         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
36701         * tests/unictype/test-pr_other_id_continue.c: Likewise.
36702         * tests/unictype/test-pr_other_math.c: Likewise.
36703         * tests/unictype/test-pr_punctuation.c: Likewise.
36704         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
36705         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
36706         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
36707         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
36708         * tests/unictype/test-pr_uppercase.c: Likewise.
36709         * tests/unictype/test-pr_xid_continue.c: Likewise.
36710         * tests/unictype/test-pr_xid_start.c: Likewise.
36711         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
36712         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
36713         changes.
36714         * lib/unictype/categ_Cc.h: Likewise.
36715         * lib/unictype/categ_Cf.h: Likewise.
36716         * lib/unictype/categ_Co.h: Likewise.
36717         * lib/unictype/categ_Cs.h: Likewise.
36718         * lib/unictype/categ_Lt.h: Likewise.
36719         * lib/unictype/categ_Nl.h: Likewise.
36720         * lib/unictype/categ_Pc.h: Likewise.
36721         * lib/unictype/categ_Pd.h: Likewise.
36722         * lib/unictype/categ_Pe.h: Likewise.
36723         * lib/unictype/categ_Pf.h: Likewise.
36724         * lib/unictype/categ_Pi.h: Likewise.
36725         * lib/unictype/categ_Ps.h: Likewise.
36726         * lib/unictype/categ_Z.h: Likewise.
36727         * lib/unictype/categ_Zl.h: Likewise.
36728         * lib/unictype/categ_Zp.h: Likewise.
36729         * lib/unictype/categ_Zs.h: Likewise.
36730         * lib/unictype/ctype_blank.h: Likewise.
36731         * lib/unictype/ctype_cntrl.h: Likewise.
36732         * lib/unictype/ctype_digit.h: Likewise.
36733         * lib/unictype/ctype_space.h: Likewise.
36734         * lib/unictype/ctype_xdigit.h: Likewise.
36735         * lib/unictype/mirror.h: Likewise.
36736         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
36737         * lib/unictype/pr_bidi_block_separator.h: Likewise.
36738         * lib/unictype/pr_bidi_common_separator.h: Likewise.
36739         * lib/unictype/pr_bidi_control.h: Likewise.
36740         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
36741         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
36742         * lib/unictype/pr_bidi_european_digit.h: Likewise.
36743         * lib/unictype/pr_bidi_pdf.h: Likewise.
36744         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
36745         * lib/unictype/pr_bidi_whitespace.h: Likewise.
36746         * lib/unictype/pr_dash.h: Likewise.
36747         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
36748         * lib/unictype/pr_diacritic.h: Likewise.
36749         * lib/unictype/pr_extender.h: Likewise.
36750         * lib/unictype/pr_hex_digit.h: Likewise.
36751         * lib/unictype/pr_hyphen.h: Likewise.
36752         * lib/unictype/pr_ids_binary_operator.h: Likewise.
36753         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
36754         * lib/unictype/pr_ignorable_control.h: Likewise.
36755         * lib/unictype/pr_iso_control.h: Likewise.
36756         * lib/unictype/pr_join_control.h: Likewise.
36757         * lib/unictype/pr_left_of_pair.h: Likewise.
36758         * lib/unictype/pr_line_separator.h: Likewise.
36759         * lib/unictype/pr_logical_order_exception.h: Likewise.
36760         * lib/unictype/pr_non_break.h: Likewise.
36761         * lib/unictype/pr_not_a_character.h: Likewise.
36762         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
36763         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
36764         * lib/unictype/pr_other_id_start.h: Likewise.
36765         * lib/unictype/pr_other_lowercase.h: Likewise.
36766         * lib/unictype/pr_other_uppercase.h: Likewise.
36767         * lib/unictype/pr_paired_punctuation.h: Likewise.
36768         * lib/unictype/pr_paragraph_separator.h: Likewise.
36769         * lib/unictype/pr_pattern_syntax.h: Likewise.
36770         * lib/unictype/pr_pattern_white_space.h: Likewise.
36771         * lib/unictype/pr_private_use.h: Likewise.
36772         * lib/unictype/pr_quotation_mark.h: Likewise.
36773         * lib/unictype/pr_radical.h: Likewise.
36774         * lib/unictype/pr_soft_dotted.h: Likewise.
36775         * lib/unictype/pr_space.h: Likewise.
36776         * lib/unictype/pr_titlecase.h: Likewise.
36777         * lib/unictype/pr_variation_selector.h: Likewise.
36778         * lib/unictype/pr_white_space.h: Likewise.
36779         * lib/unictype/pr_zero_width.h: Likewise.
36780         * lib/unictype/sy_c_ident.h: Likewise.
36781         * lib/unictype/sy_c_whitespace.h: Likewise.
36782         * lib/unictype/sy_java_whitespace.h: Likewise.
36783         * lib/uninorm/composition-table.gperf: Likewise.
36784         * lib/uninorm/decomposition-table1.h: Likewise.
36785         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
36786         LB8.
36787         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
36788         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
36789         * modules/unictype/*: Bump version number of expected libunistring
36790         version.
36792 2011-01-09  Bruno Haible  <bruno@clisp.org>
36794         Update to Unicode 5.2.0.
36795         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
36796         trailing whitespace removed.
36798 2011-01-09  Bruno Haible  <bruno@clisp.org>
36800         New Unicode character properties, from Unicode 5.2.0.
36801         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
36802         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
36803         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
36804         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
36805         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
36806         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
36807         uc_is_property_cased, uc_is_property_case_ignorable,
36808         uc_is_property_changes_when_lowercased,
36809         uc_is_property_changes_when_uppercased,
36810         uc_is_property_changes_when_titlecased,
36811         uc_is_property_changes_when_casefolded,
36812         uc_is_property_changes_when_casemapped): New declarations.
36813         * lib/unictype/pr_byname.gperf: Add the new properties.
36814         * modules/unictype/property-byname (Depends-on): Depend on the new
36815         properties modules.
36816         * modules/unictype/property-all (Depends-on): Likewise.
36817         * MODULES.html.sh (Unicode string functions): Add
36818         unictype/property-case-ignorable, unictype/property-cased,
36819         unictype/property-changes-when-casefolded,
36820         unictype/property-changes-when-casemapped,
36821         unictype/property-changes-when-lowercased,
36822         unictype/property-changes-when-titlecased,
36823         unictype/property-changes-when-uppercased.
36825         New module 'unictype/property-changes-when-casemapped'.
36826         * modules/unictype/property-changes-when-casemapped: New file.
36827         * lib/unictype/pr_changes_when_casemapped.c: New file.
36828         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
36829         generated by gen-uni-tables.
36830         * modules/unictype/property-changes-when-casemapped-tests: New file.
36831         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
36832         automatically generated by gen-uni-tables.
36834         New module 'unictype/property-changes-when-casefolded'.
36835         * modules/unictype/property-changes-when-casefolded: New file.
36836         * lib/unictype/pr_changes_when_casefolded.c: New file.
36837         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
36838         generated by gen-uni-tables.
36839         * modules/unictype/property-changes-when-casefolded-tests: New file.
36840         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
36841         automatically generated by gen-uni-tables.
36843         New module 'unictype/property-changes-when-titlecased'.
36844         * modules/unictype/property-changes-when-titlecased: New file.
36845         * lib/unictype/pr_changes_when_titlecased.c: New file.
36846         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
36847         generated by gen-uni-tables.
36848         * modules/unictype/property-changes-when-titlecased-tests: New file.
36849         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
36850         automatically generated by gen-uni-tables.
36852         New module 'unictype/property-changes-when-uppercased'.
36853         * modules/unictype/property-changes-when-uppercased: New file.
36854         * lib/unictype/pr_changes_when_uppercased.c: New file.
36855         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
36856         generated by gen-uni-tables.
36857         * modules/unictype/property-changes-when-uppercased-tests: New file.
36858         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
36859         automatically generated by gen-uni-tables.
36861         New module 'unictype/property-changes-when-lowercased'.
36862         * modules/unictype/property-changes-when-lowercased: New file.
36863         * lib/unictype/pr_changes_when_lowercased.c: New file.
36864         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
36865         generated by gen-uni-tables.
36866         * modules/unictype/property-changes-when-lowercased-tests: New file.
36867         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
36868         automatically generated by gen-uni-tables.
36870         New module 'unictype/property-case-ignorable'.
36871         * modules/unictype/property-case-ignorable: New file.
36872         * lib/unictype/pr_case_ignorable.c: New file.
36873         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
36874         by gen-uni-tables.
36875         * modules/unictype/property-case-ignorable-tests: New file.
36876         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
36877         generated by gen-uni-tables.
36879         New module 'unictype/property-cased'.
36880         * modules/unictype/property-cased: New file.
36881         * lib/unictype/pr_cased.c: New file.
36882         * lib/unictype/pr_cased.h: New file, automatically generated by
36883         gen-uni-tables.
36884         * modules/unictype/property-cased-tests: New file.
36885         * tests/unictype/test-pr_cased.c: New file, automatically generated by
36886         gen-uni-tables.
36888 2011-01-09  Bruno Haible  <bruno@clisp.org>
36890         Update to Unicode 5.2.0.
36891         * lib/gen-uni-tables.c (output_predicate, output_category,
36892         output_combclass, output_bidi_category, output_decimal_digit_test,
36893         output_decimal_digit, output_digit_test, output_digit,
36894         output_numeric_test, output_numeric, output_mirror, output_scripts,
36895         output_scripts_byname, output_blocks, output_ident_category): Fix
36896         comment header.
36897         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
36898         get_wbp.
36899         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
36900         items.
36901         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
36902         Changes_When_Lowercased, Changes_When_Uppercased,
36903         Changes_When_Titlecased, Changes_When_Casefolded,
36904         Changes_When_Casemapped.
36905         (is_property_alphabetic, is_property_default_ignorable_code_point):
36906         Update for Unicode 5.2.0.
36907         (is_property_cased, is_property_case_ignorable,
36908         is_property_changes_when_lowercased,
36909         is_property_changes_when_uppercased,
36910         is_property_changes_when_titlecased,
36911         is_property_changes_when_casefolded,
36912         is_property_changes_when_casemapped): New functions.
36913         (output_properties): Output also the properties cased, case_ignorable,
36914         changes_when_lowercased, changes_when_uppercased,
36915         changes_when_titlecased, changes_when_casefolded,
36916         changes_when_casemapped.
36917         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
36918         Unicode TR#11 revision 17 -> 19.
36919         (LBP_CP): New enumeration value.
36920         (LBP_*): Adjust values accordingly.
36921         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
36922         TR#14 revision 22 -> 24.
36923         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
36924         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
36925         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
36926         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
36927         is_WBP_MIDLETTER.
36928         (output_composition_tables): Allow for 24 bits instead of 16 bits in
36929         the code1 and code2 of each composition rule.
36930         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
36931         * lib/unicase/ignorable.h: Likewise.
36932         * lib/unicase/tocasefold.h: Likewise.
36933         * lib/unicase/tolower.h: Likewise.
36934         * lib/unicase/totitle.h: Likewise.
36935         * lib/unicase/toupper.h: Likewise.
36936         * lib/unictype/bidi_of.h: Likewise.
36937         * lib/unictype/blocks.h: Likewise.
36938         * lib/unictype/categ_C.h: Likewise.
36939         * lib/unictype/categ_Cf.h: Likewise.
36940         * lib/unictype/categ_Cn.h: Likewise.
36941         * lib/unictype/categ_L.h: Likewise.
36942         * lib/unictype/categ_Ll.h: Likewise.
36943         * lib/unictype/categ_Lm.h: Likewise.
36944         * lib/unictype/categ_Lo.h: Likewise.
36945         * lib/unictype/categ_Lu.h: Likewise.
36946         * lib/unictype/categ_M.h: Likewise.
36947         * lib/unictype/categ_Mc.h: Likewise.
36948         * lib/unictype/categ_Mn.h: Likewise.
36949         * lib/unictype/categ_N.h: Likewise.
36950         * lib/unictype/categ_Nd.h: Likewise.
36951         * lib/unictype/categ_Nl.h: Likewise.
36952         * lib/unictype/categ_No.h: Likewise.
36953         * lib/unictype/categ_P.h: Likewise.
36954         * lib/unictype/categ_Pd.h: Likewise.
36955         * lib/unictype/categ_Po.h: Likewise.
36956         * lib/unictype/categ_S.h: Likewise.
36957         * lib/unictype/categ_Sc.h: Likewise.
36958         * lib/unictype/categ_So.h: Likewise.
36959         * lib/unictype/categ_of.h: Likewise.
36960         * lib/unictype/combining.h: Likewise.
36961         * lib/unictype/ctype_alnum.h: Likewise.
36962         * lib/unictype/ctype_alpha.h: Likewise.
36963         * lib/unictype/ctype_graph.h: Likewise.
36964         * lib/unictype/ctype_lower.h: Likewise.
36965         * lib/unictype/ctype_print.h: Likewise.
36966         * lib/unictype/ctype_punct.h: Likewise.
36967         * lib/unictype/ctype_upper.h: Likewise.
36968         * lib/unictype/decdigit.h: Likewise.
36969         * lib/unictype/digit.h: Likewise.
36970         * lib/unictype/numeric.h: Likewise.
36971         * lib/unictype/pr_alphabetic.h: Likewise.
36972         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
36973         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
36974         * lib/unictype/pr_bidi_european_digit.h: Likewise.
36975         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
36976         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
36977         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
36978         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
36979         * lib/unictype/pr_combining.h: Likewise.
36980         * lib/unictype/pr_composite.h: Likewise.
36981         * lib/unictype/pr_currency_symbol.h: Likewise.
36982         * lib/unictype/pr_dash.h: Likewise.
36983         * lib/unictype/pr_decimal_digit.h: Likewise.
36984         * lib/unictype/pr_deprecated.h: Likewise.
36985         * lib/unictype/pr_diacritic.h: Likewise.
36986         * lib/unictype/pr_extender.h: Likewise.
36987         * lib/unictype/pr_grapheme_base.h: Likewise.
36988         * lib/unictype/pr_grapheme_extend.h: Likewise.
36989         * lib/unictype/pr_grapheme_link.h: Likewise.
36990         * lib/unictype/pr_id_continue.h: Likewise.
36991         * lib/unictype/pr_id_start.h: Likewise.
36992         * lib/unictype/pr_ideographic.h: Likewise.
36993         * lib/unictype/pr_ignorable_control.h: Likewise.
36994         * lib/unictype/pr_logical_order_exception.h: Likewise.
36995         * lib/unictype/pr_lowercase.h: Likewise.
36996         * lib/unictype/pr_numeric.h: Likewise.
36997         * lib/unictype/pr_other_alphabetic.h: Likewise.
36998         * lib/unictype/pr_punctuation.h: Likewise.
36999         * lib/unictype/pr_sentence_terminal.h: Likewise.
37000         * lib/unictype/pr_terminal_punctuation.h: Likewise.
37001         * lib/unictype/pr_unassigned_code_value.h: Likewise.
37002         * lib/unictype/pr_unified_ideograph.h: Likewise.
37003         * lib/unictype/pr_uppercase.h: Likewise.
37004         * lib/unictype/pr_xid_continue.h: Likewise.
37005         * lib/unictype/pr_xid_start.h: Likewise.
37006         * lib/unictype/pr_zero_width.h: Likewise.
37007         * lib/unictype/scripts.h: Likewise.
37008         * lib/unictype/scripts_byname.gperf: Likewise.
37009         * lib/unictype/sy_java_ident.h: Likewise.
37010         * lib/unigbrk/gbrkprop.h: Likewise.
37011         * lib/unilbrk/lbrkprop1.h: Likewise.
37012         * lib/unilbrk/lbrkprop2.h: Likewise.
37013         * lib/unilbrk/lbrktables.h: Likewise.
37014         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
37015         LBP_CP. Implement rule LB30.
37016         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
37017         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
37018         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
37019         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
37020         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
37021         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
37022         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
37023         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
37024         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
37025         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
37026         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
37027         bits instead of 16 bits in the code1 and code2 of each composition
37028         rule.
37029         (uc_composition): Update for Unicode 5.2.0.
37030         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
37031         * lib/uninorm/decomposition-table2.h: Likewise.
37032         * lib/uniwbrk/wbrkprop.h: Likewise.
37033         * tests/unicase/test-cased.c: Likewise.
37034         * tests/unicase/test-ignorable.c: Likewise.
37035         * tests/unicase/test-uc_tolower.c: Likewise.
37036         * tests/unicase/test-uc_totitle.c: Likewise.
37037         * tests/unicase/test-uc_toupper.c: Likewise.
37038         * tests/unictype/test-categ_C.c: Likewise.
37039         * tests/unictype/test-categ_Cf.c: Likewise.
37040         * tests/unictype/test-categ_Cn.c: Likewise.
37041         * tests/unictype/test-categ_L.c: Likewise.
37042         * tests/unictype/test-categ_Ll.c: Likewise.
37043         * tests/unictype/test-categ_Lm.c: Likewise.
37044         * tests/unictype/test-categ_Lo.c: Likewise.
37045         * tests/unictype/test-categ_Lu.c: Likewise.
37046         * tests/unictype/test-categ_M.c: Likewise.
37047         * tests/unictype/test-categ_Mc.c: Likewise.
37048         * tests/unictype/test-categ_Mn.c: Likewise.
37049         * tests/unictype/test-categ_N.c: Likewise.
37050         * tests/unictype/test-categ_Nd.c: Likewise.
37051         * tests/unictype/test-categ_Nl.c: Likewise.
37052         * tests/unictype/test-categ_No.c: Likewise.
37053         * tests/unictype/test-categ_P.c: Likewise.
37054         * tests/unictype/test-categ_Pd.c: Likewise.
37055         * tests/unictype/test-categ_Po.c: Likewise.
37056         * tests/unictype/test-categ_S.c: Likewise.
37057         * tests/unictype/test-categ_Sc.c: Likewise.
37058         * tests/unictype/test-categ_So.c: Likewise.
37059         * tests/unictype/test-ctype_alnum.c: Likewise.
37060         * tests/unictype/test-ctype_alpha.c: Likewise.
37061         * tests/unictype/test-ctype_graph.c: Likewise.
37062         * tests/unictype/test-ctype_lower.c: Likewise.
37063         * tests/unictype/test-ctype_print.c: Likewise.
37064         * tests/unictype/test-ctype_punct.c: Likewise.
37065         * tests/unictype/test-ctype_upper.c: Likewise.
37066         * tests/unictype/test-decdigit.h: Likewise.
37067         * tests/unictype/test-digit.h: Likewise.
37068         * tests/unictype/test-numeric.h: Likewise.
37069         * tests/unictype/test-pr_alphabetic.c: Likewise.
37070         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
37071         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
37072         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
37073         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
37074         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
37075         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
37076         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
37077         * tests/unictype/test-pr_combining.c: Likewise.
37078         * tests/unictype/test-pr_composite.c: Likewise.
37079         * tests/unictype/test-pr_currency_symbol.c: Likewise.
37080         * tests/unictype/test-pr_dash.c: Likewise.
37081         * tests/unictype/test-pr_decimal_digit.c: Likewise.
37082         * tests/unictype/test-pr_deprecated.c: Likewise.
37083         * tests/unictype/test-pr_diacritic.c: Likewise.
37084         * tests/unictype/test-pr_extender.c: Likewise.
37085         * tests/unictype/test-pr_grapheme_base.c: Likewise.
37086         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
37087         * tests/unictype/test-pr_grapheme_link.c: Likewise.
37088         * tests/unictype/test-pr_id_continue.c: Likewise.
37089         * tests/unictype/test-pr_id_start.c: Likewise.
37090         * tests/unictype/test-pr_ideographic.c: Likewise.
37091         * tests/unictype/test-pr_ignorable_control.c: Likewise.
37092         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
37093         * tests/unictype/test-pr_lowercase.c: Likewise.
37094         * tests/unictype/test-pr_numeric.c: Likewise.
37095         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
37096         * tests/unictype/test-pr_punctuation.c: Likewise.
37097         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
37098         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
37099         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
37100         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
37101         * tests/unictype/test-pr_uppercase.c: Likewise.
37102         * tests/unictype/test-pr_xid_continue.c: Likewise.
37103         * tests/unictype/test-pr_xid_start.c: Likewise.
37104         * tests/unictype/test-pr_zero_width.c: Likewise.
37105         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
37106         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
37107         changed behaviour: line breaking is now disallowed between a letter
37108         or '=' and '('.
37109         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
37110         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
37111         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
37112         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
37113         * tests/uniwidth/test-uc_width2.sh: Same updates as in
37114         lib/uniwidth/width.c.
37115         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
37116         without comments, but with the original copyright notice.
37117         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
37118         changes.
37119         * lib/unictype/categ_Cc.h: Likewise.
37120         * lib/unictype/categ_Co.h: Likewise.
37121         * lib/unictype/categ_Cs.h: Likewise.
37122         * lib/unictype/categ_Lt.h: Likewise.
37123         * lib/unictype/categ_Me.h: Likewise.
37124         * lib/unictype/categ_Pc.h: Likewise.
37125         * lib/unictype/categ_Pe.h: Likewise.
37126         * lib/unictype/categ_Pf.h: Likewise.
37127         * lib/unictype/categ_Pi.h: Likewise.
37128         * lib/unictype/categ_Ps.h: Likewise.
37129         * lib/unictype/categ_Sk.h: Likewise.
37130         * lib/unictype/categ_Sm.h: Likewise.
37131         * lib/unictype/categ_Z.h: Likewise.
37132         * lib/unictype/categ_Zl.h: Likewise.
37133         * lib/unictype/categ_Zp.h: Likewise.
37134         * lib/unictype/categ_Zs.h: Likewise.
37135         * lib/unictype/ctype_blank.h: Likewise.
37136         * lib/unictype/ctype_cntrl.h: Likewise.
37137         * lib/unictype/ctype_digit.h: Likewise.
37138         * lib/unictype/ctype_space.h: Likewise.
37139         * lib/unictype/ctype_xdigit.h: Likewise.
37140         * lib/unictype/mirror.h: Likewise.
37141         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
37142         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
37143         * lib/unictype/pr_bidi_block_separator.h: Likewise.
37144         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
37145         * lib/unictype/pr_bidi_common_separator.h: Likewise.
37146         * lib/unictype/pr_bidi_control.h: Likewise.
37147         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
37148         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
37149         * lib/unictype/pr_bidi_pdf.h: Likewise.
37150         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
37151         * lib/unictype/pr_bidi_whitespace.h: Likewise.
37152         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
37153         * lib/unictype/pr_format_control.h: Likewise.
37154         * lib/unictype/pr_hex_digit.h: Likewise.
37155         * lib/unictype/pr_hyphen.h: Likewise.
37156         * lib/unictype/pr_ids_binary_operator.h: Likewise.
37157         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
37158         * lib/unictype/pr_iso_control.h: Likewise.
37159         * lib/unictype/pr_join_control.h: Likewise.
37160         * lib/unictype/pr_left_of_pair.h: Likewise.
37161         * lib/unictype/pr_line_separator.h: Likewise.
37162         * lib/unictype/pr_math.h: Likewise.
37163         * lib/unictype/pr_non_break.h: Likewise.
37164         * lib/unictype/pr_not_a_character.h: Likewise.
37165         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
37166         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
37167         * lib/unictype/pr_other_id_continue.h: Likewise.
37168         * lib/unictype/pr_other_id_start.h: Likewise.
37169         * lib/unictype/pr_other_lowercase.h: Likewise.
37170         * lib/unictype/pr_other_math.h: Likewise.
37171         * lib/unictype/pr_other_uppercase.h: Likewise.
37172         * lib/unictype/pr_paired_punctuation.h: Likewise.
37173         * lib/unictype/pr_paragraph_separator.h: Likewise.
37174         * lib/unictype/pr_pattern_syntax.h: Likewise.
37175         * lib/unictype/pr_pattern_white_space.h: Likewise.
37176         * lib/unictype/pr_private_use.h: Likewise.
37177         * lib/unictype/pr_quotation_mark.h: Likewise.
37178         * lib/unictype/pr_radical.h: Likewise.
37179         * lib/unictype/pr_soft_dotted.h: Likewise.
37180         * lib/unictype/pr_space.h: Likewise.
37181         * lib/unictype/pr_titlecase.h: Likewise.
37182         * lib/unictype/pr_variation_selector.h: Likewise.
37183         * lib/unictype/pr_white_space.h: Likewise.
37184         * lib/unictype/sy_c_ident.h: Likewise.
37185         * lib/unictype/sy_c_whitespace.h: Likewise.
37186         * lib/unictype/sy_java_whitespace.h: Likewise.
37187         * modules/uni*/*: Bump version number of expected libunistring version.
37188         Reported by Simon Josefsson.
37190 2011-01-09  Karl Heuer  <kwzh@gnu.org>
37192         useless-if-before-free: fix typo in --help and make the internal,
37193         automatic version date update process work once again.
37194         --help output contained a NUL character instead of the
37195         backslash-zero that was intended.  Also, the "must lie within
37196         the first 8 lines" line is on line 9, and hence not getting
37197         automatically updated.
37198         * build-aux/useless-if-before-free: Fix the former by adding a
37199         backslash, and the latter by condensing the three lines of what-it-does
37200         to a single line, leaving one line of slack for the future.
37202 2011-01-09  Bruno Haible  <bruno@clisp.org>
37204         uniwidth/width: Fix width of U+1D173..U+1D17A.
37205         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
37206         symbolic_width, output_width_property_test): New functions.
37207         (main): Invoke output_nonspacing_property, output_width_property_test.
37208         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
37209         U+1D173..U+1D17A.
37210         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
37211         1.
37212         * modules/uniwidth/*: Bump version number of expected libunistring
37213         version.
37214         * modules/unilbrk/*: Likewise.
37216 2011-01-08  Bruno Haible  <bruno@clisp.org>
37218         uninorm tests: Preserve copyright of Unicode data file.
37219         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
37220         Mention modifications.
37222 2011-01-08  Bruno Haible  <bruno@clisp.org>
37224         gen-uni-tables: Prepare for Unicode 5.2.0.
37225         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
37226         (debug_output_lbp, output_lbp): Update.
37228 2011-01-08  Bruno Haible  <bruno@clisp.org>
37230         unilbrk: Clarify gen-uni-tables.c code.
37231         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
37232         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
37233         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
37235 2011-01-07  Bruno Haible  <bruno@clisp.org>
37237         strtod: Restore errno when successfully parsing Infinity or NaN.
37238         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
37239         restore the original errno.
37241 2011-01-07  Bruno Haible  <bruno@clisp.org>
37243         remove test: Avoid failure on HP-UX 11.
37244         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
37246 2011-01-07  Bruno Haible  <bruno@clisp.org>
37248         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
37249         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
37250         error code.
37252 2011-01-07  Pádraig Brady <P@draigBrady.com>
37254         ignore-value: fixup comments, and add Eric Blake
37255         as an author since he rewrote the macros.
37256         * lib/ignore-value.h (ignore_value):  State that
37257         we now support aggregates.  Also specify exactly
37258         when the GCC warn_unused_result feature was added.
37260 2011-01-06  Eric Blake  <eblake@redhat.com>
37262         ignore-value: support aggregate types
37263         * lib/ignore-value.h (ignore_value): Provide separate gcc
37264         definition.
37265         * modules/ignore-value-tests: New test module.
37266         * tests/test-ignore-value.c: New test.
37268         maint.mk: improve sc_prohibit_strcmp regex
37269         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
37270         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
37271         definition of STRNEQ.
37273         signal: work around Haiku issue with SIGBUS
37274         * lib/siglist.h: Add comment.
37275         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
37276         strsignal's favoring of SIGSEGV.
37277         * tests/test-signal.c (main): Avoid test failure.
37278         * doc/posix-headers/signal.texi (signal.h): Document the issue.
37279         Reported by Scott McCreary.
37281         maint.mk: add pre-release check to ensure submodule commits are public
37282         * top/maint.mk (public-submodule-commit): New rule.
37283         (submodule-checks): New variable.
37284         (alpha beta stable): Depend on the variable.
37286 2011-01-05  Pádraig Brady <P@draigBrady.com>
37287         and Jim Meyering  <meyering@redhat.com>
37289         ignore-value: make ignore_value more generic; deprecate ignore_ptr
37290         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
37291         (ATTRIBUTE_DEPRECATED): Define.
37292         (_ignore_case): New function.
37293         (ignore_value): New macro, to replace the old function.
37294         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
37295         * modules/ignore-value (Depends-on): Add stdint.
37297 2011-01-04  Eric Blake  <eblake@redhat.com>
37299         doc: regenerate INSTALL
37300         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
37301         @firstparagraphindent support, now that autoconf dropped it.
37302         (INSTALL_PRELUDE): Reinstate old macro.
37303         * doc/install.texi: Resync from autoconf.
37304         * doc/INSTALL: Reflect recent autoconf update.
37305         * doc/INSTALL.ISO: Likewise.
37306         * doc/INSTALL.UTF-8: Likewise.
37307         Reported by Karl Berry.
37309 2011-01-04  Bruce Korb  <address@hidden>
37311         git-version-gen: avoid a sub-shell
37312         * build-aux/git-version-gen: Redirect stderr in `...` via
37313         "exec 2>...", rather than via an added sub-shell.
37315 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
37317         git-version-gen: use (...) rather than sh -c '...'
37318         * build-aux/git-version-gen: Rather than hard-coding a shell's name
37319         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
37321 2011-01-03  Jim Meyering  <meyering@redhat.com>
37323         git-version-gen: convert leading TABs to spaces
37324         * build-aux/git-version-gen: Expand leading TABs.
37326         git-version-gen: handle failed "git rev-list"
37327         * build-aux/git-version-gen: Rather than leaking a "fatal" error
37328         from git and proceeding as if it had succeeded but printed no SHA1
37329         checksums, suppress the diagnostic and handle the failure.
37330         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
37332         git-version-gen: include command name in one more diagnostic
37333         * build-aux/git-version-gen: When the required .tarball-version file
37334         was missing or unreadable, you might see the diagnostic from "cat",
37335         but no trace of the name of the invoking script.  Now, you still see
37336         the diagnostic from cat, but also get one from "git-version-gen: ".
37337         Inspired by a patch from Bruce Korb.
37339         update-copyright: adjust test to match changed code
37340         * tests/test-update-copyright.sh: Change test's expected output
37341         to match new actual output.
37343 2011-01-02  Bruno Haible  <bruno@clisp.org>
37345         getlogin_r: Avoid test failure on HP-UX 11.
37346         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
37347         ERANGE when the second argument is zero.
37348         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
37349         portability problem.
37351 2011-01-02  Bruce Korb  <bkorb@gnu.org>
37353         * build-aux/update-copyright: doc Simon's changes
37355 2011-01-02  Simon Josefsson  <simon@josefsson.org>
37357         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
37358         environment variable.
37360 2011-01-02  Bruno Haible  <bruno@clisp.org>
37362         unigbrk: Avoid gcc warnings.
37363         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
37364         unused variable.
37365         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
37366         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
37367         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
37368         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
37369         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
37370         Change type of first argument to 'const char *'.
37371         (main): Remove unused variable.
37372         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
37373         type of first argument to 'const char *'.
37374         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
37375         Likewise.
37376         (main): Change type of variable 's'.
37377         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
37378         to 'int'.
37380 2011-01-02  Bruno Haible  <bruno@clisp.org>
37382         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
37383         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
37384         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
37385         bug.
37386         * lib/pwrite.c: Undo 2010-12-31 patch.
37387         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
37389 2011-01-02  Bruno Haible  <bruno@clisp.org>
37391         pread: Fix test whether it works.
37392         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
37394 2011-01-02  Bruno Haible  <bruno@clisp.org>
37396         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
37397         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
37398         ends in "6". Don't require a specific month name. Try also the locale
37399         names found on HP-UX 11 and Solaris 7.
37401 2011-01-02  Bruno Haible  <bruno@clisp.org>
37403         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
37404         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
37405         C linkage.
37406         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
37408 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
37410         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
37411         for consistency, since the "cluster" term is not used elsewhere.
37412         * lib/unigbrk.in.h: Update name.
37413         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
37414         * lib/unigbrk/u16-grapheme-next.c: Update name.
37415         * lib/unigbrk/u16-grapheme-prev.c: Update name.
37416         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
37417         * lib/unigbrk/u32-grapheme-next.c: Update name.
37418         * lib/unigbrk/u32-grapheme-prev.c: Update name.
37419         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
37420         * lib/unigbrk/u8-grapheme-next.c: Update name.
37421         * lib/unigbrk/u8-grapheme-prev.c: Update name.
37422         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
37423         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
37424         Suggested by Bruno Haible.
37426 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
37428         Remove module 'u8-grapheme-len' as too redundant with
37429         'u8-grapheme-next'.
37430         * modules/unigbrk/u8-grapheme-len: Delete file.
37431         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
37432         * lib/unigbrk.in.h: Remove prototype for deleted function.
37433         * lib/unigbrk/u8-grapheme-len.c: Delete file.
37434         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
37436         Remove module 'u16-grapheme-len' as too redundant with
37437         'u16-grapheme-next'.
37438         * modules/unigbrk/u16-grapheme-len: Delete file.
37439         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
37440         * lib/unigbrk.in.h: Remove prototype for deleted function.
37441         * lib/unigbrk/u16-grapheme-len.c: Delete file.
37442         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
37444         Remove module 'u32-grapheme-len' as too redundant with
37445         'u32-grapheme-next'.
37446         * modules/unigbrk/u32-grapheme-len: Delete file.
37447         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
37448         * lib/unigbrk.in.h: Remove prototype for deleted function.
37449         * lib/unigbrk/u32-grapheme-len.c: Delete file.
37450         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
37452         Suggested by Bruno Haible.
37454 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
37456         * unigbrk.in.h: Fix typo: "ben" => "been".
37457         Reported by Bruno Haible.
37459 2011-01-01  Jim Meyering  <meyering@redhat.com>
37461         maint: update almost all copyright ranges to include 2011
37462         Run the new "make update-copyright" rule.
37464 2011-01-01  Jim Meyering  <meyering@redhat.com>
37466         maint: update-copyright: exempt doc/INSTALL*
37467         * Makefile (update-copyright): Also exclude doc/INSTALL*,
37468         since they are generated.  Suggested by Bruno Haible.
37470 2011-01-01  Jim Meyering  <meyering@redhat.com>
37472         maint: refine the update-copyright rule
37473         * Makefile (update-copyright): Also exclude any file that includes
37474         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
37475         code that merely generates the comment.
37477 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
37479         New module 'u8-grapheme-len'.
37480         * modules/unigbrk/u8-grapheme-len: New file.
37481         * modules/unigbrk/u8-grapheme-len-tests: New file.
37482         * lib/unigbrk.in.h: Add prototype for new function.
37483         * lib/unigbrk/u8-grapheme-len.c: New file.
37484         * tests/unigbrk/test-u8-grapheme-len.c: New file.
37486         New module 'u16-grapheme-len'.
37487         * modules/unigbrk/u16-grapheme-len: New file.
37488         * modules/unigbrk/u16-grapheme-len-tests: New file.
37489         * lib/unigbrk.in.h: Add prototype for new function.
37490         * lib/unigbrk/u16-grapheme-len.c: New file.
37491         * tests/unigbrk/test-u16-grapheme-len.c: New file.
37493         New module 'u32-grapheme-len'.
37494         * modules/unigbrk/u32-grapheme-len: New file.
37495         * modules/unigbrk/u32-grapheme-len-tests: New file.
37496         * lib/unigbrk.in.h: Add prototype for new function.
37497         * lib/unigbrk/u32-grapheme-len.c: New file.
37498         * tests/unigbrk/test-u32-grapheme-len.c: New file.
37500         New module 'u8-grapheme-next'.
37501         * modules/unigbrk/u8-grapheme-next: New file.
37502         * modules/unigbrk/u8-grapheme-next-tests: New file.
37503         * lib/unigbrk.in.h: Add prototype for new function.
37504         * lib/unigbrk/u8-grapheme-next.c: New file.
37505         * tests/unigbrk/test-u8-grapheme-next.c: New file.
37507         New module 'u16-grapheme-next'.
37508         * modules/unigbrk/u16-grapheme-next: New file.
37509         * modules/unigbrk/u16-grapheme-next-tests: New file.
37510         * lib/unigbrk.in.h: Add prototype for new function.
37511         * lib/unigbrk/u16-grapheme-next.c: New file.
37512         * tests/unigbrk/test-u16-grapheme-next.c: New file.
37514         New module 'u32-grapheme-next'.
37515         * modules/unigbrk/u32-grapheme-next: New file.
37516         * modules/unigbrk/u32-grapheme-next-tests: New file.
37517         * lib/unigbrk.in.h: Add prototype for new function.
37518         * lib/unigbrk/u32-grapheme-next.c: New file.
37519         * tests/unigbrk/test-u32-grapheme-next.c: New file.
37521         New module 'u8-grapheme-prev'.
37522         * modules/unigbrk/u8-grapheme-prev: New file.
37523         * modules/unigbrk/u8-grapheme-prev-tests: New file.
37524         * lib/unigbrk.in.h: Add prototype for new function.
37525         * lib/unigbrk/u8-grapheme-prev.c: New file.
37526         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
37528         New module 'u16-grapheme-prev'.
37529         * modules/unigbrk/u16-grapheme-prev: New file.
37530         * modules/unigbrk/u16-grapheme-prev-tests: New file.
37531         * lib/unigbrk.in.h: Add prototype for new function.
37532         * lib/unigbrk/u16-grapheme-prev.c: New file.
37533         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
37535         New module 'u32-grapheme-prev'.
37536         * modules/unigbrk/u32-grapheme-prev: New file.
37537         * modules/unigbrk/u32-grapheme-prev-tests: New file.
37538         * lib/unigbrk.in.h: Add prototype for new function.
37539         * lib/unigbrk/u32-grapheme-prev.c: New file.
37540         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
37542         New module 'u8-grapheme-breaks'.
37543         * modules/unigbrk/u8-grapheme-breaks: New file.
37544         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
37545         * lib/unigbrk.in.h: Add prototype for new function.
37546         * lib/unigbrk/u8-grapheme-breaks.c: New file.
37547         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
37549         New module 'u16-grapheme-breaks'.
37550         * modules/unigbrk/u16-grapheme-breaks: New file.
37551         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
37552         * lib/unigbrk.in.h: Add prototype for new function.
37553         * lib/unigbrk/u16-grapheme-breaks.c: New file.
37554         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
37556         New module 'u32-grapheme-breaks'.
37557         * modules/unigbrk/u32-grapheme-breaks: New file.
37558         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
37559         * lib/unigbrk.in.h: Add prototype for new function.
37560         * lib/unigbrk/u32-grapheme-breaks.c: New file.
37561         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
37563         New module 'ulc-grapheme-breaks'.
37564         * modules/unigbrk/ulc-grapheme-breaks: New file.
37565         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
37566         * m4/locale-ar.m4: New file.
37567         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
37568         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
37569         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
37571 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
37573         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
37574         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
37575         modified how this file was generated before I initially submitted
37576         the module, but failed to regenerate it.  This meant that several
37577         of the level2 entries were wrong.
37578         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
37579         Remove the division-by-2 that is folded into the table now that
37580         gbrkprop.h has been regenerated properly.  Now -1 entries are
37581         handled correctly.
37583         New module 'unigbrk/uc-gbrk-prop-tests'.
37584         * modules/unigbrk/uc-gbrk-prop-tests: New file.
37585         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
37586         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
37587         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
37589 2011-01-01  Bruno Haible  <bruno@clisp.org>
37591         Avoid use of hexadecimal escapes.
37592         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
37593         instead of hexadecimal escapes.
37595 2011-01-01  Jim Meyering  <meyering@redhat.com>
37597         maint: new rule to update copyright year ranges
37598         * Makefile (update-copyright): New rule.
37600         maint: indent with TABs in Makefile
37601         * Makefile: Expand leading sequences of spaces to TABs
37603         version-etc: update the copyright year it reports
37604         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
37606 2010-12-31  Bruno Haible  <bruno@clisp.org>
37608         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
37609         * lib/isfinite.c (zerof, zerod, zerol): New variables.
37610         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
37611         zero.
37613 2010-12-31  Bruno Haible  <bruno@clisp.org>
37615         pwrite: Work around HP-UX 11.11 bug.
37616         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
37617         works and set REPLACE_PWRITE if not.
37618         * lib/pwrite.c (pwrite): Add an implementation that uses the system
37619         function.
37620         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
37622 2010-12-31  Bruno Haible  <bruno@clisp.org>
37624         pread: Work around HP-UX 11 bugs.
37625         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
37626         and set REPLACE_PREAD if not.
37627         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
37629 2010-12-31  Eric Blake  <eblake@redhat.com>
37631         nl_langinfo: fix YESEXPR on Irix 6.5
37632         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
37633         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
37634         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
37635         it.
37637 2010-12-31  Bruno Haible  <bruno@clisp.org>
37639         iconv: Document HP-UX 11 bug.
37640         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
37642 2010-12-31  Bruno Haible  <bruno@clisp.org>
37644         ldexpl: Fix link error on HP-UX 11.
37645         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
37646         LDEXPL_LIBM, using $ISNANL_LIBM.
37648 2010-12-31  Eric Blake  <eblake@redhat.com>
37650         ftello: avoid compilation failure with SunStudio c89
37651         * lib/ftello.c (ftello): Use lseek, not llseek.
37653         tests: avoid failing coreutils tests on cygwin
37654         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
37655         (create_exe_shims_): Return 0 when skipping.
37657 2010-12-31  Bruno Haible  <bruno@clisp.org>
37659         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
37660         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
37662 2010-12-31  Bruno Haible  <bruno@clisp.org>
37664         waitpid: Fix link error in C++ mode.
37665         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
37667 2010-12-31  Bruno Haible  <bruno@clisp.org>
37669         isnan: Use GCC built-ins when possible.
37670         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
37671         __builtin_isnan.
37672         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
37673         (isnan): Define using GCC built-ins for GCC >= 4.0.
37675 2010-12-31  Bruno Haible  <bruno@clisp.org>
37677         isnand: Fix mistake.
37678         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
37679         __builtin_isnand.
37681 2010-12-31  Bruno Haible  <bruno@clisp.org>
37683         open: Avoid C++ error on HP-UX 11.
37684         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
37686 2010-12-31  Bruno Haible  <bruno@clisp.org>
37688         time_r: Add missing declarations on HP-UX 11.
37689         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
37690         instead of HAVE_LOCALTIME_R.
37691         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
37692         HAVE_LOCALTIME_R always.
37693         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
37694         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
37695         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
37696         HAVE_LOCALTIME_R.
37697         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
37698         * doc/posix-functions/localtime_r.texi: Likewise.
37700 2010-12-29  Eric Blake  <eblake@redhat.com>
37702         mountlist: tweak previous commit
37703         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
37704         Reported by Paul Eggert.
37706         mountlist: fix local drive detection on cygwin
37707         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
37708         that works for cygwin.
37710 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37712         ftoastr, snprintf: ftoastr + snprintf module
37713         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
37714         since the snprintf module now should be good enough here.
37715         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
37716         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
37717         and gl_MODULE_INDICATOR([snprintf]), but the former enables
37718         GNULIB_SNPRINTF only for the test directory, and the latter
37719         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
37720         seems to suffice by itself.
37722 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
37724         alloca: one step towards thread-safety
37725         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
37726         need for a static variable.  All callers changed.  This does not
37727         make the alloca replacement thread-safe, but it's one step.
37729         tests: minor indenting change
37730         * tests/init.sh: Sync from coreutils housekeeping patch
37731         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
37732         to keep lines within 80 columns.
37734 2010-12-28  Jim Meyering  <meyering@redhat.com>
37736         regex: don't infloop on persistent failing calloc
37737         * lib/regexec.c (build_trtable): Return failure indication upon
37738         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
37739         In glibc, this was fixed for version 2.13:
37740         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
37742 2010-12-28  Bruno Haible  <bruno@clisp.org>
37743             Paul Eggert <eggert@cs.ucla.edu>
37745         linkat: Make implementation robust against system behaviour variations.
37746         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
37747         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
37748         way, and to -2 if it needs a generic runtime test.
37749         * lib/linkat.c (solaris_optimized_link_immediate,
37750         solaris_optimized_link_follow): New functions.
37751         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
37752         (check_same_link): Use it.
37754 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
37756         New module 'unigbrk/base'.
37757         * modules/unigbrk/base: New file.
37758         * lib/unigbrk.in.h: New file.
37760         New module 'unigbrk/uc-gbrk-prop'.
37761         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
37762         * modules/unigbrk/uc-gbrk-prop: New file.
37763         * lib/unigbrk/gbrkprop.h: New file.
37764         * lib/unigbrk/uc-gbrk-prop.c: New file.
37766         New module 'unigbrk/uc-is-grapheme-break'.
37767         * modules/unigbrk/uc-is-grapheme-break: New file.
37768         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
37769         * lib/unigbrk/uc-is-grapheme-break.c: New file.
37770         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
37771         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
37772         * tests/unigbrk/GraphemeBreakTest.txt: New file.
37774         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
37776 2010-12-27  Bruno Haible  <bruno@clisp.org>
37778         linkat test: Avoid failure on Solaris 11 2010-11.
37779         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
37781 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
37783         utimens: work around glibc rounding bug on more platforms
37784         * lib/utimens.c (fdutimens): Work around rounding bug even if
37785         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
37786         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
37788 2010-12-27  Bruno Haible  <bruno@clisp.org>
37790         select tests: Improve comments.
37791         * tests/test-select.c (do_select): Add comments.
37793 2010-12-27  Bruno Haible  <bruno@clisp.org>
37795         select tests: Safer way of handling timeout.
37796         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
37797         at every invocation.
37799 2010-12-27  Bruno Haible  <bruno@clisp.org>
37801         select tests: Use 'bool' where appropriate.
37802         * tests/test-select.c (connect_to_socket): Change argument type to
37803         'bool'.
37805 2010-12-27  Bruno Haible  <bruno@clisp.org>
37807         select tests: Use existing modules.
37808         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
37809         (configure.ac): Don't test for unistd.h.
37810         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
37811         declared in <unistd.h>.
37813 2010-12-27  Bruno Haible  <bruno@clisp.org>
37815         mbrtowc: Work around a Solaris 7 bug.
37816         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
37817         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
37818         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
37819         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
37820         MBRTOWC_NULL_ARG1_BUG.
37821         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
37822         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
37823         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
37824         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
37826 2010-12-27  Jim Meyering  <meyering@redhat.com>
37828         read-file.c: tweak syntax
37829         * lib/read-file.c (fread_file): Remove space after "*" in function
37830         definitions.
37832 2010-12-27  Bruno Haible  <bruno@clisp.org>
37834         times test: Avoid gcc warnings on OSF/1.
37835         * tests/test-times.c (main): Cast printf arguments from clock_t to
37836         'long int'.
37838 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
37840         utimens: work around glibc rounding bug on older Linux kernels
37841         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
37842         on Linux with a glibc whose utimes might not work, then work
37843         around a longstanding glibc bug involving rounding rather than
37844         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
37845         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
37847 2010-12-26  Bruno Haible  <bruno@clisp.org>
37849         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
37850         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
37851         _GL_CXXALIAS_SYS.
37852         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
37854 2010-12-26  Bruno Haible  <bruno@clisp.org>
37856         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
37857         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
37858         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
37859         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
37860         looking for the declaration.
37861         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
37862         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
37863         problem.
37864         * doc/posix-functions/inet_pton.texi: Likewise.
37866 2010-12-26  Bruno Haible  <bruno@clisp.org>
37868         arpa_inet: Use the common idioms with C++ support.
37869         * lib/arpa_inet.in.h: Include c++defs.h.
37870         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
37871         support.
37872         * modules/arpa_inet (Depends-on): Add c++defs.
37873         (Makefile.am): Substitute the contents of c++defs.h.
37874         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
37875         * modules/arpa_inet-c++-tests: New file.
37876         * tests/test-arpa_inet-c++.cc: New file.
37878 2010-12-25  Bruno Haible  <bruno@clisp.org>
37880         Fix more C++ link errors on Solaris 8.
37881         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
37882         $(LIB_EACCESS).
37883         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
37884         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
37885         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
37886         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
37887         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
37889 2010-12-25  Bruno Haible  <bruno@clisp.org>
37891         printf-posix: Fix link error when a non-GCC compiler is used.
37892         * lib/stdio.in.h (printf): When not using GCC, override printf
37893         correctly.
37894         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
37896 2010-12-25  Bruno Haible  <bruno@clisp.org>
37898         strerror_r-posix: Update doc.
37899         * doc/posix-functions/strerror_r.texi: Update doc about the return
37900         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
37902 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
37904         utimens: simplify the logic of the previous change
37905         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
37906         This should not affect whether the test succeeds or fails.
37908         utimens: configure better on hosts with NFS clock skew
37909         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
37910         uses the clock of the local host.  It might use the clock of the
37911         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
37912         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
37914 2010-12-25  Bruno Haible  <bruno@clisp.org>
37916         ptsname test: Avoid failure on Solaris.
37917         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
37918         open a pseudo-terminal; don't use BSD-style ptys.
37919         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
37921 2010-12-25  Bruno Haible  <bruno@clisp.org>
37923         ptsname: Avoid ERANGE failure on some systems.
37924         * lib/ptsname.c (buffer): Increase size.
37926 2010-12-25  Bruno Haible  <bruno@clisp.org>
37928         rename, renameat: Avoid test failures at NFS mounted locations.
37929         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
37930         so that subsequent mkdir calls succeed.
37932 2010-12-25  Bruno Haible  <bruno@clisp.org>
37934         iswblank: Fix C++ link error on Solaris 8.
37935         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
37936         _GL_FUNCDECL_SYS.
37938 2010-12-25  Bruno Haible  <bruno@clisp.org>
37940         unistd: Fix C++ link error on Solaris 8.
37941         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
37943 2010-12-25  Bruno Haible  <bruno@clisp.org>
37945         readlink doc: Mention an old glibc bug.
37946         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
37948 2010-12-25  Bruno Haible  <bruno@clisp.org>
37950         fcntl-h: Fix for use of C++ on glibc systems.
37951         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
37952         also on glibc systems in C++ mode.
37953         Reported by Gary V. Vaughan <gary@gnu.org>.
37955 2010-12-25  Bruno Haible  <bruno@clisp.org>
37957         roundl-ieee: Make it work on OSF/1 5.1 with cc.
37958         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
37960 2010-12-25  Bruno Haible  <bruno@clisp.org>
37962         truncl-ieee: Make it work on OSF/1 5.1 with cc.
37963         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
37964         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
37965         test whether truncl works according to ISO C 99 with IEC 60559.
37966         * m4/truncl-ieee.m4: New file.
37967         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
37968         m4/signbit.m4.
37969         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
37971 2010-12-25  Bruno Haible  <bruno@clisp.org>
37973         ceill-ieee: Make it work on OSF/1 5.1 with cc.
37974         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
37975         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
37976         test whether ceill works according to ISO C 99 with IEC 60559.
37977         * m4/ceill-ieee.m4: New file.
37978         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
37979         m4/signbit.m4.
37980         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
37982 2010-12-25  Bruno Haible  <bruno@clisp.org>
37984         Ensure all prerequisites of <wchar.h> are included.
37985         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
37986         before <wchar.h>.
37987         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
37988         gl_MBRLEN_NUL_RETVAL): Likewise.
37989         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
37990         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
37991         AC_FUNC_MBRTOWC): Likewise.
37992         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
37993         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
37994         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
37995         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
37996         Likewise.
37997         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
37998         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
37999         (gl_WCHAR_H): Improve comments.
38000         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
38002 2010-12-25  Bruno Haible  <bruno@clisp.org>
38004         strtok_r: Fix C syntax error in autoconf macro.
38005         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
38006         characters in test program.
38008 2010-12-24  Bruno Haible  <bruno@clisp.org>
38010         ceil, trunc, round: Fix gcc warnings.
38011         * lib/ceil.c (MIN): Undefine before redefining.
38012         * lib/trunc.c (MIN): Likewise.
38013         * lib/round.c (MIN): Likewise.
38014         Include <math.h> first.
38016 2010-12-24  Bruno Haible  <bruno@clisp.org>
38018         select tests: Avoid failures on OSF/1 5.1.
38019         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
38020         failure of closing the last socket; it may fail with ECONNRESET.
38022 2010-12-24  Eric Blake  <eblake@redhat.com>
38024         stdint: avoid HP-UX 10.20 preprocessor bug
38025         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
38026         than #if.
38027         * tests/test-floor2.c (main): Likewise.
38028         Reported by Peter O'Gorman.
38030         pipe: make obsoletion transition easier
38031         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
38032         * modules/pipe (Files): Include revived file.
38033         (Include): Drop reference, to mirror getdate's behavior.
38035 2010-12-24  Bruno Haible  <bruno@clisp.org>
38037         sys_socket: Hide mismatch of declarations on NonStop Kernel.
38038         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
38039         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
38040         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38042 2010-12-24  Bruno Haible  <bruno@clisp.org>
38044         gethostname: Ensure declaration on NonStop Kernel.
38045         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
38046         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38048 2010-12-24  Bruno Haible  <bruno@clisp.org>
38050         sys_select: Ensure all necessary types on NonStop Kernel.
38051         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
38052         include <sys/time.h>.
38053         * doc/posix-headers/sys_select.texi: Mention that it's missing on
38054         NonStop Kernel.
38055         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38057 2010-12-24  Bruno Haible  <bruno@clisp.org>
38059         sys_select: Remove unneeded include.
38060         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
38061         have <sys/select.h>.
38063 2010-12-24  Bruno Haible  <bruno@clisp.org>
38065         gethostname: Provide a fallback for HOST_NAME_MAX.
38066         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
38067         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
38068         instead.
38069         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38071 2010-12-24  Bruno Haible  <bruno@clisp.org>
38073         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
38074         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
38075         (SA_RESTART): Likewise.
38076         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38078 2010-12-24  Bruno Haible  <bruno@clisp.org>
38080         signal: Define NSIG.
38081         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
38082         * tests/test-signal.c (nsig): New variable.
38083         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38085 2010-12-24  Bruno Haible  <bruno@clisp.org>
38087         rename, renameat: Avoid test failures on OSF/1 5.1.
38088         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
38089         alternative error codes.
38090         * tests/test-renameat.c (main): Likewise.
38092 2010-12-24  Bruno Haible  <bruno@clisp.org>
38094         *printf: Detect large precisions bug on Solaris 10/SPARC.
38095         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
38096         by Paul Eggert.
38097         * tests/test-snprintf-posix.h (test_function): Add this test code here
38098         too.
38099         * tests/test-sprintf-posix.h (test_function): Likewise.
38100         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38101         * tests/test-vasprintf-posix.c (test_function): Likewise.
38102         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
38103         around by gnulib.
38104         * doc/posix-functions/printf.texi: Likewise.
38105         * doc/posix-functions/snprintf.texi: Likewise.
38106         * doc/posix-functions/sprintf.texi: Likewise.
38107         * doc/posix-functions/vfprintf.texi: Likewise.
38108         * doc/posix-functions/vprintf.texi: Likewise.
38109         * doc/posix-functions/vsnprintf.texi: Likewise.
38110         * doc/posix-functions/vsprintf.texi: Likewise.
38111         * doc/posix-functions/dprintf.texi: Undo last commit.
38112         * doc/posix-functions/vdprintf.texi: Likewise.
38114 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38116         tests: port test-fdutimensat.c to Solaris 8
38117         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
38118         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
38119         On Solaris 8, it fails with errno == ENOSYS, because there is no
38120         futimens (so it can't use the fd), and there is no lutimens (so it
38121         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
38123         vsnprintf: make more consistent with snprintf; doc fixes
38125         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
38126         the byte count return problem was promoted from the snprintf-posix
38127         to the snprintf module.
38128         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38129         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
38130         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
38131         * tests/test-snprintf.c (main): Check the byte count returned.
38132         * tests/test-vsnprintf.c (main): Likewise.
38134 2010-12-23  Eric Blake  <eblake@redhat.com>
38136         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
38137         * modules/sigpipe (License): Relax license.
38139 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
38141         doc: document Solaris printf bug with large float precisions
38142         * doc/posix-functions/dprintf.texi (dprintf):
38143         * doc/posix-functions/fprintf.texi (fprintf):
38144         * doc/posix-functions/printf.texi (printf):
38145         * doc/posix-functions/snprintf.texi (snprintf):
38146         * doc/posix-functions/sprintf.texi (sprintf):
38147         * doc/posix-functions/vdprintf.texi (vdprintf):
38148         * doc/posix-functions/vfprintf.texi (vfprintf):
38149         * doc/posix-functions/vprintf.texi (vprintf):
38150         * doc/posix-functions/vsnprintf.texi (vsnprintf):
38151         * doc/posix-functions/vsprintf.texi (vsprintf):
38152         Mention that these functions mishandle large floating point
38153         precisions on Solaris 10.  The same bug is also present in Solaris
38154         8, and I assume earlier.  This causes "cd gnulib-tests; make
38155         check" to fail on Solaris 8 (and I assume, later) when building
38156         the latest coreutils, in test-vasprintf-posix's call to
38157         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
38158         the wide flavors (e.g., wprintf) so this patch just updates the
38159         documentation for the narrow ones.
38161         test-posixtm.c: add two tests
38162         * tests/test-posixtm.c: Add two tests, to highlight the
38163         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
38164         around this bug; this is merely to document it.
38166 2010-12-22  Bruno Haible  <bruno@clisp.org>
38168         getlogin_r: Work around portability problem on OSF/1.
38169         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
38170         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
38171         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
38172         test for a truncated result.
38173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
38174         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
38175         * modules/getlogin_r (Depends-on): Add memchr.
38176         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
38178 2010-12-22  Bruno Haible  <bruno@clisp.org>
38180         ptsname: Avoid test failure on OSF/1 5.1.
38181         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
38182         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
38183         (same_slave): New function.
38184         (main): Use it to compare ptsname's result with the expected file name.
38186 2010-12-22  Bruno Haible  <bruno@clisp.org>
38188         Port extended stdio modules to HP NonStop Kernel.
38189         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
38190         macros.
38191         * lib/fbufmode.c: Update comments.
38192         * lib/fflush.c: Likewise.
38193         * lib/fpurge.c: Likewise.
38194         * lib/freadable.c: Likewise.
38195         * lib/freadahead.c: Likewise.
38196         * lib/freading.c: Likewise.
38197         * lib/freadptr.c: Likewise.
38198         * lib/freadseek.c: Likewise.
38199         * lib/fseeko.c: Likewise.
38200         * lib/fseterr.c: Likewise.
38201         * lib/fwritable.c: Likewise.
38202         * lib/fwriting.c: Likewise.
38203         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
38205 2010-12-22  Bruno Haible  <bruno@clisp.org>
38207         ttyname_r: Work around bug on OSF/1 5.1.
38208         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
38209         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
38210         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
38211         present.
38212         * lib/ttyname_r.c (ttyname_r): Update comments.
38214 2010-12-22  Bruno Haible  <bruno@clisp.org>
38216         round: Implement result sign according to IEEE 754.
38217         * lib/round.c (MIN, MINUS_ZERO): New macros.
38218         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
38219         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
38220         * tests/test-round-ieee.c (main): Likewise.
38221         * tests/test-roundl-ieee.c (main): Likewise.
38223         trunc: Implement result sign according to IEEE 754.
38224         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
38225         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
38226         * tests/test-trunc2.c: Include minus-zero.h.
38227         (MINUS_ZERO): New macro.
38228         (trunc_reference): Keep in sync with lib/trunc.c.
38229         * tests/test-truncf2.c: Include minus-zero.h.
38230         (MINUS_ZERO): New macro.
38231         (truncf_reference): Keep in sync with lib/trunc.c.
38232         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
38233         * tests/test-trunc-ieee.c (main): Likewise.
38234         * tests/test-truncl-ieee.c (main): Likewise.
38236         ceil: Implement result sign according to IEEE 754.
38237         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
38238         (FUNC): Return -0.0 for -1 < x < 0.
38239         * tests/test-ceil2.c: Include minus-zero.h.
38240         (MINUS_ZERO): New macro.
38241         (ceil_reference): Keep in sync with lib/ceil.c.
38242         * tests/test-ceilf2.c: Include minus-zero.h.
38243         (MINUS_ZERO): New macro.
38244         (ceilf_reference): Keep in sync with lib/ceil.c.
38245         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
38246         * tests/test-ceil-ieee.c (main): Likewise.
38247         * tests/test-ceill-ieee.c (main): Likewise.
38249         floor: Implement result sign according to IEEE 754.
38250         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
38251         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
38252         * tests/test-floorf2.c (floorf_reference): Likewise.
38253         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
38254         * tests/test-floor-ieee.c (main): Likewise.
38255         * tests/test-floorl-ieee.c (main): Likewise.
38257 2010-12-22  Bruno Haible  <bruno@clisp.org>
38259         getaddrinfo: Update doc.
38260         * doc/posix-functions/gai_strerror.texi: Return type is also different
38261         on AIX and HP-UX.
38263 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
38265         getaddrinfo, inet_ntop: Update doc for Solaris.
38266         * doc/posix-functions/gai_strerror.texi: Return type is also an
38267         issue on Solaris 9 and earlier.
38268         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
38269         on Solaris 10 and earlier.
38271 2010-12-21  Bruno Haible  <bruno@clisp.org>
38273         New module 'roundl-ieee'.
38274         * modules/roundl-ieee: New file.
38275         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
38276         test whether roundl works according to ISO C 99 with IEC 60559.
38277         * m4/roundl-ieee.m4: New file.
38278         * modules/roundl-ieee-tests: New file.
38279         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
38280         * tests/test-roundl.c (main): Remove signbit tests.
38281         * modules/roundl-tests (Depends-on): Remove signbit.
38282         * doc/posix-functions/roundl.texi: Mention the new module.
38284 2010-12-21  Bruno Haible  <bruno@clisp.org>
38286         New module 'truncl-ieee'.
38287         * modules/truncl-ieee: New file.
38288         * modules/truncl-ieee-tests: New file.
38289         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
38290         * tests/test-truncl.c (main): Remove signbit tests.
38291         * modules/truncl-tests (Depends-on): Remove signbit.
38292         * doc/posix-functions/truncl.texi: Mention the new module.
38294 2010-12-21  Bruno Haible  <bruno@clisp.org>
38296         New module 'ceill-ieee'.
38297         * modules/ceill-ieee: New file.
38298         * modules/ceill-ieee-tests: New file.
38299         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
38300         * tests/test-ceill.c (main): Remove signbit tests.
38301         * modules/ceill-tests (Depends-on): Remove signbit.
38302         * doc/posix-functions/ceill.texi: Mention the new module.
38304 2010-12-21  Bruno Haible  <bruno@clisp.org>
38306         New module 'floorl-ieee'.
38307         * modules/floorl-ieee: New file.
38308         * modules/floorl-ieee-tests: New file.
38309         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
38310         * tests/test-floorl.c (main): Remove signbit tests.
38311         * modules/floorl-tests (Depends-on): Remove signbit.
38312         * doc/posix-functions/floorl.texi: Mention the new module.
38314 2010-12-21  Bruno Haible  <bruno@clisp.org>
38316         New module 'round-ieee'.
38317         * modules/round-ieee: New file.
38318         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
38319         whether round works according to ISO C 99 with IEC 60559.
38320         * m4/round-ieee.m4: New file.
38321         * modules/round-ieee-tests: New file.
38322         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
38323         * tests/test-round1.c (main): Remove signbit tests.
38324         * modules/round-tests (Depends-on): Remove 'signbit'.
38325         * doc/posix-functions/round.texi: Mention the new module.
38327 2010-12-21  Bruno Haible  <bruno@clisp.org>
38329         New module 'trunc-ieee'.
38330         * modules/trunc-ieee: New file.
38331         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
38332         whether trunc works according to ISO C 99 with IEC 60559.
38333         * m4/trunc-ieee.m4: New file.
38334         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
38335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
38336         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
38337         * modules/trunc-ieee-tests: New file.
38338         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
38339         * tests/test-trunc1.c (main): Remove signbit tests.
38340         * modules/trunc-tests (Depends-on): Remove 'signbit'.
38341         * doc/posix-functions/trunc.texi: Mention the new module.
38343 2010-12-21  Bruno Haible  <bruno@clisp.org>
38345         New module 'ceil-ieee'.
38346         * modules/ceil-ieee: New file.
38347         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
38348         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
38349         ISO C 99 with IEC 60559.
38350         * m4/ceil-ieee.m4: New file.
38351         * modules/ceil (Files): Add lib/ceil.c.
38352         (Depends-on): Add 'float'.
38353         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38354         * lib/math.in.h (ceil): New declaration.
38355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
38356         REPLACE_CEIL.
38357         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
38358         * modules/ceil-ieee-tests: New file.
38359         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
38360         * tests/test-math-c++.cc: Check the signature of 'ceil'.
38361         * doc/posix-functions/ceil.texi: Mention the new module.
38363 2010-12-21  Bruno Haible  <bruno@clisp.org>
38365         New module 'floor-ieee'.
38366         * modules/floor-ieee: New file.
38367         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
38368         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
38369         ISO C 99 with IEC 60559.
38370         * m4/floor-ieee.m4: New file.
38371         * modules/floor (Files): Add lib/floor.c.
38372         (Depends-on): Add 'float'.
38373         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38374         * lib/math.in.h (floor): New declaration.
38375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
38376         REPLACE_FLOOR.
38377         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
38378         * modules/floor-ieee-tests: New file.
38379         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
38380         * tests/test-math-c++.cc: Check the signature of 'floor'.
38381         * doc/posix-functions/floor.texi: Mention the new module.
38383 2010-12-21  Bruno Haible  <bruno@clisp.org>
38385         New module 'roundf-ieee'.
38386         * modules/roundf-ieee: New file.
38387         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
38388         test whether roundf works according to ISO C 99 with IEC 60559.
38389         * m4/roundf-ieee.m4: New file.
38390         * modules/roundf-ieee-tests: New file.
38391         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
38392         * tests/test-roundf1.c (main): Remove signbit tests.
38393         * modules/roundf-tests (Depends-on): Remove 'signbit'.
38394         * doc/posix-functions/roundf.texi: Mention the new module.
38396 2010-12-21  Bruno Haible  <bruno@clisp.org>
38398         New module 'truncf-ieee'.
38399         * modules/truncf-ieee: New file.
38400         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
38401         test whether truncf works according to ISO C 99 with IEC 60559.
38402         * m4/truncf-ieee.m4: New file.
38403         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
38404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
38405         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
38406         * modules/truncf-ieee-tests: New file.
38407         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
38408         * tests/test-truncf1.c (main): Remove signbit tests.
38409         * modules/truncf-tests (Depends-on): Remove 'signbit'.
38410         * doc/posix-functions/truncf.texi: Mention the new module.
38412 2010-12-21  Bruno Haible  <bruno@clisp.org>
38414         New module 'ceilf-ieee'.
38415         * modules/ceilf-ieee: New file.
38416         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
38417         test whether ceilf works according to ISO C 99 with IEC 60559.
38418         * m4/ceilf-ieee.m4: New file.
38419         * modules/ceilf-ieee-tests: New file.
38420         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
38421         * tests/test-ceilf1.c (main): Remove signbit tests.
38422         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
38423         * doc/posix-functions/ceilf.texi: Mention the new module.
38425 2010-12-21  Bruno Haible  <bruno@clisp.org>
38427         New module 'floorf-ieee'.
38428         * modules/floorf-ieee: New file.
38429         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
38430         test whether floorf works according to ISO C 99 with IEC 60559.
38431         * m4/floorf-ieee.m4: New file.
38432         * modules/floorf-ieee-tests: New file.
38433         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
38434         * tests/test-floorf1.c (main): Remove signbit tests.
38435         * modules/floorf-tests (Depends-on): Remove 'signbit'.
38436         * doc/posix-functions/floorf.texi: Mention the new module.
38438 2010-12-21  Bruno Haible  <bruno@clisp.org>
38440         Support for minus zero in autoconf macros.
38441         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
38442         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
38443         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
38444         * tests/minus-zero.h: Update comments.
38446 2010-12-21  Bruno Haible  <bruno@clisp.org>
38448         Tests for module 'ceil'.
38449         * modules/ceil-tests: New file.
38450         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
38451         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
38453 2010-12-21  Bruno Haible  <bruno@clisp.org>
38455         Tests for module 'floor'.
38456         * modules/floor-tests: New file.
38457         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
38458         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
38460 2010-12-21  Bruno Haible  <bruno@clisp.org>
38462         math: Fix indentation.
38463         * lib/math.in.h (floorf): Fix indentation.
38465 2010-12-21  Bruno Haible  <bruno@clisp.org>
38467         Fix cross-compilation guesses on Solaris.
38468         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
38469         not match "solaris2.10".
38470         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
38471         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
38472         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
38474 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
38476         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
38477         This fixes a problem observed with the latest coreutils snapshot
38478         that caused a test to fail on Solaris 8.  src/csplit.c's call
38479         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
38480         earlier, instead of returning the number of bytes that would have
38481         been generated; this causes csplit to incorrectly report memory
38482         exhaustion.
38483         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
38484         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
38485         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
38486         comments to match.
38487         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
38488         Fix typo in matching older versions of Solaris: "solaris2.10"
38489         is matched by the shell pattern "solaris2.[0-9]*".  This matters
38490         only for guessing while cross-compiling.
38491         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
38493 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
38495         ftoastr: fix comment again
38496         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
38497         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
38498         Also, simplify example a bit by using flags = 0.
38500 2010-12-20  Bruno Haible  <bruno@clisp.org>
38502         round*, trunc*: Update documentation regarding glibc.
38503         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
38504         * doc/posix-functions/round.texi: Likewise.
38505         * doc/posix-functions/roundl.texi: Likewise.
38506         * doc/posix-functions/truncf.texi: Likewise.
38507         * doc/posix-functions/trunc.texi: Likewise.
38508         * doc/posix-functions/truncl.texi: Likewise.
38510 2010-12-20  Bruno Haible  <bruno@clisp.org>
38512         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
38513         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
38514         * doc/posix-functions/round.texi: Likewise.
38515         * doc/posix-functions/roundl.texi: Likewise.
38517 2010-12-20  Bruno Haible  <bruno@clisp.org>
38519         ttyname_r: Add missing declaration on HP-UX 11.
38520         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
38521         HAVE_TTYNAME_R.
38522         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
38523         declared. Set HAVE_TTYNAME_R always.
38524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38525         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
38526         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
38527         HAVE_TTYNAME_R.
38528         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
38530 2010-12-20  Bruno Haible  <bruno@clisp.org>
38532         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
38533         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
38534         * doc/posix-functions/getlogin_r.texi: Likewise.
38535         * tests/test-getlogin.c: Include <errno.h>.
38536         (main): Avoid test failure on HP-UX 11.11.
38537         * tests/test-getlogin_r.c (main): Likewise.
38539 2010-12-20  Bruno Haible  <bruno@clisp.org>
38541         getlogin_r: Add missing declaration on HP-UX 11.
38542         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
38543         declared also when it exists as a function.
38544         * doc/posix-functions/getlogin_r.texi: Document this workaround.
38546 2010-12-20  Bruno Haible  <bruno@clisp.org>
38548         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
38549         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
38550         through wcrtomb.
38552 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
38554         ftoastr: fix comment
38555         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
38556         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
38558 2010-12-19  Bruno Haible  <bruno@clisp.org>
38560         isnan: Ensure it is a macro.
38561         * lib/math.in.h (isnan): Define as a macro if not already a macro.
38562         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
38563         Solaris.
38565 2010-12-19  Bruno Haible  <bruno@clisp.org>
38567         ldexpl test: Fix link error on OSF/1 5.1.
38568         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
38570 2010-12-19  Bruno Haible  <bruno@clisp.org>
38572         wctype: Make it work in C++ mode on OSF/1 5.1.
38573         * lib/wctype.in.h (iswblank): Declare but not define here.
38574         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
38575         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
38576         * modules/wctype (Files): Add lib/iswblank.c.
38578 2010-12-19  Bruno Haible  <bruno@clisp.org>
38580         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
38581         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
38582         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
38584 2010-12-19  Bruno Haible  <bruno@clisp.org>
38586         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
38587         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
38588         _POSIX_PII_SOCKET.
38589         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
38590         * doc/posix-functions/recvfrom.texi: Likewise.
38591         * doc/posix-functions/send.texi: Likewise.
38592         * doc/posix-functions/sendto.texi: Likewise.
38594 2010-12-19  Bruno Haible  <bruno@clisp.org>
38596         tcgetsid: Add missing declaration on OSF/1 5.1.
38597         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
38598         HAVE_TCGETSID.
38599         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
38600         Don't set HAVE_TCGETSID.
38601         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
38602         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
38603         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
38604         HAVE_TCGETSID.
38605         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
38607 2010-12-19  Bruno Haible  <bruno@clisp.org>
38609         stdio: Fix problem with popen() declaration on OSF/1 5.1.
38610         * lib/stdio.in.h: During the include_next statement, let recursive
38611         includes of this file include only the system header file.
38613 2010-12-19  Bruno Haible  <bruno@clisp.org>
38615         iconv_open: Fix regression from 2010-12-04.
38616         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
38617         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
38619 2010-12-19  Bruno Haible  <bruno@clisp.org>
38621         stdbool test: Avoid a gcc warning.
38622         * tests/test-stdbool.c (main): Fail if e1 is false.
38623         Reported by Jim Meyering.
38625 2010-12-19  Jim Meyering  <meyering@redhat.com>
38627         setenv: restore to working order
38628         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
38629         mistakenly removed.
38630         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
38631         HAVE_SETENV.
38632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
38633         HAVE_SETENV.
38635 2010-12-19  Bruno Haible  <bruno@clisp.org>
38637         Document some different function declarations on OSF/1 5.1.
38638         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
38639         * doc/posix-functions/inet_ntop.texi: Likewise.
38640         * doc/posix-functions/gethostname.texi: Likewise.
38641         * lib/unistd.in.h (gethostname): Update comment.
38643 2010-12-19  Bruno Haible  <bruno@clisp.org>
38645         doc: Mention vasprintf-posix module.
38646         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
38647         the 'vasprintf-posix' module.
38648         * doc/glibc-functions/vasprintf.texi: Likewise.
38650 2010-12-19  Bruno Haible  <bruno@clisp.org>
38652         unsetenv: Add missing declaration on OSF/1 5.1.
38653         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
38654         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
38655         Don't set HAVE_UNSETENV. In the test program, set _BSD.
38656         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
38657         not HAVE_UNSETENV.
38658         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
38659         HAVE_UNSETENV.
38660         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
38662 2010-12-19  Bruno Haible  <bruno@clisp.org>
38664         setenv: Add missing declaration on OSF/1 5.1.
38665         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
38666         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
38667         declared. Don't set HAVE_SETENV.
38668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
38669         not HAVE_SETENV.
38670         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
38671         HAVE_SETENV.
38672         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
38674 2010-12-19  Bruno Haible  <bruno@clisp.org>
38676         nl_langinfo tests: Avoid gcc warning.
38677         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
38679 2010-12-19  Bruno Haible  <bruno@clisp.org>
38681         mknod: Avoid error in C++ mode on OSF/1 with GCC.
38682         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
38683         _GL_CXXALIAS_SYS.
38685 2010-12-19  Bruno Haible  <bruno@clisp.org>
38687         stdbool: Relax test.
38688         * tests/test-stdbool.c (e): Don't require that casts from a variable's
38689         address to 'bool' work in static initializer, for compilers other than
38690         GCC.
38692 2010-12-19  Bruno Haible  <bruno@clisp.org>
38694         ftello: Add missing declaration on OSF/1 5.1.
38695         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
38696         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
38697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
38698         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
38699         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
38701 2010-12-19  Bruno Haible  <bruno@clisp.org>
38703         fseeko: Add missing declaration on OSF/1 5.1.
38704         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
38705         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
38706         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
38707         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
38708         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
38710 2010-12-19  Bruno Haible  <bruno@clisp.org>
38712         fchdir: Add missing declaration on OSF/1 5.1.
38713         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
38714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
38715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
38716         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
38717         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
38719 2010-12-19  Bruno Haible  <bruno@clisp.org>
38721         relocatable-prog-wrapper: Separate from relocatable-prog.
38722         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
38723         uninstall-relocwrapper rule here.
38724         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
38725         Reported by Ian Beckwith <ianb@erislabs.net>.
38727 2010-12-19  Bruno Haible  <bruno@clisp.org>
38729         unistr/u8-mbsnlen: Add missing dependency.
38730         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
38731         Reported by Ian Beckwith <ianb@erislabs.net>.
38733 2010-12-19  Bruno Haible  <bruno@clisp.org>
38735         iconv: Make it possible again to use this module without 'iconv-h'.
38736         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
38737         if it is not defined.
38738         Reported by Ian Beckwith <ianb@erislabs.net>.
38740 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38742         acl: port to Solaris 8 when copying from tmpfs to ufs
38743         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
38744         error number.  Problem observed on Solaris 8 with latest
38745         coreutils, with "mv A B", where A is on a tmpfs file system and B
38746         is on a ufs file system.  This caused coreutils' mv/part-symlink
38747         test to fail.
38749         tests: set fail=0 at start
38750         * tests/init.sh (setup_): Move fail=0 initialization here ...
38751         (mktempd_): ... from here, so that tests can rely on fail being
38752         set to 0 initially.  This fixes a problem in coreutils; see:
38753         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
38755 2010-12-18  Bruno Haible  <bruno@clisp.org>
38757         memmem-simple: Stylistic changes.
38758         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
38759         Fix preprocessor directive indentation.
38761 2010-12-15  Pádraig Brady <P@draigBrady.com>
38763         memmem, memmem-simple: reorganize and expand empty needle check
38764         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
38765         functional checks to memmem-simple so that one has a fully functional
38766         memmem by using just this module.
38767         Restrict the performance only check to the memmem module.
38768         Also expand the empty needle check to ensure the correct
38769         pointer is returned, not just a non NULL pointer.
38770         * doc/glibc-functions/memmem.texi: Rearrange the portability
38771         documentation to correlate with the rearranged checks.
38772         Clarify exactly how the memmem and memmem-simple modules
38773         relate to each other.
38775 2010-12-15  Pádraig Brady <P@draigBrady.com>
38776             Bruno Haible  <bruno@clisp.org>
38778         Improve cross-compilation guesses for uClibc.
38779         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
38780         that uClibc does not have the glibc bug.
38781         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
38782         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
38784 2010-12-14  Eric Blake  <eblake@redhat.com>
38786         configmake: provide fallbacks for oldest supported autotools
38787         * m4/configmake.m4: New file.
38788         * modules/configmake (Files): Ship it.
38789         (configure.ac): Use it to guarantee fallbacks.
38791 2010-12-13  Pádraig Brady <P@draigBrady.com>
38793         read-file: Improve handling of large files
38794         * lib/read-file.c (fread_file): Minimize realloc()s
38795         for regular files, and better manage sizes around SIZE_MAX.
38797 2010-12-13  Eric Blake  <eblake@redhat.com>
38799         cloexec, fcntl: relax license
38800         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
38801         consent from all contributors.
38802         * modules/fcntl (License): Likewise.
38804 2010-12-10  Bruno Haible  <bruno@clisp.org>
38806         Tests for module 'pipe-posix'.
38807         * modules/pipe-posix-tests: New file.
38808         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
38810 2010-12-10  Bruno Haible  <bruno@clisp.org>
38812         pipe-posix: Make it work in C++ mode.
38813         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
38814         (pipe): Use common idiom, not a macro definition.
38815         * lib/pipe.c: New file.
38816         * m4/pipe.m4: New file.
38817         * modules/pipe-posix (Description): Enhance.
38818         (Files): Add lib/pipe.c, m4/pipe.m4.
38819         (configure.ac): Invoke gl_FUNC_PIPE.
38820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
38821         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
38822         * tests/test-unistd-c++.cc: Check the signature of pipe.
38824 2010-12-10  Bruno Haible  <bruno@clisp.org>
38826         Rename module 'pipe' to 'spawn-pipe'.
38827         * modules/spawn-pipe: New file, renamed from modules/pipe.
38828         (Files, configure.ac, Makefile.am): Update.
38829         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
38830         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
38831         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
38832         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
38833         "spawn-pipe.h" instead of "pipe.h".
38834         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
38835         to gl_SPAWN_PIPE.
38836         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
38837         (Files, Makefile.am): Update.
38838         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
38839         Update.
38840         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
38841         Include "spawn-pipe.h" instead of "pipe.h".
38842         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
38843         * lib/javacomp.c: Likewise.
38844         * lib/javaversion.c: Likewise.
38845         * lib/pipe-filter-gi.c: Likewise.
38846         * lib/pipe-filter-ii.c: Likewise.
38847         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
38848         * modules/javacomp (Depends-on): Likewise.
38849         * modules/javaversion (Depends-on): Likewise.
38850         * modules/pipe-filter-gi (Depends-on): Likewise.
38851         * modules/pipe-filter-ii (Depends-on): Likewise.
38852         * MODULES.html.sh (Executing programs): Update.
38853         * NEWS: Mention the change.
38855 2010-12-10  Eric Blake  <eblake@redhat.com>
38857         pipe-posix: new module
38858         * modules/pipe-posix: New file.
38859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
38860         (gl_UNISTD_H): Check for declaration.
38861         * modules/unistd (Makefile.am): Substitute it.
38862         * lib/unistd.in.h (pipe): Provide it for mingw.
38863         * doc/posix-functions/pipe.texi (pipe): Update documentation.
38864         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
38866 2010-12-07  Bruno Haible  <bruno@clisp.org>
38868         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
38869         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
38870         u8_strcmp_gnu.
38871         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
38873 2010-12-06  Bruno Haible  <bruno@clisp.org>
38875         Update internal documentation.
38876         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
38878 2010-12-04  Bruno Haible  <bruno@clisp.org>
38880         Put more information about failed tests into the test return codes.
38881         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
38882         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
38883         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
38884         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
38885         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
38886         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38887         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38888         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38889         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
38890         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38891         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
38892         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
38893         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
38894         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38895         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
38896         returns a bit mask.
38897         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
38898         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
38899         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
38900         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
38901         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
38902         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
38903         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
38904         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38905         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
38906         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
38907         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38908         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
38909         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38910         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
38911         * m4/link.m4 (gl_FUNC_LINK): Likewise.
38912         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
38913         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
38914         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
38915         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38916         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
38917         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38918         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38919         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
38920         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38921         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
38922         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
38923         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
38924         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
38925         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
38926         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
38927         gl_PRINTF_PRECISION): Likewise.
38928         * m4/regex.m4 (gl_REGEX): Likewise.
38929         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
38930         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
38931         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
38932         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38933         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38934         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38935         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
38936         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
38937         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38938         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
38939         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
38940         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
38941         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
38942         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38943         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
38944         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38945         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
38946         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
38947         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38948         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
38949         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
38950         enumerated value.
38951         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
38953 2010-12-04  Bruno Haible  <bruno@clisp.org>
38955         Update for Solaris 11 2010-11.
38956         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
38957         Express, released in November 2010.
38959 2010-12-04  Bruno Haible  <bruno@clisp.org>
38961         nproc: Relax license.
38962         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
38963         and Paul Eggert.
38964         Requested by Ludovic Courtès <ludo@gnu.org>.
38966 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
38968         utimecmp: fine-grained src to nearby coarse-grained dest
38970         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
38971         and the source is on a file system with higher-resolution time
38972         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
38973         not work, and the time stamps are close together, the algorithm to
38974         determine the exact resolution from the read-back mtime was buggy:
38975         it had a "!=" where it should have had an "==".  This bug has been
38976         in the code ever since it was introduced to gnulib.
38977         Problem reported by Dan Jacobson in
38978         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
38980 2010-11-30  Bruno Haible  <bruno@clisp.org>
38982         strerror_r-posix: Fix autoconf test.
38983         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
38985 2010-11-28  Bruno Haible  <bruno@clisp.org>
38986             Paul Eggert  <eggert@cs.ucla.edu>
38988         Tests for module 'getdomainname'.
38989         * modules/getdomainname-tests: New file.
38990         * tests/test-getdomainname.c: New file, based on
38991         tests/test-gethostname.c.
38993 2010-11-28  Bruno Haible  <bruno@clisp.org>
38994             Paul Eggert  <eggert@cs.ucla.edu>
38996         getdomainname: Use the system function when possible.
38997         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
38998         (getdomainname): Replace if needed. Provide the declaration if it is
38999         missing. Don't use _GL_CXXALIAS_SYS_CAST.
39000         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
39001         (getdomainname): When the system has getdomainname, call the system
39002         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
39003         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39004         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
39005         found in libnsl. Look for the declaration also in <netdb.h>. Replace
39006         the function if its second argument is of type 'int' or if it is found
39007         in libnsl.
39008         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
39009         <sys/systeminfo.h> and sysinfo().
39010         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
39011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39012         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
39013         HAVE_GETDOMAINNAME.
39014         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
39015         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
39016         * doc/glibc-functions/getdomainname.texi: Document the problems with
39017         the getdomainname declaration.
39019 2010-11-28  Bruno Haible  <bruno@clisp.org>
39021         sys_socket: Ensure ss_family field on AIX.
39022         * lib/sys_socket.in.h (ss_family): New macro definition.
39023         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
39024         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
39025         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39026         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
39027         * modules/sys_socket (Makefile.am): Substitute
39028         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
39029         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
39031 2010-11-27  Bruno Haible  <bruno@clisp.org>
39033         readline: Improve configure output.
39034         * m4/readline.m4 (gl_FUNC_READLINE): Make the
39035         "checking for readline..." result understandable.
39037 2010-11-27  Bruno Haible  <bruno@clisp.org>
39039         *printf-posix: Detect a bug on Solaris 10/x86.
39040         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
39041         for floating-point output.
39042         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
39043         directive.
39044         * tests/test-snprintf-posix.h (test_function): Likewise.
39045         * tests/test-sprintf-posix.h (test_function): Likewise.
39046         * tests/test-vasprintf-posix.c (test_function): Likewise.
39047         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
39048         * doc/posix-functions/printf.texi: Likewise.
39049         * doc/posix-functions/snprintf.texi: Likewise.
39050         * doc/posix-functions/sprintf.texi: Likewise.
39051         * doc/posix-functions/vfprintf.texi: Likewise.
39052         * doc/posix-functions/vprintf.texi: Likewise.
39053         * doc/posix-functions/vsnprintf.texi: Likewise.
39054         * doc/posix-functions/vsprintf.texi: Likewise.
39055         * doc/glibc-functions/obstack_printf.texi: Likewise.
39056         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39058 2010-11-27  Bruno Haible  <bruno@clisp.org>
39060         Fix link error when module libunistring-optional is in use.
39061         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
39062         * modules/striconveha-tests (Makefile.am): Likewise.
39064 2010-11-27  Bruno Haible  <bruno@clisp.org>
39066         regex: Mention link dependencies.
39067         * modules/regex (Link): New section.
39068         * modules/rpmatch (Link): Likewise.
39069         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
39071 2010-11-27  Bruno Haible  <bruno@clisp.org>
39073         ftoastr: Fix compilation error on Solaris.
39074         * lib/ftoastr.c: Include <config.h>.
39076 2010-11-27  Bruno Haible  <bruno@clisp.org>
39078         getloadavg: Update documentation.
39079         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
39081 2010-11-27  Bruno Haible  <bruno@clisp.org>
39083         sys_socket: Fix test whether the functions are declared.
39084         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
39085         not <sys/select.h>.
39087 2010-11-27  Bruno Haible  <bruno@clisp.org>
39089         getpass: Make sure to get system declaration on some platforms.
39090         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
39091         gl_USE_SYSTEM_EXTENSIONS.
39092         * modules/getpass (Depends-on): Add extensions.
39094 2010-11-26  Bruno Haible  <bruno@clisp.org>
39096         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
39097         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
39098         'iconv' module is present.
39099         (ICONV_CONST): New macro.
39100         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
39101         ICONV_CONST.
39102         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
39103         set ICONV_CONST.
39104         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
39105         here.
39106         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
39107         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
39108         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
39109         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
39110         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
39111         present.
39113 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39115         ftoastr: comment fix
39116         * lib/ftoastr.c: "little" -> "little or no" in comment
39118 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
39120         stdint: port to GCC 4.3 + OSX + Octave
39121         On this platform, stdint.h is buggy and defines int64_t to long
39122         long int.  The replacement defined it to long int, causing
39123         problems with C++ style name mangling.  Instead, trust the system
39124         definition if INT64_MAX is defined, and likewise for the unsigned
39125         variant.   Problem reported by Jarno Rajahalme in
39126         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
39127         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
39128         and don't mess with int64_t and INT64_MAX in this case.
39129         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
39131 2010-11-24  Bruno Haible  <bruno@clisp.org>
39133         doc: Corrections regarding MacOS X 10.4 and 10.5.
39134         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
39135         MacOS X.
39136         Reported by Simon Josefsson.
39138 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
39140         Uninstall ".bin" files installed by relocwrapper.
39141         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
39142         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
39143         unless it is already there.
39145 2010-11-21  Bruno Haible  <bruno@clisp.org>
39147         Update for NetBSD 5.0.
39148         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
39149         NetBSD; the test fails on NetBSD 5.0.
39150         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
39151         about NetBSD.
39153 2010-11-21  Bruno Haible  <bruno@clisp.org>
39155         Update for HP-UX 11.23 and HP-UX 11.31.
39156         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
39157         HP-UX.
39159 2010-11-21  Bruno Haible  <bruno@clisp.org>
39161         Update for MacOS X 10.5.
39162         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
39163         MacOS X; the test fails on MacOS X 10.5.8.
39164         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
39165         about MacOS X.
39167 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
39169         bootstrap: add bootstrap_sync option.
39170         See discussion at
39171         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
39172         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
39173         * build-aux/bootstrap: Accept --bootstrap-sync to update
39174         bootstrap if it is not identical to the local gnulib's
39175         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
39176         enable this by default.  Accept --no-bootstrap-sync to disable
39177         it.
39179 2010-11-20  Bruno Haible  <bruno@clisp.org>
39181         Ensure that <features.h> is included before __GLIBC__ is tested.
39182         * lib/printf-parse.h: Include <features.h>.
39183         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
39184         Reported by Mike Frysinger <vapier@gentoo.org>.
39186         Ensure that <features.h> is included before __GLIBC__ is tested.
39187         * lib/wchar.in.h: Include <features.h>.
39188         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
39189         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
39190         Reported by Mike Frysinger <vapier@gentoo.org>.
39192         Ensure that <features.h> is included before __GLIBC__ is tested.
39193         * lib/arpa_inet.in.h: Include <features.h>.
39194         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
39195         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
39196         Reported by Mike Frysinger <vapier@gentoo.org>.
39198         Ensure that <features.h> is included before __GLIBC__ is tested.
39199         * build-aux/link-warning.h: Include <features.h>.
39200         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
39201         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
39202         Reported by Mike Frysinger <vapier@gentoo.org>.
39204         Ensure that <features.h> is included before __GLIBC__ is tested.
39205         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
39206         Reported by Mike Frysinger <vapier@gentoo.org>.
39208 2010-11-20  Bruno Haible  <bruno@clisp.org>
39210         memmem: Fix autoconf test.
39211         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
39213 2010-11-20  Bruno Haible  <bruno@clisp.org>
39215         Port to uClibc.
39216         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
39217         * lib/fcntl.in.h: Likewise.
39218         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
39219         * lib/mbrtowc.c (mbrtowc): Likewise.
39220         * lib/relocatable.c (find_shared_library_fullname): Likewise.
39221         * lib/strerror_r.c: Likewise.
39222         * lib/unistr/u8-strnlen.c: Likewise.
39223         * lib/vasnprintf.c (decimal_point_char): Likewise.
39224         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
39225         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
39226         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
39227         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39228         * tests/test-sigaction.c (handler, main): Likewise.
39229         * lib/freading.h: Treat uClibc like a non-glibc platform.
39230         * lib/freading.c: Likewise.
39231         * lib/gettext.h: Likewise.
39232         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
39233         Likewise.
39234         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
39235         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
39236         * lib/propername.c (proper_name_utf8): Likewise.
39237         * lib/spawn.in.h: Likewise.
39238         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
39239         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
39240         mem_cd_iconveh_internal): Likewise.
39241         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
39242         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
39243         strstr, strcasestr): Likewise.
39244         * lib/unicodeio.c (unicode_to_mb): Likewise.
39245         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
39246         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
39247         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
39248         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
39249         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
39250         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
39251         * lib/unistr/u8-stpncpy.c: Likewise.
39252         * lib/vasnprintf.c (VASNPRINTF): Likewise.
39253         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
39254         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39255         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39256         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39257         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
39258         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
39259         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
39260         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
39261         Likewise.
39262         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
39263         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
39264         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
39265         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39266         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39267         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39268         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39269         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
39270         * tests/test-getopt.h (OPTIND_MIN): Likewise.
39271         * tests/test-striconveha.c (main): Likewise.
39272         * tests/test-vasnprintf-posix.c (test_function): Likewise.
39273         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
39274         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
39275         * doc/posix-functions/getline.texi: Likewise.
39276         Reported by Mike Frysinger <vapier@gentoo.org>.
39278 2010-11-20  Bruno Haible  <bruno@clisp.org>
39280         nproc: Fix condition.
39281         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
39282         HAVE_PTHREAD_AFFINITY_NP.
39284 2010-11-20  Bruno Haible  <bruno@clisp.org>
39286         Fix a comment.
39287         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
39289 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
39291         ftoastr: don't assume snprintf
39292         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
39293         Implement a subset of snprintf here, by using sprintf safely.
39294         * modules/ftoastr (Depends-on): Remove snprintf.
39296 2010-11-19  Jim Meyering  <meyering@redhat.com>
39298         test-rename.h: fix compilation failure
39299         * tests/test-rename.h (test_rename): Add omitted "}".
39301 2010-11-17  Jim Meyering  <meyering@redhat.com>
39303         maint.mk: add a URL discussing the no-@acronym policy
39304         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
39306 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
39308         ftoastr: depend on snprintf, improve comments
39309         * lib/ftoastr.c: Also mention Loitsch's draft.
39310         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
39311         needed in the current implementation, but it might simplify
39312         speeding up the code later.
39313         * modules/ftoastr: Depend on snprintf; this improves portability.
39314         Suggested by Bruno Haible in the same email.
39316         ftoastr: port to hosts lacking strtof and strtold
39317         Problem reported by Bruno Haible in
39318         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
39319         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
39320         environment and strtold (and presumably strtof) are not available.
39321         * modules/ftoastr (Files): Add m4/c-strtod.m4.
39322         (configure.ac): Require gl_C99_STRTOLD.
39324 2010-11-18  Bruno Haible  <bruno@clisp.org>
39326         c-strtold: Avoid link error on AIX 7.
39327         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
39328         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
39329         (gl_C_STRTOLD): Test whether strtold_l exists.
39330         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39332 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39334         intprops: new macro INT_BITS_STRLEN_BOUND
39335         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
39336         ftoastr.h.  This exposes an internal of intprops.h that was formerly
39337         not exposed.  Also, it uses a slightly tighter bound than before;
39338         though this makes no practical difference, we might as well be as
39339         tight as we easily can.
39341         ftoastr: new module, for lossless conversion of floats to short strings
39342         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
39343         * modules/ftoastr: New files.
39345 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
39347         bootstrap: port to Solaris sed
39348         * build-aux/bootstrap (get_version): Port to Solaris sed.
39349         See Ralf Wildenhues's note in
39350         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
39352 2010-11-14  Jim Meyering  <meyering@redhat.com>
39354         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
39355         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
39356         and move definition closer to sole use.
39358 2010-11-13  Jim Meyering  <meyering@redhat.com>
39360         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
39361         Now we require at least autoconf-2.59, which means the work-around
39362         is no longer needed.
39363         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
39364         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
39365         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39366         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
39367         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
39369 2010-11-13  Bruno Haible  <bruno@clisp.org>
39371         rename, renameat: Avoid test failures at NFS mounted locations.
39372         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
39373         functions.
39374         (test_rename): Use assert_nonexistent.
39375         * tests/test-rename.c: Include <dirent.h>.
39376         * tests/test-renameat.c: Likewise.
39377         Reported by Gary V. Vaughan <gary@gnu.org>.
39379         rename, renameat: Document Linux bug with NFS
39380         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
39381         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
39382         * doc/posix-functions/renameat.texi: Likewise.
39383         Suggested by Eric Blake.
39385 2010-11-13  Bruno Haible  <bruno@clisp.org>
39387         rename test: Add comments.
39388         * tests/test-rename.h (test_rename): Add structure and comments.
39390 2010-11-13  Eric Blake  <eblake@redhat.com>
39392         maintainer-makefile: cover a few more files
39393         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
39394         scripts generated within C files, for libvirt.
39396 2010-11-13  Bruno Haible  <bruno@clisp.org>
39398         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
39399         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
39400         character, return the number of bytes that belong together, not always
39401         1.
39402         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
39403         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
39404         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
39405         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
39406         number of bytes of an invalid character.
39407         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
39408         (main): Invoke it.
39409         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
39410         results.
39411         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
39412         malformed byte sequences.
39413         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
39414         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
39415         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
39416         Reported by Ben Pfaff and Paolo Bonzini.
39418 2010-11-13  Bruno Haible  <bruno@clisp.org>
39420         openat: Work around glibc bug with fchownat() and empty file names.
39421         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
39422         (gl_FUNC_FCHOWNAT): Invoke it.
39423         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
39424         * doc/posix-functions/fchownat.texi: Document the glibc bug.
39425         Reported by Gary V. Vaughan <gary@gnu.org>.
39427 2010-11-13  Bruno Haible  <bruno@clisp.org>
39429         openat: Ensure autoconf macro ordering.
39430         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
39431         gl_USE_SYSTEM_EXTENSIONS.
39432         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
39434 2010-11-13  Bruno Haible  <bruno@clisp.org>
39436         Update comments.
39437         * lib/unistr/u8-check.c: Update file name in comments.
39438         * lib/unistr/u8-mblen.c: Likewise.
39439         * lib/unistr/u8-prev.c: Likewise.
39440         * lib/unistr/u8-strmblen.c: Likewise.
39441         * lib/unistr/u8-strmbtouc.c: Likewise.
39443 2010-11-13  Jim Meyering  <meyering@redhat.com>
39445         tests: avoid test failure on Solaris 10 due to lack of PATH export
39446         * tests/test-update-copyright.sh: Don't forget to export PATH.
39448         init.sh: ensure that IFS is defined, just in case...
39449         * tests/init.sh (setup_): Ensure that IFS is defined,
39450         so that saving and restoring it works as expected.  This
39451         appears to be useful at least for an old version of dash
39452         from a long time ago (RH 6).  See here for details:
39453         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
39455         maint.mk: tighten "test a == b" check
39456         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
39457         test to files that contain something like #!/bin/sh.
39458         Without this, coreutils would get two false positives in
39459         the comments of C source files.
39461 2010-11-12  Eric Blake  <eblake@redhat.com>
39463         bootstrap: fix typo in previous attempt
39464         * build-aux/bootstrap (buildreq): Correct the grouping.
39465         Reported by Paul Eggert.
39467         maintainer-makefile: prohibit test x == x
39468         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
39469         Based on a report by Matthias Bolte.
39471         bootstrap: allow FreeBSD gzip
39472         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
39473         which has no '.' and goes to stderr.
39474         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
39475         Reported by Matthias Bolte.
39477         maintainer-makefile: check for i18n setup
39478         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
39479         will likely work.
39481 2010-11-12  Bruno Haible  <bruno@clisp.org>
39483         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
39484         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
39485         * lib/nanosleep.c (nanosleep): Likewise.
39487 2010-11-11  Bruno Haible  <bruno@clisp.org>
39489         fcntl-h: Fix for use of C++ on glibc systems.
39490         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
39491         also on glibc systems in C++ mode.
39492         Reported by Gary V. Vaughan <gary@gnu.org>.
39494 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
39496         mknod: avoid false failure with dash
39497         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
39499 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
39501         unlink: Fix "is it should" typo in diagnostic.
39502         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
39503         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
39505 2010-11-11  Bruno Haible  <bruno@clisp.org>
39507         Tests for module 'strerror_r-posix'.
39508         * modules/strerror_r-posix-tests: New file.
39509         * tests/test-strerror_r.c: New file.
39510         * tests/test-string-c++.cc: Check the signature of strerror_r.
39512         New module 'strerror_r-posix'.
39513         * lib/string.in.h (strerror_r): New declaration.
39514         * lib/strerror_r.c: New file.
39515         * m4/strerror_r.m4: New file.
39516         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
39517         of strerror_r.
39518         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
39519         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
39520         * modules/strerror_r-posix: New file.
39521         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
39522         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
39523         * doc/posix-functions/strerror_r.texi: Mention the new module and the
39524         portability problems.
39526 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
39528         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
39529         line is also considered for output. Quoted function name in shell
39530         command, so temporary files for functions like MyClass::operator()
39531         are removed correctly without errors.
39533 2010-11-09  Bruno Haible  <bruno@clisp.org>
39535         * doc/posix-functions/strerror.texi: List more failing platforms.
39537         * doc/posix-functions/strerror.texi: Add a comment.
39539 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39541         fdopendir: fix bug on MacOS X when low on file descriptors
39543         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
39544         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
39545         All callers changed.
39546         (fdopendir): Invoke save_cwd at the top level, not after using
39547         multiple dup() calls to use up file descriptors.  Then retry
39548         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
39549         less than the maximum number of open file descriptors, because
39550         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
39551         on Mac OS X 10.6.4 for tar 1.24
39552         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
39553         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
39554         and for tar 1.25
39555         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
39557 2010-11-07  Bruno Haible  <bruno@clisp.org>
39559         vasnprintf: Support I flag on glibc systems.
39560         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
39561         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
39562         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
39563         snprintf function.
39564         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
39565         glibc systems.
39566         * tests/test-vasnprintf-posix3.c: New file.
39567         * modules/vasnprintf-posix-tests (Files): Add it.
39568         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
39570 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
39572         [html] Fix copy/paste bug: Use unique name for compiler warnings.
39573         * MODULES.html.sh: For compiler warnings, use name
39574         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
39576 2010-11-05  Eric Blake  <eblake@redhat.com>
39578         ceil, floor: avoid spurious failure with icc
39579         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
39580         [denormals-as-zero] when optimizing without -mieee-fp option.
39581         * tests/test-floorf2.c (floorf_reference): Likewise.
39582         * tests/test-ceilf1.c (dummy): New function.
39583         (main): Use it to outsmart icc's optimization.
39584         * tests/test-floorf1.c (dummy, main): Likewise.
39586         tests: require working signbit
39587         * modules/ceilf-tests (Depends-on): Add signbit.
39588         * modules/ceill-tests (Depends-on): Likewise.
39589         * modules/floorf-tests (Depends-on): Likewise.
39590         * modules/floorl-tests (Depends-on): Likewise.
39591         * modules/round-tests (Depends-on): Likewise.
39592         * modules/roundf-tests (Depends-on): Likewise.
39593         * modules/roundl-tests (Depends-on): Likewise.
39594         * modules/trunc-tests (Depends-on): Likewise.
39595         * modules/truncf-tests (Depends-on): Likewise.
39596         * modules/truncl-tests (Depends-on): Likewise.
39598         strtod: work around icc bug
39599         * lib/strtod.c (minus_zero): Define to working value.
39600         (strtod): Use it to avoid icc bug.
39602         copysign: enhance tests
39603         * modules/copysign-tests (Files): Add minus-zero.h.
39604         * tests/test-copysign.c (main): Also test zeros.
39606 2010-11-04  Eric Blake  <eblake@redhat.com>
39608         ceil, floor, round, trunc: enhance tests of -0
39609         * tests/test-ceilf1.c (main): Ensure correct sign of result.
39610         * tests/test-ceill.c (main): Likewise.
39611         * tests/test-floorf1.c (main): Likewise.
39612         * tests/test-floorl.c (main): Likewise.
39613         * tests/test-round1.c (main): Likewise.
39614         * tests/test-roundf1.c (main): Likewise.
39615         * tests/test-roundl.c (main): Likewise.
39616         * tests/test-trunc1.c (main): Likewise.
39617         * tests/test-truncf1.c (main): Likewise.
39618         * tests/test-truncl.c (main): Likewise.
39620 2010-11-04  Eric Blake  <eblake@redhat.com>
39622         frexp, tests: work around ICC bug with -zero
39623         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
39624         works with more compilers.
39625         * tests/minus-zero.h: New file.
39626         * modules/ceilf-tests (Files): Include it.
39627         * modules/ceill-tests (Files): Likewise.
39628         * modules/floorf-tests (Files): Likewise.
39629         * modules/floorl-tests (Files): Likewise.
39630         * modules/frexp-nolibm-tests (Files): Likewise.
39631         * modules/frexp-tests (Files): Likewise.
39632         * modules/frexpl-nolibm-tests (Files): Likewise.
39633         * modules/frexpl-tests (Files): Likewise.
39634         * modules/isnan-tests (Files): Likewise.
39635         * modules/isnand-nolibm-tests (Files): Likewise.
39636         * modules/isnand-tests (Files): Likewise.
39637         * modules/isnanf-nolibm-tests (Files): Likewise.
39638         * modules/isnanf-tests (Files): Likewise.
39639         * modules/isnanl-nolibm-tests (Files): Likewise.
39640         * modules/isnanl-tests (Files): Likewise.
39641         * modules/round-tests (Files): Likewise.
39642         * modules/roundf-tests (Files): Likewise.
39643         * modules/roundl-tests (Files): Likewise.
39644         * modules/ldexpl-tests (Files): Likewise.
39645         * modules/signbit-tests (Files): Likewise.
39646         * modules/snprintf-posix-tests (Files): Likewise.
39647         * modules/sprintf-posix-tests (Files): Likewise.
39648         * modules/strtod-tests (Files): Likewise.
39649         * modules/trunc-tests (Files): Likewise.
39650         * modules/truncf-tests (Files): Likewise.
39651         * modules/truncl-tests (Files): Likewise.
39652         * modules/vsnprintf-posix-tests (Files): Likewise.
39653         * modules/vsprintf-posix-tests (Files): Likewise.
39654         * modules/vasnprintf-posix-tests (Files): Likewise.
39655         * modules/vasprintf-posix-tests (Files): Likewise.
39656         * tests/test-ceilf1.c (main): Use it.
39657         * tests/test-ceill.c (main): Likewise.
39658         * tests/test-floorf1.c (main): Likewise.
39659         * tests/test-floorl.c (main): Likewise.
39660         * tests/test-frexp.c (main): Likewise.
39661         * tests/test-frexpl.c (main): Likewise.
39662         * tests/test-isnan.c (main): Likewise.
39663         * tests/test-isnand.h (main): Likewise.
39664         * tests/test-isnanf.h (main): Likewise.
39665         * tests/test-isnanl.h (main): Likewise.
39666         * tests/test-ldexpl.c (main): Likewise.
39667         * tests/test-round.c (main): Likewise.
39668         * tests/test-roundf.c (main): Likewise.
39669         * tests/test-roundl.c (main): Likewise.
39670         * tests/test-signbit.c (test_signbitf, test_signbitd)
39671         (test_signbitl): Likewise.
39672         * tests/test-snprintf-posix.h (test_function): Likewise.
39673         * tests/test-sprintf-posix.h (test_function): Likewise.
39674         * tests/test-strtod.c (main): Likewise.
39675         * tests/test-trunc1.c (main): Likewise.
39676         * tests/test-truncf1.c (main): Likewise.
39677         * tests/test-truncl.c (main): Likewise.
39679         isnanl: work around icc bug
39680         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
39682 2010-11-03  Eric Blake  <eblake@redhat.com>
39684         tests: fix compiler warnings
39685         * tests/test-getopt.h (test_getopt): Fix condition.
39686         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39687         * tests/test-pipe2.c (main): Likewise.
39688         * tests/test-quotearg-simple.c (main): Avoid icc warning.
39690         utimens: fix broken m4 test
39691         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
39693 2010-10-28  Bruno Haible  <bruno@clisp.org>
39695         posix_spawn*, getdtablesize: Relax license.
39696         * modules/posix_spawn (License): Change to LGPLv2+.
39697         * modules/posix_spawnp (License): Likewise.
39698         * modules/posix_spawn-internal (License): Likewise.
39699         * modules/posix_spawnattr_init (License): Likewise.
39700         * modules/posix_spawnattr_getflags (License): Likewise.
39701         * modules/posix_spawnattr_setflags (License): Likewise.
39702         * modules/posix_spawnattr_getpgroup (License): Likewise.
39703         * modules/posix_spawnattr_setpgroup (License): Likewise.
39704         * modules/posix_spawnattr_getschedparam (License): Likewise.
39705         * modules/posix_spawnattr_setschedparam (License): Likewise.
39706         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
39707         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
39708         * modules/posix_spawnattr_getsigdefault (License): Likewise.
39709         * modules/posix_spawnattr_setsigdefault (License): Likewise.
39710         * modules/posix_spawnattr_getsigmask (License): Likewise.
39711         * modules/posix_spawnattr_setsigmask (License): Likewise.
39712         * modules/posix_spawnattr_destroy (License): Likewise.
39713         * modules/posix_spawn_file_actions_init (License): Likewise.
39714         * modules/posix_spawn_file_actions_addclose (License): Likewise.
39715         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
39716         * modules/posix_spawn_file_actions_addopen (License): Likewise.
39717         * modules/posix_spawn_file_actions_destroy (License): Likewise.
39718         * modules/getdtablesize (License): Likewise.
39719         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
39721 2010-10-26  Bruno Haible  <bruno@clisp.org>
39723         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
39724         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
39725         Cygwin and mingw.
39726         Suggested by Eric Blake.
39728 2010-10-26  Bruno Haible  <bruno@clisp.org>
39730         stdio: Work around compilation error due to renameat() on Solaris 10.
39731         * lib/stdio.in.h: Include <unistd.h> on Solaris.
39732         * lib/renameat.c: Don't include <unistd.h> here.
39733         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
39734         Reported by Paul Eggert and Eric Blake.
39736 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
39738         renameat: port to Solaris 10, which declares renameat in unistd.h
39740         * lib/renameat.c: Include unistd.h before stdio.h, because
39741         Solaris 10 declares renameat in unistd.h.  Problem encountered
39742         when building GNU tar 1.24 on Solaris 10.
39744 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
39746         fdopendir: fix C89 compilation
39747         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
39748         compilers.
39750 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
39752         inttostr: simplify by removing unnecessary redundancy
39753         * lib/anytostr.c: Don't include verify.h.
39754         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
39755         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
39756         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
39757         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
39758         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
39759         Likewise.
39760         * modules/inttostr (Depends-on): Remove 'verify'.
39762 2010-10-23  Bruno Haible  <bruno@clisp.org>
39764         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
39765         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
39766         Reported by Eric Blake.
39768 2010-10-23  Bruno Haible  <bruno@clisp.org>
39770         Tests: Fix LOCALE_JA on MirBSD 10.
39771         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
39772         to an UTF-8 locale.
39773         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
39774         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39775         Reported by Eric Blake.
39777 2010-10-21  Bruno Haible  <bruno@clisp.org>
39779         nl_langinfo test: Avoid test failure on NetBSD 5.
39780         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
39781         Reported by Eric Blake.
39783 2010-10-21  Eric Blake  <eblake@redhat.com>
39785         c-stack: work around libsigsegv 2.8 bug
39786         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
39787         overflow on at least PowerPC64.
39789 2010-10-17  Bruno Haible  <bruno@clisp.org>
39791         userspec: Drop redundant file.
39792         * modules/userspec (Files): Remove lib/inttostr.h.
39794 2010-10-17  Bruno Haible  <bruno@clisp.org>
39796         nl_langinfo tests: Silence some warnings.
39797         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
39798         Reported by Jim Meyering.
39800 2010-10-17  Bruno Haible  <bruno@clisp.org>
39802         Make use of GCC's attribute __alloc_size__.
39803         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
39804         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
39805         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
39806         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
39807         __alloc_size__.
39808         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39809         Suggested by Jim Meyering.
39811 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
39813         bootstrap: anchor .gitignore entries.
39814         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
39815         with...
39816         (insert_vc_ignore): ... this new function, which prepends `/' to
39817         all .gitignore entries before passing them to
39818         insert_sorted_if_absent.
39820 2010-10-16  Bruno Haible  <bruno@clisp.org>
39822         nextafter: Fix configure check.
39823         * modules/nextafter (configure.ac): Correct expected prototype.
39825 2010-10-16  Bruno Haible  <bruno@clisp.org>
39827         termios: Update documentation.
39828         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
39830 2010-10-16  Bruno Haible  <bruno@clisp.org>
39832         tests: Make them compile with TinyCC.
39833         * tests/test-strstr.c (main): Remove parentheses around array
39834         initializer.
39836 2010-10-15  Eric Blake  <eblake@redhat.com>
39838         ignore-value: make header idempotent
39839         * lib/ignore-value.h: Add double-inclusion guards.
39840         Reported by Stefan Berger.
39842 2010-10-15  Jim Meyering  <meyering@redhat.com>
39844         GNUmakefile: handle "stable" target, not "major"
39845         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
39846         lists in maint.mk and announce-gen.  Without this, "make stable"
39847         would fail to ensure that $(VERSION) is up to date.
39849 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
39851         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
39852         & co.
39854 2010-10-14  Bruno Haible  <bruno@clisp.org>
39856         vasnprintf: Don't set errno to 0.
39857         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
39858         block that sets it to 0.
39859         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
39861 2010-10-14  Bruno Haible  <bruno@clisp.org>
39863         socketlib: Fix.
39864         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
39865         gl_PREREQ_SYS_H_WINSOCK2.
39866         Reported by Ian Beckwith <ianb@erislabs.net>.
39868 2010-10-13  Jim Meyering  <meyering@redhat.com>
39870         test-select-stdin.c: avoid warn_unused_result warnings
39871         * tests/test-select-stdin.c: Include "macros.h".
39872         ASSERT that read and fflush succeed.
39874 2010-10-13  Jim Meyering  <meyering@redhat.com>
39876         git-version-gen: do require git-VC'd files in cwd
39877         * build-aux/git-version-gen: Reject a git version string
39878         if there are no commits associated with the current directory.
39879         This avoids an unlikely false-positive (unrelated dir whose parent
39880         repository also contains a tag matching v*), as pointed out
39881         by Giuseppe Scrivano in
39882         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
39884 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
39886         argv-iter: omit nonconforming declaration
39887         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
39888         enum arg_iter_err declaration, which doesn't conform to C99.
39889         Solaris 10 cc warns about this.
39891 2010-10-13  Eric Blake  <eblake@redhat.com>
39893         termios: fix compilation on mingw
39894         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
39895         (gl_TERMIOS_H): Adjust it on mingw.
39896         * modules/termios (Makefile.am): Substitute new key.
39897         * lib/termios.in.h (includes): Make include_next conditional.
39898         * doc/posix-headers/termios.texi (termios.h): Update
39899         documentation.
39900         Reported by Daniel P. Berrange.
39902 2010-10-13  Jim Meyering  <meyering@redhat.com>
39904         git-version-gen: don't require that .git/ be in the current dir
39905         * build-aux/git-version-gen: Adjust this script so that it works
39906         when run from any working directory beneath the top-level .git/-
39907         containing directory.  Inspired by a patch from Giuseppe Scrivano,
39908         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
39910         test-select: avoid warn_unused_result warnings
39911         * tests/test-select.c: Include "macros.h".
39912         ASSERT that each call to read, write, and pipe succeeds.
39913         While not technically required, also check each "close".
39914         * modules/select-tests (Files): Add tests/macros.h.
39916         test-symlinkat: remove declaration of unused local
39917         * tests/test-symlinkat.c (main): Remove unused local, "buf".
39919         test-inttostr: avoid shadowing warnings
39920         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
39921         and use malloc rather than the stack for the same reason as
39922         mentioned in the comment justifying the other allocation.
39924 2010-10-11  Bruno Haible  <bruno@clisp.org>
39926         stdlib: Allow multiple gnulib generated replacements to coexist.
39927         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
39928         Reported by Sam Steingold <sds@gnu.org>.
39930 2010-10-11  Jim Meyering  <meyering@redhat.com>
39932         fix a documentation typo
39933         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
39935 2010-10-11  Eric Blake  <eblake@redhat.com>
39937         futimens: work around Solaris 11 bug
39938         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
39939         * tests/test-futimens.h (test_futimens): Enhance, rather than
39940         weaken test.
39941         * doc/posix-functions/futimens.texi (futimens): Document the bug.
39943 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
39945         Indentation.
39946         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
39947         higher-level operators more to the left.
39949 2010-10-11  Jim Meyering  <meyering@redhat.com>
39951         test-futimens: avoid unwarranted test failure on Solaris 5.11
39952         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
39953         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
39954         because it tries to dereference the NULL name argument.
39956 2010-10-11  Bruno Haible  <bruno@clisp.org>
39958         Indentation.
39959         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
39960         indentation.
39962 2010-10-11  Jim Meyering  <meyering@redhat.com>
39964         spawn.in.h: make indentation consistent with parentheses
39965         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
39966         Make indentation consistent with parentheses.
39968 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
39970         Fix mismatched parens in previous commit
39971         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
39972         parens.
39974 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
39976         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
39978         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
39979         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
39980         * lib/malloca.c: Include "verify.h".
39981         (verify1): Remove, replacing with a verify call.
39982         * lib/relocwrapper.c (verify1): Likewise.
39983         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
39984         Likewise.
39985         * modules/malloca (Depends-on): Add 'verify'.
39986         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
39987         * modules/vasnprintf (Depends-on): Add 'verify'.
39988         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39989         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39990         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39991         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39992         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39993         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39994         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39996         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
39998         Formerly the style was sometimes 2*X - 1, because the C standard
39999         was wrongly thought to disallow ?: in integral constant expressions.
40000         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
40001         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
40002         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
40003         * lib/stdint.in.h (_verify_intmax_size): Likewise.
40004         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
40005         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
40006         verify that time_t cannot be floating.
40008 2010-10-08  Eric Blake  <eblake@redhat.com>
40010         time: enforce recent POSIX ruling that time_t is integral
40011         * lib/time.in.h (__time_t_must_be_integral): Detect any
40012         problematic systems, allowing the rest of gnulib to assume POSIX.
40014 2010-10-08  Jim Meyering  <meyering@redhat.com>
40016         fdopendir: fix a bug on systems lacking openat and /proc support
40017         OpenBSD 4.7 is one such system.  The most noticeable effect was
40018         failure of any application making nontrivial use of fts: rm, du,
40019         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
40020           ./rm: traversal failed: `a': Bad file descriptor
40021         Debugging that, you see that even though FD 6 was closed just
40022         prior to the opendir call in fd_clone_opendir, its resulting
40023         dir->dd_fd was 8, rather than the expected value of 6:
40025         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
40026         93                close (fd);
40027         (gdb) n
40028         94                dir = fd_clone_opendir (dupfd);
40029         (gdb) n
40030         95                saved_errno = errno;
40031         (gdb) p dir->dd_fd
40032         $11 = 8
40034         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
40035         The problem is that on OpenBSD, fd_clone_opendir has to resort
40036         to using the old-style save/restore CWD mechanism, due to its
40037         lack of openat/proc support, and *that* would steal the FD (6)
40038         that opendir was supposed to use.
40040         The fix is to squirrel away the desired FD so that save_cwd uses a
40041         different one, and then free the dest FD right before calling opendir.
40042         That guarantees opendir will use the required file descriptor.
40044         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
40046 2010-10-08  Bruno Haible  <bruno@clisp.org>
40048         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
40049         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
40051 2010-10-08  Bruno Haible  <bruno@clisp.org>
40053         nanosleep: Make replacement POSIX compliant.
40054         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
40055         is out of range.
40056         Reported by Jim Meyering.
40058 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40060         bootstrap: add hook for altering gnulib.mk, for Bison
40061         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
40062         the Bison bootstrapping process can rewrite file names and variables
40063         in this file before later parts of 'bootstrap' use the file.
40064         Bison wants to include lib/gnulib.mk from the top-level makefile,
40065         so it needs the file names in this file to be relative to the top
40066         level, not relative to lib; plus it needs variable names to be
40067         rewritten.
40068         (slurp): Use the new function.
40070         bootstrap: reformat for readability
40071         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
40073 2010-10-08  Eric Blake  <eblake@redhat.com>
40075         docs: update cygwin progress
40076         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
40077         1.7.7.
40078         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
40079         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
40080         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
40081         * doc/posix-functions/carg.texi (carg): Likewise.
40082         * doc/posix-functions/cargf.texi (cargf): Likewise.
40083         * doc/posix-functions/casin.texi (casin): Likewise.
40084         * doc/posix-functions/casinf.texi (casinf): Likewise.
40085         * doc/posix-functions/casinh.texi (casinh): Likewise.
40086         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
40087         * doc/posix-functions/catan.texi (catan): Likewise.
40088         * doc/posix-functions/catanf.texi (catanf): Likewise.
40089         * doc/posix-functions/catanh.texi (catanh): Likewise.
40090         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
40091         * doc/posix-functions/ccos.texi (ccos): Likewise.
40092         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
40093         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
40094         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
40095         * doc/posix-functions/cexp.texi (cexp): Likewise.
40096         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
40097         * doc/posix-functions/cimag.texi (cimag): Likewise.
40098         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
40099         * doc/posix-functions/clog.texi (clog): Likewise.
40100         * doc/posix-functions/clogf.texi (clogf): Likewise.
40101         * doc/posix-functions/conj.texi (conj): Likewise.
40102         * doc/posix-functions/conjf.texi (conjf): Likewise.
40103         * doc/posix-functions/cpow.texi (cpow): Likewise.
40104         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
40105         * doc/posix-functions/cproj.texi (cproj): Likewise.
40106         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
40107         * doc/posix-functions/creal.texi (creal): Likewise.
40108         * doc/posix-functions/crealf.texi (crealf): Likewise.
40109         * doc/posix-functions/csin.texi (csin): Likewise.
40110         * doc/posix-functions/csinf.texi (csinf): Likewise.
40111         * doc/posix-functions/csinh.texi (csinh): Likewise.
40112         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
40113         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
40114         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
40115         * doc/posix-functions/ctan.texi (ctan): Likewise.
40116         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
40117         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
40118         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
40119         * doc/posix-headers/complex.texi (complex.h): Likewise.
40121 2010-10-07  Jim Meyering  <meyering@redhat.com>
40123         parse-datetime: avoid compilation failure on OpenBSD 4.7
40124         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
40125         This works around a compilation failure on OpenBSD 4.7:
40126         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
40128 2010-10-07  Eric Blake  <eblake@redhat.com>
40130         docs: update cygwin progress
40131         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
40132         1.7.6.
40133         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40134         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
40135         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
40136         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
40137         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
40138         Likewise.
40139         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
40140         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
40141         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
40142         Likewise.
40143         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
40144         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
40145         Likewise.
40146         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
40147         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
40148         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
40149         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
40150         Likewise.
40151         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
40152         Likewise.
40153         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
40155         docs: update parse-datetime history
40156         * doc/parse-datetime.texi (Authors of parse_datetime): Better
40157         documentation of this function's history and alternatives.
40159         cygwin: use more robust version check
40160         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
40161         exclude an eventual cygwin 1.9.1.
40162         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
40163         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
40164         (gl_FUNC_STRCASESTR): Likewise.
40165         Reported by Bruno Haible.
40167 2010-10-06  Bruno Haible  <bruno@clisp.org>
40169         string, sys_select: Avoid #including large headers unless necessary.
40170         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
40171         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
40172         OSF/1, BeOS, Haiku.
40173         Reported by Jim Meyering.
40175 2010-10-05  Eric Blake  <eblake@redhat.com>
40177         memmem, strstr, strcasestr: fix bug with long periodic needle
40178         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
40179         periodic needle having false positive.
40180         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
40181         and cygwin 1.7.7.
40182         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
40183         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
40184         (gl_FUNC_STRCASESTR): Likewise.
40185         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
40186         * tests/test-memmem.c (main): Expose the bug.
40187         * tests/test-strcasestr.c (main): Likewise.
40188         * tests/test-strstr.c (main): Likewise.
40189         * tests/test-c-strcasestr.c (main): Likewise.
40190         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
40191         * doc/posix-functions/strstr.texi (strstr): Likewise.
40192         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40193         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
40195 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
40197         parse-datetime: do some more renaming
40198         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
40199         parse_datetime, not get_date.  Mention the renaming.
40200         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
40201         in comments.
40202         * m4/bison.m4: Likewise.
40204 2010-10-05  Eric Blake  <eblake@redhat.com>
40206         parse-datetime: better name than get_date
40207         * NEWS: Reword the deprecation notice.
40208         * modules/get_date: Rename to modules/parse-datetime.
40209         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
40210         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
40211         * lib/get_date.y: Rename to lib/parse-datetime.y.
40212         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
40213         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
40214         * doc/getdate.texi: Provide fallback wrapper.
40215         * lib/getdate.h: Move guts, and wrap...
40216         * lib/parse-datetime.h: ...new file.
40217         * lib/parse-datetime.y (get_date): Rename...
40218         (parse_datetime): ...to this.
40219         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
40220         (gl_PARSE_DATETIME): ...to this.
40221         * doc/posix-functions/getdate.texi (get_date): Provide fallback
40222         documentation.
40223         * modules/getdate (Files): Provide fallback docs and header.
40224         (Notice, Depends-on): Update references.
40225         * tests/test-parse-datetime.c: Likewise.
40226         * DEPENDENCIES: Likewise.
40227         * MODULES.html.sh (Date and time <time.h>): Likewise.
40228         * doc/parse-datetime.texi (Date input formats)
40229         (Authors of parse_datetime): Likewise.
40230         * modules/parse-datetime (Files, configure.ac, Makefile.am)
40231         (Include): Likewise.
40232         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
40233         * gnulib-tool: Likewise.
40234         * m4/bison.m4 (gl_BISON): Likewise.
40235         Suggested by Bruno Haible.
40237 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
40239         more ports to Solaris tr, which needs [] around ranges
40240         * gnulib-tool: Solaris tr needs [] around ranges.
40241         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
40242         * tests/test-pipe-filter-gi1.c (main): Likewise.
40243         * tests/test-pipe-filter-ii1.c (main): Likewise.
40245 2010-10-05  Eric Blake  <eblake@redhat.com>
40247         bootstrap: fix Solaris regression
40248         * build-aux/bootstrap (check_versions): Solaris tr still needs []
40249         around ranges.
40250         Reported by Pádraig Brady.
40252         bootstrap: work with pkg-config
40253         * build-aux/bootstrap (check_versions): Also transliterate - in
40254         prerequisite name.
40255         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
40256         prerequisites that were already found, to avoid confusion.
40257         Reported by Justin Clift.
40259         faccessat: remove unused wrappers
40260         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
40261         presence of these wrappers dragged in -lgen on Solaris.
40262         Reported by Clemens Brogi; fix suggested by Paul Eggert.
40264 2010-10-05  Jim Meyering  <meyering@redhat.com>
40266         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
40267         * Makefile (sc_pragma_columns): New syntax-check rule.
40269 2010-10-04  Bruno Haible  <bruno@clisp.org>
40271         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
40272         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
40273         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
40274         Reported by Bruce Korb and Eric Blake.
40276 2010-10-04  Bruno Haible  <bruno@clisp.org>
40278         threadlib: Make option --with-libpth-prefix work.
40279         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
40280         use $LIBPTH, not just -lpth.
40282 2010-10-04  Bruno Haible  <bruno@clisp.org>
40284         Avoid line length limitation from HP NonStop system header files.
40285         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
40286         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
40287         * lib/ctype.in.h: Likewise.
40288         * lib/dirent.in.h: Likewise.
40289         * lib/errno.in.h: Likewise.
40290         * lib/fcntl.in.h: Likewise.
40291         * lib/float.in.h: Likewise.
40292         * lib/getopt.in.h: Likewise.
40293         * lib/iconv.in.h: Likewise.
40294         * lib/inttypes.in.h: Likewise.
40295         * lib/langinfo.in.h: Likewise.
40296         * lib/locale.in.h: Likewise.
40297         * lib/math.in.h: Likewise.
40298         * lib/netdb.in.h: Likewise.
40299         * lib/netinet_in.in.h: Likewise.
40300         * lib/poll.in.h: Likewise.
40301         * lib/pthread.in.h: Likewise.
40302         * lib/pty.in.h: Likewise.
40303         * lib/sched.in.h: Likewise.
40304         * lib/se-selinux.in.h: Likewise.
40305         * lib/search.in.h: Likewise.
40306         * lib/signal.in.h: Likewise.
40307         * lib/spawn.in.h: Likewise.
40308         * lib/stdarg.in.h: Likewise.
40309         * lib/stddef.in.h: Likewise.
40310         * lib/stdint.in.h: Likewise.
40311         * lib/stdio.in.h: Likewise.
40312         * lib/stdlib.in.h: Likewise.
40313         * lib/string.in.h: Likewise.
40314         * lib/strings.in.h: Likewise.
40315         * lib/sys_file.in.h: Likewise.
40316         * lib/sys_ioctl.in.h: Likewise.
40317         * lib/sys_select.in.h: Likewise.
40318         * lib/sys_socket.in.h: Likewise.
40319         * lib/sys_stat.in.h: Likewise.
40320         * lib/sys_time.in.h: Likewise.
40321         * lib/sys_times.in.h: Likewise.
40322         * lib/sys_utsname.in.h: Likewise.
40323         * lib/sys_wait.in.h: Likewise.
40324         * lib/sysexits.in.h: Likewise.
40325         * lib/termios.in.h: Likewise.
40326         * lib/time.in.h: Likewise.
40327         * lib/unistd.in.h: Likewise.
40328         * lib/wchar.in.h: Likewise.
40329         * lib/wctype.in.h: Likewise.
40330         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
40331         * modules/ctype (Makefile.am): Likewise.
40332         * modules/dirent (Makefile.am): Likewise.
40333         * modules/errno (Makefile.am): Likewise.
40334         * modules/fcntl-h (Makefile.am): Likewise.
40335         * modules/float (Makefile.am): Likewise.
40336         * modules/getopt-posix (Makefile.am): Likewise.
40337         * modules/iconv-h (Makefile.am): Likewise.
40338         * modules/inttypes (Makefile.am): Likewise.
40339         * modules/langinfo (Makefile.am): Likewise.
40340         * modules/locale (Makefile.am): Likewise.
40341         * modules/math (Makefile.am): Likewise.
40342         * modules/netdb (Makefile.am): Likewise.
40343         * modules/netinet_in (Makefile.am): Likewise.
40344         * modules/poll-h (Makefile.am): Likewise.
40345         * modules/pthread (Makefile.am): Likewise.
40346         * modules/pty (Makefile.am): Likewise.
40347         * modules/sched (Makefile.am): Likewise.
40348         * modules/search (Makefile.am): Likewise.
40349         * modules/selinux-h (Makefile.am): Likewise.
40350         * modules/signal (Makefile.am): Likewise.
40351         * modules/spawn (Makefile.am): Likewise.
40352         * modules/stdarg (Makefile.am): Likewise.
40353         * modules/stddef (Makefile.am): Likewise.
40354         * modules/stdint (Makefile.am): Likewise.
40355         * modules/stdio (Makefile.am): Likewise.
40356         * modules/stdlib (Makefile.am): Likewise.
40357         * modules/string (Makefile.am): Likewise.
40358         * modules/strings (Makefile.am): Likewise.
40359         * modules/sys_file (Makefile.am): Likewise.
40360         * modules/sys_ioctl (Makefile.am): Likewise.
40361         * modules/sys_select (Makefile.am): Likewise.
40362         * modules/sys_socket (Makefile.am): Likewise.
40363         * modules/sys_stat (Makefile.am): Likewise.
40364         * modules/sys_time (Makefile.am): Likewise.
40365         * modules/sys_times (Makefile.am): Likewise.
40366         * modules/sys_utsname (Makefile.am): Likewise.
40367         * modules/sys_wait (Makefile.am): Likewise.
40368         * modules/sysexits (Makefile.am): Likewise.
40369         * modules/termios (Makefile.am): Likewise.
40370         * modules/time (Makefile.am): Likewise.
40371         * modules/unistd (Makefile.am): Likewise.
40372         * modules/wchar (Makefile.am): Likewise.
40373         * modules/wctype (Makefile.am): Likewise.
40375 2010-10-04  Bruno Haible  <bruno@clisp.org>
40377         read-file tests: Avoid a test failure on NonStop Kernel.
40378         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
40379         a regular file.
40380         Reported by Joachim Schmitz <schmitz@hp.com>.
40382 2010-10-03  Bruno Haible  <bruno@clisp.org>
40384         gnulib-tool: Fixes for --create-testdir with --libtool.
40385         * gnulib-tool (func_get_automake_snippet): Don't augment
40386         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
40387         an executable.
40388         (func_create_testdir): Handle module 'alloca' like func_import.
40389         Reported by Bruce Korb <bruce.korb@gmail.com>.
40391 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
40393         Avoid some lines longer than 80 characters.
40394         * lib/stdint.in.h: Break long comment lines.
40395         * lib/math.in.h: Likewise.
40396         (_GL_NUM_UINT_WORDS): New macro, for readability.
40397         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
40398         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
40399         * lib/stdlib.in.h: Likewise.
40400         * lib/spawn.in.h: Likewise.
40401         * lib/sys_socket.in.h: Update an URL.
40402         * lib/sys_stat.in.h: Break long line.
40404 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
40406         Improve pmccabe2html.
40407         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
40408         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
40409         when the sources change. Remove the line in the HTML about "Used
40410         ranges" (which implied that there might be other unused ranges),
40411         rename "Resume" to "Summary" (easier to understand for more users).
40412         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
40413         styles, and some unnecessary blank lines.
40415 2010-10-03  Bruno Haible  <bruno@clisp.org>
40416             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
40418         acl: Add support for ACLs on NonStop Kernel.
40419         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
40420         Check whether the function aclsort() exists.
40421         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
40422         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
40423         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
40424         (acl_nontrivial [HAVE_ACLSORT]: New function.
40425         (file_has_acl): Implement for NonStop Kernel.
40426         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
40427         (qset_acl): Implement for NonStop Kernel.
40428         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
40429         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
40430         (main): Implement for NonStop Kernel.
40431         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
40432         Kernel. Handle this flavor.
40433         * tests/test-set-mode-acl.sh: Likewise.
40434         * tests/test-copy-acl.sh: Likewise.
40435         * tests/test-copy-file.sh: Likewise.
40437 2010-10-03  Bruno Haible  <bruno@clisp.org>
40439         Info about ACLs on NonStop Kernel.
40440         * doc/acl-resources.txt: Add info about NonStop Kernel.
40441         References by Joachim Schmitz <schmitz@hp.com>.
40443 2010-10-02  Bruno Haible  <bruno@clisp.org>
40445         Define missing EDQUOT on NonStop Kernel.
40446         * lib/errno.in.h (EDQUOT): Assign a value if missing.
40447         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
40448         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
40449         missing.
40450         * doc/posix-headers/errno.texi: Mention the NSK bug.
40451         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
40452         Reported by Joachim Schmitz <schmitz@hp.com>.
40454 2010-10-02  Bruno Haible  <bruno@clisp.org>
40456         Update doc for POSIX:2008.
40457         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
40458         Update URL of POSIX specification.
40460 2010-10-02  Bruno Haible  <bruno@clisp.org>
40462         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
40463         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
40464         from gnulib, not from Automake.
40466 2010-10-02  Bruno Haible  <bruno@clisp.org>
40468         New module 'system-posix'.
40469         * modules/system-posix: New file.
40470         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
40471         module is present.
40472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
40473         GNULIB_SYSTEM_POSIX.
40474         * modules/stdlib (Depends-on): Remove sys_wait.
40475         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
40476         * doc/posix-functions/system.texi: Mention the new module.
40477         * doc/posix-headers/stdlib.texi: Likewise.
40478         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
40479         define test_sys_wait_macros to a no-op.
40480         Reported by Sam Steingold <sds@gnu.org>.
40482 2010-09-30  Bruno Haible  <bruno@clisp.org>
40484         More renaming from 'getdate' to 'get_date'.
40485         * doc/get_date.texi: Renamed from doc/getdate.texi.
40486         * modules/get_date (Files): Update.
40487         * MODULES.html.sh (Date and time <time.h>): Update.
40488         * DEPENDENCIES: Update.
40489         * gnulib-tool: Update comment.
40490         * m4/bison.m4 (gl_BISON): Likewise.
40491         * m4/get_date.m4 (gl_GET_DATE): Likewise.
40493 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
40495         bootstrap: support ACLOCAL_FLAGS during aclocal
40496         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
40497         can add additional -I dir for third-party .m4 files.
40499 2010-09-30  Eric Blake  <eblake@redhat.com>
40501         bootstrap: use glibtoolize on MacOS
40502         * build-aux/bootstrap (check_versions): Convert libtool into
40503         libtoolize.
40504         (tool search): Move libtool check earlier, and look for
40505         glibtoolize for MacOS.
40506         (gnulib_tool_options): Auto-add --libtool when appropriate.
40507         Reported by Justin Clift.
40509         poll: fix typo that broke test on MacOS
40510         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
40511         Reported by Justin Clift.
40513         getdate: rename to get_date
40514         Note: getdate.h is not renamed, to minimize client impact.
40515         * modules/getdate: Mark obsolete.  Move old contents...
40516         * modules/get_date: ...to new module name.
40517         * modules/getdate-tests: Move...
40518         * modules/get_date-tests: ...here.
40519         * m4/getdate.m4: Move...
40520         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
40521         * lib/getdate.y: Move...
40522         * lib/get_date.y: ...here.
40523         * tests/test-getdate.c: Move...
40524         * tests/test-get_date.c: ...here.
40525         * doc/posix-functions/getdate.texi (getdate): Update name.
40526         * NEWS: Mention the change.
40528 2010-09-29  Bruno Haible  <bruno@clisp.org>
40530         Separate the module 'waitpid' from the module 'sys_wait'.
40531         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
40532         present.
40533         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
40534         gl_MODULE_INDICATOR_FOR_TESTS.
40535         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
40536         * modules/sys_wait (Depends-on): Remove waitpid.
40537         (Makefile.am): Substitute GNULIB_WAITPID.
40538         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
40539         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
40540         signature only if the 'waitpid' module is present.
40541         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
40542         * NEWS: Mention the change.
40543         * modules/grantpt (Depends-on): Add waitpid.
40544         * modules/wait-process (Depends-on): Likewise.
40546 2010-09-29  Bruno Haible  <bruno@clisp.org>
40548         More tests for module 'sys_wait'.
40549         * modules/sys_wait-c++-tests: New file.
40550         * tests/test-sys_wait-c++.cc: New file.
40551         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
40552         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
40554 2010-09-29  Bruno Haible  <bruno@clisp.org>
40556         New module 'waitpid'.
40557         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
40558         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
40559         Don't include <process.h>.
40560         (waitpid): Declare only, using modern idiom.
40561         * m4/waitpid.m4: New file.
40562         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
40563         * modules/waitpid: New file.
40564         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
40565         (Makefile.am): Update.
40566         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
40568 2010-09-28  Bruno Haible  <bruno@clisp.org>
40570         poll: Assume ANSI C.
40571         * lib/poll.c (poll): Use an ANSI C declaration.
40573 2010-09-28  Bruno Haible  <bruno@clisp.org>
40575         poll-h: Create poll.h on all platforms.
40576         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
40577         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
40578         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
40579         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
40580         (gl_REPLACE_POLL_H): Don't set POLL_H.
40581         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
40582         * modules/poll-h (Depends-on): Add include_next.
40583         (Makefile.am): Create poll.h unconditionally. Substitute also
40584         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
40586 2010-09-28  Bruno Haible  <bruno@clisp.org>
40588         Tests for module 'poll-h'.
40589         * modules/poll-h-c++-tests: New file.
40590         * tests/test-poll-h-c++.cc: New file.
40592         Tests for module 'poll-h'.
40593         * modules/poll-h-tests: New file.
40594         * tests/test-poll-h.c: New file.
40596 2010-09-28  Bruno Haible  <bruno@clisp.org>
40598         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
40599         * modules/poll-h (Depends-on): Add 'extensions'.
40601 2010-09-28  Bruno Haible  <bruno@clisp.org>
40603         New module 'poll-h'.
40604         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
40605         (poll): Use modern idiom.
40606         * modules/poll-h: New file.
40607         * modules/poll (Files): Remove lib/poll.in.h.
40608         (Depends-on): Add poll-h.
40609         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
40610         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
40611         * m4/poll_h.m4: New file.
40612         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
40613         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
40614         and invoke gl_REPLACE_POLL_H.
40615         * lib/poll.c: Use common idiom.
40616         * tests/test-poll.c: Likewise.
40617         * doc/posix-headers/poll.texi: Mention the poll-h module.
40618         Suggested by Eric Blake.
40620 2010-09-26  Bruno Haible  <bruno@clisp.org>
40622         sys_wait: Implement WSTOPSIG.
40623         * lib/sys_wait.in.h (WSTOPSIG): New macro.
40624         Reported by Simon Josefsson.
40626 2010-09-26  Simon Josefsson  <simon@josefsson.org>
40628         stdlib, sys_wait: Avoid compilation error on mingw.
40629         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
40631 2010-09-26  Bruno Haible  <bruno@clisp.org>
40633         stdlib tests: Avoid code duplication.
40634         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
40635         * modules/sys_wait-tests (Files): Likewise.
40636         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
40637         * tests/test-stdlib.c: Include test-sys_wait.h.
40638         (main): Invoke test_sys_wait_macros.
40639         * tests/test-sys_wait.c: Include test-sys_wait.h.
40640         (main): Invoke test_sys_wait_macros.
40642 2010-09-25  Simon Josefsson  <simon@josefsson.org>
40644         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
40645         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
40646         sure Windows sockets are working before calling getaddrinfo.
40647         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
40648         * doc/gnulib.texi (Windows sockets): Fix typo.
40650 2010-09-25  Bruno Haible  <bruno@clisp.org>
40652         Tests for module 'regex-quote'.
40653         * modules/regex-quote-tests: New file.
40654         * tests/test-regex-quote.c: New file.
40656         New module 'regex-quote'.
40657         * lib/regex-quote.h: New file.
40658         * lib/regex-quote.c: New file.
40659         * modules/regex-quote: New file.
40660         Suggested by Reuben Thomas <rrt@sc3d.org>.
40662 2010-09-24  Bruno Haible  <bruno@clisp.org>
40664         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
40665         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
40667 2010-09-23  Bruno Haible  <bruno@clisp.org>
40669         setenv: Relax license.
40670         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
40671         Blake.
40672         Requested by Eric Blake.
40674 2010-09-22  Bruno Haible  <bruno@clisp.org>
40676         termios: Relax license.
40677         * modules/termios (License): Change to LGPLv2+.
40678         Requested by Eric Blake.
40680 2010-09-22  Bruno Haible  <bruno@clisp.org>
40682         threadlib: Allow the package to change the default to 'no'.
40683         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
40684         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
40685         Reported by Paul Eggert.
40687 2010-09-22  Pádraig Brady  <P@draigbrady.com>
40688             Bruno Haible  <bruno@clisp.org>
40690         Fix endless loop in mbmemcasecoll.
40691         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
40692         byte.
40693         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
40695 2010-09-22  Bruno Haible  <bruno@clisp.org>
40697         Tests for module 'memcoll'.
40698         * modules/memcoll-tests: New file.
40699         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
40701         memcoll, xmemcoll: Clarify size vs. length.
40702         * modules/memcoll.c (memcoll0): Clarify specification.
40703         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
40704         passed to collate_error.
40706 2010-09-22  Bruno Haible  <bruno@clisp.org>
40708         Tests for module 'memcasecmp'.
40709         * modules/memcasecmp-tests: New file.
40710         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
40712 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
40714         * lib/pthread.in.h: Add split double-inclusion guard, and include
40715         system <pthread.h> if there is one.  Use @@-style as in other
40716         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
40717         pthread.h doesn't.
40718         (pthread_mutexattr_destroy, pthread_mutexattr_init):
40719         (pthread_mutexattr_settype, pthread_mutex_trylock):
40720         New static inline functions, if there's no system <pthread.h>.
40721         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
40722         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
40723         Approximate with mutexes if the system lacks spinlocks, as in
40724         MacOS.
40725         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
40726         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
40727         @@-style.  Check for spinlocks separately.
40728         (gl_PTHREAD_DEFAULTS): New macro.
40729         * modules/pthread: Redo to use a more typical style for in.h files.
40731 2010-09-21  Eric Blake  <eblake@redhat.com>
40733         net_if: enhance tests
40734         * tests/test-net_if.c (main): Move signature checks earlier.
40735         Print failures to stderr.
40736         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
40737         Document the bug that we do not yet fix.
40739 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
40741         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
40742         about gnulib, not GSS.
40744 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
40746         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
40747         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
40748         for Emacs.
40749         * build-aux/pmccabe2html: Make Makefile.am example code more
40750         cut-and-paste friendly.
40752 2010-09-21  Simon Josefsson  <simon@josefsson.org>
40754         * tests/test-net_if.c: New file.
40755         * modules/net_if-tests: New file.
40757 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
40759         pthread: add pthread_spin_destroy
40760         * lib/pthread.in.h (pthread_spin_destroy): New function.
40762 2010-09-19  Bruno Haible  <bruno@clisp.org>
40764         gnulib-tool: Fix --help output.
40765         * gnulib-tool (func_usage): Fix help message.
40766         Reported by Reuben Thomas <rrt@sc3d.org>.
40768 2010-09-18  Jim Meyering  <meyering@redhat.com>
40770         maint.mk: avoid unexpanded \n in two diagnostics
40771         * top/maint.mk (sc_prohibit_always_true_header_tests):
40772         Don't use a literal \n in a halt=... assignment.  It would not be
40773         expanded, and the two \n bytes would appear in the diagnostic output
40774         rather than the desired newline.  Use halt=$$(printf ... instead.
40775         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
40777 2010-09-18  Bruno Haible  <bruno@clisp.org>
40779         netinet_in: Doc tweak.
40780         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
40781         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
40783 2010-09-18  Jim Meyering  <meyering@redhat.com>
40785         init.sh: correct an outdated comment
40786         * tests/init.sh (create_exe_shims_):  s/function/alias/
40788         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
40789         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
40790         a file named "*.exe" is removed between the glob expansion and the
40791         processing of that oddly named file.
40793 2010-09-17  Eric Blake  <eblake@redhat.com>
40795         mirbsd: add some more support
40796         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
40797         in BSD family.
40798         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
40799         devices as OpenBSD.
40800         * m4/host-os.m4 (mirbsd): Add MirBSD.
40802         tests: fix unportable assumption on sys/wait.h
40803         * tests/test-sys_wait.c (main): Relax test.
40804         * tests/test-stdlib.c (main): Likewise.
40806         init.sh: accommodate directory with no .exes
40807         * tests/init.sh: Accomodate directory containing only scripts.
40809         tests: avoid compiler warning
40810         * tests/test-stdlib.c (main): Use the variable.
40812         fdutimens, fdutimensat: update signature, again
40813         * lib/utimens.h (gl_futimens): Delete, and move signature...
40814         (fdutimens): ...here.
40815         (fdutimensat): Rearrange signature.
40816         (lutimensat): Rename variable for clarity.
40817         * lib/fdutimensat.c (fdutimensat): Update signature.
40818         * lib/utimens.c (fdutimens): Likewise.
40819         (gl_futimens): Delete.
40820         (utimens, lutimens): Update callers.
40821         * lib/futimens.c (futimens): Likewise.
40822         * tests/test-fdutimensat.c: Likewise.
40823         * tests/test-utimens.c: Likewise.
40824         * tests/test-futimens.h: Update comment.
40825         * NEWS: Mention this.
40826         Suggested by Paul Eggert.
40828 2010-09-17  Bruno Haible  <bruno@clisp.org>
40830         Take over the maintenance of some older macros from Autoconf.
40831         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
40832         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
40833         GNU Autoconf.
40834         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
40835         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
40837 2010-09-17  Eric Blake  <eblake@redhat.com>
40839         fdutimensat: drop atflag validation
40840         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
40841         with valid fd, to close a race scenario where futimens is
40842         unsupported and FILE was replaced by a symlink.
40843         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
40844         accordingly.
40845         Suggested by Paul Eggert.
40847 2010-09-16  Bruno Haible  <bruno@clisp.org>
40849         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
40850         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
40852 2010-09-16  Bruno Haible  <bruno@clisp.org>
40854         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
40855         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
40856         login_tty exists.
40857         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
40859 2010-09-16  Bruno Haible  <bruno@clisp.org>
40861         login_tty: Make the replacement code work on BSD systems.
40862         * lib/login_tty.c: Include <sys/ioctl.h>.
40863         (login_tty): Use ioctl TIOCSCTTY when available.
40864         * modules/login_tty (Depends-on): Add sys_ioctl.
40865         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
40867 2010-09-16  Bruno Haible  <bruno@clisp.org>
40869         login_tty: Stricter unit test.
40870         * modules/login_tty-tests (Depends-on): Add tcgetsid.
40871         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
40872         and tcgetsid() after login_tty.
40873         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
40875 2010-09-16  Bruno Haible  <bruno@clisp.org>
40877         New module 'tcgetsid'.
40878         * lib/tcgetsid.c: New file.
40879         * m4/tcgetsid.m4: New file.
40880         * modules/tcgetsid: New file.
40881         * modules/termios (Depends-on): Add c++defs, warn-on-use.
40882         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
40883         GNULIB_TCGETSID, HAVE_TCGETSID.
40884         * lib/termios.in.h: Include <sys/types.h>.
40885         (tcgetsid): New declaration.
40886         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
40887         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
40888         * doc/posix-functions/tcgetsid.texi: Mention the new module.
40889         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
40891 2010-09-16  Bruno Haible  <bruno@clisp.org>
40893         Tests for module 'termios'.
40894         * modules/termios-c++-tests: New file.
40895         * modules/termios-tests: New file.
40896         * tests/test-termios-c++.cc: New file.
40897         * tests/test-termios.c: New file.
40899         New module 'termios'.
40900         * modules/termios: New file.
40901         * lib/termios.in.h: New file.
40902         * m4/termios_h.m4: New file.
40903         * doc/posix-headers/termios.texi: Mention the new module.
40905 2010-09-16  Eric Blake  <eblake@redhat.com>
40907         fdutimensat: add an atflag parameter
40908         * lib/fdutimensat.c (fdutimensat): Add new parameter.
40909         * lib/utimens.h (fdutimensat): Update prototype.
40910         * tests/test-fdutimensat.c: Adjust test to match.
40911         * NEWS: Document the change.
40912         Suggested by Paul Eggert.
40914 2010-09-16  Bruno Haible  <bruno@clisp.org>
40916         Fix typos in comments.
40917         * lib/striconveh.h: Fix typo in comment.
40918         * lib/login_tty.c (login_tty): Likewise.
40920 2010-09-15  Bruno Haible  <bruno@clisp.org>
40922         stdlib: clarify MirBSD WEXITSTATUS bug
40923         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
40924         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
40926 2010-09-15  Eric Blake  <eblake@redhat.com>
40928         stdlib: work around MirBSD WEXITSTATUS bug
40929         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
40930         * modules/stdlib (Depends-on): Add sys_wait.
40931         * tests/test-sys_wait.c (main): Enhance test.
40932         * tests/test-stdlib.c (main): Likewise.
40933         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
40935         docs: mention MacOS issue with WEXITSTATUS(constant)
40936         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
40937         issue.
40938         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
40940         strnlen: add tests
40941         * modules/strnlen-tests: New file.
40942         * tests/test-strnlen.c: Likewise.
40944 2010-09-14  Bruno Haible  <bruno@clisp.org>
40946         unistr/base: Avoid link errors when module 'libunistring' is also used.
40947         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
40948         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
40949         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
40950         Declare also when HAVE_LIBUNISTRING is set.
40951         Reported by Pádraig Brady <P@draigbrady.com>.
40953 2010-09-14  Eric Blake  <eblake@redhat.com>
40955         test-rawmemchr: make more robust
40956         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
40957         (Depends-on, configure.ac): Add needed prerequisites to use it.
40958         * modules/memchr-tests (Files, Depends-on, configure.ac):
40959         Likewise, to avoid implicit reliance on memchr module prereqs.
40960         * tests/test-memchr.c (main): Ensure proper masking.
40961         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
40962         reads.
40964         memchr: detect glibc Alpha bug
40965         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
40966         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
40967         Alpha.
40968         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
40969         * tests/test-memchr.c (main): Enhance test.
40970         Reported by Nelson H. F. Beebe.
40972 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40974         fts, getcwd, glob: audit for dirfd returning -1
40975         * lib/fts.c (opendir): Remove #define; no longer used.
40976         (opendirat): New arg PDIR_FD.  All callers changed.
40977         (fts_build, _opendir2): Use new opendirat to avoid the need for
40978         dirfd, or for checking whether dirfd returns a negative value.
40979         Don't use opendir; always use openat followed by fdopendir.
40980         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
40981         it.
40982         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
40983         returns -1 here.
40984         * modules/fts (Depends-on): Remove dirfd.
40985         * modules/getcwd (Depends-on): Likewise.
40987 2010-09-13  Eric Blake  <eblake@redhat.com>
40989         float: fix broken MirBSD header
40990         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
40991         * doc/posix-headers/float.texi (float.h): Document it.
40993 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40995         fts: use O_NOFOLLOW to avoid race condition when opening a directory
40996         * lib/fts.c (opendirat): New arg extra_flags.
40997         (__opendir2): Use it to avoid following symlinks when opening
40998         a directory, if symlinks are not supposed to be followed.  See
40999         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
41001         fdopendir: preserve argument fd before returning
41002         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
41003         (fdopendir_with_dup, fd_clone_opendir): New static functions.
41004         (fdopendir): Use them, arranging for FD to be open to the same
41005         directory that it was when it started.  (It might be temporarily
41006         closed while fdopendir is running, so this not thread- or
41007         signal-safe.)  Be careful to do the right thing even when file
41008         descriptors are scarce and dup fails with errno == EMFILE.  See
41009         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
41011 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
41013         regex: Pass the system regex if its only problem is 32-bit regoff_t.
41014         * NEWS: Document change.
41015         * m4/regex.m4: Disable test for regoff_t size.
41017 2010-09-13  Jim Meyering  <meyering@redhat.com>
41019         fts: don't operate on an invalid file descriptor after failed dup
41020         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
41021         negative file descriptor.
41023 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
41025         savedir: add streamsavedir, deprecate fdsavedir
41026         * NEWS: Mention deprecation of fdsavedir.
41027         * lib/savedir.c (streamsavedir): New extern function, whose name
41028         ends in "savedir" to be consistent with the others.  This differs
41029         from savedirstream in that it doesn't close its argument.  The
41030         next version of GNU tar will use this instead of fdsavedir, to
41031         avoid some race conditions and conserve file descriptors.
41032         (savedirstream): Reimplement as a wrapper around streamsavedir.
41033         (fdsavedir): Add a comment deprecating this function.  As far as
41034         I know, only GNU tar used it, and GNU tar doesn't need it any more.
41035         * lib/savedir.h (streamsavedir): New decl.
41036         (fdsavedir): Add a comment deprecating this.
41038 2010-09-10  Bruno Haible  <bruno@clisp.org>
41040         langinfo: Fix last commit.
41041         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
41042         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
41043         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41045 2010-09-10  Bruno Haible  <bruno@clisp.org>
41047         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
41048         * lib/progreloc.c (O_EXEC): Define fallback.
41050 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
41052         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
41053         * NEWS: Document recent changes to fcntl-h.
41054         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
41055         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
41056         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
41057         Similarly for O_SEARCH; this last was already true, but not documented.
41058         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
41059         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
41060         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
41061         Likewise.
41062         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
41063         is zero, not whether it is defined.
41064         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
41065         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
41066         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
41068 2010-09-10  Bruno Haible  <bruno@clisp.org>
41070         langinfo, nl_langinfo: Fix for IRIX 5.3.
41071         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
41072         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
41073         HAVE_LANGINFO_YESEXPR.
41074         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
41075         HAVE_LANGINFO_YESEXPR.
41076         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
41077         HAVE_LANGINFO_T_FMT_AMPM is 0.
41078         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
41079         HAVE_LANGINFO_YESEXPR is 0.
41080         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
41081         NOEXPR.
41082         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
41083         * doc/posix-functions/nl_langinfo.texi: Likewise.
41084         Reported by Eric Blake.
41086 2010-09-10  Bruno Haible  <bruno@clisp.org>
41088         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
41089         * doc/glibc-functions/login_tty.texi: Mention the include file problem
41090         on FreeBSD 8.0 and OpenBSD 4.6.
41091         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
41092         * m4/pty_h.m4 (gl_PTY_H): Likewise.
41093         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
41094         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
41095         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
41096         ac_includes_default.
41097         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
41099 2010-09-09  Eric Blake  <eblake@redhat.com>
41101         strsignal: work around NetBSD bug
41102         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
41103         * lib/string.in.h (includes): Likewise.
41104         * doc/posix-functions/strsignal.texi (strsignal): Document the
41105         bug.
41106         Reported by Nelson H. F. Beebe.
41108         gnulib-tool: work with NetBSD /bin/sh
41109         * gnulib-tool (func_cache_var, func_cache_lookup_module)
41110         (func_get_description, func_get_comment, func_get_status)
41111         (func_get_notice, func_get_applicability, func_get_filelist)
41112         (func_get_dependencies, func_get_autoconf_early_snippet)
41113         (func_get_autoconf_snippet, func_get_automake_snippet)
41114         (func_get_include_directive, func_get_link_directive)
41115         (func_get_license, func_get_maintainer, func_import): Avoid
41116         shell syntax errors from parsing syntax extensions.
41118 2010-09-09  Bruno Haible  <bruno@clisp.org>
41120         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
41121         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
41122         a reliable way to determine whether the 'alias' command works.
41124 2010-09-08  Jim Meyering  <meyering@redhat.com>
41126         init.sh: penalize a set-x-impaired shell; don't disqualify it
41127         * tests/init.sh: Too many shells corrupt application stderr when
41128         you set -x, so we can't afford to disqualify them, since at least
41129         on Irix-6.5, that would disqualify all bourne shells.
41130         Instead, use a two-pass approach.
41131         On the first pass, try to find a shell that meets the stricter
41132         condition that set -x does not corrupt stderr.
41133         If no shell meets the stricter condition, retest each candidate
41134         shell, but without that extra condition.  Finally, when
41135         VERBOSE=yes is requested and set -x might cause trouble, simply
41136         issue a warning and refrain from enabling debug output.
41138 2010-09-08  Eric Blake  <eblake@redhat.com>
41140         unsetenv: fix OpenBSD bug
41141         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
41142         * doc/posix-functions/unsetenv.texi (unsetenv): Update
41143         documentation.
41144         Reported by Jim Meyering.
41146         strtod: work around IRIX 6.5 bug
41147         * lib/strtod.c (strtod): Reparse number on shorter string if
41148         exponent parse was invalid.
41149         * tests/test-strtod.c (main): Add check for "0x1p 2".
41150         Reported by Tom G. Christensen.
41152         getopt: optimize previous patch
41153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
41154         empty variable.  Speed up awk script.
41155         Reported by Paolo Bonzini.
41157 2010-09-08  Jim Meyering  <meyering@redhat.com>
41159         test.sh: disqualify shells for which set -x corrupts stderr
41160         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
41161         and OpenBSD 4.7.  They make it so with "set -x", environment settings
41162         appear in stderr output.  For example, this command:
41163             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
41164         prints "P=1" on those two systems:
41166 2010-09-08  Bruno Haible  <bruno@clisp.org>
41168         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
41169         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
41170         commands, because some shells ignore redirections when there is an
41171         error in the command lookup.
41172         Reported by Eric Blake.
41174 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
41176         * lib/regex.h: Fix a mention of `regex_compile' (should be
41177         `re_compile_pattern').
41178         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
41179         (re_set_registers): Correct name of parameter in comment.
41181         * doc/regex.texi: Add documentation for missing syntax flags.
41182         Remove commented-out documentation of defunct syntax option
41183         RE_NO_EMPTY_ALTS.
41184         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
41185         Add documentation of re_set_registers.
41186         Document trick to re-use a pattern buffer by setting fastmap manually.
41187         Update documentation of struct re_pattern_buffer per public members.
41188         Uncomment documentation of equivalence class operators and
41189         collating symbol operators, since they are now implemented,
41190         Explain leftmost-longest matching in relation to alternatives.
41191         Tidy documentation of substring matching.
41192         Remove POSIX documentation, which is done better in
41193         glibc, and refer the reader there. Keep BSD API documentation, as
41194         that is not readily available elsewhere.
41196 2010-09-07  Eric Blake  <eblake@redhat.com>
41198         getopt: handle POSIXLY_CORRECT set but not exported
41199         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
41200         export state of POSIXLY_CORRECT, due to bash set -o posix.
41201         Reported by Dustin J. Mitchell.
41203 2010-09-05  Bruno Haible  <bruno@clisp.org>
41205         gnulib-tool: Highlight the changed options.
41206         * gnulib-tool (func_usage): Display the --import, --add-import,
41207         --remove-import explanations in bold font.
41209 2010-09-06  Karl Berry  <karl@gnu.org>
41211         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
41213 2010-09-05  Bruno Haible  <bruno@clisp.org>
41215         uniwidth/width: Update comment.
41216         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
41217         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
41219 2010-09-05  Bruno Haible  <bruno@clisp.org>
41221         isinf, isnan: Relax license.
41222         * modules/isinf (License): Change from GPL to LGPL, with consent from
41223         Ben Pfaff.
41224         * modules/isnan (License): Likewise.
41225         Requested by Ludovic Courtès.
41227 2010-09-04  Bruno Haible  <bruno@clisp.org>
41229         gnulib-tool: Help migration from --import to --add-import or --update.
41230         * gnulib-tool: Emit a verbose error message when --import is used
41231         without any module name.
41233 2010-09-04  Bruno Haible  <bruno@clisp.org>
41235         Update doc about gnulib-tool.
41236         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
41237         'gnulib-tool --update' in more detail.
41238         Reported by Eric Blake.
41240 2010-09-04  Bruno Haible  <bruno@clisp.org>
41242         gnulib-tool: Change --import. New options --add/remove-import.
41243         * gnulib-tool: New options --add-import, --remove-import.
41244         (func_usage): Document them.
41245         (have_associative): Define always.
41246         (func_import): In import mode, don't merge the specified settings with
41247         the cached settings. Implement remove-import mode.
41248         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
41249         Explain when to use them versus --import.
41250         (Simple update): Use --add-import instead of --import.
41251         * NEWS: Mention the change.
41253 2010-09-04  Bruno Haible  <bruno@clisp.org>
41255         * doc/gnulib-tool.texi (Initial import): Update paragraph about
41256         separate gnulib.mk.
41258 2010-09-04  Bruno Haible  <bruno@clisp.org>
41260         gnulib-tool: Don't talk about CVS any more.
41261         * gnulib-tool (func_usage, func_import): Write "version control"
41262         instead of CVS.
41264 2010-09-04  Jim Meyering  <meyering@redhat.com>
41266         maint.mk: avoid obscure sc_copyright_check failure in coreutils
41267         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
41268         false positives (whose names may be ill-chosen) when searching
41269         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
41270         would cause a false-positive.
41272         avoid coreutils "make distcheck" failure
41273         Coreutils tests with an absolute build directory name that contains
41274         a space.  Not quoting this directory name caused a failure.
41275         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
41276         * tests/test-vc-list-files-cvs.sh: Likewise.
41278 2010-09-04  Bruno Haible  <bruno@clisp.org>
41280         gnulib-tool: Avoid error when run in a package without Makefile.am.
41281         * gnulib-tool: When collecting the m4dirs in a package that does not
41282         have a Makefile.am, eliminate those directories that contain no
41283         gnulib-cache.m4. Fix expression that counts these directories.
41285 2010-09-04  Bruno Haible  <bruno@clisp.org>
41287         update-copyright test: Improve output when perl is missing or too old.
41288         * tests/test-update-copyright.sh: Move test of Perl version down after
41289         the test whether Perl exists. Provide an explanation relating Perl's
41290         error message to Automake's SKIP: message.
41292 2010-09-04  Bruno Haible  <bruno@clisp.org>
41294         Don't augment PATH in TESTS_ENVIRONMENT.
41295         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
41296         set abs_aux_dir instead of augmenting PATH.
41297         * modules/vc-list-files-tests (Makefile.am): Likewise.
41298         * tests/test-update-copyright.sh: Augment PATH here.
41299         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
41300         path_prepend_.
41301         * tests/test-vc-list-files-git.sh: Likewise.
41303 2010-09-04  Jim Meyering  <meyering@redhat.com>
41305         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
41306         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
41308 2010-09-04  Bruno Haible  <bruno@clisp.org>
41310         strdup: Fix compilation error in C++ mode.
41311         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
41312         the macro.
41314 2010-09-04  Bruno Haible  <bruno@clisp.org>
41316         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
41317         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
41318         macro into a function.
41319         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
41321 2010-09-04  Bruno Haible  <bruno@clisp.org>
41323         Set PATH_SEPARATOR the same way autoconf does.
41324         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
41325         the value of PATH_SEPARATOR the same way autoconf-generated configure
41326         scripts do.
41327         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
41328         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41330 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41332         Set PATH_SEPARATOR the same way autoconf does.
41333         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
41334         the same way autoconf-generated configure scripts do.
41335         * posix-modules: Likewise.
41337 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
41339         hash: fix safe_hasher const typo
41340         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
41341         const; otherwise, there is a type error later.
41343 2010-09-02  Jim Meyering  <meyering@redhat.com>
41345         test-update-copyright.sh: require perl 5.8.0
41346         * tests/test-update-copyright.sh: Require 5.8.0,
41347         which Tom G. Christensen has confirmed is adequate,
41348         while 5.6.1 is not.
41350 2010-09-02  Eric Blake  <eblake@redhat.com>
41352         tests: init.sh improvements for re-exec'ing with zsh
41353         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
41354         -vx through shell re-exec.
41355         Reported by Tom G. Christensen.
41357         wctype: fix typo in previous commit
41358         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
41359         Reported by Ludovic Courtès.
41361 2010-09-02  Jim Meyering  <meyering@redhat.com>
41363         test-update-copyright.sh: skip test if Perl is too old
41364         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
41365         Reported by Tom G. Christensen.
41367 2010-09-02  Bruno Haible  <bruno@clisp.org>
41369         wctype: Avoid compilation error on IRIX 6.5.30.
41370         * lib/wctype.in.h (iswblank): Declare with a replacement if
41371         REPLACE_ISWBLANK is set.
41372         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
41373         declared. Set REPLACE_ISWBLANK.
41374         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
41375         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
41376         * doc/posix-headers/wctype.texi: Likewise.
41377         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41379 2010-09-01  Bruno Haible  <bruno@clisp.org>
41381         New module 'socketlib'.
41382         * modules/socketlib: New file.
41383         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
41384         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
41385         * modules/sockets (Depends-on): Add socketlib.
41386         Suggested by Sam Steingold <sds@gnu.org>.
41388 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41390         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
41392         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
41393         when one needs search access to a directory but not read access.
41394         On systems where it is available, it works in some cases where
41395         O_RDONLY does not, namely on directories that are searchable but
41396         not readable, and which need only to be searchable.  If O_SEARCH
41397         is not available, fall back to the traditional method of using
41398         O_RDONLY.
41400         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
41401         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
41402         when opening a directory that needs only to be searchable.
41403         * lib/chdir-safer.c (chdir_no_follow): Likewise.
41404         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
41405         * lib/openat-proc.c (openat_proc_name): Likewise.
41406         * lib/openat.c (openat_needs_fchdir): Likewise.
41407         * lib/save-cwd.c (save_cwd): Likewise.
41408         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
41410 2010-08-28  Bruno Haible  <bruno@clisp.org>
41412         New module 'host-cpu-c-abi'.
41413         * modules/host-cpu-c-abi: New file.
41414         * m4/host-cpu-c-abi.m4: New file, based on part of
41415         clisp/src/m4/general.m4.
41416         Requested by Sam Steingold <sds@gnu.org>.
41418 2010-08-31  Eric Blake  <eblake@redhat.com>
41419         and Jim Meyering  <meyering@redhat.com>
41421         hash: factor, and guard against misbehaving hasher function
41422         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
41423         of table->hasher's return value.  Also protect against a hash value
41424         so large that adding it to table->bucket results in a NULL pointer.
41425         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
41426         Use it in place of open-coded check-and-abort.
41428 2010-08-30  Bruno Haible  <bruno@clisp.org>
41430         hash: silence spurious clang warning
41431         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
41432         Reported by Eric Blake.
41434 2010-08-30  Eric Blake  <eblake@redhat.com>
41436         strstr, memmem, strcasestr: avoid leaked shell message
41437         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
41438         FreeBSD.
41439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41440         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41442         tests: silence clang warning
41443         * tests/test-malloca.c (do_allocation): Avoid dead store.
41445 2010-08-29  Bruno Haible  <bruno@clisp.org>
41447         gettext: Fix recent mistake.
41448         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
41450 2010-08-29  Bruno Haible  <bruno@clisp.org>
41452         selinux-h: Offer a --without-selinux option.
41453         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
41454         --without-selinux was specified, skip all tests and define
41455         HAVE_SELINUX_SELINUX_H to 0.
41456         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
41457         set LIB_SELINUX to empty.
41458         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
41459         gl_LIBSELINUX. If --without-selinux was specified, replace
41460         selinux/context.h.
41461         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
41463 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41464             Bruno Haible  <bruno@clisp.org>
41466         Make the module 'realloc-gnu' work again on AIX and OSF/1.
41467         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
41468         of HAVE_REALLOC.
41469         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
41470         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
41471         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
41472         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
41474 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41475             Bruno Haible  <bruno@clisp.org>
41477         Make the module 'calloc-gnu' work again on AIX and OSF/1.
41478         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
41479         HAVE_CALLOC.
41480         * lib/xmalloc.c: Update accordingly.
41481         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
41482         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
41483         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
41485 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41486             Bruno Haible  <bruno@clisp.org>
41488         Make the module 'malloc-gnu' work again on AIX and OSF/1.
41489         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
41490         HAVE_MALLOC.
41491         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
41492         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
41493         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
41495 2010-08-29  Bruno Haible  <bruno@clisp.org>
41497         Update modules list.
41498         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41499         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
41500         (String handling <string.h>): Add astrxfrm.
41501         (File system functions): Add readlinkat.
41503 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41505         Tests for module 'realloc-gnu'.
41506         * modules/realloc-gnu-tests: New file.
41507         * tests/test-realloc-gnu.c: New file.
41509         Tests for module 'calloc-gnu'.
41510         * modules/calloc-gnu-tests: New file.
41511         * tests/test-calloc-gnu.c: New file.
41513         Tests for module 'malloc-gnu'.
41514         * modules/malloc-gnu-tests: New file.
41515         * tests/test-malloc-gnu.c: New file.
41517 2010-08-28  Bruno Haible  <bruno@clisp.org>
41519         Rename module 'realloc' -> 'realloc-gnu'.
41520         * modules/realloc-gnu: New file, copied from modules/realloc.
41521         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
41522         obsolete.
41523         * modules/mgetgroups (Depends-on): Update.
41524         * doc/posix-functions/realloc.texi: Update.
41525         * NEWS: Mention the change.
41527         Rename module 'calloc' -> 'calloc-gnu'.
41528         * modules/calloc-gnu: New file, copied from modules/calloc.
41529         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
41530         obsolete.
41531         * doc/posix-functions/calloc.texi: Update.
41532         * NEWS: Mention the change.
41534         Rename module 'malloc' -> 'malloc-gnu'.
41535         * modules/malloc-gnu: New file, copied from modules/malloc.
41536         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
41537         obsolete.
41538         * modules/argp (Depends-on): Update.
41539         * modules/regex (Depends-on): Update.
41540         * doc/posix-functions/malloc.texi: Update.
41541         * NEWS: Mention the change.
41543 2010-08-28  Eric Blake  <eblake@redhat.com>
41545         pread, pwrite: add missing dependency
41546         * modules/pread (Depends-on): Add extensions.
41547         * modules/pwrite (Depends-on): Likewise.
41549 2010-08-28  Bruno Haible  <bruno@clisp.org>
41551         unistr/u*-strchr: Fix tests dependencies.
41552         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
41553         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
41554         Reported by Ian Beckwith <ianb@erislabs.net>.
41556 2010-08-28  Bruno Haible  <bruno@clisp.org>
41558         read-file: Don't occupy too much unused memory.
41559         * lib/read-file.c (fread_file): Shrink the buffer at the end.
41561 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
41562             Eric Blake  <eblake@redhat.com>
41563             Bruno Haible  <bruno@clisp.org>
41565         read-file: Avoid memory reallocations with regular files.
41566         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
41567         (fread_file): With regular files, use the remaining length as the
41568         initial buffer size.  Check against overflow.
41569         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
41570         sys_stat.
41572 2010-08-28  Bruno Haible  <bruno@clisp.org>
41574         ftello: Relax license.
41575         * modules/ftello (License): Relax to LGPLv2+.
41576         Reported by Eric Blake.
41578 2010-08-28  Bruno Haible  <bruno@clisp.org>
41580         Avoid relocwrapper link errors due to gnulib replacement functions.
41581         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
41582         function.
41583         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41585 2010-08-28  Bruno Haible  <bruno@clisp.org>
41587         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
41588         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
41589         defined.
41590         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
41591         Suggested by Eric Blake.
41593 2010-08-28  Bruno Haible  <bruno@clisp.org>
41595         sys_socket, netdb: Ensure socklen_t gets defined.
41596         * modules/sys_socket (Depends-on): Add socklen.
41597         * modules/netdb (Depends-on): Likewise.
41598         * modules/getaddrinfo (Depends-on): Remove socklen.
41599         * modules/getsockopt (Depends-on): Likewise.
41600         * modules/setsockopt (Depends-on): Likewise.
41601         * tests/test-sys_socket.c: Check that socklen_t is defined.
41602         * tests/test-netdb.c: Likewise.
41603         * m4/socklen.m4: Update comments.
41604         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41606 2010-08-27  Eric Blake  <eblake@redhat.com>
41608         login_tty: add missing dependency
41609         * modules/login_tty (Depends-on): Add pty.
41611 2010-08-26  Eric Blake  <eblake@redhat.com>
41613         lib-symbol-versions: fix m4 quoting
41614         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
41615         format for AC_LINK_IFELSE.
41617         glob: fix compile test
41618         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
41620         btowc: fix missing file
41621         * modules/btowc (Files): Also ship locale-fr.m4.
41623         lseek: fix link test
41624         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
41625         AC_LINK_IFELSE.
41627         include_next: silence autoconf 2.68 warning
41628         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
41629         AC_COMPILE_IFELSE as special.
41630         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
41631         autoconf < 2.68.
41633         acl: fix compilation test
41634         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
41635         AC_COMPILE_IFELSE.
41637 2010-08-26  Bruno Haible  <bruno@clisp.org>
41639         Modernize AC_TRY_RUN invocations.
41640         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
41641         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
41642         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
41643         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
41644         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
41645         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
41646         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
41647         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
41648         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
41649         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
41650         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
41651         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41652         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
41653         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41654         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
41655         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
41656         gl_MBRLEN_NUL_RETVAL): Likewise.
41657         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41658         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
41659         Likewise.
41660         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41661         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
41662         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
41663         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
41664         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
41665         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
41666         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
41667         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
41668         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
41669         Likewise.
41670         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
41671         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
41672         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41673         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
41674         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
41675         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
41676         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
41677         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
41678         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41679         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41681 2010-08-26  Bruno Haible  <bruno@clisp.org>
41683         Modernize AC_TRY_LINK invocations.
41684         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
41685         AC_TRY_LINK.
41686         * m4/argp.m4 (gl_ARGP): Likewise.
41687         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
41688         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
41689         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
41690         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41691         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41692         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
41693         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
41694         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
41695         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41696         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41697         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41698         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
41699         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
41700         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
41701         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41702         * m4/hostent.m4 (gl_HOSTENT): Likewise.
41703         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
41704         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
41705         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
41706         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
41707         Likewise.
41708         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
41709         Likewise.
41710         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
41711         Likewise.
41712         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
41713         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
41714         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
41715         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
41716         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
41717         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
41718         * m4/servent.m4 (gl_SERVENT): Likewise.
41719         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
41720         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
41721         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
41722         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
41723         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
41724         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
41725         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
41726         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
41727         * modules/tsearch-tests (configure.ac): Likewise.
41729 2010-08-26  Bruno Haible  <bruno@clisp.org>
41731         Modernize AC_TRY_COMPILE invocations.
41732         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
41733         AC_TRY_COMPILE.
41734         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
41735         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
41736         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
41737         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
41738         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
41739         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41740         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
41741         * m4/lock.m4 (gl_LOCK): Likewise.
41742         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
41743         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41744         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
41745         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
41746         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
41747         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
41748         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41749         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
41750         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
41751         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
41752         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
41753         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
41754         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
41755         extraneous semicolon.
41757 2010-08-26  Jim Meyering  <meyering@redhat.com>
41759         stat-time: relax license LGPL
41760         * modules/stat-time (License): Change from GPL to LGPL,
41761         with consent from all contributors, for use in libguile.
41762         Requested by Ludovic Courtès.
41764 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
41766         poll: return immediately on POLLHUP.
41767         * lib/poll.c (poll): Always set timeout before wait_timeout is
41768         computed.
41770 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41772         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
41773         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
41774         rmdir ("dir/.//"), unlinkat.
41776 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
41778         stdbool: avoid spurious failure with modern xlc
41779         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
41781 2010-08-24  Bruno Haible  <bruno@clisp.org>
41783         getloadavg: simplify code
41784         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
41785         gl_have_func. Update comments.
41787 2010-08-24  Eric Blake  <eblake@redhat.com>
41789         getloadavg: don't define SVR4 on cygwin
41790         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
41791         only define SVR4 when -lkvm is required.
41792         Reported by Yaakov Selkowitz.
41794 2010-08-24  Bruno Haible  <bruno@clisp.org>
41796         priv-set: fix comment
41797         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
41799 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
41801         priv-set: fix comments
41802         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
41803         to match code, as suggested by David Bartley in:
41804         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
41806 2010-08-23  Eric Blake  <eblake@redhat.com>
41808         stdbool: avoid rejecting clang
41809         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
41810         * tests/test-stdbool.c: Enable more tests if using the system
41811         <stdbool.h> instead of the gnulib replacement.
41812         (main): Move xlc bug test to a runtime test for all compilers.
41813         Reported by Anders Kaseorg.
41815         argz: fix shell quoting issue
41816         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
41817         Reported by Charles Wilson.
41819 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
41820             Erik Faye-Lund <kusmabite@gmail.com>
41822         poll, select: handle ERROR_BROKEN_PIPE.
41823         * lib/poll.c (win32_compute_revents): Return POLLHUP when
41824         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
41825         * lib/select.c (win32_compute_revents): Do not mark a pipe
41826         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
41828 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
41830         fts: allow compilation with C++
41831         * lib/fts_.h: Specify extern "C" linkage with C++.
41833 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41835         Fix gnulib-tool sed script de-commentation for AIX sed.
41836         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
41837         sed.
41839 2010-08-17  Eric Blake  <eblake@redhat.com>
41841         test-stddef: test for (some) offsetof bugs
41842         * tests/test-stddef.c: Enhance test to ensure correct type of
41843         offsetof.
41844         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
41845         that we are not fixing at this time.
41847 2010-08-15  Bruno Haible  <bruno@clisp.org>
41849         stpncpy: Allow stpncpy to be defined as a macro.
41850         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
41851         if it's already correctly declared.
41852         * lib/string.in.h (stpncpy): Undefine before redefining.
41853         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
41855 2010-08-14  Bruno Haible  <bruno@clisp.org>
41857         Rename module 'memxfrm' to 'amemxfrm'.
41858         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
41859         (amemxfrm): Renamed from memxfrm.
41860         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
41861         (amemxfrm): Renamed from memxfrm.
41862         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
41863         * NEWS: Mention the change.
41864         * MODULES.html.sh (String handling <string.h>): Update.
41865         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
41866         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
41867         * lib/unicase/u16-casexfrm.c: Likewise.
41868         * lib/unicase/u32-casexfrm.c: Likewise.
41869         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
41870         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
41871         * lib/uninorm/u16-normxfrm.c: Likewise.
41872         * lib/uninorm/u32-normxfrm.c: Likewise.
41873         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
41874         memxfrm.
41875         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
41876         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
41877         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
41878         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
41879         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
41880         Suggested by Paul Eggert.
41882 2010-08-14  Bruno Haible  <bruno@clisp.org>
41884         Tests for module 'astrxfrm'.
41885         * modules/astrxfrm-tests: New file.
41886         * tests/test-astrxfrm.c: New file.
41888         New module 'astrxfrm'.
41889         * lib/astrxfrm.h: New file.
41890         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
41891         * modules/astrxfrm: New file.
41893 2010-08-14  Reuben Thomas <rrt@sc3d.org>
41895         regex: Tweak doc.
41896         * doc/regex.texi (Overview): Don't mention regex.c.
41897         (GNU Regular Expression Compiling): Likewise.
41898         (Match-end-of-line Operator): Mention 'not_eol'.
41900 2010-08-14  Brian Gough  <bjg@gnu.org>
41901             Bruno Haible  <bruno@clisp.org>
41903         git-merge-changelog: add doc relating to use with bzr and hg.
41904         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
41906 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
41908         pthread: fix pthread.h creation for srcdir != builddir
41909         * modules/pthread (Makefile.am): Fix the rule to work also in a
41910         non-srcdir build.
41912 2010-08-13  Karl Berry  <karl@gnu.org>
41914         * doc/regex.texi (Predefined Syntaxes): @smallexample.
41915         * doc/posix-*/*: force line break before @url of POSIX
41916         specifications.
41917         Suggested by Werner Lemberg.
41919 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41921         strtod: fix const diagnostic
41922         * lib/strtod.c (strtod): Don't assign const char * to char *,
41923         as this elicits a warning from GCC when warnings are enabled.
41925 2010-08-10  Pádraig Brady <P@draigbrady.com>
41926         and Eric Blake  <eblake@redhat.com>
41928         copy-acl: ignore ENOTSUP on HP-UX
41929         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
41930         so that it is available for HP-UX.
41931         * lib/copy-acl.c (qcopy_acl): Use it.
41932         Reported by Patrick M. Callahan.
41934 2010-08-10  Eric Blake  <eblake@redhat.com>
41936         open, chown: relax license
41937         * modules/open (License): Change to LGPLv2+, with consent by all
41938         authors, for use in augeas.
41939         * modules/chown (License): Likewise.
41940         * modules/lchown (Likewise): Likewise.
41941         Requested by Adam Stokes.
41943 2010-08-09  Karl Berry  <karl@gnu.org>
41945         * build-aux/ar-lib: new file, import from Automake.
41946         * config/srclist.txt: autocheck for updates.
41948 2010-08-09  Eric Blake  <eblake@redhat.com>
41950         readlinkat: adjust client modules
41951         * modules/areadlinkat (Depends-on): Use readlinkat, not
41952         symlinkat.
41953         * modules/areadlinkat-with-size (Depends-on): Likewise.
41955         mknod: be more vocal about danger of running tests as root
41956         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
41957         root, since that is just asking for problems.
41958         Suggested by Bruno Haible, based on a report by Rainer Tammer.
41960         readlinkat: split into its own module
41961         * modules/symlinkat: Split readlinkat...
41962         * modules/readlinkat: ...into separate module.
41963         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
41964         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
41965         * lib/symlinkat.c (readlinkat): Move...
41966         * lib/readlinkat.c: ...into new file.
41967         * modules/symlinkat-tests: Split readlinkat test...
41968         * modules/readlinkat-tests: ...into separate module.
41969         * tests/test-symlinkat.c: Split...
41970         * tests/test-readlinkat.c: ...into new file.
41971         * NEWS: Document the split.
41972         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41973         * lib/unistd.in.h (readlinkat): Likewise.
41974         Suggested by Bruno Haible.
41976 2010-08-08  Bruno Haible  <bruno@clisp.org>
41978         memxfrm: Speed up.
41979         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
41980         that usually only one call to strxfrm is necessary for each string
41981         part.
41982         Reported by Paul Eggert <eggert@cs.ucla.edu>.
41984 2010-08-07  Karl Berry  <karl@gnu.org>
41986         * doc/posix-headers/limits.texi,
41987         * doc/posix-functions/malloc.texi,
41988         * doc/posix-functions/strsignal.texi: missing @item.
41989         * doc/ld-version-script.texi: spurious leading i.
41990         * doc/regex.texi (Interval Operators): no commas inside @var.
41992 2010-08-01  Bruno Haible  <bruno@clisp.org>
41994         Integrate the regex documentation.
41995         * doc/gnulib.texi: Define 'cn' index.
41996         (Regular expressions): New a chapter that includes regex.texi and
41997         regexprops-generic.texi.
41998         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
41999         syntax.
42001         Whitespace cleanup.
42002         * doc/regex.texi: Remove trailing spaces.
42004         Add regex documentation.
42005         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
42006         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
42007         Written by Kathy A. Hargreaves and Karl Berry.
42009 2010-08-01  Bruno Haible  <bruno@clisp.org>
42011         link: Update documentation.
42012         * doc/posix-functions/link.texi: Update regarding Solaris.
42014 2010-07-31  Bruno Haible  <bruno@clisp.org>
42016         Update modules list.
42017         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
42018         (String handling <string.h>): Add memcmp2, memxfrm.
42019         (Container data structures): Add xlist, xsublist, xoset.
42020         (Core language properties): Add alignof, unused-parameter.
42021         (Process control, Numeric conversion functions <stdlib.h>): Renamed
42022         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
42023         (Unibyte characters <ctype.h>): New section.
42024         (String handling <string.h>): New section.
42025         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
42026         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
42027         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
42028         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
42029         tan, tanh, tanl, y0, y1, yn.
42030         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
42031         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
42032         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
42033         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
42034         unlockpt, vdprintf, vdprintf-posix.
42035         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
42036         (File system functions): Add concat-filename, sys_file, sys_ioctl,
42037         xconcat-filename.
42038         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
42039         getdtablesize, pipe2, pipe2-safer.
42040         (Security): New section.
42041         (Networking functions): Add accept4.
42042         (Signal handling): Add sigpipe.
42043         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
42044         mbmemcasecoll.
42045         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
42046         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
42047         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
42048         pipe-filter-ii.
42049         (Misc): Add argp-version-etc, login_tty, parse-duration.
42051 2010-07-31  Bruno Haible  <bruno@clisp.org>
42053         Improve doc in MODULES.html.
42054         * modules/linkat (Description): Add the word "function".
42055         * modules/mkfifo (Description): Likewise.
42056         * modules/mknod (Description): Likewise.
42057         * modules/remove (Description): Likewise.
42058         * modules/renameat (Description): Likewise.
42059         * modules/stat (Description): Likewise.
42060         * modules/symlink (Description): Likewise.
42061         * modules/unlink (Description): Likewise.
42063 2010-07-31  Bruno Haible  <bruno@clisp.org>
42065         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
42066         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
42067         option --enable/disable-c++ instead of --enable/disable-cxx.
42068         * NEWS: Mention the change.
42070 2010-07-31  Bruno Haible  <bruno@clisp.org>
42072         readlink, areadlink: Relax test a bit.
42073         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
42074         alternative to ENOTDIR.
42075         * tests/test-areadlink.h (test_areadlink): Likewise.
42076         Reported by Rainer Tammer.
42078 2010-07-31  Bruno Haible  <bruno@clisp.org>
42080         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
42081         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
42082         character, perform the search using U_STRCHR.
42083         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
42084         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
42085         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
42086         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
42087         Suggested by Paolo Bonzini.
42089 2010-07-31  Bruno Haible  <bruno@clisp.org>
42091         unistr/u*-strstr: Fix dependencies.
42092         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
42093         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
42094         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
42096 2010-07-31  Bruno Haible  <bruno@clisp.org>
42098         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
42099         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
42100         the beginning of the loop.
42101         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
42102         cases in 'switch' statement.
42104         unistr/u8-strchr: Fix several bugs.
42105         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
42106         the string. When not found, return NULL, not a pointer near the end.
42108         More tests for unistr/u8-strchr.
42109         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
42110         that the function does not read past the first occurrence of the byte
42111         being searched.
42112         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
42113         * tests/unistr/test-u16-strchr.c (main): New function.
42114         * tests/unistr/test-u32-strchr.c (main): New function.
42116 2010-07-31  Bruno Haible  <bruno@clisp.org>
42118         posix-modules: Ignore backup files of documentation files.
42119         * posix-modules: grep only through files named *.texi.
42121 2010-07-31  Bruno Haible  <bruno@clisp.org>
42123         symlinkat: Fix documentation.
42124         * doc/posix-functions/readlinkat.texi: Fix module name.
42126 2010-07-31  Bruno Haible  <bruno@clisp.org>
42128         fchownat: Replace also when chown has the trailing slash bug.
42129         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
42130         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
42131         introduced on 2010-04-10.
42132         Reported by Rainer Tammer.
42134 2010-07-31  Bruno Haible  <bruno@clisp.org>
42136         linkat: Work around AIX 7.1 bug.
42137         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
42138         whether linkat handles trailing slash correctly. If not, replace linkat
42139         and define LINKAT_TRAILING_SLASH_BUG.
42140         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
42141         check whether (fd1,file1) points to a directory if file1 or file2 ends
42142         in a slash. Code taken from lib/link.c.
42143         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
42144         Reported by Rainer Tammer.
42146 2010-07-31  Bruno Haible  <bruno@clisp.org>
42148         Correctly determine whether pow is available in libc on AIX 7 with xlc.
42149         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
42150         This disables an xlc optimization that was causing wrong test results.
42151         Reported by Rainer Tammer.
42153 2010-07-31  Bruno Haible  <bruno@clisp.org>
42155         iconv: Work around AIX 6.1..7.1 bug.
42156         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
42157         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
42158         cross-compiling, guess no on all versions of AIX.
42159         Reported by Rainer Tammer.
42161 2010-07-31  Bruno Haible  <bruno@clisp.org>
42163         readlink: Relax test a bit.
42164         * tests/test-readlink.h (test_readlink): Allow different errno value
42165         when readlink is called with a file name that ends in / and refers to
42166         a file.
42167         Suggested by Eric Blake.
42168         Reported by Rainer Tammer.
42170 2010-07-31  Bruno Haible  <bruno@clisp.org>
42172         copysign: Does not require -lm on glibc systems.
42173         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
42174         gl_COMMON_DOUBLE_MATHFUNC.
42175         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
42177 2010-07-31  Bruno Haible  <bruno@clisp.org>
42179         duplocale: Work around AIX 7.1 bug.
42180         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
42181         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
42182         * lib/duplocale.c (rpl_duplocale): Update comment.
42183         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
42184         Reported by Rainer Tammer.
42186 2010-07-30  Bruno Haible  <bruno@clisp.org>
42188         dirfd: Avoid link error on AIX 7.1.
42189         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
42190         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
42191         exist, set REPLACE_DIRFD.
42192         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
42193         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
42194         * doc/posix-functions/dirfd.texi: Update.
42195         Reported by Rainer Tammer.
42197 2010-07-30  Eric Blake  <eblake@redhat.com>
42199         strtod: next round of AIX fixes
42200         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
42201         exponent.
42202         * tests/test-strtod.c (main): Enhance tests.
42203         * doc/posix-functions/strtod.texi (strtod): Document next bug.
42204         Reported by Rainer Tammer.
42206         futimens: fix configure check
42207         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
42208         Reported by Bruno Haible.
42210 2010-07-30  Bruno Haible  <bruno@clisp.org>
42212         getline: Update regarding AIX.
42213         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
42214         Reported by Rainer Tammer.
42216 2010-07-30  Bruno Haible  <bruno@clisp.org>
42218         wcwidth: Drop replacement on AIX 7.
42219         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
42220         AIX 7.
42221         Reported by Rainer Tammer.
42223 2010-07-30  Bruno Haible  <bruno@clisp.org>
42225         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
42226         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
42227         a 'char *'.
42228         Reported by Rainer Tammer.
42230 2010-07-30  Bruno Haible  <bruno@clisp.org>
42232         unlink: Update regarding AIX.
42233         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
42234         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
42235         Reported by Rainer Tammer.
42237 2010-07-30  Bruno Haible  <bruno@clisp.org>
42239         symlink: Update regarding AIX.
42240         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
42241         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
42242         Reported by Rainer Tammer.
42244 2010-07-30  Bruno Haible  <bruno@clisp.org>
42246         strndup: Update regarding AIX.
42247         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
42248         AIX 7.
42249         Reported by Rainer Tammer.
42251 2010-07-30  Bruno Haible  <bruno@clisp.org>
42253         stat: Update regarding AIX.
42254         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
42255         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
42256         Reported by Rainer Tammer.
42258 2010-07-30  Bruno Haible  <bruno@clisp.org>
42260         truncl: Fix autoconf test.
42261         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
42262         whether truncl works.
42263         Reported by Rainer Tammer.
42265 2010-07-30  Bruno Haible  <bruno@clisp.org>
42267         round: Update regarding AIX.
42268         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
42269         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
42270         Reported by Rainer Tammer.
42272 2010-07-30  Bruno Haible  <bruno@clisp.org>
42274         rename: Update regarding AIX.
42275         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
42276         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
42277         Reported by Rainer Tammer.
42279 2010-07-30  Bruno Haible  <bruno@clisp.org>
42281         printf.m4: Update regarding AIX.
42282         * m4/printf.m4: Update comments regarding AIX.
42283         Reported by Rainer Tammer.
42285 2010-07-30  Bruno Haible  <bruno@clisp.org>
42287         iconv: Update regarding AIX.
42288         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
42289         AIX 7.
42290         Reported by Rainer Tammer.
42292 2010-07-30  Bruno Haible  <bruno@clisp.org>
42294         getopt: Update regarding AIX.
42295         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
42296         no on AIX.
42297         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
42298         Reported by Rainer Tammer.
42300 2010-07-30  Bruno Haible  <bruno@clisp.org>
42302         ldexpl; Update regarding AIX.
42303         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
42304         on AIX 7.
42305         Reported by Rainer Tammer.
42307 2010-07-30  Bruno Haible  <bruno@clisp.org>
42309         frexpl: Update regarding AIX.
42310         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
42311         on AIX 7.
42312         Reported by Rainer Tammer.
42314 2010-07-30  Bruno Haible  <bruno@clisp.org>
42316         open, fopen: Update regarding AIX.
42317         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
42318         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
42319         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
42320         * doc/posix-functions/fopen.texi: Likewise.
42321         Reported by Rainer Tammer.
42323 2010-07-30  Bruno Haible  <bruno@clisp.org>
42325         chown: Update doc regarding AIX.
42326         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
42327         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
42328         Reported by Rainer Tammer.
42330 2010-07-30  Eric Blake  <eblake@redhat.com>
42332         strtod: fix bug in replacement function on AIX
42333         * lib/strtod.c (strtod): Special case broken "0x" parse in
42334         underlying strtod.
42335         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
42336         * doc/posix-functions/strtod.texi (strtod): Likewise.
42337         Reported by Rainer Tammer.
42339 2010-07-30  Bruno Haible  <bruno@clisp.org>
42341         mbrlen: Fix cross-compilation guess for AIX.
42342         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
42343         guess. Leftover from 2008-12-22.
42345 2010-07-30  Bruno Haible  <bruno@clisp.org>
42347         mbrtowc: Fix cross-compilation guess for AIX.
42348         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
42349         guess. Leftover from 2008-12-21.
42351 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
42353         init.sh: work around trap limitation of some shells
42354         * tests/init.sh (setup_): Move exit trap outside of shell function.
42356 2010-07-29  Eric Blake  <eblake@redhat.com>
42358         strtod: aid debugging
42359         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
42360         understanding why strtod is rejected.
42362 2010-07-28  Bruno Haible  <bruno@clisp.org>
42364         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
42365         * lib/unistr/u8-chr.c: Include <string.h>.
42366         * tests/unistr/test-u8-chr.c: Likewise.
42367         * tests/unistr/test-u16-chr.c: Likewise.
42368         * tests/unistr/test-u32-chr.c: Likewise.
42369         * tests/unistr/test-u8-strchr.c: Likewise.
42370         * tests/unistr/test-u16-strchr.c: Likewise.
42371         * tests/unistr/test-u32-strchr.c: Likewise.
42372         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
42373         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
42374         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
42375         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
42377 2010-07-28  Bruno Haible  <bruno@clisp.org>
42379         Use spaces for indentation, not tabs.
42380         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
42382 2010-07-27  Bruno Haible  <bruno@clisp.org>
42384         mbspcasecmp: Fix function specification.
42385         * lib/string.in.h (mbspcasecmp): Fix specification comment.
42386         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
42387         Reported by Eric Blake <eblake@redhat.com>.
42389 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
42391         timespec: use cast and not conditional, as truncation isn't possible
42392         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
42393         instead of a conditional.  Comment about the situation in more detail.
42394         This undoes most of the 2009-10-29 patch.
42396 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
42398         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
42399         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
42400         * lib/unistr/u8-strchr.c: Likewise.
42401         * modules/unistr/u8-chr: Depend on memchr.
42403         unistr/u*-strchr: add tests
42404         * modules/unistr/u8-strchr-tests: New file.
42405         * modules/unistr/u16-strchr-tests: New file.
42406         * modules/unistr/u32-strchr-tests: New file.
42407         * tests/unistr/test-strchr.h: New file.
42408         * tests/unistr/test-u8-strchr.c: New file.
42409         * tests/unistr/test-u16-strchr.c: New file.
42410         * tests/unistr/test-u32-strchr.c: New file.
42412         unistr/u*-chr: test multibyte sequences more
42413         * tests/unistr/test-chr.h: Do complete testing of the characters in the
42414         test vector.
42415         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
42416         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
42417         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
42419         unistr/u*-chr: test multibyte sequences
42420         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
42422         unistr/u*-chr: prepare for multibyte tests
42423         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
42424         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
42425         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
42426         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
42427         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
42428         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
42430 2010-07-18  Bruno Haible  <bruno@clisp.org>
42432         unistr/u8-strchr: Optimize non-ASCII argument case.
42433         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
42434         because the first byte often matches anyway.
42435         Reported by Pádraig Brady <P@draigbrady.com>.
42437 2010-07-15  Karl Berry  <karl@gnu.org>
42439         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
42441 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
42443         getcwd: on Solaris, work better if ancestors are inaccessible
42444         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
42445         buffer and size, try again with a large buffer.  This works better
42446         on Solaris, since its getcwd succeeds even if the path to the root
42447         is inaccessible, and this is helpful in common cases such as .zfs
42448         hidden directories.  Problem reported by J Chapman Flack in
42449         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
42450         Use system getcwd if it's declared, not merely if it's partly
42451         working; use the partly-working test only to avoid needless effort
42452         if the system getcwd fails.
42453         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
42454         comment that was already obsolete and is now even more obsolete.
42455         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
42456         now might call strdup.
42458 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
42460         pthread: Add enough so that coreutils/src/sort.c compiles.
42461         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
42462         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
42463         gnulib. Include <sched.h> and <time.h>, as per POSIX.
42464         Include <sys/types.h>, in case it defines pthread_t.
42465         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
42466         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
42467         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
42468         (pthread_rwlockattr_t, pthread_spinlock_t):
42469         New typedefs, if HAVE_PTHREAD_T is not defined.
42470         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
42471         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
42472         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
42473         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
42474         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
42475         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
42476         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
42477         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
42478         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
42479         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
42480         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
42481         New macros.
42482         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
42483         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
42484         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
42485         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
42486         (pthread_spin_unlock): New dummy functions.
42487         (pthread_create): Return EAGAIN; don't set errno.
42488         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
42489         require AC_C_INLINE.
42490         * modules/pthread (Depends-on): Add sched, time.
42491         (pthread.h): Use AM_V_GEN.
42493 2010-07-13  Bruno Haible  <bruno@clisp.org>
42495         striconveh: Don't malloc memory if the result buffer is sufficient.
42496         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
42497         buffer if its size is sufficient.
42498         Reported by Ludovic Courtès <ludo@gnu.org>.
42500 2010-07-13  Bruno Haible  <bruno@clisp.org>
42502         strtod: Add safety check.
42503         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
42505 2010-07-12  Bruno Haible  <bruno@clisp.org>
42507         Unify tests that set gl_cv_func_ldexpl_no_libm.
42508         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
42509         gl_FUNC_LDEXPL.
42510         (gl_FUNC_LDEXPL): Invoke it.
42511         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
42513 2010-07-12  Bruno Haible  <bruno@clisp.org>
42515         Unify tests that set gl_cv_func_ldexp_no_libm.
42516         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
42517         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
42518         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
42519         (configure.ac): Simply invoke gl_FUNC_LDEXP.
42520         * modules/strtod (Files): Add m4/ldexp.m4.
42522 2010-07-12  Bruno Haible  <bruno@clisp.org>
42524         Unify tests that set gl_cv_func_frexpl_no_libm.
42525         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
42526         gl_FUNC_FREXPL_NO_LIBM.
42527         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
42528         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
42530 2010-07-12  Bruno Haible  <bruno@clisp.org>
42532         Unify tests that set gl_cv_func_frexp_no_libm.
42533         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
42534         gl_FUNC_FREXP_NO_LIBM.
42535         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
42536         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
42538 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
42540         memcoll: clarify sizes versus lengths, document better, and tweak perf
42541         * lib/memcoll.c (strcoll_loop, memcoll0):
42542         Improve quality of descriptive comments.  Name variables
42543         consistently as to whether they are lengths (which do not include
42544         terminating null) versus sizes (which do).
42545         * lib/xmemcoll.c (xmemcoll0): Likewise.
42546         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
42547         returned when s1size == 0; this is easier to compile and saves
42548         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
42550 2010-07-12  Bruno Haible  <bruno@clisp.org>
42552         Tests for module '_Exit'.
42553         * modules/_Exit-tests: New file.
42554         * tests/test-_Exit.sh: New file.
42555         * tests/test-_Exit.c: New file.
42557         New module '_Exit'.
42558         * lib/stdlib.in.h (__attribute__): New macro.
42559         (_Exit): New declaration.
42560         * lib/_Exit.c: New file.
42561         * m4/_Exit.m4: New file.
42562         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
42563         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
42564         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
42565         * modules/_Exit: New file.
42566         * tests/test-stdlib-c++.cc (_Exit): Check signature.
42567         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
42569 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
42571         strtod: make it more-accurate typically, and don't require libm
42572         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
42573         Include limits.h.  Don't include string.h.
42574         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
42575         (locale_isspace): New function, so that no casts are needed to
42576         check whether *s is a space.
42577         (ldexp): Provide an unused dummy if not available.
42578         (scale_radix_exp, parse_number, underlying_strtod): New functions.
42579         (strtod): Use them.  This implementation prefers to use the
42580         underlying strtod if available, falling back on our own code
42581         only to fix known bugs.  This is more likely to produce an
42582         accurate result.  Also, it avoids the use of libm functions.
42583         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
42584         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
42585         was absent, but it caused a test failure with coreutils.
42586         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
42587         with libm.
42588         * modules/strtod (Makefile.am, Link): libm is no longer needed.
42589         * modules/strtod-tests (Makefile.am): Likewise.
42591 2010-07-11  Pádraig Brady  <P@draigBrady.com>
42592             Bruno Haible  <bruno@clisp.org>
42594         unistr/u8-strchr: Optimize ASCII argument case.
42595         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
42597 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
42599         (x)memcoll: minor tweaks
42600         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
42601         is after the type that it qualifies.
42602         (memcoll0): Likewise.
42603         * lib/memcoll.h (memcoll0): Likewise.
42604         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
42605         * lib/xmemcoll.h (xmemcoll0): Likewise.
42606         * lib/memcoll.c (memcoll0): Correct the comment.  This function
42607         differs from memcoll in that the NUL byte is part of the argument.
42608         Omit the abort-checks, as performance is a real issue here.  Plus,
42609         the checks were wrong anyway (an off-by-one error).  Omit local
42610         variable 'diff', as it's a bit clearer that way.
42611         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
42612         no longer needed.
42614 2010-07-08  Chen Guo <chenguo4@yahoo.com>
42616         (x)memcoll: speedup when input is known to be NUL delimited
42617         * lib/memcoll.c: Include stdlib.
42618         (memcoll0): New function.
42619         (strcoll_loop): New function, refactored for use in both memcoll
42620         and memcoll0.
42621         * lib/memcoll.h (memcoll0): Add prototype.
42622         * lib/xmemcoll.c (xmemcoll0): New function.
42623         (collate_error): New function, refactored for use in both xmemcoll
42624         and xmemcoll0.
42625         * lib/xmemcoll.h (xmemcoll0): Add prototype.
42626         * m4/memcoll.m4: add inline invocation.
42628 2010-07-06  Pádraig Brady  <P@draigBrady.com>
42630         * build-aux/bootstrap: Remove any local translations
42631         from the translation project synchronization directory,
42632         so that local only translations are not distributed.
42634 2010-07-04  Bruno Haible  <bruno@clisp.org>
42636         fsusage: Clarify which code applies to which platforms.
42637         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
42638         platform.
42639         * lib/fsusage.c (get_fs_usage): Likewise.
42641 2010-07-04  Bruno Haible  <bruno@clisp.org>
42643         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
42644         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
42645         Reported by Martin Lambers <marlam@marlam.de>.
42647 2010-07-04  Jim Meyering  <meyering@redhat.com>
42649         hash: once again explicitly disallow insertion of NULL
42650         * lib/hash.c (hash_insert0): Reinstate just-removed test:
42651         inserting a NULL pointer cannot work with these functions.
42652         Add a comment with details.
42653         This reverts part of the 2010-07-01 commit, 5bef1a35
42654         "hash: extend module to deal with non-pointer keys".
42656 2010-07-01  Bruno Haible  <bruno@clisp.org>
42658         stdbool: Update doc.
42659         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
42660         Info from Christian Weisgerber <naddy@mips.inka.de>.
42662 2010-07-01  Jim Meyering  <meyering@redhat.com>
42664         hash: extend module to deal with non-pointer keys
42665         * lib/hash.c (hash_insert0): New interface, much like hash_insert
42666         but that allows insertion of non-pointer entries.
42667         Do not disallow an ENTRY value of NULL.
42668         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
42669         * lib/hash.h (hash_insert0): Declare.
42671 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
42673         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
42674         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
42675         not present (i.e. with autoconf 2.59 and when using gettextize, not
42676         gnulib), require AC_GNU_SOURCE instead.
42678 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
42680         idpriv-drop: Fix tests.
42681         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
42682         not to the test-idpriv-droptemp program.
42684 2010-06-29  Bruno Haible  <bruno@clisp.org>
42686         string: Fix syntax error with g++ 2.96.
42687         * lib/string.in.h (__pure__): Remove definition.
42688         (_GL_ATTRIBUTE_PURE): New macro.
42689         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
42690         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
42691         Reported by Christian Weisgerber <naddy@mips.inka.de>.
42693 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
42695         unitypes: Fix bug introduced on 2010-05-18.
42696         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
42698 2010-06-22  Eric Blake  <eblake@redhat.com>
42700         memmem: slight optimization
42701         * lib/str-two-way.h (critical_factorization): Update comments.
42702         Reduce work during factorization phase.
42703         Reported by Carlos Bueno <carlos@bueno.org>.
42705 2010-06-21  Bruno Haible  <bruno@clisp.org>
42707         Fix HAVE_CALLOC_POSIX misnomer.
42708         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
42709         !HAVE_CALLOC_POSIX.
42710         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
42711         HAVE_CALLOC_POSIX.
42712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
42713         instead of HAVE_CALLOC_POSIX.
42714         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
42715         HAVE_CALLOC_POSIX.
42717         Use modern idiom for calloc() replacement.
42718         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
42719         AC_FUNC_CALLOC.
42720         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
42721         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
42722         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
42723         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
42724         (gl_REPLACE_CALLOC): New macro.
42726 2010-06-21  Bruno Haible  <bruno@clisp.org>
42728         Fix HAVE_REALLOC_POSIX misnomer.
42729         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
42730         !HAVE_REALLOC_POSIX.
42731         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
42732         HAVE_REALLOC_POSIX.
42733         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
42734         instead of HAVE_REALLOC_POSIX.
42735         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
42736         HAVE_REALLOC_POSIX.
42738         Use modern idiom for realloc() replacement.
42739         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
42740         AC_FUNC_REALLOC.
42741         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
42742         Autoconf's AC_FUNC_REALLOC.
42743         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
42744         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
42745         (gl_REPLACE_REALLOC): New macro.
42746         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
42748 2010-06-21  Bruno Haible  <bruno@clisp.org>
42750         Fix HAVE_MALLOC_POSIX misnomer.
42751         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
42752         !HAVE_MALLOC_POSIX.
42753         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
42754         HAVE_MALLOC_POSIX.
42755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
42756         instead of HAVE_MALLOC_POSIX.
42757         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
42758         HAVE_MALLOC_POSIX.
42760         Use modern idiom for malloc() replacement.
42761         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
42762         AC_FUNC_MALLOC.
42763         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
42764         Autoconf's AC_FUNC_MALLOC.
42765         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
42766         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
42767         (gl_REPLACE_MALLOC): New macro.
42768         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
42770 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
42772         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
42773         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
42774         This macro takes 3 arguments, not 4.
42776 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
42778         ipv6: fix detection under mingw
42779         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
42780         in6_addr.
42782 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
42784         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
42785         that strtod() works when cross-compiling to a glibc version known
42786         to work.
42788 2010-06-15  Bruno Haible  <bruno@clisp.org>
42790         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
42792 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
42794         select: Correct timeout.
42795         * lib/select.c (rpl_select): Compute wait_timeout correctly.
42797 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42799         git-version-gen: init shell var to avoid env var influence
42800         * build-aux/git-version-gen (v): Init shell var to empty.
42802 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
42804         priv-set: Don't assume that priv.h exists merely because getppriv does.
42805         See Jan Andersen's bug report about AIX 5L in
42806         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
42807         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
42808         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
42809         * lib/priv-set.h: Likewise.
42810         * tests/test-priv-set.c: Likewise.
42812 2010-06-13  Bruno Haible  <bruno@clisp.org>
42814         relocatable: Make it easier to test whether to install wrappers.
42815         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
42816         RELOCATABLE_VIA_WRAPPER.
42818 2010-06-13  Bruno Haible  <bruno@clisp.org>
42820         gnulib-tool: Display specified modules and dependencies differently.
42821         * gnulib-tool (func_show_module_list): New function.
42822         (func_import, func_create_testdir): Invoke it.
42823         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42825 2010-06-13  Bruno Haible  <bruno@clisp.org>
42827         gnulib-tool: Align code of func_import and func_create_testdir.
42828         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
42829         specified_modules.
42831 2010-06-12  Jim Meyering  <meyering@redhat.com>
42833         test-inttostr: avoid spurious failure on Solaris 9
42834         * tests/test-inttostr.c (main): Skip the test when snprintf fails
42835         to accept "%ju".  Reported by Bruno Haible.
42837 2010-06-11  Jim Meyering  <meyering@redhat.com>
42839         test-sys_socket: mark variables as used more readably
42840         * tests/test-sys_socket.c (main): Mark otherwise unused variables
42841         as "used" explicitly via (void) statement casts.  This is more
42842         readable than using them in an artificial return expression.
42843         Suggestion from Bruno Haible.
42845 2010-06-11  Bruno Haible  <bruno@clisp.org>
42847         Avoid some more warnings from "gcc -Wwrite-strings".
42848         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
42849         to 'const char *'.
42850         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
42851         * tests/test-c-strcasestr.c (main): Likewise.
42852         * tests/test-mbscasestr1.c (main): Likewise.
42853         * tests/test-mbscasestr2.c (main): Likewise.
42854         * tests/test-memmem.c (main): Likewise.
42855         * tests/test-strstr.c (main): Likewise.
42856         * tests/test-strcasestr.c (main): Likewise.
42858 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42860         init.sh: change framework_failure_ to fail with status 99, not 1
42861         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
42862         automake's parallel-tests rule that this is an unexpected failure,
42863         even if the test is listed in XFAIL_TESTS.
42865 2010-06-11  Jim Meyering  <meyering@redhat.com>
42867         test-inttostr: avoid warnings about 4-6KB literal strings
42868         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
42869         Include "macros.h", for its definition of ASSERT.
42870         (CK): s/assert/ASSERT/
42871         * modules/inttostr-tests (Files): Add macros.h.
42873         init.sh: don't use $ME_ or skip_ before they are defined
42874         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
42875         their first uses.  Also hoist their companions: warn_, fail_,
42876         framework_failure_, $stderr_fileno.  Prompted by a patch from
42877         Stefano Lattarini.
42879         test-sys_socket: avoid set-but-not-used warnings from gcc
42880         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
42881         avoid warning about set-but-not-used variables.
42883         test-xvasprintf: avoid 'const' discard warnings
42884         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
42885         "const" when assigning from literal strings.
42886         (test_xasprintf): Add "void" in function argument list to placate
42887         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
42889         tests: avoid compilation warnings in argmatch and exclude tests...
42890         in packages that define ARGMATCH_DIE_DECL, like coreutils.
42891         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
42892         Since it always exits, declare with the "noreturn" attribute.
42893         * tests/test-argmatch.c: Likewise.
42895         tests: avoid 'const' discard warnings in mbsstr tests
42896         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
42897         * tests/test-mbsstr2.c (main): Likewise.
42899         test-verify: avoid warning from gcc's -Wmissing-declarations
42900         * tests/test-verify.c (function): Declare to be static.
42902         test-inttostr.c: include <string.h> for use of strcmp
42903         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
42905         test-linkat: avoid failed assertion on "other" architectures
42906         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
42907         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
42908         sparc: https://bugs.launchpad.net/bugs/591968
42910 2010-06-11  Jim Meyering  <meyering@redhat.com>
42912         printf.m4: avoid autoconf's "Expanded Before Required" warning
42913         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
42914         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
42915         autoconf warning.
42917 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
42919         Replacement header templates are now named with ".in", not "_".
42920         * doc/gnulib-intro.texi: Correct.
42922 2010-06-10  Jim Meyering  <meyering@redhat.com>
42924         inttostr-tests: depend on snprintf, not snprintf-posix
42925         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
42926         snprintf-posix, to avoid this aclocal failure:
42927           missing file gnulib-tests/vasnprintf.c
42928           configure.ac:45: error: expected source file, required through \
42929           AC_LIBSOURCES, not found
42931 2010-06-10  Jim Meyering  <meyering@redhat.com>
42933         inttostr: add a new function, inttostr, and tests
42934         The namesake function was not available.  The existence of the
42935         template file, inttostr.c makes its addition nontrivial.
42936         * lib/anytostr.c: Rename from inttostr.c.
42937         (anytostr): Rename from inttostr.
42938         * lib/inttostr.c: New file.
42939         * modules/inttostr (Files): Add anytostr.c.
42940         (Makefile.am): Set lib_SOURCES instead of ...
42941         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
42942         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
42943         * lib/offtostr.c: Likewise.
42944         * lib/uinttostr.c: Likewise.
42945         * lib/umaxtostr.c: Likewise.
42946         * modules/inttostr-tests: New file.
42947         * tests/test-inttostr.c: New file.  Test these functions.
42949 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
42950             Bruno Haible  <bruno@clisp.org>
42952         Add "Extending Gnulib" chapter to manual.
42953         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
42954         chapter.
42955         (Extending Gnulib): New chapter.
42956         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
42957         chapter.
42959 2010-06-09  Bruno Haible  <bruno@clisp.org>
42961         Avoid relocwrapper link errors due to gnulib replacement functions.
42962         * lib/areadlink.c: Use the system's malloc, realloc functions.
42963         (areadlink): Set errno to ENOMEM explicitly.
42964         * modules/areadlink (Depends-on): Remove malloc-posix.
42965         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42967 2010-06-09  Bruno Haible  <bruno@clisp.org>
42969         Avoid relocwrapper link errors due to gnulib replacement functions.
42970         * lib/canonicalize-lgpl.c: Use the system's malloc function.
42971         * lib/malloca.c: Likewise.
42972         * lib/relocatable.c: Likewise.
42973         * lib/progreloc.c: Use the system's malloc, sprintf functions.
42974         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
42975         * lib/setenv.c: Use the system's malloc, realloc functions.
42976         * lib/strerror.c: Use the system's sprintf function.
42977         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42979 2010-06-04  Bruno Haible  <bruno@clisp.org>
42981         Prefer documented low-level autoconf macro names.
42982         * m4/lib-link.m4: Use m4_translit instead of translit.
42983         * m4/environ.m4: Likewise.
42984         * m4/mathfunc.m4: Likewise.
42985         * m4/onceonly.m4: Likewise.
42986         * m4/stdint.m4: Likewise.
42987         Suggested by Eric Blake.
42989 2010-06-04  Martin Lambers  <marlam@marlam.de>
42990             Bruno Haible  <bruno@clisp.org>
42992         havelib: Allow library names with '+' characters.
42993         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42994         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
42996 2010-06-09  Bruno Haible  <bruno@clisp.org>
42998         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
42999         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
43000         realloc failed.
43002 2010-06-08  Peter Simons  <simons@cryp.to>
43004         maint.mk: make the news-check rule more configurable
43005         * top/maint.mk (news-check-lines-spec): New variable.
43006         (news-check): Use "sed -n 1,10p" in place of "head".
43008 2010-06-07  Jim Meyering  <meyering@redhat.com>
43010         do-release-commit-and-tag: fix typo in --help
43011         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
43013         regex: avoid new dead-code warning with gcc-4.6.0
43014         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
43015         if-block containing a while-loop.  It's been unused for at least
43016         5 years.
43018 2010-06-05  Bruno Haible  <bruno@clisp.org>
43020         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
43021         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
43023 2010-06-04  Bruno Haible  <bruno@clisp.org>
43025         Update to GNU gettext 0.18.1.
43026         * modules/gettext (configure.ac): Require gettext infrastructure from
43027         version 0.18.1.
43029 2010-06-03  Bruno Haible  <bruno@clisp.org>
43031         Don't use AC_LIBOBJ with file names in subdirectories.
43032         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
43033         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
43034         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
43035         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
43036         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
43037         gl_LIBUNISTRING_LIBSOURCE.
43038         (Makefile.am): Augment lib_SOURCES here, conditionally.
43039         * NEWS: Drop requirement for Automake option 'subdir-objects'.
43041 2010-06-03  Bruno Haible  <bruno@clisp.org>
43043         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
43044         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
43045         expansion does not end with a newline.
43046         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
43047         unnecessary newline.
43049 2010-06-03  Bruno Haible  <bruno@clisp.org>
43051         Reduce dependencies.
43052         * tests/test-quotearg.h: New file, extracted from
43053         tests/test-quotearg.c.
43054         * tests/test-quotearg-simple.c: New file, extracted from
43055         tests/test-quotearg.c.
43056         * tests/test-quotearg.c: Don't include <ctype.h>.
43057         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
43058         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
43059         use_quote_double_quotes, use_quotearg_colon): Moved to
43060         tests/test-quotearg.h.
43061         (results_g, flag_results, custom_quotes, custom_results): Moved
43062         to tests/test-quotearg-simple.c.
43063         (main): Moved the part that does not depend on gettext to
43064         tests/test-quotearg-simple.c. Return 77 if the test cannot be
43065         performed.
43066         * modules/quotearg-simple: New file.
43067         * modules/quotearg-simple-tests: New file.
43068         * modules/quotearg (Depends-on): Add quotearg-simple.
43069         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
43070         (Files): Add tests/test-quotearg.h.
43071         Reported by Paolo Bonzini.
43073 2010-06-03  Bruno Haible  <bruno@clisp.org>
43075         Reduce dependencies.
43076         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
43078 2010-06-03  Bruno Haible  <bruno@clisp.org>
43080         time: Undefine more broken macros.
43081         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
43082         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
43083         Reported by Eric Blake.
43085 2010-06-03  Bruno Haible  <bruno@clisp.org>
43087         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
43088         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
43089         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
43090         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
43091         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
43092         Reported by Ludovic Courtès <ludo@gnu.org>.
43094 2010-06-02  Eric Blake  <eblake@redhat.com>
43096         time: work with mingw + pthreads-win32 library
43097         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
43098         if timespec is defined only in pthread.h.
43099         * modules/time (Makefile.am): Substitute it.
43100         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
43101         <pthread.h>, when needed.
43102         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
43103         from the library.
43105 2010-05-31  Bruno Haible  <bruno@clisp.org>
43107         Avoid expanding two macros in the wrong order.
43108         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
43109         gl_LIBUNISTRING if it is defined.
43110         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
43111         autoconf >= 2.64.
43112         Reported by Ludovic Courtès <ludo@gnu.org>.
43114 2010-05-27  Jim Meyering  <meyering@redhat.com>
43116         maint.mk: also prohibit "#undef" of always-defined symbols
43117         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
43118         Allow more than one space before the symbol name.
43119         (sc_prohibit_always-defined_macros): Use grep's -E, now that
43120         the regexp uses alternation.
43122 2010-05-26  Eric Blake  <eblake@redhat.com>
43124         maint.mk: avoid echo -e
43125         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
43126         Convert all uses of echo -* to printf.
43127         Reported by Matthias Bolte.
43129 2010-05-25  Bruno Haible  <bruno@clisp.org>
43131         Update to GNU gettext 0.18, part 2.
43132         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
43133         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
43135 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43137         Add missing include in test-pwrite.c.
43138         * tests/test-pwrite.c: Include string.h, for strcmp.
43140 2010-05-24  Bruno Haible  <bruno@clisp.org>
43142         * NEWS: Mention requirement for Automake option 'subdir-objects'.
43144 2010-05-24  Bruno Haible  <bruno@clisp.org>
43146         Don't use conversion with transliteration in u{8,16,32}_strcoll.
43147         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
43148         iconveh_error argument.
43149         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
43150         U_STRCONV_TO_LOCALE.
43151         * lib/unistr/u16-strcoll.c: Likewise.
43152         * lib/unistr/u32-strcoll.c: Likewise.
43153         * modules/unistr/u8-strcoll (Depends-on): Add
43154         uniconv/u8-strconv-to-enc, localcharset. Remove
43155         uniconv/u8-strconv-to-locale.
43156         (configure.ac): Bump version number.
43157         * modules/unistr/u16-strcoll (Depends-on): Add
43158         uniconv/u16-strconv-to-enc, localcharset. Remove
43159         uniconv/u16-strconv-to-locale.
43160         (configure.ac): Bump version number.
43161         * modules/unistr/u32-strcoll (Depends-on): Add
43162         uniconv/u32-strconv-to-enc, localcharset. Remove
43163         uniconv/u32-strconv-to-locale.
43164         (configure.ac): Bump version number.
43166 2010-05-24  Bruno Haible  <bruno@clisp.org>
43168         Avoid a test failure on NetBSD 5.0.
43169         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
43170         an iconv() bug.
43172 2010-05-24  Bruno Haible  <bruno@clisp.org>
43174         Adjust #include directive style.
43175         * modules/regex (Includes): Recommend to write <regex.h>.
43177 2010-05-24  Bruno Haible  <bruno@clisp.org>
43179         regex: Don't require alloca.
43180         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
43181         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
43182         only inside if (0).
43184 2010-05-23  Jim Meyering  <meyering@redhat.com>
43186         test-renameat.c: include <sys/stat.h>
43187         * tests/test-renameat.c: Include <sys/stat.h>; required for
43188         definition of S_IS* macros.
43190 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
43192         Update maintainer documentation for 'relocatable-prog' module.
43193         * doc/relocatable-maint.texi: Update.
43194         Comments by Bruno Haible.
43196 2010-05-23  Bruno Haible  <bruno@clisp.org>
43198         git-merge-changelog: Enable --split-merged-entry by default.
43199         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
43200         (usage): Don't mention this option any more.
43201         Reported by Ralf Wildenhues.
43203 2010-05-23  Jim Meyering  <meyering@redhat.com>
43205         test-pwrite: do not leave behind a test file named "out"
43206         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
43207         The trivial-looking use of init.sh is really necessary.
43208         It ensures that the temporary file, "out", is created in
43209         a temporary directory, and removed upon termination.
43210         * tests/test-pwrite.sh: Re-add file.
43211         * modules/pwrite-tests: Reference it.
43213 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43215         Fix output redirection buglet in init.sh.
43216         * tests/init.sh: Fix redirection of stderr.
43218 2010-05-20  Simon Josefsson  <simon@josefsson.org>
43220         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
43222 2010-05-17  Simon Josefsson  <simon@josefsson.org>
43224         * modules/valgrind-tests: New file.
43225         * m4/valgrind-tests.m4: New file.
43226         * doc/valgrind-tests.texi: New file.
43227         * doc/gnulib.texi (Running self-tests under valgrind): New
43228         section.
43230 2010-05-19  Bruno Haible  <bruno@clisp.org>
43232         Clean up dead code in recent commit.
43233         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
43234         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
43235         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
43236         Suggested by Paolo Bonzini.
43238 2010-05-19  Bruno Haible  <bruno@clisp.org>
43240         Avoid valgrind error reports from libunistring.
43241         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
43242         * modules/libunistring (Files): Add it.
43243         * modules/libunistring-optional (Files): Likewise.
43245 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
43246             Bruno Haible  <bruno@clisp.org>
43248         New module 'libunistring-optional'.
43249         * modules/libunistring-optional: New file.
43250         * m4/libunistring-base.m4: New file.
43251         * m4/libunistring-optional.m4: New file.
43252         * lib/unicase.in.h: Renamed from lib/unicase.h.
43253         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
43254         * lib/unictype.in.h: Renamed from lib/unictype.h.
43255         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
43256         * lib/uniname.in.h: Renamed from lib/uniname.h.
43257         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
43258         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
43259         * lib/unistr.in.h: Renamed from lib/unistr.h.
43260         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
43261         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
43262         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
43263         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
43264         gl_LIBUNISTRING. If the library was found, determine the installed
43265         version and set LIBUNISTRING_VERSION.
43266         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
43267         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
43268         handle a configuration option --with-included-libunistring.
43269         * modules/libunistring (Files): Add m4/absolute-header.m4.
43270         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
43271         Add m4/libunistring-base.m4.
43272         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43273         (Makefile.am): Build unicase.h from unicase.in.h.
43274         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
43275         Add m4/libunistring-base.m4.
43276         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43277         (Makefile.am): Build uniconv.h from uniconv.in.h.
43278         * modules/unictype/base (Files): Use unictype.in.h instead of
43279         unictype.h. Add m4/libunistring-base.m4.
43280         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43281         (Makefile.am): Build unictype.h from unictype.in.h.
43282         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
43283         Add m4/libunistring-base.m4.
43284         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43285         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
43286         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
43287         Add m4/libunistring-base.m4.
43288         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43289         (Makefile.am): Build uniname.h from uniname.in.h.
43290         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
43291         Add m4/libunistring-base.m4.
43292         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43293         (Makefile.am): Build uninorm.h from uninorm.in.h.
43294         * modules/unistdio/base (Files): Use unistdio.in.h instead of
43295         unistdio.h. Add m4/libunistring-base.m4.
43296         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43297         (Makefile.am): Build unistdio.h from unistdio.in.h.
43298         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
43299         Add m4/libunistring-base.m4.
43300         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43301         (Makefile.am): Build unistr.h from unistr.in.h.
43302         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
43303         Add m4/libunistring-base.m4.
43304         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43305         (Makefile.am): Build unitypes.h from unitypes.in.h.
43306         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
43307         Add m4/libunistring-base.m4.
43308         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43309         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
43310         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
43311         uniwidth.h. Add m4/libunistring-base.m4.
43312         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
43313         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
43314         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
43315         instead of augmenting lib_SOURCES.
43316         * modules/unicase/empty-suffix-context: Likewise.
43317         * modules/unicase/locale-language: Likewise.
43318         * modules/unicase/tolower: Likewise.
43319         * modules/unicase/totitle: Likewise.
43320         * modules/unicase/toupper: Likewise.
43321         * modules/unicase/u8-casecmp: Likewise.
43322         * modules/unicase/u8-casecoll: Likewise.
43323         * modules/unicase/u8-casefold: Likewise.
43324         * modules/unicase/u8-casexfrm: Likewise.
43325         * modules/unicase/u8-ct-casefold: Likewise.
43326         * modules/unicase/u8-ct-tolower: Likewise.
43327         * modules/unicase/u8-ct-totitle: Likewise.
43328         * modules/unicase/u8-ct-toupper: Likewise.
43329         * modules/unicase/u8-is-cased: Likewise.
43330         * modules/unicase/u8-is-casefolded: Likewise.
43331         * modules/unicase/u8-is-lowercase: Likewise.
43332         * modules/unicase/u8-is-titlecase: Likewise.
43333         * modules/unicase/u8-is-uppercase: Likewise.
43334         * modules/unicase/u8-prefix-context: Likewise.
43335         * modules/unicase/u8-suffix-context: Likewise.
43336         * modules/unicase/u8-tolower: Likewise.
43337         * modules/unicase/u8-totitle: Likewise.
43338         * modules/unicase/u8-toupper: Likewise.
43339         * modules/unicase/u16-casecmp: Likewise.
43340         * modules/unicase/u16-casecoll: Likewise.
43341         * modules/unicase/u16-casefold: Likewise.
43342         * modules/unicase/u16-casexfrm: Likewise.
43343         * modules/unicase/u16-ct-casefold: Likewise.
43344         * modules/unicase/u16-ct-tolower: Likewise.
43345         * modules/unicase/u16-ct-totitle: Likewise.
43346         * modules/unicase/u16-ct-toupper: Likewise.
43347         * modules/unicase/u16-is-cased: Likewise.
43348         * modules/unicase/u16-is-casefolded: Likewise.
43349         * modules/unicase/u16-is-lowercase: Likewise.
43350         * modules/unicase/u16-is-titlecase: Likewise.
43351         * modules/unicase/u16-is-uppercase: Likewise.
43352         * modules/unicase/u16-prefix-context: Likewise.
43353         * modules/unicase/u16-suffix-context: Likewise.
43354         * modules/unicase/u16-tolower: Likewise.
43355         * modules/unicase/u16-totitle: Likewise.
43356         * modules/unicase/u16-toupper: Likewise.
43357         * modules/unicase/u32-casecmp: Likewise.
43358         * modules/unicase/u32-casecoll: Likewise.
43359         * modules/unicase/u32-casefold: Likewise.
43360         * modules/unicase/u32-casexfrm: Likewise.
43361         * modules/unicase/u32-ct-casefold: Likewise.
43362         * modules/unicase/u32-ct-tolower: Likewise.
43363         * modules/unicase/u32-ct-totitle: Likewise.
43364         * modules/unicase/u32-ct-toupper: Likewise.
43365         * modules/unicase/u32-is-cased: Likewise.
43366         * modules/unicase/u32-is-casefolded: Likewise.
43367         * modules/unicase/u32-is-lowercase: Likewise.
43368         * modules/unicase/u32-is-titlecase: Likewise.
43369         * modules/unicase/u32-is-uppercase: Likewise.
43370         * modules/unicase/u32-prefix-context: Likewise.
43371         * modules/unicase/u32-suffix-context: Likewise.
43372         * modules/unicase/u32-tolower: Likewise.
43373         * modules/unicase/u32-totitle: Likewise.
43374         * modules/unicase/u32-toupper: Likewise.
43375         * modules/unicase/ulc-casecmp: Likewise.
43376         * modules/unicase/ulc-casecoll: Likewise.
43377         * modules/unicase/ulc-casexfrm: Likewise.
43378         * modules/uniconv/u8-conv-from-enc: Likewise.
43379         * modules/uniconv/u8-conv-to-enc: Likewise.
43380         * modules/uniconv/u8-strconv-from-enc: Likewise.
43381         * modules/uniconv/u8-strconv-from-locale: Likewise.
43382         * modules/uniconv/u8-strconv-to-enc: Likewise.
43383         * modules/uniconv/u8-strconv-to-locale: Likewise.
43384         * modules/uniconv/u16-conv-from-enc: Likewise.
43385         * modules/uniconv/u16-conv-to-enc: Likewise.
43386         * modules/uniconv/u16-strconv-from-enc: Likewise.
43387         * modules/uniconv/u16-strconv-from-locale: Likewise.
43388         * modules/uniconv/u16-strconv-to-enc: Likewise.
43389         * modules/uniconv/u16-strconv-to-locale: Likewise.
43390         * modules/uniconv/u32-conv-from-enc: Likewise.
43391         * modules/uniconv/u32-conv-to-enc: Likewise.
43392         * modules/uniconv/u32-strconv-from-enc: Likewise.
43393         * modules/uniconv/u32-strconv-from-locale: Likewise.
43394         * modules/uniconv/u32-strconv-to-enc: Likewise.
43395         * modules/uniconv/u32-strconv-to-locale: Likewise.
43396         * modules/unictype/bidicategory-byname: Likewise.
43397         * modules/unictype/bidicategory-name: Likewise.
43398         * modules/unictype/bidicategory-of: Likewise.
43399         * modules/unictype/bidicategory-test: Likewise.
43400         * modules/unictype/block-list: Likewise.
43401         * modules/unictype/block-test: Likewise.
43402         * modules/unictype/category-C: Likewise.
43403         * modules/unictype/category-Cc: Likewise.
43404         * modules/unictype/category-Cf: Likewise.
43405         * modules/unictype/category-Cn: Likewise.
43406         * modules/unictype/category-Co: Likewise.
43407         * modules/unictype/category-Cs: Likewise.
43408         * modules/unictype/category-L: Likewise.
43409         * modules/unictype/category-Ll: Likewise.
43410         * modules/unictype/category-Lm: Likewise.
43411         * modules/unictype/category-Lo: Likewise.
43412         * modules/unictype/category-Lt: Likewise.
43413         * modules/unictype/category-Lu: Likewise.
43414         * modules/unictype/category-M: Likewise.
43415         * modules/unictype/category-Mc: Likewise.
43416         * modules/unictype/category-Me: Likewise.
43417         * modules/unictype/category-Mn: Likewise.
43418         * modules/unictype/category-N: Likewise.
43419         * modules/unictype/category-Nd: Likewise.
43420         * modules/unictype/category-Nl: Likewise.
43421         * modules/unictype/category-No: Likewise.
43422         * modules/unictype/category-P: Likewise.
43423         * modules/unictype/category-Pc: Likewise.
43424         * modules/unictype/category-Pd: Likewise.
43425         * modules/unictype/category-Pe: Likewise.
43426         * modules/unictype/category-Pf: Likewise.
43427         * modules/unictype/category-Pi: Likewise.
43428         * modules/unictype/category-Po: Likewise.
43429         * modules/unictype/category-Ps: Likewise.
43430         * modules/unictype/category-S: Likewise.
43431         * modules/unictype/category-Sc: Likewise.
43432         * modules/unictype/category-Sk: Likewise.
43433         * modules/unictype/category-Sm: Likewise.
43434         * modules/unictype/category-So: Likewise.
43435         * modules/unictype/category-Z: Likewise.
43436         * modules/unictype/category-Zl: Likewise.
43437         * modules/unictype/category-Zp: Likewise.
43438         * modules/unictype/category-Zs: Likewise.
43439         * modules/unictype/category-and: Likewise.
43440         * modules/unictype/category-and-not: Likewise.
43441         * modules/unictype/category-byname: Likewise.
43442         * modules/unictype/category-name: Likewise.
43443         * modules/unictype/category-none: Likewise.
43444         * modules/unictype/category-of: Likewise.
43445         * modules/unictype/category-or: Likewise.
43446         * modules/unictype/category-test: Likewise.
43447         * modules/unictype/combining-class: Likewise.
43448         * modules/unictype/ctype-alnum: Likewise.
43449         * modules/unictype/ctype-alpha: Likewise.
43450         * modules/unictype/ctype-blank: Likewise.
43451         * modules/unictype/ctype-cntrl: Likewise.
43452         * modules/unictype/ctype-digit: Likewise.
43453         * modules/unictype/ctype-graph: Likewise.
43454         * modules/unictype/ctype-lower: Likewise.
43455         * modules/unictype/ctype-print: Likewise.
43456         * modules/unictype/ctype-punct: Likewise.
43457         * modules/unictype/ctype-space: Likewise.
43458         * modules/unictype/ctype-upper: Likewise.
43459         * modules/unictype/ctype-xdigit: Likewise.
43460         * modules/unictype/decimal-digit: Likewise.
43461         * modules/unictype/digit: Likewise.
43462         * modules/unictype/mirror: Likewise.
43463         * modules/unictype/numeric: Likewise.
43464         * modules/unictype/property-alphabetic: Likewise.
43465         * modules/unictype/property-ascii-hex-digit: Likewise.
43466         * modules/unictype/property-bidi-arabic-digit: Likewise.
43467         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
43468         * modules/unictype/property-bidi-block-separator: Likewise.
43469         * modules/unictype/property-bidi-boundary-neutral: Likewise.
43470         * modules/unictype/property-bidi-common-separator: Likewise.
43471         * modules/unictype/property-bidi-control: Likewise.
43472         * modules/unictype/property-bidi-embedding-or-override: Likewise.
43473         * modules/unictype/property-bidi-eur-num-separator: Likewise.
43474         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
43475         * modules/unictype/property-bidi-european-digit: Likewise.
43476         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
43477         * modules/unictype/property-bidi-left-to-right: Likewise.
43478         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
43479         * modules/unictype/property-bidi-other-neutral: Likewise.
43480         * modules/unictype/property-bidi-pdf: Likewise.
43481         * modules/unictype/property-bidi-segment-separator: Likewise.
43482         * modules/unictype/property-bidi-whitespace: Likewise.
43483         * modules/unictype/property-byname: Likewise.
43484         * modules/unictype/property-combining: Likewise.
43485         * modules/unictype/property-composite: Likewise.
43486         * modules/unictype/property-currency-symbol: Likewise.
43487         * modules/unictype/property-dash: Likewise.
43488         * modules/unictype/property-decimal-digit: Likewise.
43489         * modules/unictype/property-default-ignorable-code-point: Likewise.
43490         * modules/unictype/property-deprecated: Likewise.
43491         * modules/unictype/property-diacritic: Likewise.
43492         * modules/unictype/property-extender: Likewise.
43493         * modules/unictype/property-format-control: Likewise.
43494         * modules/unictype/property-grapheme-base: Likewise.
43495         * modules/unictype/property-grapheme-extend: Likewise.
43496         * modules/unictype/property-grapheme-link: Likewise.
43497         * modules/unictype/property-hex-digit: Likewise.
43498         * modules/unictype/property-hyphen: Likewise.
43499         * modules/unictype/property-id-continue: Likewise.
43500         * modules/unictype/property-id-start: Likewise.
43501         * modules/unictype/property-ideographic: Likewise.
43502         * modules/unictype/property-ids-binary-operator: Likewise.
43503         * modules/unictype/property-ids-trinary-operator: Likewise.
43504         * modules/unictype/property-ignorable-control: Likewise.
43505         * modules/unictype/property-iso-control: Likewise.
43506         * modules/unictype/property-join-control: Likewise.
43507         * modules/unictype/property-left-of-pair: Likewise.
43508         * modules/unictype/property-line-separator: Likewise.
43509         * modules/unictype/property-logical-order-exception: Likewise.
43510         * modules/unictype/property-lowercase: Likewise.
43511         * modules/unictype/property-math: Likewise.
43512         * modules/unictype/property-non-break: Likewise.
43513         * modules/unictype/property-not-a-character: Likewise.
43514         * modules/unictype/property-numeric: Likewise.
43515         * modules/unictype/property-other-alphabetic: Likewise.
43516         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
43517         * modules/unictype/property-other-grapheme-extend: Likewise.
43518         * modules/unictype/property-other-id-continue: Likewise.
43519         * modules/unictype/property-other-id-start: Likewise.
43520         * modules/unictype/property-other-lowercase: Likewise.
43521         * modules/unictype/property-other-math: Likewise.
43522         * modules/unictype/property-other-uppercase: Likewise.
43523         * modules/unictype/property-paired-punctuation: Likewise.
43524         * modules/unictype/property-paragraph-separator: Likewise.
43525         * modules/unictype/property-pattern-syntax: Likewise.
43526         * modules/unictype/property-pattern-white-space: Likewise.
43527         * modules/unictype/property-private-use: Likewise.
43528         * modules/unictype/property-punctuation: Likewise.
43529         * modules/unictype/property-quotation-mark: Likewise.
43530         * modules/unictype/property-radical: Likewise.
43531         * modules/unictype/property-sentence-terminal: Likewise.
43532         * modules/unictype/property-soft-dotted: Likewise.
43533         * modules/unictype/property-space: Likewise.
43534         * modules/unictype/property-terminal-punctuation: Likewise.
43535         * modules/unictype/property-test: Likewise.
43536         * modules/unictype/property-titlecase: Likewise.
43537         * modules/unictype/property-unassigned-code-value: Likewise.
43538         * modules/unictype/property-unified-ideograph: Likewise.
43539         * modules/unictype/property-uppercase: Likewise.
43540         * modules/unictype/property-variation-selector: Likewise.
43541         * modules/unictype/property-white-space: Likewise.
43542         * modules/unictype/property-xid-continue: Likewise.
43543         * modules/unictype/property-xid-start: Likewise.
43544         * modules/unictype/property-zero-width: Likewise.
43545         * modules/unictype/scripts: Likewise.
43546         * modules/unictype/syntax-c-ident: Likewise.
43547         * modules/unictype/syntax-c-whitespace: Likewise.
43548         * modules/unictype/syntax-java-ident: Likewise.
43549         * modules/unictype/syntax-java-whitespace: Likewise.
43550         * modules/unilbrk/u8-possible-linebreaks: Likewise.
43551         * modules/unilbrk/u8-width-linebreaks: Likewise.
43552         * modules/unilbrk/u16-possible-linebreaks: Likewise.
43553         * modules/unilbrk/u16-width-linebreaks: Likewise.
43554         * modules/unilbrk/u32-possible-linebreaks: Likewise.
43555         * modules/unilbrk/u32-width-linebreaks: Likewise.
43556         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
43557         * modules/unilbrk/ulc-width-linebreaks: Likewise.
43558         * modules/uniname/uniname: Likewise.
43559         * modules/uninorm/canonical-decomposition: Likewise.
43560         * modules/uninorm/composition: Likewise.
43561         * modules/uninorm/decomposing-form: Likewise.
43562         * modules/uninorm/decomposition: Likewise.
43563         * modules/uninorm/filter: Likewise.
43564         * modules/uninorm/nfc: Likewise.
43565         * modules/uninorm/nfd: Likewise.
43566         * modules/uninorm/nfkc: Likewise.
43567         * modules/uninorm/nfkd: Likewise.
43568         * modules/uninorm/u8-normalize: Likewise.
43569         * modules/uninorm/u8-normcmp: Likewise.
43570         * modules/uninorm/u8-normcoll: Likewise.
43571         * modules/uninorm/u8-normxfrm: Likewise.
43572         * modules/uninorm/u16-normalize: Likewise.
43573         * modules/uninorm/u16-normcmp: Likewise.
43574         * modules/uninorm/u16-normcoll: Likewise.
43575         * modules/uninorm/u16-normxfrm: Likewise.
43576         * modules/uninorm/u32-normalize: Likewise.
43577         * modules/uninorm/u32-normcmp: Likewise.
43578         * modules/uninorm/u32-normcoll: Likewise.
43579         * modules/uninorm/u32-normxfrm: Likewise.
43580         * modules/unistdio/u8-asnprintf: Likewise.
43581         * modules/unistdio/u8-asprintf: Likewise.
43582         * modules/unistdio/u8-snprintf: Likewise.
43583         * modules/unistdio/u8-sprintf: Likewise.
43584         * modules/unistdio/u8-u8-asnprintf: Likewise.
43585         * modules/unistdio/u8-u8-asprintf: Likewise.
43586         * modules/unistdio/u8-u8-snprintf: Likewise.
43587         * modules/unistdio/u8-u8-sprintf: Likewise.
43588         * modules/unistdio/u8-u8-vasnprintf: Likewise.
43589         * modules/unistdio/u8-u8-vasprintf: Likewise.
43590         * modules/unistdio/u8-u8-vsnprintf: Likewise.
43591         * modules/unistdio/u8-u8-vsprintf: Likewise.
43592         * modules/unistdio/u8-vasnprintf: Likewise.
43593         * modules/unistdio/u8-vasprintf: Likewise.
43594         * modules/unistdio/u8-vsnprintf: Likewise.
43595         * modules/unistdio/u8-vsprintf: Likewise.
43596         * modules/unistdio/u16-asnprintf: Likewise.
43597         * modules/unistdio/u16-asprintf: Likewise.
43598         * modules/unistdio/u16-snprintf: Likewise.
43599         * modules/unistdio/u16-sprintf: Likewise.
43600         * modules/unistdio/u16-u16-asnprintf: Likewise.
43601         * modules/unistdio/u16-u16-asprintf: Likewise.
43602         * modules/unistdio/u16-u16-snprintf: Likewise.
43603         * modules/unistdio/u16-u16-sprintf: Likewise.
43604         * modules/unistdio/u16-u16-vasnprintf: Likewise.
43605         * modules/unistdio/u16-u16-vasprintf: Likewise.
43606         * modules/unistdio/u16-u16-vsnprintf: Likewise.
43607         * modules/unistdio/u16-u16-vsprintf: Likewise.
43608         * modules/unistdio/u16-vasnprintf: Likewise.
43609         * modules/unistdio/u16-vasprintf: Likewise.
43610         * modules/unistdio/u16-vsnprintf: Likewise.
43611         * modules/unistdio/u16-vsprintf: Likewise.
43612         * modules/unistdio/u32-asnprintf: Likewise.
43613         * modules/unistdio/u32-asprintf: Likewise.
43614         * modules/unistdio/u32-snprintf: Likewise.
43615         * modules/unistdio/u32-sprintf: Likewise.
43616         * modules/unistdio/u32-u32-asnprintf: Likewise.
43617         * modules/unistdio/u32-u32-asprintf: Likewise.
43618         * modules/unistdio/u32-u32-snprintf: Likewise.
43619         * modules/unistdio/u32-u32-sprintf: Likewise.
43620         * modules/unistdio/u32-u32-vasnprintf: Likewise.
43621         * modules/unistdio/u32-u32-vasprintf: Likewise.
43622         * modules/unistdio/u32-u32-vsnprintf: Likewise.
43623         * modules/unistdio/u32-u32-vsprintf: Likewise.
43624         * modules/unistdio/u32-vasnprintf: Likewise.
43625         * modules/unistdio/u32-vasprintf: Likewise.
43626         * modules/unistdio/u32-vsnprintf: Likewise.
43627         * modules/unistdio/u32-vsprintf: Likewise.
43628         * modules/unistdio/ulc-asnprintf: Likewise.
43629         * modules/unistdio/ulc-asprintf: Likewise.
43630         * modules/unistdio/ulc-fprintf: Likewise.
43631         * modules/unistdio/ulc-snprintf: Likewise.
43632         * modules/unistdio/ulc-sprintf: Likewise.
43633         * modules/unistdio/ulc-vasnprintf: Likewise.
43634         * modules/unistdio/ulc-vasprintf: Likewise.
43635         * modules/unistdio/ulc-vfprintf: Likewise.
43636         * modules/unistdio/ulc-vsnprintf: Likewise.
43637         * modules/unistdio/ulc-vsprintf: Likewise.
43638         * modules/unistr/u8-check: Likewise.
43639         * modules/unistr/u8-chr: Likewise.
43640         * modules/unistr/u8-cmp: Likewise.
43641         * modules/unistr/u8-cmp2: Likewise.
43642         * modules/unistr/u8-cpy: Likewise.
43643         * modules/unistr/u8-cpy-alloc: Likewise.
43644         * modules/unistr/u8-endswith: Likewise.
43645         * modules/unistr/u8-mblen: Likewise.
43646         * modules/unistr/u8-mbsnlen: Likewise.
43647         * modules/unistr/u8-mbtouc: Likewise.
43648         * modules/unistr/u8-mbtouc-unsafe: Likewise.
43649         * modules/unistr/u8-mbtoucr: Likewise.
43650         * modules/unistr/u8-move: Likewise.
43651         * modules/unistr/u8-next: Likewise.
43652         * modules/unistr/u8-prev: Likewise.
43653         * modules/unistr/u8-set: Likewise.
43654         * modules/unistr/u8-startswith: Likewise.
43655         * modules/unistr/u8-stpcpy: Likewise.
43656         * modules/unistr/u8-stpncpy: Likewise.
43657         * modules/unistr/u8-strcat: Likewise.
43658         * modules/unistr/u8-strchr: Likewise.
43659         * modules/unistr/u8-strcmp: Likewise.
43660         * modules/unistr/u8-strcoll: Likewise.
43661         * modules/unistr/u8-strcpy: Likewise.
43662         * modules/unistr/u8-strcspn: Likewise.
43663         * modules/unistr/u8-strdup: Likewise.
43664         * modules/unistr/u8-strlen: Likewise.
43665         * modules/unistr/u8-strmblen: Likewise.
43666         * modules/unistr/u8-strmbtouc: Likewise.
43667         * modules/unistr/u8-strncat: Likewise.
43668         * modules/unistr/u8-strncmp: Likewise.
43669         * modules/unistr/u8-strncpy: Likewise.
43670         * modules/unistr/u8-strnlen: Likewise.
43671         * modules/unistr/u8-strpbrk: Likewise.
43672         * modules/unistr/u8-strrchr: Likewise.
43673         * modules/unistr/u8-strspn: Likewise.
43674         * modules/unistr/u8-strstr: Likewise.
43675         * modules/unistr/u8-strtok: Likewise.
43676         * modules/unistr/u8-to-u16: Likewise.
43677         * modules/unistr/u8-to-u32: Likewise.
43678         * modules/unistr/u8-uctomb: Likewise.
43679         * modules/unistr/u16-check: Likewise.
43680         * modules/unistr/u16-chr: Likewise.
43681         * modules/unistr/u16-cmp: Likewise.
43682         * modules/unistr/u16-cmp2: Likewise.
43683         * modules/unistr/u16-cpy: Likewise.
43684         * modules/unistr/u16-cpy-alloc: Likewise.
43685         * modules/unistr/u16-endswith: Likewise.
43686         * modules/unistr/u16-mblen: Likewise.
43687         * modules/unistr/u16-mbsnlen: Likewise.
43688         * modules/unistr/u16-mbtouc: Likewise.
43689         * modules/unistr/u16-mbtouc-unsafe: Likewise.
43690         * modules/unistr/u16-mbtoucr: Likewise.
43691         * modules/unistr/u16-move: Likewise.
43692         * modules/unistr/u16-next: Likewise.
43693         * modules/unistr/u16-prev: Likewise.
43694         * modules/unistr/u16-set: Likewise.
43695         * modules/unistr/u16-startswith: Likewise.
43696         * modules/unistr/u16-stpcpy: Likewise.
43697         * modules/unistr/u16-stpncpy: Likewise.
43698         * modules/unistr/u16-strcat: Likewise.
43699         * modules/unistr/u16-strchr: Likewise.
43700         * modules/unistr/u16-strcmp: Likewise.
43701         * modules/unistr/u16-strcoll: Likewise.
43702         * modules/unistr/u16-strcpy: Likewise.
43703         * modules/unistr/u16-strcspn: Likewise.
43704         * modules/unistr/u16-strdup: Likewise.
43705         * modules/unistr/u16-strlen: Likewise.
43706         * modules/unistr/u16-strmblen: Likewise.
43707         * modules/unistr/u16-strmbtouc: Likewise.
43708         * modules/unistr/u16-strncat: Likewise.
43709         * modules/unistr/u16-strncmp: Likewise.
43710         * modules/unistr/u16-strncpy: Likewise.
43711         * modules/unistr/u16-strnlen: Likewise.
43712         * modules/unistr/u16-strpbrk: Likewise.
43713         * modules/unistr/u16-strrchr: Likewise.
43714         * modules/unistr/u16-strspn: Likewise.
43715         * modules/unistr/u16-strstr: Likewise.
43716         * modules/unistr/u16-strtok: Likewise.
43717         * modules/unistr/u16-to-u32: Likewise.
43718         * modules/unistr/u16-to-u8: Likewise.
43719         * modules/unistr/u16-uctomb: Likewise.
43720         * modules/unistr/u32-check: Likewise.
43721         * modules/unistr/u32-chr: Likewise.
43722         * modules/unistr/u32-cmp: Likewise.
43723         * modules/unistr/u32-cmp2: Likewise.
43724         * modules/unistr/u32-cpy: Likewise.
43725         * modules/unistr/u32-cpy-alloc: Likewise.
43726         * modules/unistr/u32-endswith: Likewise.
43727         * modules/unistr/u32-mblen: Likewise.
43728         * modules/unistr/u32-mbsnlen: Likewise.
43729         * modules/unistr/u32-mbtouc: Likewise.
43730         * modules/unistr/u32-mbtouc-unsafe: Likewise.
43731         * modules/unistr/u32-mbtoucr: Likewise.
43732         * modules/unistr/u32-move: Likewise.
43733         * modules/unistr/u32-next: Likewise.
43734         * modules/unistr/u32-prev: Likewise.
43735         * modules/unistr/u32-set: Likewise.
43736         * modules/unistr/u32-startswith: Likewise.
43737         * modules/unistr/u32-stpcpy: Likewise.
43738         * modules/unistr/u32-stpncpy: Likewise.
43739         * modules/unistr/u32-strcat: Likewise.
43740         * modules/unistr/u32-strchr: Likewise.
43741         * modules/unistr/u32-strcmp: Likewise.
43742         * modules/unistr/u32-strcoll: Likewise.
43743         * modules/unistr/u32-strcpy: Likewise.
43744         * modules/unistr/u32-strcspn: Likewise.
43745         * modules/unistr/u32-strdup: Likewise.
43746         * modules/unistr/u32-strlen: Likewise.
43747         * modules/unistr/u32-strmblen: Likewise.
43748         * modules/unistr/u32-strmbtouc: Likewise.
43749         * modules/unistr/u32-strncat: Likewise.
43750         * modules/unistr/u32-strncmp: Likewise.
43751         * modules/unistr/u32-strncpy: Likewise.
43752         * modules/unistr/u32-strnlen: Likewise.
43753         * modules/unistr/u32-strpbrk: Likewise.
43754         * modules/unistr/u32-strrchr: Likewise.
43755         * modules/unistr/u32-strspn: Likewise.
43756         * modules/unistr/u32-strstr: Likewise.
43757         * modules/unistr/u32-strtok: Likewise.
43758         * modules/unistr/u32-to-u16: Likewise.
43759         * modules/unistr/u32-to-u8: Likewise.
43760         * modules/unistr/u32-uctomb: Likewise.
43761         * modules/uniwbrk/u8-wordbreaks: Likewise.
43762         * modules/uniwbrk/u16-wordbreaks: Likewise.
43763         * modules/uniwbrk/u32-wordbreaks: Likewise.
43764         * modules/uniwbrk/ulc-wordbreaks: Likewise.
43765         * modules/uniwbrk/wordbreak-property: Likewise.
43766         * modules/uniwidth/u8-strwidth: Likewise.
43767         * modules/uniwidth/u8-width: Likewise.
43768         * modules/uniwidth/u16-strwidth: Likewise.
43769         * modules/uniwidth/u16-width: Likewise.
43770         * modules/uniwidth/u32-strwidth: Likewise.
43771         * modules/uniwidth/u32-width: Likewise.
43772         * modules/uniwidth/width: Likewise.
43773         * modules/unicase/cased-tests (Makefile.am): Link all test programs
43774         with $(LIBUNISTRING).
43775         * modules/unicase/ignorable-tests: Likewise.
43776         * modules/unicase/locale-language-tests: Likewise.
43777         * modules/unicase/tolower-tests: Likewise.
43778         * modules/unicase/totitle-tests: Likewise.
43779         * modules/unicase/toupper-tests: Likewise.
43780         * modules/unicase/u8-casecmp-tests: Likewise.
43781         * modules/unicase/u8-casecoll-tests: Likewise.
43782         * modules/unicase/u8-casefold-tests: Likewise.
43783         * modules/unicase/u8-is-cased-tests: Likewise.
43784         * modules/unicase/u8-is-casefolded-tests: Likewise.
43785         * modules/unicase/u8-is-lowercase-tests: Likewise.
43786         * modules/unicase/u8-is-titlecase-tests: Likewise.
43787         * modules/unicase/u8-is-uppercase-tests: Likewise.
43788         * modules/unicase/u8-tolower-tests: Likewise.
43789         * modules/unicase/u8-totitle-tests: Likewise.
43790         * modules/unicase/u8-toupper-tests: Likewise.
43791         * modules/unicase/u16-casecmp-tests: Likewise.
43792         * modules/unicase/u16-casecoll-tests: Likewise.
43793         * modules/unicase/u16-casefold-tests: Likewise.
43794         * modules/unicase/u16-is-cased-tests: Likewise.
43795         * modules/unicase/u16-is-casefolded-tests: Likewise.
43796         * modules/unicase/u16-is-lowercase-tests: Likewise.
43797         * modules/unicase/u16-is-titlecase-tests: Likewise.
43798         * modules/unicase/u16-is-uppercase-tests: Likewise.
43799         * modules/unicase/u16-tolower-tests: Likewise.
43800         * modules/unicase/u16-totitle-tests: Likewise.
43801         * modules/unicase/u16-toupper-tests: Likewise.
43802         * modules/unicase/u32-casecmp-tests: Likewise.
43803         * modules/unicase/u32-casecoll-tests: Likewise.
43804         * modules/unicase/u32-casefold-tests: Likewise.
43805         * modules/unicase/u32-is-cased-tests: Likewise.
43806         * modules/unicase/u32-is-casefolded-tests: Likewise.
43807         * modules/unicase/u32-is-lowercase-tests: Likewise.
43808         * modules/unicase/u32-is-titlecase-tests: Likewise.
43809         * modules/unicase/u32-is-uppercase-tests: Likewise.
43810         * modules/unicase/u32-tolower-tests: Likewise.
43811         * modules/unicase/u32-totitle-tests: Likewise.
43812         * modules/unicase/u32-toupper-tests: Likewise.
43813         * modules/unicase/ulc-casecmp-tests: Likewise.
43814         * modules/unicase/ulc-casecoll-tests: Likewise.
43815         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
43816         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
43817         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
43818         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
43819         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
43820         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
43821         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
43822         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
43823         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
43824         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
43825         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
43826         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
43827         * modules/unictype/bidicategory-byname-tests: Likewise.
43828         * modules/unictype/bidicategory-name-tests: Likewise.
43829         * modules/unictype/bidicategory-of-tests: Likewise.
43830         * modules/unictype/bidicategory-test-tests: Likewise.
43831         * modules/unictype/block-list-tests: Likewise.
43832         * modules/unictype/block-of-tests: Likewise.
43833         * modules/unictype/block-test-tests: Likewise.
43834         * modules/unictype/category-C-tests: Likewise.
43835         * modules/unictype/category-Cc-tests: Likewise.
43836         * modules/unictype/category-Cf-tests: Likewise.
43837         * modules/unictype/category-Cn-tests: Likewise.
43838         * modules/unictype/category-Co-tests: Likewise.
43839         * modules/unictype/category-Cs-tests: Likewise.
43840         * modules/unictype/category-L-tests: Likewise.
43841         * modules/unictype/category-Ll-tests: Likewise.
43842         * modules/unictype/category-Lm-tests: Likewise.
43843         * modules/unictype/category-Lo-tests: Likewise.
43844         * modules/unictype/category-Lt-tests: Likewise.
43845         * modules/unictype/category-Lu-tests: Likewise.
43846         * modules/unictype/category-M-tests: Likewise.
43847         * modules/unictype/category-Mc-tests: Likewise.
43848         * modules/unictype/category-Me-tests: Likewise.
43849         * modules/unictype/category-Mn-tests: Likewise.
43850         * modules/unictype/category-N-tests: Likewise.
43851         * modules/unictype/category-Nd-tests: Likewise.
43852         * modules/unictype/category-Nl-tests: Likewise.
43853         * modules/unictype/category-No-tests: Likewise.
43854         * modules/unictype/category-P-tests: Likewise.
43855         * modules/unictype/category-Pc-tests: Likewise.
43856         * modules/unictype/category-Pd-tests: Likewise.
43857         * modules/unictype/category-Pe-tests: Likewise.
43858         * modules/unictype/category-Pf-tests: Likewise.
43859         * modules/unictype/category-Pi-tests: Likewise.
43860         * modules/unictype/category-Po-tests: Likewise.
43861         * modules/unictype/category-Ps-tests: Likewise.
43862         * modules/unictype/category-S-tests: Likewise.
43863         * modules/unictype/category-Sc-tests: Likewise.
43864         * modules/unictype/category-Sk-tests: Likewise.
43865         * modules/unictype/category-Sm-tests: Likewise.
43866         * modules/unictype/category-So-tests: Likewise.
43867         * modules/unictype/category-Z-tests: Likewise.
43868         * modules/unictype/category-Zl-tests: Likewise.
43869         * modules/unictype/category-Zp-tests: Likewise.
43870         * modules/unictype/category-Zs-tests: Likewise.
43871         * modules/unictype/category-and-not-tests: Likewise.
43872         * modules/unictype/category-and-tests: Likewise.
43873         * modules/unictype/category-byname-tests: Likewise.
43874         * modules/unictype/category-name-tests: Likewise.
43875         * modules/unictype/category-none-tests: Likewise.
43876         * modules/unictype/category-of-tests: Likewise.
43877         * modules/unictype/category-or-tests: Likewise.
43878         * modules/unictype/category-test-withtable-tests: Likewise.
43879         * modules/unictype/combining-class-tests: Likewise.
43880         * modules/unictype/ctype-alnum-tests: Likewise.
43881         * modules/unictype/ctype-alpha-tests: Likewise.
43882         * modules/unictype/ctype-blank-tests: Likewise.
43883         * modules/unictype/ctype-cntrl-tests: Likewise.
43884         * modules/unictype/ctype-digit-tests: Likewise.
43885         * modules/unictype/ctype-graph-tests: Likewise.
43886         * modules/unictype/ctype-lower-tests: Likewise.
43887         * modules/unictype/ctype-print-tests: Likewise.
43888         * modules/unictype/ctype-punct-tests: Likewise.
43889         * modules/unictype/ctype-space-tests: Likewise.
43890         * modules/unictype/ctype-upper-tests: Likewise.
43891         * modules/unictype/ctype-xdigit-tests: Likewise.
43892         * modules/unictype/decimal-digit-tests: Likewise.
43893         * modules/unictype/digit-tests: Likewise.
43894         * modules/unictype/mirror-tests: Likewise.
43895         * modules/unictype/numeric-tests: Likewise.
43896         * modules/unictype/property-alphabetic-tests: Likewise.
43897         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
43898         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
43899         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
43900         * modules/unictype/property-bidi-block-separator-tests: Likewise.
43901         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
43902         * modules/unictype/property-bidi-common-separator-tests: Likewise.
43903         * modules/unictype/property-bidi-control-tests: Likewise.
43904         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
43905         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
43906         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
43907         * modules/unictype/property-bidi-european-digit-tests: Likewise.
43908         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
43909         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
43910         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
43911         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
43912         * modules/unictype/property-bidi-pdf-tests: Likewise.
43913         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
43914         * modules/unictype/property-bidi-whitespace-tests: Likewise.
43915         * modules/unictype/property-byname-tests: Likewise.
43916         * modules/unictype/property-combining-tests: Likewise.
43917         * modules/unictype/property-composite-tests: Likewise.
43918         * modules/unictype/property-currency-symbol-tests: Likewise.
43919         * modules/unictype/property-dash-tests: Likewise.
43920         * modules/unictype/property-decimal-digit-tests: Likewise.
43921         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
43922         * modules/unictype/property-deprecated-tests: Likewise.
43923         * modules/unictype/property-diacritic-tests: Likewise.
43924         * modules/unictype/property-extender-tests: Likewise.
43925         * modules/unictype/property-format-control-tests: Likewise.
43926         * modules/unictype/property-grapheme-base-tests: Likewise.
43927         * modules/unictype/property-grapheme-extend-tests: Likewise.
43928         * modules/unictype/property-grapheme-link-tests: Likewise.
43929         * modules/unictype/property-hex-digit-tests: Likewise.
43930         * modules/unictype/property-hyphen-tests: Likewise.
43931         * modules/unictype/property-id-continue-tests: Likewise.
43932         * modules/unictype/property-id-start-tests: Likewise.
43933         * modules/unictype/property-ideographic-tests: Likewise.
43934         * modules/unictype/property-ids-binary-operator-tests: Likewise.
43935         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
43936         * modules/unictype/property-ignorable-control-tests: Likewise.
43937         * modules/unictype/property-iso-control-tests: Likewise.
43938         * modules/unictype/property-join-control-tests: Likewise.
43939         * modules/unictype/property-left-of-pair-tests: Likewise.
43940         * modules/unictype/property-line-separator-tests: Likewise.
43941         * modules/unictype/property-logical-order-exception-tests: Likewise.
43942         * modules/unictype/property-lowercase-tests: Likewise.
43943         * modules/unictype/property-math-tests: Likewise.
43944         * modules/unictype/property-non-break-tests: Likewise.
43945         * modules/unictype/property-not-a-character-tests: Likewise.
43946         * modules/unictype/property-numeric-tests: Likewise.
43947         * modules/unictype/property-other-alphabetic-tests: Likewise.
43948         * modules/unictype/property-other-default-ignorable-code-point-tests:
43949         Likewise.
43950         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
43951         * modules/unictype/property-other-id-continue-tests: Likewise.
43952         * modules/unictype/property-other-id-start-tests: Likewise.
43953         * modules/unictype/property-other-lowercase-tests: Likewise.
43954         * modules/unictype/property-other-math-tests: Likewise.
43955         * modules/unictype/property-other-uppercase-tests: Likewise.
43956         * modules/unictype/property-paired-punctuation-tests: Likewise.
43957         * modules/unictype/property-paragraph-separator-tests: Likewise.
43958         * modules/unictype/property-pattern-syntax-tests: Likewise.
43959         * modules/unictype/property-pattern-white-space-tests: Likewise.
43960         * modules/unictype/property-private-use-tests: Likewise.
43961         * modules/unictype/property-punctuation-tests: Likewise.
43962         * modules/unictype/property-quotation-mark-tests: Likewise.
43963         * modules/unictype/property-radical-tests: Likewise.
43964         * modules/unictype/property-sentence-terminal-tests: Likewise.
43965         * modules/unictype/property-soft-dotted-tests: Likewise.
43966         * modules/unictype/property-space-tests: Likewise.
43967         * modules/unictype/property-terminal-punctuation-tests: Likewise.
43968         * modules/unictype/property-test-tests: Likewise.
43969         * modules/unictype/property-titlecase-tests: Likewise.
43970         * modules/unictype/property-unassigned-code-value-tests: Likewise.
43971         * modules/unictype/property-unified-ideograph-tests: Likewise.
43972         * modules/unictype/property-uppercase-tests: Likewise.
43973         * modules/unictype/property-variation-selector-tests: Likewise.
43974         * modules/unictype/property-white-space-tests: Likewise.
43975         * modules/unictype/property-xid-continue-tests: Likewise.
43976         * modules/unictype/property-xid-start-tests: Likewise.
43977         * modules/unictype/property-zero-width-tests: Likewise.
43978         * modules/unictype/scripts-tests: Likewise.
43979         * modules/unictype/syntax-c-ident-tests: Likewise.
43980         * modules/unictype/syntax-c-whitespace-tests: Likewise.
43981         * modules/unictype/syntax-java-ident-tests: Likewise.
43982         * modules/unictype/syntax-java-whitespace-tests: Likewise.
43983         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
43984         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
43985         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
43986         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
43987         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
43988         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
43989         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
43990         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
43991         * modules/uniname/uniname-tests: Likewise.
43992         * modules/uninorm/canonical-decomposition-tests: Likewise.
43993         * modules/uninorm/compat-decomposition-tests: Likewise.
43994         * modules/uninorm/composition-tests: Likewise.
43995         * modules/uninorm/decomposing-form-tests: Likewise.
43996         * modules/uninorm/decomposition-tests: Likewise.
43997         * modules/uninorm/filter-tests: Likewise.
43998         * modules/uninorm/nfc-tests: Likewise.
43999         * modules/uninorm/nfd-tests: Likewise.
44000         * modules/uninorm/nfkc-tests: Likewise.
44001         * modules/uninorm/nfkd-tests: Likewise.
44002         * modules/uninorm/u8-normcmp-tests: Likewise.
44003         * modules/uninorm/u8-normcoll-tests: Likewise.
44004         * modules/uninorm/u16-normcmp-tests: Likewise.
44005         * modules/uninorm/u16-normcoll-tests: Likewise.
44006         * modules/uninorm/u32-normcmp-tests: Likewise.
44007         * modules/uninorm/u32-normcoll-tests: Likewise.
44008         * modules/unistdio/u8-asnprintf-tests: Likewise.
44009         * modules/unistdio/u8-vasnprintf-tests: Likewise.
44010         * modules/unistdio/u8-vasprintf-tests: Likewise.
44011         * modules/unistdio/u8-vsnprintf-tests: Likewise.
44012         * modules/unistdio/u8-vsprintf-tests: Likewise.
44013         * modules/unistdio/u16-asnprintf-tests: Likewise.
44014         * modules/unistdio/u16-vasnprintf-tests: Likewise.
44015         * modules/unistdio/u16-vasprintf-tests: Likewise.
44016         * modules/unistdio/u16-vsnprintf-tests: Likewise.
44017         * modules/unistdio/u16-vsprintf-tests: Likewise.
44018         * modules/unistdio/u32-asnprintf-tests: Likewise.
44019         * modules/unistdio/u32-vasnprintf-tests: Likewise.
44020         * modules/unistdio/u32-vasprintf-tests: Likewise.
44021         * modules/unistdio/u32-vsnprintf-tests: Likewise.
44022         * modules/unistdio/u32-vsprintf-tests: Likewise.
44023         * modules/unistdio/ulc-asnprintf-tests: Likewise.
44024         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
44025         * modules/unistdio/ulc-vasprintf-tests: Likewise.
44026         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
44027         * modules/unistdio/ulc-vsprintf-tests: Likewise.
44028         * modules/unistr/u8-check-tests: Likewise.
44029         * modules/unistr/u8-chr-tests: Likewise.
44030         * modules/unistr/u8-cmp-tests: Likewise.
44031         * modules/unistr/u8-cmp2-tests: Likewise.
44032         * modules/unistr/u8-cpy-alloc-tests: Likewise.
44033         * modules/unistr/u8-cpy-tests: Likewise.
44034         * modules/unistr/u8-mblen-tests: Likewise.
44035         * modules/unistr/u8-mbsnlen-tests: Likewise.
44036         * modules/unistr/u8-mbtouc-tests: Likewise.
44037         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
44038         * modules/unistr/u8-mbtoucr-tests: Likewise.
44039         * modules/unistr/u8-move-tests: Likewise.
44040         * modules/unistr/u8-next-tests: Likewise.
44041         * modules/unistr/u8-prev-tests: Likewise.
44042         * modules/unistr/u8-set-tests: Likewise.
44043         * modules/unistr/u8-stpcpy-tests: Likewise.
44044         * modules/unistr/u8-stpncpy-tests: Likewise.
44045         * modules/unistr/u8-strcat-tests: Likewise.
44046         * modules/unistr/u8-strcmp-tests: Likewise.
44047         * modules/unistr/u8-strcoll-tests: Likewise.
44048         * modules/unistr/u8-strcpy-tests: Likewise.
44049         * modules/unistr/u8-strdup-tests: Likewise.
44050         * modules/unistr/u8-strlen-tests: Likewise.
44051         * modules/unistr/u8-strmblen-tests: Likewise.
44052         * modules/unistr/u8-strmbtouc-tests: Likewise.
44053         * modules/unistr/u8-strncat-tests: Likewise.
44054         * modules/unistr/u8-strncmp-tests: Likewise.
44055         * modules/unistr/u8-strncpy-tests: Likewise.
44056         * modules/unistr/u8-strnlen-tests: Likewise.
44057         * modules/unistr/u8-to-u16-tests: Likewise.
44058         * modules/unistr/u8-to-u32-tests: Likewise.
44059         * modules/unistr/u8-uctomb-tests: Likewise.
44060         * modules/unistr/u16-check-tests: Likewise.
44061         * modules/unistr/u16-chr-tests: Likewise.
44062         * modules/unistr/u16-cmp-tests: Likewise.
44063         * modules/unistr/u16-cmp2-tests: Likewise.
44064         * modules/unistr/u16-cpy-alloc-tests: Likewise.
44065         * modules/unistr/u16-cpy-tests: Likewise.
44066         * modules/unistr/u16-mblen-tests: Likewise.
44067         * modules/unistr/u16-mbsnlen-tests: Likewise.
44068         * modules/unistr/u16-mbtouc-tests: Likewise.
44069         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
44070         * modules/unistr/u16-mbtoucr-tests: Likewise.
44071         * modules/unistr/u16-move-tests: Likewise.
44072         * modules/unistr/u16-next-tests: Likewise.
44073         * modules/unistr/u16-prev-tests: Likewise.
44074         * modules/unistr/u16-set-tests: Likewise.
44075         * modules/unistr/u16-stpcpy-tests: Likewise.
44076         * modules/unistr/u16-stpncpy-tests: Likewise.
44077         * modules/unistr/u16-strcat-tests: Likewise.
44078         * modules/unistr/u16-strcmp-tests: Likewise.
44079         * modules/unistr/u16-strcoll-tests: Likewise.
44080         * modules/unistr/u16-strcpy-tests: Likewise.
44081         * modules/unistr/u16-strdup-tests: Likewise.
44082         * modules/unistr/u16-strlen-tests: Likewise.
44083         * modules/unistr/u16-strmblen-tests: Likewise.
44084         * modules/unistr/u16-strmbtouc-tests: Likewise.
44085         * modules/unistr/u16-strncat-tests: Likewise.
44086         * modules/unistr/u16-strncmp-tests: Likewise.
44087         * modules/unistr/u16-strncpy-tests: Likewise.
44088         * modules/unistr/u16-strnlen-tests: Likewise.
44089         * modules/unistr/u16-to-u32-tests: Likewise.
44090         * modules/unistr/u16-to-u8-tests: Likewise.
44091         * modules/unistr/u16-uctomb-tests: Likewise.
44092         * modules/unistr/u32-check-tests: Likewise.
44093         * modules/unistr/u32-chr-tests: Likewise.
44094         * modules/unistr/u32-cmp-tests: Likewise.
44095         * modules/unistr/u32-cmp2-tests: Likewise.
44096         * modules/unistr/u32-cpy-alloc-tests: Likewise.
44097         * modules/unistr/u32-cpy-tests: Likewise.
44098         * modules/unistr/u32-mblen-tests: Likewise.
44099         * modules/unistr/u32-mbsnlen-tests: Likewise.
44100         * modules/unistr/u32-mbtouc-tests: Likewise.
44101         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
44102         * modules/unistr/u32-mbtoucr-tests: Likewise.
44103         * modules/unistr/u32-move-tests: Likewise.
44104         * modules/unistr/u32-next-tests: Likewise.
44105         * modules/unistr/u32-prev-tests: Likewise.
44106         * modules/unistr/u32-set-tests: Likewise.
44107         * modules/unistr/u32-stpcpy-tests: Likewise.
44108         * modules/unistr/u32-stpncpy-tests: Likewise.
44109         * modules/unistr/u32-strcat-tests: Likewise.
44110         * modules/unistr/u32-strcmp-tests: Likewise.
44111         * modules/unistr/u32-strcoll-tests: Likewise.
44112         * modules/unistr/u32-strcpy-tests: Likewise.
44113         * modules/unistr/u32-strdup-tests: Likewise.
44114         * modules/unistr/u32-strlen-tests: Likewise.
44115         * modules/unistr/u32-strmblen-tests: Likewise.
44116         * modules/unistr/u32-strmbtouc-tests: Likewise.
44117         * modules/unistr/u32-strncat-tests: Likewise.
44118         * modules/unistr/u32-strncmp-tests: Likewise.
44119         * modules/unistr/u32-strncpy-tests: Likewise.
44120         * modules/unistr/u32-strnlen-tests: Likewise.
44121         * modules/unistr/u32-to-u16-tests: Likewise.
44122         * modules/unistr/u32-to-u8-tests: Likewise.
44123         * modules/unistr/u32-uctomb-tests: Likewise.
44124         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
44125         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
44126         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
44127         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
44128         * modules/uniwidth/u8-strwidth-tests: Likewise.
44129         * modules/uniwidth/u8-width-tests: Likewise.
44130         * modules/uniwidth/u16-strwidth-tests: Likewise.
44131         * modules/uniwidth/u16-width-tests: Likewise.
44132         * modules/uniwidth/u32-strwidth-tests: Likewise.
44133         * modules/uniwidth/u32-width-tests: Likewise.
44134         * modules/uniwidth/width-tests: Likewise.
44136 2010-05-18  Richard Jones  <rjones@redhat.com>
44138         doc: users.txt: list hivex
44139         * users.txt: Add hivex.
44141 2010-05-18  Richard Jones  <rjones@redhat.com>
44143         doc: users.txt: list febootstrap
44144         * users.txt: Add febootstrap.
44146 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
44148         bootstrap: fix an error when gnulib is not used as a git submodule
44149         * build-aux/bootstrap (gnulib_path): If its length is zero then
44150         assign "gnulib" to it.
44151         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
44153 2010-05-16  Bruno Haible  <bruno@clisp.org>
44155         Avoid autoconf warnings about AM_ICONV.
44156         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
44157         2.64.
44159 2010-05-16  Bruno Haible  <bruno@clisp.org>
44161         absolute-header: Make the macro usable in more situations.
44162         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
44163         from gl_ABSOLUTE_HEADER.
44164         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
44166 2010-05-16  James Youngman  <jay@gnu.org>
44168         doc: update users.txt
44169         * users.txt: Add CSSC.
44171 2010-05-16  Jim Meyering  <meyering@redhat.com>
44173         init.sh: fix an error in the previous change; add more comments
44174         * tests/init.sh: Compare exit code in loop against 9, not 2.
44175         Patch by Bruno Haible.
44176         Make the two tests more similar by adding an empty "then" clause.
44177         Add comments.
44179         init.sh: avoid unnecessary shell re-exec
44180         * tests/init.sh: Improve the re-exec-required check to first test the
44181         current shell.  If it passes the test, do not search for a shell that
44182         does pass, and do not re-exec.  This test is particularly contorted to
44183         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
44184         of $(...) evokes a syntax error and causes immediate shell exit with
44185         status 2.  Bruno Haible reported that the re-exec made it impossible
44186         to single-step through any init.sh-using script.
44188 2010-05-16  Bruno Haible  <bruno@clisp.org>
44190         Fix collision between gnulib's and libintl's printf replacements.
44191         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
44192         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
44193         (printf): When using GNU C, map the __printf__ function to rpl_printf
44194         via __asm__. When not using GNU C, define rpl_printf instead of
44195         __printf__.
44196         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
44197         commit.
44198         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
44199         commit.
44200         * m4/asm-underscore.m4: New file.
44201         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
44202         * modules/stdio (Files): Add m4/asm-underscore.m4.
44203         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
44204         Reported by Ben Pfaff.
44206 2010-05-16  Bruno Haible  <bruno@clisp.org>
44208         verify: Avoid skipping the test on openSUSE 11.0.
44209         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
44211 2010-05-13  Bruno Haible  <bruno@clisp.org>
44213         Avoid useless warnings from G++.
44214         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
44215         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
44216         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
44218 2010-05-11  Jim Meyering  <meyering@redhat.com>
44220         maint.mk: tweak preceding change
44221         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
44222         regexps tighter by anchoring at EOL, and make the new group "shy"
44223         for slightly decreased overhead.
44225 2010-05-11  Eric Blake  <eblake@redhat.com>
44227         maint.mk: gnulib doesn't guarantee NSIG
44228         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
44230 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
44232         test-pwrite.c: Remove unused variable declaration.
44233         * tests/test-pwrite.c (main): Remove read_buf declaration.
44235         Remove useless test-pwrite.sh file.
44236         * tests/test-pwrite.sh: Delete file.
44237         * modules/pwrite-tests: Remove references.
44238         Reported by Bruno Haible.
44240 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
44242         init.sh: fix a typo
44243         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
44245 2010-05-10  Jim Meyering  <meyering@redhat.com>
44247         maint.mk: avoid using a temporary file in the always-defined-macros check
44248         * top/maint.mk (.re-defmac): Remove rule.
44249         (gl_trap_): Remove definition.
44250         (sc_prohibit_always-defined_macros): Rewrite not to create and
44251         depend on a temporary file.  Instead, depend on GNU grep's ability
44252         to read a list of regular expressions from stdin when given "-f -".
44254 2010-05-09  Bruno Haible  <bruno@clisp.org>
44256         Update to GNU gettext 0.18, part 1.
44257         * m4/gettext.m4: Update to GNU gettext 0.18.
44258         * m4/intl.m4: Likewise.
44259         * m4/po.m4: Likewise.
44260         * modules/gettext (Files): Add m4/fcntl-o.m4.
44261         (configure.ac): Require gettext infrastructure from version 0.18.
44263 2010-05-09  Jim Meyering  <meyering@redhat.com>
44265         init.sh: enable MALLOC_PERTURB_
44266         * tests/init.sh: Enable glibc's malloc-perturbing option.
44268         maint.mk: improve sc_cross_check_PATH_usage_in_tests
44269         With my recent change in init.sh from the two-line form:
44270             -#   : ${srcdir=.}
44271             -#   . "$srcdir/init.sh"; path_prepend_ .
44272             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
44273         I noticed that using the one-line form would cause this test
44274         to fail with a false-positive, or to stop working altogether,
44275         depending on whether help-version changed or all the tests did.
44276         * top/maint.mk (_hv_regex): Remove this definition.
44277         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
44278         (_hv_regex_strong): Use a stronger regex to check for conformance.
44279         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
44280         Give a separate diagnostic for lack of conforming use.
44282         maint.mk: prohibit definition of symbols defined by gnulib
44283         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
44284         definition of symbols defined by gnulib.
44286 2010-05-09  Bruno Haible  <bruno@clisp.org>
44288         acl: Avoid test failure on Cygwin-hosted mingw.
44289         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
44291 2010-05-09  Bruno Haible  <bruno@clisp.org>
44293         error: Use system's fcntl function.
44294         * lib/error.c (fcntl): Undefine.
44296 2010-05-09  Jim Meyering  <meyering@redhat.com>
44298         verify: adjust formatting to be more consistent
44299         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
44300         argument-list '('s, and after one comma.
44302 2010-05-09  Bruno Haible  <bruno@clisp.org>
44304         error: More reliable output on mingw.
44305         * lib/error.c: Include <windows.h>.
44306         (is_open): New function.
44307         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
44308         defined.
44310 2010-05-09  Bruno Haible  <bruno@clisp.org>
44312         vasnprintf: Fix syntax errors in libintl build on mingw.
44313         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
44314         pad_ourselves and prec_ourselves after use.
44316 2010-05-08  Bruno Haible  <bruno@clisp.org>
44318         * lib/config.charset: Update comments for Cygwin 1.7.
44319         * lib/localcharset.c: Likewise.
44321 2010-05-07  Jim Meyering  <meyering@redhat.com>
44323         init.sh: improve comments
44324         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
44325         . "${srcdir=.}/init.sh"; path_prepend_ .
44326         Add a note about path_prepend_ and the alternative of using
44327         TESTS_ENVIRONMENT.
44329 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44331         exclude: Unescape hashed patterns in wildcard mode.
44332         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
44333         to the hash list.
44334         * tests/test-exclude8.sh: New test case.
44335         * modules/exclude-tests: Add new test.
44337 2010-05-05  Eric Blake  <eblake@redhat.com>
44339         verify: automate tests
44340         * modules/verify-tests: New module.
44341         * tests/test-verify.sh: New file.
44342         * tests/test-verify.c: Guard each negative test with a unique id.
44343         Also avoid warning about unused left hand of comma expressions.
44345 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
44347         Further improvements to verify.h, suggested by Eric Blake.
44348         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
44349         the GL_* versions, to avoid collision with OpenGL.
44350         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
44351         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
44352         than testing merely whether it's defined.
44354         Modify verify.h to pacify gcc -Wredundant_decls.
44355         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
44356         These use the prefix "GL_" since they're likely to be useful elsewhere.
44357         We may need to break them out into a different .h file.
44358         (__COUNTER__): Define to 0 if the compiler doesn't support it.
44359         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
44360         of verify_function__.
44362 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
44364         Tests for module pwrite.
44365         * modules/pwrite-tests: New file.
44366         * tests/test-pwrite.sh: New file.
44367         * tests/test-pwrite.c: New file.
44369         New module pwrite.
44370         * lib/unistd.in.h (pwrite): New declaration.
44371         * lib/pwrite.c: New file, from glibc with modifications.
44372         * m4/pwrite.m4: New file.
44373         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
44374         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
44375         REPLACE_PWRITE.
44376         * modules/pwrite: New file.
44377         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
44378         REPLACE_PWRITE.
44379         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
44380         * doc/posix-functions/pwrite.texi: Mention the new module.
44382 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
44384         pread: Update documentation.
44385         * doc/posix-functions/pread.texi: Mention the 'pread' module.
44387 2010-05-04  Eric Blake  <eblake@redhat.com>
44389         docs: update cygwin progress
44390         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
44391         this bug.
44392         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
44393         Added in cygwin 1.7.2.
44394         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
44395         Likewise.
44396         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
44397         Likewise.
44398         * doc/glibc-functions/dup3.texi (dup3): Likewise.
44399         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
44400         * doc/glibc-functions/accept4.texi (accept4): Likewise.
44401         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
44402         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
44403         Mention nproc module.
44404         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
44405         bug in cygwin 1.7.5 addition.
44406         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
44407         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
44408         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
44409         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
44410         1.7.5.
44411         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
44412         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
44413         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
44414         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
44415         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
44416         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
44417         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
44418         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
44419         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
44420         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
44421         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
44422         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
44423         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
44424         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
44425         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
44426         Likewise.
44427         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
44428         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
44429         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
44430         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
44431         Likewise.
44432         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
44433         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
44434         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
44435         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
44436         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
44437         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
44438         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
44439         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
44440         Likewise.
44441         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
44442         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
44443         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
44444         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
44445         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
44446         Likewise.
44447         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
44448         Likewise.
44449         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
44450         Likewise.
44451         * doc/glibc-functions/xdrrec_endofrecord.texi
44452         (xdrrec_endofrecord): Likewise.
44453         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
44454         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
44455         Likewise.
44456         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
44457         Likewise.
44459 2010-05-04  Jim Meyering  <meyering@redhat.com>
44461         gendocs.sh: make its "-s FILE" option more useful
44462         * build-aux/gendocs.sh: When honoring the -s FILE option, update
44463         $PACKAGE to reflect the probably-different basename of "FILE".
44465 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44467         bootstrap: don't ignore download_po_files failure
44468         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
44469         failure.
44471 2010-05-03  Jim Meyering  <meyering@redhat.com>
44473         maint.mk: allow to pass options to gendocs.sh
44474         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
44475         (gendocs_options_): New overridable variable.
44477         gnu-web-doc-update: don't ignore configure or build failure
44478         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
44480         announce-gen: backslash-escape '@'s in --help output
44481         * build-aux/announce-gen: Fix syntax errors.
44483         maint.mk, announce-gen: allow project-specific announcement mail headers
44484         * top/maint.mk (translation_project_): Define default.
44485         (announcement_Cc_, announcement_mail_headers_): Likewise.
44486         (announcement): Invoke announce-gen with new --mail-headers option.
44487         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
44489         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
44490         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
44491         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
44492         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
44493         line in the "err2" output file when running "make check" in verbose
44494         mode (i.e., with set -x enabled).
44496 2010-05-03  Bruno Haible  <bruno@clisp.org>
44498         wctob: Fix for weird platforms.
44499         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
44500         argument value.
44502 2010-05-03  Jim Meyering  <meyering@redhat.com>
44504         maint.mk: prohibit unwarranted use of <strings.h>
44505         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
44506         strings.h in a file that does not also use strcasecmp, strncasecmp,
44507         ffs or ffsll.
44509         maint.mk: remove obsolete comments
44510         * top/maint.mk: Remove stale, commented-out rules.
44512 2010-05-02  Bruno Haible  <bruno@clisp.org>
44514         wcwidth: Declare also when it's aliased.
44515         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
44516         macro.
44518 2010-05-02  Bruno Haible  <bruno@clisp.org>
44520         Fix regression from 2010-04-25.
44521         * gnulib-tool (func_modules_transitive_closure): Check the status of
44522         all modules, not only of the tests that are of the form foo-tests where
44523         foo is a module.
44525 2010-05-02  Bruno Haible  <bruno@clisp.org>
44527         wctob: Work around nasty Cygwin 1.7.2 bug.
44528         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
44529         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
44531 2010-05-01  Bruno Haible  <bruno@clisp.org>
44533         fpurge: Sharper test.
44534         * tests/test-fpurge.c (main): Add one more ftell check.
44535         * modules/fpurge-tests (Depends-on): Add ftell.
44536         Suggested by Eric Blake.
44538 2010-05-01  Bruno Haible  <bruno@clisp.org>
44540         ftello: Another test.
44541         * tests/test-ftello3.c: New file.
44542         * modules/ftello-tests (Files): Add it.
44543         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
44544         MOSTLYCLEANFILES.
44546         ftell: Another test.
44547         * tests/test-ftell3.c: New file.
44548         * modules/ftell-tests (Files): Add it.
44549         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
44550         MOSTLYCLEANFILES.
44552 2010-05-01  Bruno Haible  <bruno@clisp.org>
44554         ftell, ftello: Work around Solaris bug.
44555         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
44556         * lib/ftello.c: Include stdio-impl.h.
44557         (ftello): On Solaris, when _IOWRT is set, compute the result without
44558         looking at _IOREAD.
44559         * modules/ftello (Files): Add lib/stdio-impl.h.
44560         * doc/posix-functions/ftell.texi: Mention Solaris bug.
44561         * doc/posix-functions/ftello.texi: Likewise.
44562         Reported by Eric Blake.
44564 2010-05-01  Bruno Haible  <bruno@clisp.org>
44566         freading: Adapt to special meaning of _IOREAD flag on Solaris.
44567         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
44568         the _IOWRT flag is also set.
44570 2010-05-01  Bruno Haible  <bruno@clisp.org>
44572         Fix doc about a HP-UX stdio bug.
44573         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
44574         * doc/posix-functions/ftello.texi: Likewise.
44576 2010-05-01  Bruno Haible  <bruno@clisp.org>
44578         lseek test: Fix failure on Solaris.
44579         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
44580         output.
44582 2010-04-30  Jim Meyering  <meyering@redhat.com>
44584         bootstrap: don't ignore failure to generate po*/Makevars
44585         * build-aux/bootstrap (with_gettext): Don't ignore failure
44586         to create po/Makevars or runtime-po/Makevars.
44588 2010-04-29  Eric Blake  <eblake@redhat.com>
44590         headers: relax license to LGPLv2+
44591         * modules/fcntl-h (License): Relax license.
44592         * modules/getopt-posix (License): Likewise.
44593         * modules/locale (License): Likewise.
44594         * modules/math (License): Likewise.
44595         * modules/pty (License): Likewise.
44596         * modules/sched (License): Likewise.
44597         * modules/search (License): Likewise.
44598         * modules/spawn (License): Likewise.
44599         * modules/stdarg (License): Likewise.
44600         * modules/sysexits (License): Likewise.
44602 2010-04-29  Jim Meyering  <meyering@redhat.com>
44604         inttypes: relax license to LGPLv2+
44605         * modules/inttypes (License): Relax license.
44607 2010-04-29  Simon Josefsson  <simon@josefsson.org>
44609         * top/maint.mk (indent): Run twice to produce idempotent results.
44611 2010-04-28  Bruno Haible  <bruno@clisp.org>
44613         getdate: Generate getdate.c in the source directory.
44614         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
44615         MOSTLYCLEANFILES.
44616         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
44618 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
44620         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
44621         is not declared as a const *; avoid warnings in that case.
44623 2010-04-28  Eric Blake  <eblake@redhat.com>
44625         canonicalize-lgpl: avoid compiler warning
44626         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
44627         declaration' / 'extraneous semicolon' warning with some compilers.
44628         Reported by Andreas Gruenbacher.
44630 2010-04-28  Jim Meyering  <meyering@redhat.com>
44632         init.sh: ensure a more reliable exit status when exiting via trap
44633         * tests/init.sh (setup_): Don't rely on $? in signal handler.
44634         Inspired by patches from Dmitry V. Levin.
44635         Also trap on signal 3 (SIGQUIT).
44637 2010-04-27  Bruno Haible  <bruno@clisp.org>
44639         Update doc about utimes().
44640         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
44641         'utimens' module.
44642         Reported by Andreas Gruenbacher <agruen@suse.de>.
44644 2010-04-27  Eric Blake  <eblake@redhat.com>
44646         full-read, full-write: relax license
44647         * modules/full-read (License): Drop to LGPLv2+.
44648         * modules/full-write (License): Likewise.
44649         * modules/safe-read (License): Likewise.
44650         * modules/safe-write (License): Likewise.
44652         pthread: mention library for linking
44653         * modules/pthread (Link): Mention $(LIB_PTHREAD).
44655 2010-04-27  Jim Meyering  <meyering@redhat.com>
44657         maint.mk: fix a bug introduced in last change
44658         * top/maint.mk (gl_assured_headers_): Now that all names are on
44659         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
44660         is not anchored to end of word, it should be adequate.
44662         maint.mk: avoid side-effect in latest syntax-check
44663         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
44664         to run commands via $(shell...), and hence to incur cost only when
44665         the new rule is actually run.
44667         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
44668         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
44669         and use that to create a regexp used to detect all #if HAVE_..._H uses.
44670         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
44671         (gl_assured_headers_, az_, AZ_): Define.
44672         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
44674 2010-04-26  Jim Meyering  <jim@meyering.net>
44675             Bruno Haible  <bruno@clisp.org>
44677         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
44678         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
44679         Prompted by an exchange with Gilles Espinasse.
44681 2010-04-26  Jim Meyering  <meyering@redhat.com>
44683         git-version-gen: aesthetic tweak
44684         * build-aux/git-version-gen: Use "$nl" rather than a literal,
44685         so that the command remains on a single line.
44687 2010-04-26  Eric Blake  <eblake@redhat.com>
44689         git-version-gen: allow use on EBCDIC hosts
44690         * build-aux/git-version-gen (dirty): Use literal rather than tying
44691         ourselves to ascii.
44692         Reported by Steve Goetze.
44694 2010-04-25  Bruno Haible  <bruno@clisp.org>
44696         netdb: Add support for GNULIB_POSIXCHECK.
44697         * lib/netdb.in.h: Include warn-on-use.h.
44698         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
44699         functions are used when GNULIB_POSIXCHECK is defined and the
44700         getaddrinfo module is not in use.
44701         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
44702         freeaddrinfo, gai_strerror, getnameinfo are declared.
44703         * modules/netdb (Depends-on): Add warn-on-use.
44704         (Makefile.am): Include warn-on-use.h in netdb.h.
44706 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
44708         build: avoid "make check" failure without .git/ directory
44709         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
44710         there is no .git/ directory.
44712 2010-04-25  Bruno Haible  <bruno@clisp.org>
44714         ptsname: Fix misuse of ttyname_r.
44715         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
44716         of errno.
44718 2010-04-25  Bruno Haible  <bruno@clisp.org>
44720         ttyname_r: Make it work on Solaris 10.
44721         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
44722         if the system function has the POSIX declaration. Test whether the
44723         function fails if the buffer is less than 128 bytes large.
44724         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
44725         system's ttyname_r function. Provide a reasonably large buffer.
44726         * modules/ttyname_r (Depends-on): Add extensions.
44727         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
44729 2010-04-25  Bruno Haible  <bruno@clisp.org>
44731         Use the 'extensions' module for some more functions on Solaris.
44732         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
44733         module.
44734         * doc/posix-functions/ctime_r.texi: Likewise.
44735         * doc/posix-functions/getgrgid_r.texi: Likewise.
44736         * doc/posix-functions/getgrnam_r.texi: Likewise.
44737         * doc/posix-functions/getpwnam_r.texi: Likewise.
44738         * doc/posix-functions/getpwuid_r.texi: Likewise.
44739         * doc/posix-functions/readdir_r.texi: Likewise.
44740         * doc/posix-functions/sigwait.texi: Likewise.
44741         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
44742         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
44744 2010-04-25  Bruno Haible  <bruno@clisp.org>
44746         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
44747         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
44748         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
44749         * lib/ttyname_r.c: Include <limits.h>.
44750         (ttyname_r): Define using the system's ttyname_r function, if it exists
44751         and not on Solaris.
44752         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
44753         set.
44754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
44755         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
44756         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
44757         Reported by Simon Josefsson.
44759 2010-04-25  Bruno Haible  <bruno@clisp.org>
44761         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
44762         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
44763         * doc/posix-functions/ctime_r.texi: Likewise.
44764         * doc/posix-functions/getgrgid_r.texi: Likewise.
44765         * doc/posix-functions/getgrnam_r.texi: Likewise.
44766         * doc/posix-functions/getlogin_r.texi: Likewise.
44767         * doc/posix-functions/getpwnam_r.texi: Likewise.
44768         * doc/posix-functions/getpwuid_r.texi: Likewise.
44769         * doc/posix-functions/readdir_r.texi: Likewise.
44770         * doc/posix-functions/sigwait.texi: Likewise.
44771         * doc/posix-functions/ttyname_r.texi: Likewise.
44772         Reported by Simon Josefsson.
44774 2010-04-25  Bruno Haible  <bruno@clisp.org>
44776         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
44777         * gnulib-tool (func_usage): Document that --with-*-tests options apply
44778         also to --create-testdir.
44779         (func_acceptable): Don't consider the status of *-tests modules here.
44780         (func_modules_transitive_closure): Consider it here, before including a
44781         test module.
44782         (func_import, func_create_testdir): Set inc_all_direct_tests,
44783         inc_all_indirect_tests.
44784         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
44785         --create-testdir and --create-megatestdir.
44787 2010-04-25  Bruno Haible  <bruno@clisp.org>
44789         gnulib-tool: Add --without-*-tests options.
44790         * gnulib-tool (func_usage): Document the --without-*-tests options.
44791         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
44792         excl_unportable_tests): New variables.
44793         Fail if they are specified with --import or --update.
44794         (func_acceptable): Respect the excl_*_tests variables.
44795         (func_import): Set the excl_*_tests variables to empty.
44797 2010-04-25  Simon Josefsson  <simon@josefsson.org>
44798             Bruno Haible  <bruno@clisp.org>
44800         Work around a MacOS X 10.4 bug with openpty.
44801         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
44802         * tests/test-openpty.c (main): Close the master side explicitly.
44804 2010-04-25  Bruno Haible  <bruno@clisp.org>
44806         strnlen: Fix a C++ test error on MacOS X and Solaris.
44807         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
44808         the function is not declared.
44809         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
44810         Simon Josefsson.
44812 2010-04-24  Bruno Haible  <bruno@clisp.org>
44814         Avoid a gcc warning.
44815         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
44816         of correct type for %08lx directive.
44817         Reported by Eric Blake.
44819 2010-04-24  Bruno Haible  <bruno@clisp.org>
44821         vasnprintf: Correct errno value in case of out-of-memory.
44822         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
44823         or sprintf. Use the errno value from SNPRINTF or sprintf.
44824         Reported by Ian Beckwith <ianb@erislabs.net>.
44826 2010-04-24  Bruno Haible  <bruno@clisp.org>
44828         ansi-c++-opt: Find correct compiler when cross-compiling.
44829         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
44830         AC_CHECK_PROGS.
44831         Reported by Simon Josefsson.
44833 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
44835         vc-list-files: Add support for subversion
44836         * build-aux/vc-list-files: Use "svn list" to generate the list of
44837         files controlled by subversion.
44839 2010-04-23  Jim Meyering  <meyering@redhat.com>
44841         vc-list-files tests: convert to use init.sh
44842         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
44843         path_prepend_.
44844         Use Exit, not exit.
44845         Use skip_ rather than open coding it.
44846         Remove trap set-up and compare definitions.
44847         * tests/test-vc-list-files-git.sh: Likewise.
44848         * modules/vc-list-files-tests (Files): Add tests/init.sh.
44850 2010-04-22  Simon Josefsson  <simon@josefsson.org>
44852         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
44853         backup files.
44855 2010-04-21  Simon Josefsson  <simon@josefsson.org>
44857         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
44859 2010-04-20  Eric Blake  <eblake@redhat.com>
44861         tests: be robust to ignored SIGPIPE
44862         * tests/test-select-in.sh: Consume all output.
44863         * tests/test-lseek.sh: Check correct exit status, while avoiding
44864         EPIPE.
44866 2010-04-20  Simon Josefsson  <simon@josefsson.org>
44867             Bruno Haible  <bruno@clisp.org>
44869         visibility: Don't use -fvisibility if it leads to a warning.
44870         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
44871         yes, don't pretend that visibility works if it leads to a warning.
44872         Reported by Mike Gran <spk121@yahoo.com>.
44874 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
44876         * build-aux/bootstrap: Use "git -h" for testing for supported options
44877         instead of "git --help".  The short-form option only shows a summary,
44878         and doesn't layout the full man page.  Grep for the full option name
44879         in the summary, too.
44881 2010-04-19  Bruno Haible  <bruno@clisp.org>
44883         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
44884         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
44885         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
44886         mention of RELOCATABLE_STRIP.
44887         Reported by Sylvain Beucler <beuc@beuc.net>.
44889 2010-04-19  Bruno Haible  <bruno@clisp.org>
44891         * lib/diffseq.h: Fix typo in comment.
44892         Reported by Eric Blake.
44894 2010-04-19  Bruno Haible  <bruno@clisp.org>
44896         ioctl: Move autoconf macro to a .m4 file.
44897         * m4/ioctl.m4: New file, extracted from modules/ioctl.
44898         * modules/ioctl (Files): Add it.
44899         (configure.ac): Simply invoke gl_FUNC_IOCTL.
44900         Reported by Ian Beckwith <ianb@erislabs.net>.
44902 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
44903             Bruno Haible  <bruno@clisp.org>
44905         diffseq: Accommodate use-case with abstract arrays.
44906         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
44907         is not defined.
44908         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
44909         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
44911 2010-04-18  Bruno Haible  <bruno@clisp.org>
44913         * doc/posix-headers/stdbool.texi: More precise wording.
44915 2010-04-17  Jim Meyering  <meyering@redhat.com>
44917         maint.mk: use gnu-style indentation in an embedded perl script
44918         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
44919         Rename variable: s/two/last_two_bytes/
44921 2010-04-16  Eric Blake  <eblake@redhat.com>
44923         test-stdbool: skip test that fails with Solaris CC
44924         * tests/test-stdbool.c (f): Skip test that causes compilation
44925         error under buggy C++ compiler.
44926         * lib/stdbool.in.h: Document the limitation.
44927         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
44929         setenv: allow compilation with C++
44930         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
44931         register keyword.
44933         stdint: allow test to pass with C++
44934         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
44936         getopt: allow compilation with C++
44937         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
44938         struct.
44939         * lib/getopt.c (_getopt_internal_r): Use correct type.
44940         Reported by Dagobert Michelson, via Joel E. Denny.
44942 2010-04-16  Bruno Haible  <bruno@clisp.org>
44944         Override netdb.h always.
44945         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
44946         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
44947         Reported by Ludovic Courtès <ludo@gnu.org>.
44949 2010-04-15  Bruno Haible  <bruno@clisp.org>
44951         openpty: Fix mistake from 2010-03-21.
44952         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
44953         Reported by Simon Josefsson.
44955 2010-04-15  Eric Blake  <eblake@redhat.com>
44957         test-forkpty: fix expected signature
44958         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
44959         Reported by Simon Josefsson.
44961 2010-04-15  Jim Meyering  <meyering@redhat.com>
44963         maint.mk: texinfo_suffix_re_: correct the default regexp
44964         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
44966         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
44967         make it configurable via texinfo_suffix_re_.
44969 2010-04-14  Eric Blake  <eblake@redhat.com>
44971         strtok_r: relax license to LGPLv2+
44972         * modules/strtok_r (License): Relax license.
44973         Reported by Matthias Bolte.
44975 2010-04-14  Simon Josefsson  <simon@josefsson.org>
44977         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
44978         version 1.4.4 by default instead of requiring the libgcrypt
44979         version used during build.  This makes it possible to use the
44980         application with older but still binary compatible libgcrypt
44981         versions.
44983 2010-04-13  Eric Blake  <eblake@redhat.com>
44985         getopt-gnu: match recent glibc fixes and posix ruling
44986         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
44987         '+' handling, when requesting extensions.
44988         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
44989         'W;' handling.
44990         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
44991         * doc/posix-functions/getopt.texi (getopt): Document this.
44992         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
44993         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
44994         Likewise.
44996         getopt: merge bug fixes from glibc
44997         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
44998         diagnostics.  Honor '+:' correctly.  Reject ';'.
45000         getopt-posix: detect MacOS bug
45001         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
45002         optind when missing a required argument.
45003         * doc/posix-functions/getopt.texi (getopt): Document the bug.
45004         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
45005         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
45006         Likewise.
45008         getopt-posix: avoid spurious failure on Solaris
45009         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
45010         an indicator that setting optind=1 is sufficient for reset.
45012         getopt-posix: avoid spurious failure on FreeBSD
45013         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
45014         in POSIX mode, since the m4 test uses it.
45016         gnulib-tool: silence warning on BSD sh
45017         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
45019 2010-04-13  Jim Meyering  <meyering@redhat.com>
45021         doc: users.txt: GNU patch now uses gnulib
45022         * users.txt: Add patch.
45024 2010-04-12  Jim Meyering  <meyering@redhat.com>
45026         maint.mk: generate more concise timing data for syntax-check rules
45027         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
45028         " done" from each line that reports a syntax-check test duration.
45030 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
45032         git-version-gen: use "git update-index..." rather than "git status"
45033         * build-aux/git-version-gen: Use git update-index --refresh, not
45034         "git status".  With some versions of git, "git status" would fail
45035         to update the index and result in an unwarranted "-dirty" suffix.
45037 2010-04-11  Jim Meyering  <meyering@redhat.com>
45039         openat: correct formatting (no semantic change)
45040         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
45041         Suggested by Bruno Haible.
45043 2010-04-11  Bruno Haible  <bruno@clisp.org>
45045         Stricter declaration checking in testdirs.
45046         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45047         If for_tests is true, augment AM_CPPFLAGS to define
45048         GNULIB_STRICT_CHECKING.
45049         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
45050         GNULIB_STRICT_CHECKING is defined, verify that the function is
45051         declared.
45053 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
45054             Bruno Haible  <bruno@clisp.org>
45056         libunistring: Improve configure output.
45057         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
45058         Don't say "consider installing GNU libunistring" when checking again
45059         with libiconv.
45061 2010-04-11  Bruno Haible  <bruno@clisp.org>
45063         libunistring: Correct value of $LTLIBUNISTRING.
45064         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
45065         correct the value of $LTLIBUNISTRING.
45067 2010-04-11  Bruno Haible  <bruno@clisp.org>
45069         havelib: Add static libraries to LIBS in the right order.
45070         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
45071         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
45073 2010-04-11  Bruno Haible  <bruno@clisp.org>
45075         libunistring: Detect libunistring also when it depends on libiconv.
45076         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
45077         the second AC_LIB_HAVE_LINKFLAGS invocation.
45079 2010-04-11  James Youngman  <jay@gnu.org>
45081         close-stream: declare local scalars to be "const"
45082         * lib/close-stream.c (close_stream): Make boolean variables const
45083         to document the fact that we set but do not change them.
45085 2010-04-11  Bruno Haible  <bruno@clisp.org>
45087         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
45089 2010-04-11  Jim Meyering  <meyering@redhat.com>
45091         maint.mk: don't include dist-check.mk
45092         * top/maint.mk: Remove bogus include directive.
45094         maint.mk: improve empty-line-at-EOF check
45095         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
45096         solution, rather than tail+Perl-based one.  The latter would read
45097         a few kilobytes from the end of each file, and did not handle empty
45098         files properly.
45100         maint.mk: print the elapsed time for each syntax-check rule
45101         * top/maint.mk (sc_m_rules_): Save start time in a file.
45102         (sc_z_rules_): New rules: remove temp file and print elapsed time.
45103         (local-check): Interpose the .z rules
45105 2010-04-11  Jim Meyering  <meyering@redhat.com>
45107         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
45108         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
45109         empty file with one that ends in an empty line.
45111 2010-04-10  Bruno Haible  <bruno@clisp.org>
45113         mkdir: Make it work on mingw64.
45114         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
45115         * lib/mkdir.c: Update comment.
45116         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
45118 2010-04-10  Bruno Haible  <bruno@clisp.org>
45120         Don't override improved macro from newer autoconf.
45121         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
45122         autoconf >= 2.62.
45123         Reported by Joel E. Denny <jdenny@clemson.edu>.
45125 2010-04-10  Jim Meyering  <meyering@redhat.com>
45127         maint.mk: new syntax-check rule: prohibit empty lines at end of file
45128         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
45130         maint.mk: correct a diagnostic
45131         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
45132         in diagnostic; now use $prohibit.
45134 2010-04-10  Bruno Haible  <address@hidden>
45136         fchownat: Fix a C++ test error on Solaris 8.
45137         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
45138         the function does not exist.
45140 2010-04-10  Bruno Haible  <bruno@clisp.org>
45142         vasnprintf: Add more tests.
45143         * tests/test-vasnprintf-posix.c: Include <errno.h>.
45144         (test_function): Test converting an invalid wide string.
45146         vasnprintf: Correct handling of unconvertible wide string arguments.
45147         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
45148         VASNPRINTF.
45149         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
45150         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
45151         smaller than the expected maximum need for the directive. Set errno to
45152         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
45153         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
45154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
45155         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
45156         * modules/vasnprintf (Files): Add m4/printf.m4.
45157         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
45159 2010-04-10  Bruno Haible  <bruno@clisp.org>
45161         vasnprintf: Fix crash in %ls directive.
45162         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
45163         string is passed as argument to %ls, with no precision and no width.
45164         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
45166 2010-04-10  Bruno Haible  <bruno@clisp.org>
45168         vasnprintf: Fix multiple test failures on mingw.
45169         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
45170         _snprintf, or snwprintf, not _snwprintf.
45172 2010-04-10  Bruno Haible  <bruno@clisp.org>
45174         write: Fix a C++ test error on mingw.
45175         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
45177 2010-04-10  Bruno Haible  <bruno@clisp.org>
45179         vasnprintf test: Reduce code duplication.
45180         * tests/test-vasnprintf.c (test_function): New function, extracted from
45181         test_vasnprintf.
45182         (test_vasnprintf, test_asnprintf): Invoke it.
45184 2010-04-10  Bruno Haible  <bruno@clisp.org>
45186         strnlen: Fix warning in C++ mode on MacOS X.
45187         * lib/string.in.h (strnlen): Use the modern idiom.
45188         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
45189         defining strnlen as a macro already in <config.h>.
45190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45191         REPLACE_STRNLEN.
45192         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
45193         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
45195 2010-04-08  James Youngman  <jay@gnu.org>
45197         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
45198         the example.
45200 2010-04-09  Jim Meyering  <meyering@redhat.com>
45202         maint.mk: print better diagnostic when there is no $(_hv_file)
45203         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
45204         announce that when $(_hv_file) (aka help-version) does not exist.
45206         init.sh: run tr in the "C" locale to avoid multibyte interpretation
45207         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
45208         not try to interpret its random input bytes.  Jarno Rajahalme reported
45209         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
45210         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
45211         (mktempd_): Likewise, just in case.
45213         ftruncate: add two years to projected module removal date: 2012
45214         * m4/ftruncate.m4: Adjust comments.
45216         ftruncate: mark module as obsolete; even MinGW provides it, now
45217         * modules/ftruncate (Status): Obsolete.
45218         (Notice): Say that.
45219         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
45220         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
45222 2010-04-08  Bruno Haible  <bruno@clisp.org>
45224         Fix side effects from tests-related modules.
45225         * modules/dprintf-posix (Comment): New section.
45226         * modules/fprintf-posix (Comment): Likewise.
45227         * modules/obstack-printf-posix (Comment): Likewise.
45228         * modules/printf-posix (Comment): Likewise.
45229         * modules/snprintf-posix (Comment): Likewise.
45230         * modules/sprintf-posix (Comment): Likewise.
45231         * modules/vasnprintf-posix (Comment): Likewise.
45232         * modules/vasprintf-posix (Comment): Likewise.
45233         * modules/vdprintf-posix (Comment): Likewise.
45234         * modules/vfprintf-posix (Comment): Likewise.
45235         * modules/vprintf-posix (Comment): Likewise.
45236         * modules/vsnprintf-posix (Comment): Likewise.
45237         * modules/vsprintf-posix (Comment): Likewise.
45238         * modules/xprintf-posix (Comment): Likewise.
45239         * modules/xvasprintf-posix (Comment): Likewise.
45240         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
45241         * modules/floorf-tests (Depends-on): Likewise.
45242         * modules/round-tests (Depends-on): Likewise.
45243         * modules/roundf-tests (Depends-on): Likewise.
45244         * modules/trunc-tests (Depends-on): Likewise.
45245         * modules/truncf-tests (Depends-on): Likewise.
45246         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
45247         'fprintf-posix' module is not present.
45248         * tests/test-floorf2.c (check): Likewise.
45249         * tests/test-trunc2.c (check): Likewise.
45250         * tests/test-truncf2.c (check): Likewise.
45251         * tests/test-round2.c (equal): Likewise.
45252         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
45254 2010-04-07  Karl Berry  <karl@gnu.org>
45256         * config/srclist.txt,
45257         * config/srclistvars.sh,
45258         * config/srclist-update: doc fixes.
45260 2010-04-07  Jim Meyering  <meyering@redhat.com>
45262         maint.mk: add a PATH crosschecking syntax-check rule
45263         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
45264         Useful if you use a test like the one in help-version (coreutils,
45265         diffutils, grep, gzip) that ensures $(VERSION) matches what is
45266         printed by prog --version.
45268 2010-04-06  Bruno Haible  <bruno@clisp.org>
45270         Fix link error on mingw.
45271         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
45272         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
45274 2010-04-06  Bruno Haible  <bruno@clisp.org>
45276         Assume rmdir exists.
45277         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
45279 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
45281         doc: update users.txt
45282         * users.txt: Add gcal.
45284 2010-04-06  Jim Meyering  <meyering@redhat.com>
45286         init.sh: simply unset TMPDIR rather than risking env -i
45287         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
45288         although it probably works fine on all Unix-based systems, some
45289         systems (Cygwin?) cannot tolerate a totally cleared environment.
45290         Suggestion from Eric Blake.
45292 2010-04-06  Jim Meyering  <meyering@redhat.com>
45294         init.sh: portability fix: use env's POSIX-specified -i option not -u
45295         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
45296         than unportable env -u.  Solaris 5.11's env lacks support for -u.
45298 2010-04-05  Bruno Haible  <bruno@clisp.org>
45300         btowc: Work around Cygwin 1.7.2 bug.
45301         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
45302         does not map NUL to 0.
45303         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
45305 2010-04-05  Bruno Haible  <bruno@clisp.org>
45307         Make the multithread modules work on Cygwin 1.7.2.
45308         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
45309         imported symbols can be declared weak, so that it returns "no" on
45310         Cygwin 1.7.2.
45312 2010-04-05  Bruno Haible  <bruno@clisp.org>
45314         Use the module 'strncat'.
45315         * modules/unistr/u8-strncat (Depends-on): Add strncat.
45317         Tests for module 'strncat'.
45318         * modules/strncat-tests: New file.
45319         * tests/test-strncat.c: New file.
45321         New module 'strncat'.
45322         * lib/string.in.h (strncat): New declaration.
45323         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
45324         * m4/strncat.m4: New file, based on m4/memchr.m4.
45325         * modules/strncat: New file.
45326         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
45327         is declared.
45328         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
45329         REPLACE_STRNCAT.
45330         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
45331         REPLACE_STRNCAT.
45332         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
45333         module.
45334         * tests/test-string-c++.cc: Check signature of strncat.
45336 2010-04-05  Jim Meyering  <meyering@redhat.com>
45338         xstrtoumax-tests: convert to use init.sh
45339         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
45340         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
45341         Use Exit, not exit.
45342         Remove uses of $EXEEXT and "./" to run a program in the current dir.
45344         xstrtoimax-tests: convert to use init.sh
45345         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
45346         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
45347         Use Exit, not exit.
45348         Remove uses of $EXEEXT and "./" to run a program in the current dir.
45350 2010-04-05  Bruno Haible  <bruno@clisp.org>
45352         sys_socket: Avoid #define replacements in C++ mode.
45353         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
45354         warning to the function if possible, rather than #defining the symbol
45355         to a dysfunctional alias.
45357 2010-04-05  Bruno Haible  <bruno@clisp.org>
45359         fseeko: Fix C++ test error on mingw.
45360         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
45361         gl_FUNC_FSEEKO.
45362         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
45363         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
45364         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
45365         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
45367 2010-04-05  Bruno Haible  <bruno@clisp.org>
45369         duplocale: Improve test output.
45370         * tests/test-duplocale.c (main): Print reason for skipped test.
45372 2010-04-05  Bruno Haible  <bruno@clisp.org>
45374         Assume rmdir exists.
45375         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
45376         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
45378 2010-04-05  Bruno Haible  <bruno@clisp.org>
45380         Fix link error on Solaris 8 with cc.
45381         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
45383 2010-04-05  Bruno Haible  <bruno@clisp.org>
45385         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
45386         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
45388 2010-04-05  Bruno Haible  <bruno@clisp.org>
45390         vasprintf: Update documentation.
45391         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
45393 2010-04-05  Bruno Haible  <bruno@clisp.org>
45395         ptsname: Improve test.
45396         * tests/test-ptsname.c (main): Also try the various master names of BSD
45397         systems.
45399 2010-04-05  Bruno Haible  <bruno@clisp.org>
45401         memchr: Avoid a possible C++ test error.
45402         * lib/string.in.h (memchr): Provide declaration if function is missing.
45403         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
45404         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
45405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
45406         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
45408 2010-04-05  Bruno Haible  <bruno@clisp.org>
45410         strtok_r: Improve idiom.
45411         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
45412         AC_LIBOBJ is used.
45414 2010-04-05  Bruno Haible  <bruno@clisp.org>
45416         strdup: Improve idiom.
45417         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
45418         AC_LIBOBJ is used.
45419         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
45420         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
45421         when AC_LIBOBJ is used.
45423 2010-04-05  Bruno Haible  <bruno@clisp.org>
45425         mbsinit, mbrtowc, wcrtomb: Improve idioms.
45426         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
45427         don't set REPLACE_MBSINIT to 1.
45428         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
45429         don't set REPLACE_MBRTOWC to 1.
45430         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
45431         exist, don't set REPLACE_MBSRTOWCS to 1.
45432         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
45433         exist, don't set REPLACE_MBSNRTOWCS to 1.
45434         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
45435         don't set REPLACE_WCRTOMB to 1.
45436         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
45437         exist, don't set REPLACE_WCSRTOMBS to 1.
45438         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
45439         exist, don't set REPLACE_WCSNRTOMBS to 1.
45441 2010-04-05  Bruno Haible  <bruno@clisp.org>
45443         ldexpl: Improve idiom.
45444         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
45445         make sure to set HAVE_DECL_LDEXPL to 0.
45447 2010-04-05  Jim Meyering  <meyering@redhat.com>
45449         xstrtol-tests: convert to use init.sh
45450         * modules/xstrtol-tests (Files): Add tests/init.sh.
45451         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
45452         Use Exit, not exit.
45453         Remove uses of $EXEEXT and "./" to run a program in the current dir.
45455         atexit-tests: convert to use init.sh
45456         * modules/atexit-tests (Files): Add tests/init.sh.
45457         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
45458         Use Exit, not exit.
45459         Remove uses of $EXEEXT and "./" to run a program in the current dir.
45461         init.sh: fix typo
45462         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
45464         init.sh: make it easier for a test script to write to the tty, ...
45465         when using automake's parallel-tests mode.
45466         * tests/init.sh (stderr_fileno_): Define overridable variable.
45467         (warn_): New function, to use it.
45468         (fail_, skip_, framework_failure_): Use warn_.
45470 2010-04-04  Bruno Haible  <bruno@clisp.org>
45472         btowc: Avoid warning.
45473         * lib/btowc.c: Include <stdlib.h>.
45474         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
45476 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
45477             Bruno Haible  <bruno@clisp.org>
45479         wchar: Port to NetBSD 1.5.
45480         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
45481         * lib/wctype.in.h (WEOF): Likewise.
45483 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
45484             Bruno Haible  <bruno@clisp.org>
45486         Port extended stdio to NetBSD 1.5.
45487         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
45488         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
45489         older.
45491 2010-04-04  Bruno Haible  <bruno@clisp.org>
45493         string: Remove unused substitution.
45494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
45495         HAVE_DECL_STRERROR.
45496         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
45498 2010-04-04  Bruno Haible  <bruno@clisp.org>
45500         strtod: Avoid a possible C++ test error.
45501         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
45502         set REPLACE_STRTOD.
45504 2010-04-04  Bruno Haible  <bruno@clisp.org>
45506         strerror: Update documentation.
45507         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
45509 2010-04-04  Bruno Haible  <bruno@clisp.org>
45511         stdio: Fix some C++ test errors on Solaris 8 with GCC.
45512         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
45513         _GL_CXXALIAS_SYS_CAST.
45515 2010-04-04  Bruno Haible  <bruno@clisp.org>
45517         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
45518         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
45519         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
45520         REPLACE_FREXPL to 1.
45521         * doc/posix-functions/frexpl.texi: Update documentation.
45523 2010-04-04  Bruno Haible  <bruno@clisp.org>
45525         math: Fix some C++ test errors on Solaris 8 and Cygwin.
45526         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
45528 2010-04-04  Bruno Haible  <bruno@clisp.org>
45530         Implement nanosleep for native Windows.
45531         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
45533 2010-04-04  Bruno Haible  <bruno@clisp.org>
45535         math: Fix some C++ test errors on Solaris 8.
45536         * lib/math.in.h (truncf, trunc): Use simpler idiom.
45538 2010-04-04  Bruno Haible  <bruno@clisp.org>
45540         math: Fix some C++ test errors on Cygwin.
45541         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
45542         truncl): Provide declaration if the system does not have it.
45543         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
45544         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
45545         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
45546         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
45547         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
45548         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
45549         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
45550         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
45551         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
45552         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
45553         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
45554         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
45555         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
45556         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
45557         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
45558         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
45559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
45560         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
45561         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
45562         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
45563         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
45564         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
45566 2010-04-04  Bruno Haible  <bruno@clisp.org>
45568         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
45569         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
45570         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
45571         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45572         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45573         * m4/isinf.m4 (gl_ISINF): Likewise.
45574         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45576 2010-04-04  Bruno Haible  <bruno@clisp.org>
45578         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
45579         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
45581 2010-04-04  Bruno Haible  <bruno@clisp.org>
45583         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
45584         * modules/tmpfile (configure.ac): Update.
45586         tmpfile: Fix C++ test error on mingw.
45587         * lib/stdio.in.h (tmpfile): New declaration.
45588         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
45589         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
45590         * modules/tmpfile (Depends-on): Add stdio.
45591         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45592         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
45593         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
45594         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
45595         REPLACE_TMPFILE.
45596         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
45598 2010-04-04  Bruno Haible  <bruno@clisp.org>
45600         ioctl: Fix C++ test error on mingw.
45601         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
45602         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
45603         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
45605 2010-04-03  Bruno Haible  <bruno@clisp.org>
45607         wcwidth: Fix C++ test error on mingw.
45608         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
45609         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
45610         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
45612 2010-04-03  Bruno Haible  <bruno@clisp.org>
45614         nanosleep: Fix C++ test error on mingw.
45615         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
45616         * lib/time.in.h (nanosleep): Use modern idiom.
45617         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
45618         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
45619         REPLACE_NANOSLEEP to 1.
45620         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
45621         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
45623 2010-04-03  Bruno Haible  <bruno@clisp.org>
45625         strptime: Fix C++ test error on mingw.
45626         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
45627         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
45628         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
45629         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
45630         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
45631         not REPLACE_STRPTIME.
45632         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
45633         REPLACE_STRPTIME.
45635 2010-04-03  Bruno Haible  <bruno@clisp.org>
45637         timegm: Fix C++ test error on mingw.
45638         * lib/time.in.h (timegm): Use modern idiom.
45639         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
45640         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
45641         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
45642         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
45644 2010-04-03  Bruno Haible  <bruno@clisp.org>
45646         timegm: Assume declaration if function exists.
45647         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
45648         if it exists. Don't clobber ac_cv_func_timegm.
45650 2010-04-03  Bruno Haible  <bruno@clisp.org>
45652         time_r: Fix C++ test error on mingw.
45653         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
45654         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
45655         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
45656         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
45657         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
45659 2010-04-03  Bruno Haible  <bruno@clisp.org>
45661         time_r: Minor updates.
45662         * modules/time_r (Description): Mention the provided functions.
45663         * lib/time_r.c: Don't include <string.h>.
45664         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
45665         * doc/posix-functions/localtime_r.texi: Likewise.
45667 2010-04-03  Bruno Haible  <bruno@clisp.org>
45669         time: Fix regression introduced on 2010-03-08.
45670         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
45671         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
45673 2010-04-03  Jim Meyering  <meyering@redhat.com>
45675         maint.mk: don't silently disable project-specific syntax-check rules
45676         * top/maint.mk (_prohibit_regexp): Define, to help people realize
45677         that they need to convert their project-specific syntax-check rules
45678         to use the new _sc_search_regexp.
45680 2010-04-03  Bruno Haible  <bruno@clisp.org>
45682         fchdir: Fix regression introduced on 2010-03-08.
45683         * lib/unistd.in.h (fchdir): Fix declaration.
45684         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
45685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
45686         REPLACE_FCHDIR.
45687         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
45688         REPLACE_FCHDIR.
45690 2010-04-03  Bruno Haible  <bruno@clisp.org>
45692         getpagesize: Fix C++ test error on mingw.
45693         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
45694         system does not declare the function.
45695         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
45696         declared.
45697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45698         HAVE_DECL_GETPAGESIZE.
45699         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
45701 2010-04-03  Bruno Haible  <bruno@clisp.org>
45703         stdio: Make C++ tests work on mingw.
45704         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
45705         does not declare the function.
45707 2010-04-03  Bruno Haible  <bruno@clisp.org>
45709         ftello: Fix C++ test error on mingw.
45710         * lib/stdio.in.h (ftello): Use modern idiom.
45711         * lib/ftello.c (ftello): Renamed from rpl_ftello.
45712         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
45713         is missing and that it needs to be replaced.
45714         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
45715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
45716         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
45718 2010-04-03  Bruno Haible  <bruno@clisp.org>
45720         fseeko: Fix C++ test error on mingw.
45721         * lib/stdio.in.h (fseeko): Use modern idiom.
45722         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
45723         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
45724         is missing and that it needs to be replaced.
45725         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
45726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
45727         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
45729 2010-04-03  Bruno Haible  <bruno@clisp.org>
45731         mkstemp: Fix C++ test error on mingw.
45732         * lib/stdlib.in.h (mkstemp): Use modern idiom.
45733         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
45734         function is missing and that it needs to be replaced.
45735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
45736         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
45738 2010-04-03  Bruno Haible  <bruno@clisp.org>
45740         stpncpy: Fix C++ test error on mingw.
45741         * lib/string.in.h (stpncpy): Use modern idiom.
45742         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
45743         function is missing and that it needs to be replaced.
45744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45745         REPLACE_STPNCPY.
45746         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
45748 2010-04-03  Bruno Haible  <bruno@clisp.org>
45750         sys_stat: Fix C++ test error on mingw.
45751         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
45752         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
45754 2010-04-03  Bruno Haible  <bruno@clisp.org>
45756         pty: Update doc.
45757         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
45759 2010-04-03  Bruno Haible  <bruno@clisp.org>
45761         unistd: Fix C++ test error on mingw.
45762         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
45764 2010-04-03  Bruno Haible  <bruno@clisp.org>
45766         Update doc regarding mingw.
45767         * doc/glibc-functions/openpty.texi: Update regarding mingw.
45768         * doc/glibc-functions/login_tty.texi: Likewise.
45769         * doc/glibc-functions/forkpty.texi: Likewise.
45771 2010-04-03  Bruno Haible  <bruno@clisp.org>
45773         stdlib: Avoid compilation failure of c-strtold on mingw.
45774         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
45776 2010-04-03  Bruno Haible  <bruno@clisp.org>
45778         locale: Make C++ tests work on Cygwin and mingw.
45779         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
45780         cannot provide the function.
45781         Reported by Simon Josefsson.
45783 2010-04-03  Bruno Haible  <bruno@clisp.org>
45785         localename: Port to MacOS X 10.6.
45786         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
45787         memory layout of the locales in MacOS X 10.6 as well.
45788         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
45790 2010-04-02  Bruno Haible  <bruno@clisp.org>
45792         gnulib-tool: Ensure that long-running tests are executed last.
45793         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
45794         running tests after the one for the other tests.
45796 2010-04-02  Bruno Haible  <bruno@clisp.org>
45798         gnulib-tool: Ensure the tests in the main directory are executed first.
45799         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
45800         start with the current directory.
45802 2010-04-02  Bruno Haible  <bruno@clisp.org>
45804         Tests for module 'havelib', moved here from GNU gettext.
45805         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
45806         modifications.
45807         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
45808         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
45809         with modifications.
45810         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
45811         modifications.
45812         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
45813         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
45814         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
45815         with modifications.
45816         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
45817         with modifications.
45818         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
45819         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
45820         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
45821         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
45822         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
45823         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
45824         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
45825         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
45826         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
45827         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
45828         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
45829         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
45830         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
45831         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
45832         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
45833         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
45834         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
45835         with modifications.
45836         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
45837         with modifications.
45838         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
45839         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
45840         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
45841         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
45842         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
45843         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
45844         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
45845         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
45846         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
45847         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
45848         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
45849         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
45850         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
45851         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
45852         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
45853         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
45854         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
45855         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
45856         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
45857         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
45858         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
45859         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
45860         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
45861         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
45862         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
45863         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
45864         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
45865         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
45866         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
45867         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
45868         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
45869         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
45870         * tests/havelib/rpathx/rpathx.c: New file, from
45871         gettext/autoconf-lib-link.
45872         * tests/havelib/rpathx/Makefile.am: New file, from
45873         gettext/autoconf-lib-link.
45874         * tests/havelib/rpathx/configure.ac: New file, from
45875         gettext/autoconf-lib-link with modifications.
45876         * tests/havelib/rpathy/rpathy.c: New file, from
45877         gettext/autoconf-lib-link.
45878         * tests/havelib/rpathy/Makefile.am: New file, from
45879         gettext/autoconf-lib-link.
45880         * tests/havelib/rpathy/configure.ac: New file, from
45881         gettext/autoconf-lib-link with modifications.
45882         * tests/havelib/rpathz/rpathz.c: New file, from
45883         gettext/autoconf-lib-link.
45884         * tests/havelib/rpathz/Makefile.am: New file, from
45885         gettext/autoconf-lib-link.
45886         * tests/havelib/rpathz/configure.ac: New file, from
45887         gettext/autoconf-lib-link with modifications.
45888         * tests/havelib/rpathlx/usex.c: New file, from
45889         gettext/autoconf-lib-link.
45890         * tests/havelib/rpathlx/Makefile.am: New file, from
45891         gettext/autoconf-lib-link.
45892         * tests/havelib/rpathlx/configure.ac: New file, from
45893         gettext/autoconf-lib-link with modifications.
45894         * tests/havelib/rpathly/usey.c: New file, from
45895         gettext/autoconf-lib-link.
45896         * tests/havelib/rpathly/Makefile.am: New file, from
45897         gettext/autoconf-lib-link.
45898         * tests/havelib/rpathly/configure.ac: New file, from
45899         gettext/autoconf-lib-link with modifications.
45900         * tests/havelib/rpathlz/usez.c: New file, from
45901         gettext/autoconf-lib-link.
45902         * tests/havelib/rpathlz/Makefile.am: New file, from
45903         gettext/autoconf-lib-link.
45904         * tests/havelib/rpathlz/configure.ac: New file, from
45905         gettext/autoconf-lib-link with modifications.
45906         * tests/havelib/rpathlyx/usey.c: New file, from
45907         gettext/autoconf-lib-link.
45908         * tests/havelib/rpathlyx/Makefile.am: New file, from
45909         gettext/autoconf-lib-link.
45910         * tests/havelib/rpathlyx/configure.ac: New file, from
45911         gettext/autoconf-lib-link with modifications.
45912         * tests/havelib/rpathlzyx/usez.c: New file, from
45913         gettext/autoconf-lib-link.
45914         * tests/havelib/rpathlzyx/Makefile.am: New file, from
45915         gettext/autoconf-lib-link.
45916         * tests/havelib/rpathlzyx/configure.ac: New file, from
45917         gettext/autoconf-lib-link with modifications.
45918         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
45919         with modifications.
45921 2010-04-02  Bruno Haible  <bruno@clisp.org>
45923         gnulib-tool: Create distributed built sources also for the tests.
45924         * gnulib-tool (func_create_testdir): Also generate distributed built
45925         sources in the tests directory.
45927 2010-04-02  Bruno Haible  <bruno@clisp.org>
45929         gnulib-tool: Obey user's environment variables.
45930         * gnulib-tool (func_create_testdir): When creating built sources,
45931         respect the environment variables for autoconf, automake, etc. given by
45932         the user.
45934 2010-04-02  Bruno Haible  <bruno@clisp.org>
45936         gnulib-tool: Provide the value of --m4-base to modules.
45937         * gnulib-tool (func_import, func_create_testdir): Emit a definition
45938         of gl_m4_base.
45940 2010-04-02  Eric Blake  <eblake@redhat.com>
45942         maint.mk: fix some fallout
45943         * NEWS: Document the incompatible change, and its effect on cfg.mk.
45944         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
45946 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
45948         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
45949         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
45950         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
45951         (sc_cast_of_x_alloc_return_value): Likewise.
45952         (sc_cast_of_alloca_return_value): Likewise.
45953         (sc_space_tab): Likewise.
45954         (sc_prohibit_atoi_atof): Likewise.
45955         (sc_prohibit_magic_number_exit): Likewise.
45956         (sc_error_exit_success): Likewise.
45957         (sc_file_system): Likewise.
45958         (sc_prohibit_have_config_h): Likewise.
45959         (sc_require_config_h): Likewise.
45960         (sc_prohibit_HAVE_MBRTOWC): Likewise.
45961         (sc_obsolete_symbols): Likewise.
45962         (sc_changelog): Likewise.
45963         (sc_program_name): Likewise.
45964         (sc_the_the): Likewise.
45965         (sc_trailing_blank): Likewise.
45966         (sc_two_space_separator_in_usage): Likewise.
45967         (sc_useless_cpp_parens): Likewise.
45968         (sc_GPL_version): Likewise.
45969         (sc_GFDL_version): Likewise.
45970         (sc_texinfo_acronym): Likewise.
45971         (sc_prohibit_cvs_keyword): Likewise.
45972         (sc_prohibit_stat_st_blocks): Likewise.
45973         (sc_prohibit_S_IS_definition): Likewise.
45974         (sc_redundant_const): Likewise.
45975         (sc_makefile_TAB_only_indentation): Likewise.
45976         (sc_m4_quote_check): Likewise.
45977         (sc_makefile_path_separator_check): Likewise.
45978         (sc_copyright_check): Likewise.
45979         (sc_Wundef_boolean): Likewise.
45980         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
45982         maint.mk: match 0 or more whitespace-before-function-call '('
45983         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
45984         that have zero or two-and-more spaces between the function name
45985         and the open parenthesis.
45986         (sc_error_message_warn_fatal): Likewise.
45987         (sc_error_message_uppercase): Likewise.
45988         (sc_error_message_period): Likewise.
45990 2010-03-31  Eric Blake  <eblake@redhat.com>
45992         maint.mk: check for [ as well as test
45993         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
45994         Based on a libvirt report by Matthias Bolte.
45996         gnumakefile: don't squelch _version output
45997         * top/GNUmakefile (_version): Create one-shot dependency rather
45998         than using $(shell) when version must be regenerated.
45999         (_autoreconf): Run verbosely, by default.
46001         sys_time: avoid compiler warnings
46002         * lib/sys_time.in.h (includes): Ensure gcc pragma is
46003         unconditional, fixing regression from 2010-03-29.
46004         Reported by Simon Josefsson.
46006 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
46008         maint.mk: s/_header_without_use/_sc_header_without_use/
46009         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
46010         (sc_prohibit_assert_without_use): Use the new name.
46011         (sc_prohibit_close_stream_without_use): Likewise.
46012         (sc_prohibit_getopt_without_use): Likewise.
46013         (sc_prohibit_quotearg_without_use): Likewise.
46014         (sc_prohibit_quote_without_use): Likewise.
46015         (sc_prohibit_long_options_without_use): Likewise.
46016         (sc_prohibit_inttostr_without_use): Likewise.
46017         (sc_prohibit_ignore_value_without_use): Likewise.
46018         (sc_prohibit_error_without_use): Likewise.
46019         (sc_prohibit_xalloc_without_use): Likewise.
46020         (sc_prohibit_hash_without_use): Likewise.
46021         (sc_prohibit_hash_pjw_without_use): Likewise.
46022         (sc_prohibit_safe_read_without_use): Likewise.
46023         (sc_prohibit_argmatch_without_use): Likewise.
46024         (sc_prohibit_canonicalize_without_use): Likewise.
46025         (sc_prohibit_root_dev_ino_without_use): Likewise.
46026         (sc_prohibit_openat_without_use): Likewise.
46027         (sc_prohibit_c_ctype_without_use): Likewise.
46028         (sc_prohibit_signal_without_use): Likewise.
46029         (sc_prohibit_intprops_without_use): Likewise.
46031 2010-03-30  Eric Blake  <eblake@redhat.com>
46033         maint: improve module indicators
46034         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
46035         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
46036         columns, and avoid extra macro expansion.
46038         fdopendir: work around FreeBSD bug
46039         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
46040         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
46041         * modules/dirent (Makefile.am): Substitute it.
46042         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
46043         declaration.
46044         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
46045         fix.
46046         Reported by Christian Weisgerber <naddy@mips.inka.de>.
46048 2010-03-29  Bruno Haible  <bruno@clisp.org>
46050         Emit #pragma system_header after the inclusion guard, not before.
46051         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
46052         guard that spans the entire file, not before. This enables an
46053         optimization in GCC's preprocessor.
46054         * lib/ctype.in.h: Likewise.
46055         * lib/dirent.in.h: Likewise.
46056         * lib/errno.in.h: Likewise.
46057         * lib/float.in.h: Likewise.
46058         * lib/getopt.in.h: Likewise.
46059         * lib/iconv.in.h: Likewise.
46060         * lib/langinfo.in.h: Likewise.
46061         * lib/locale.in.h: Likewise.
46062         * lib/math.in.h: Likewise.
46063         * lib/netdb.in.h: Likewise.
46064         * lib/netinet_in.in.h: Likewise.
46065         * lib/pty.in.h: Likewise.
46066         * lib/sched.in.h: Likewise.
46067         * lib/se-selinux.in.h: Likewise.
46068         * lib/search.in.h: Likewise.
46069         * lib/spawn.in.h: Likewise.
46070         * lib/stdarg.in.h: Likewise.
46071         * lib/stdint.in.h: Likewise.
46072         * lib/string.in.h: Likewise.
46073         * lib/strings.in.h: Likewise.
46074         * lib/sys_file.in.h: Likewise.
46075         * lib/sys_ioctl.in.h: Likewise.
46076         * lib/sys_time.in.h: Likewise.
46077         * lib/sys_times.in.h: Likewise.
46078         * lib/sys_utsname.in.h: Likewise.
46079         * lib/sys_wait.in.h: Likewise.
46080         * lib/sysexits.in.h: Likewise.
46081         * lib/wctype.in.h: Likewise.
46083 2010-03-28  James Youngman  <jay@gnu.org>
46085         save-cwd: don't leak a file descriptor when the caller execs.
46086         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
46087         saved file descriptor.
46088         * modules/save-cwd (Depends-on): Depend on cloexec.
46090 2010-03-29  Bruno Haible  <bruno@clisp.org>
46092         Remove vestiges of fts-lgpl module.
46093         * lib/fts_.h: Assume GNULIB_FTS is 1.
46094         * lib/fts.c: Likewise.
46095         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
46097 2010-03-28  Bruno Haible  <bruno@clisp.org>
46099         Fix definition of tests witness macro.
46100         * gnulib-tool (func_import): Fix definition of witness macro.
46102 2010-03-28  Bruno Haible  <bruno@clisp.org>
46104         Fix ioctl's protoype on glibc systems.
46105         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
46106         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
46107         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
46108         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
46109         signature. If not, arrange to replace the ioctl function.
46110         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46111         REPLACE_IOCTL.
46112         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
46113         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
46114         Reported by Ludovic Courtès <ludo@gnu.org>.
46116 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
46118         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
46119         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
46120         made it so grep -r --include=GLOB* ... did not work.
46122 2010-03-26  Jim Meyering  <meyering@redhat.com>
46123             Eric Blake  <eblake@redhat.com>
46125         maint.mk: prohibit use of test's -o and -a operators
46126         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
46128 2010-03-28  Bruno Haible  <bruno@clisp.org>
46130         Remove unused GNULIB_XYZ macro definitions.
46131         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
46132         invocation.
46134 2010-03-28  Bruno Haible  <bruno@clisp.org>
46136         Mark privileged tests modules.
46137         * modules/idpriv-drop-tests (Status): New section.
46138         * modules/idpriv-droptemp-tests (Status): New section.
46140 2010-03-28  Bruno Haible  <bruno@clisp.org>
46142         Split C++ tests into separate tests modules.
46143         * modules/dirent-c++-tests: New file, extracted from
46144         modules/dirent-tests.
46145         * modules/dirent-tests: Depend on it.
46146         * modules/fcntl-h-c++-tests: New file, extracted from
46147         modules/fcntl-h-tests.
46148         * modules/fcntl-h-tests: Depend on it.
46149         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
46150         * modules/glob-tests: Depend on it.
46151         * modules/iconv-h-c++-tests: New file, extracted from
46152         modules/iconv-h-tests.
46153         * modules/iconv-h-tests: Depend on it.
46154         * modules/langinfo-c++-tests: New file, extracted from
46155         modules/langinfo-tests.
46156         * modules/langinfo-tests: Depend on it.
46157         * modules/locale-c++-tests: New file, extracted from
46158         modules/locale-tests.
46159         * modules/locale-tests: Depend on it.
46160         * modules/math-c++-tests: New file, extracted from modules/math-tests.
46161         * modules/math-tests: Depend on it.
46162         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
46163         * modules/pty-tests: Depend on it.
46164         * modules/search-c++-tests: New file, extracted from
46165         modules/search-tests.
46166         * modules/search-tests: Depend on it.
46167         * modules/signal-c++-tests: New file, extracted from
46168         modules/signal-tests.
46169         * modules/signal-tests: Depend on it.
46170         * modules/spawn-c++-tests: New file, extracted from
46171         modules/spawn-tests.
46172         * modules/spawn-tests: Depend on it.
46173         * modules/stdio-c++-tests: New file, extracted from
46174         modules/stdio-tests.
46175         * modules/stdio-tests: Depend on it.
46176         * modules/stdlib-c++-tests: New file, extracted from
46177         modules/stdlib-tests.
46178         * modules/stdlib-tests: Depend on it.
46179         * modules/string-c++-tests: New file, extracted from
46180         modules/string-tests.
46181         * modules/string-tests: Depend on it.
46182         * modules/sys_ioctl-c++-tests: New file, extracted from
46183         modules/sys_ioctl-tests.
46184         * modules/sys_ioctl-tests: Depend on it.
46185         * modules/sys_select-c++-tests: New file, extracted from
46186         modules/sys_select-tests.
46187         * modules/sys_select-tests: Depend on it.
46188         * modules/sys_socket-c++-tests: New file, extracted from
46189         modules/sys_socket-tests.
46190         * modules/sys_socket-tests: Depend on it.
46191         * modules/sys_stat-c++-tests: New file, extracted from
46192         modules/sys_stat-tests.
46193         * modules/sys_stat-tests: Depend on it.
46194         * modules/sys_time-c++-tests: New file, extracted from
46195         modules/sys_time-tests.
46196         * modules/sys_time-tests: Depend on it.
46197         * modules/time-c++-tests: New file, extracted from modules/time-tests.
46198         * modules/time-tests: Depend on it.
46199         * modules/unistd-c++-tests: New file, extracted from
46200         modules/unistd-tests.
46201         * modules/unistd-tests: Depend on it.
46202         * modules/wchar-c++-tests: New file, extracted from
46203         modules/wchar-tests.
46204         * modules/wchar-tests: Depend on it.
46205         * modules/wctype-c++-tests: New file, extracted from
46206         modules/wctype-tests.
46207         * modules/wctype-tests: Depend on it.
46208         Reported by Simon Josefsson.
46210 2010-03-28  Bruno Haible  <bruno@clisp.org>
46212         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
46213         * gnulib-tool (func_exists_module): New function, extracted from
46214         func_verify_module.
46215         (func_verify_module): Use it.
46216         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
46217         'foo' only if 'foo' exists.
46218         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
46219         module.
46221 2010-03-28  Bruno Haible  <bruno@clisp.org>
46223         gnulib-tool: Add support for special categories of tests.
46224         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
46225         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
46226         (func_usage): Document them.
46227         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
46228         inc_unportable_tests, inc_all_tests): New variables.
46229         (func_acceptable): Consider these variables.
46230         (func_modules_transitive_closure): Make it work when the 'Status' field
46231         consists of multiple words.
46232         (func_import): Store and restore the values of inc_cxx_tests,
46233         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
46234         inc_all_tests in gnulib-comp.m4.
46235         (func_create_testdir): Set inc_all_tests to true.
46236         * doc/gnulib.texi (Extra tests modules): New section.
46237         Suggested by Jim Meyering.
46239 2010-03-28  Bruno Haible  <bruno@clisp.org>
46241         ansi-c++-opt: Allow turning off the C++ build by default.
46242         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
46243         gl_CXX_CHOICE_DEFAULT_NO is defined.
46244         Requested by Eric Blake.
46246 2010-03-28  Bruno Haible  <bruno@clisp.org>
46248         unistd: Avoid #define replacements in C++ mode.
46249         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
46250         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
46251         setsockopt, shutdown, select): In C++, attach a warning to the function
46252         if possible, rather than #defining the symbol to a dysfunctional alias.
46253         Reported by John W. Eaton <jwe@gnu.org>.
46255 2010-03-28  Bruno Haible  <bruno@clisp.org>
46257         Fix link errors on mingw.
46258         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
46259         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
46260         $(LIBSOCKET).
46261         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
46262         $(LIBSOCKET).
46264 2010-03-28  Bruno Haible  <bruno@clisp.org>
46265             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46267         lib-ignore: Determine different options for different compilers.
46268         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
46269         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
46270         Add comments.
46271         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
46272         * NEWS: Mention the change.
46274 2010-03-27  Bruno Haible  <bruno@clisp.org>
46276         Remove unused GNULIB_XYZ macro definitions.
46277         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
46278         * modules/fseek (configure.ac): Likewise.
46279         * modules/ioctl (configure.ac): Likewise.
46280         * modules/open (configure.ac): Likewise.
46281         * modules/stdlib-safer (configure.ac): Likewise.
46283 2010-03-27  Bruno Haible  <bruno@clisp.org>
46285         Add a remark about certain modules.
46286         * modules/malloc (Comment): New section.
46287         * modules/realloc (Comment): Likewise.
46288         * modules/sigpipe (Comment): Likewise.
46290 2010-03-27  Bruno Haible  <bruno@clisp.org>
46292         Resolve conflict between the two kinds of module indicators.
46293         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
46294         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
46295         * modules/canonicalize (configure.ac): Invoke
46296         gl_MODULE_INDICATOR_FOR_TESTS.
46297         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
46298         GNULIB_XYZ.
46299         * tests/test-dirent-c++.cc: Likewise.
46300         * tests/test-dirent-safer.c: Likewise.
46301         * tests/test-dup2.c: Likewise.
46302         * tests/test-fchdir.c: Likewise.
46303         * tests/test-fcntl-h-c++.cc: Likewise.
46304         * tests/test-getopt.c: Likewise.
46305         * tests/test-getopt.h: Likewise.
46306         * tests/test-langinfo-c++.cc: Likewise.
46307         * tests/test-locale-c++.cc: Likewise.
46308         * tests/test-math-c++.cc: Likewise.
46309         * tests/test-pty-c++.cc: Likewise.
46310         * tests/test-search-c++.cc: Likewise.
46311         * tests/test-signal-c++.cc: Likewise.
46312         * tests/test-spawn-c++.cc: Likewise.
46313         * tests/test-stdio-c++.cc: Likewise.
46314         * tests/test-stdlib-c++.cc: Likewise.
46315         * tests/test-string-c++.cc: Likewise.
46316         * tests/test-sys_ioctl-c++.cc: Likewise.
46317         * tests/test-sys_select-c++.cc: Likewise.
46318         * tests/test-sys_socket-c++.cc: Likewise.
46319         * tests/test-sys_stat-c++.cc: Likewise.
46320         * tests/test-sys_time-c++.cc: Likewise.
46321         * tests/test-time-c++.cc: Likewise.
46322         * tests/test-unistd-c++.cc: Likewise.
46323         * tests/test-wchar-c++.cc: Likewise.
46324         * tests/uninorm/test-u8-nfc.c: Likewise.
46325         * tests/uninorm/test-u8-nfd.c: Likewise.
46326         * tests/uninorm/test-u8-nfkc.c: Likewise.
46327         * tests/uninorm/test-u8-nfkd.c: Likewise.
46328         * tests/uninorm/test-u16-nfc.c: Likewise.
46329         * tests/uninorm/test-u16-nfd.c: Likewise.
46330         * tests/uninorm/test-u16-nfkc.c: Likewise.
46331         * tests/uninorm/test-u16-nfkd.c: Likewise.
46332         * tests/uninorm/test-u32-nfc.c: Likewise.
46333         * tests/uninorm/test-u32-nfc-big.c: Likewise.
46334         * tests/uninorm/test-u32-nfd.c: Likewise.
46335         * tests/uninorm/test-u32-nfd-big.c: Likewise.
46336         * tests/uninorm/test-u32-nfkc.c: Likewise.
46337         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
46338         * tests/uninorm/test-u32-nfkd.c: Likewise.
46339         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
46340         * tests/uninorm/test-u32-normalize-big.c: Likewise.
46342 2010-03-27  Bruno Haible  <bruno@clisp.org>
46344         Distinguish two kinds of module indicators.
46345         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
46346         gl_MODULE_INDICATOR.
46347         (gl_MODULE_INDICATOR): New macro.
46348         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
46349         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
46350         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
46351         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
46352         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
46353         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
46354         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
46355         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
46356         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
46357         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
46358         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
46359         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
46360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
46361         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
46362         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
46363         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
46364         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
46365         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
46366         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
46367         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
46368         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
46369         * modules/cloexec (configure.ac): Likewise.
46370         * modules/getopt-gnu (configure.ac): Likewise.
46371         * modules/uninorm/u8-normalize (configure.ac): Likewise.
46372         * modules/uninorm/u16-normalize (configure.ac): Likewise.
46373         * modules/uninorm/u32-normalize (configure.ac): Likewise.
46374         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
46376 2010-03-27  Bruno Haible  <bruno@clisp.org>
46378         New module description field 'Comment'.
46379         * gnulib-tool: New option --extract-comment.
46380         (func_usage): Document it.
46381         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
46382         (func_get_comment): New function.
46383         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
46385 2010-03-27  Bruno Haible  <bruno@clisp.org>
46387         Addendum to 2010-02-07 commit.
46388         * gnulib-tool (func_usage): Document --extract-applicability option.
46390 2010-03-27  Bruno Haible  <bruno@clisp.org>
46392         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
46393         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
46394         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
46395         rather than link errors.
46397 2010-03-27  Bruno Haible  <bruno@clisp.org>
46399         Avoid side effects from tests-related modules on the compilation of lib.
46400         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
46401         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
46402         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
46403         parameter. Emit into AM_CPPFLAGS a definition of the designated C
46404         macro.
46405         (func_import): Define a witness macro. Assign it a value that depends
46406         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
46407         tests-related modules.
46408         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
46409         Reported by Jim Meyering.
46411 2010-03-27  Bruno Haible  <bruno@clisp.org>
46413         Factorize common .m4 code.
46414         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
46415         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
46416         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
46417         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
46418         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
46419         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
46420         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
46421         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
46422         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
46423         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
46424         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
46425         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
46426         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
46427         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
46428         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
46429         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
46430         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
46431         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
46432         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
46433         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
46434         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
46435         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
46436         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
46437         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
46438         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
46439         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
46440         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
46441         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
46442         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
46443         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
46444         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
46445         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
46447 2010-03-27  Bruno Haible  <bruno@clisp.org>
46449         Fix a compilation error on Cygwin with g++ >= 4.3.
46450         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
46451         if it is undefined or if we alias it to chmod.
46452         (lstat): Don't warn about the use of this function if it is undefined
46453         or if we alias it to stat.
46454         Reported by Simon Josefsson.
46456 2010-03-27  Bruno Haible  <bruno@clisp.org>
46458         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
46459         * modules/getlogin (configure.ac): Update.
46461         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
46462         * modules/getlogin_r (configure.ac): Update.
46464         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
46465         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
46466         * modules/inet_ntop (configure.ac): Update.
46468         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
46469         * modules/inet_pton (configure.ac): Update.
46471         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
46472         * modules/mbslen (configure.ac): Update.
46474         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
46475         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
46476         * modules/forkpty (configure.ac): Update.
46477         * modules/openpty (configure.ac): Update.
46479 2010-03-26  Simon Josefsson  <simon@josefsson.org>
46481         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
46482         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
46484 2010-03-25  Eric Blake  <eblake@redhat.com>
46486         maint: use pragma consistently across replacement headers
46487         * lib/ctype.in.h (system_header): Hoist for consistent placement.
46488         * lib/dirent.in.h (system_header): Likewise.
46489         * lib/errno.in.h (system_header): Likewise.
46490         * lib/float.in.h (system_header): Likewise.
46491         * lib/getopt.in.h (system_header): Likewise.
46492         * lib/iconv.in.h (system_header): Likewise.
46493         * lib/inttypes.in.h (system_header): Likewise.
46494         * lib/langinfo.in.h (system_header): Likewise.
46495         * lib/locale.in.h (system_header): Likewise.
46496         * lib/math.in.h (system_header): Likewise.
46497         * lib/netdb.in.h (system_header): Likewise.
46498         * lib/netinet_in.in.h (system_header): Likewise.
46499         * lib/pty.in.h (system_header): Likewise.
46500         * lib/sched.in.h (system_header): Likewise.
46501         * lib/se-selinux.in.h (system_header): Likewise.
46502         * lib/search.in.h (system_header): Likewise.
46503         * lib/spawn.in.h (system_header): Likewise.
46504         * lib/stdarg.in.h (system_header): Likewise.
46505         * lib/stdint.in.h (system_header): Likewise.
46506         * lib/string.in.h (system_header): Likewise.
46507         * lib/strings.in.h (system_header): Likewise.
46508         * lib/sys_file.in.h (system_header): Likewise.
46509         * lib/sys_ioctl.in.h (system_header): Likewise.
46510         * lib/sys_socket.in.h (system_header): Likewise.
46511         * lib/sys_times.in.h (system_header): Likewise.
46512         * lib/sys_utsname.in.h (system_header): Likewise.
46513         * lib/sys_wait.in.h (system_header): Likewise.
46514         * lib/sysexits.in.h (system_header): Likewise.
46515         * lib/unistd.in.h (system_header): Likewise.
46516         * lib/wctype.in.h (system_header): Likewise.
46518         arpa/inet: fix mingw compilation warning
46519         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
46520         Reported by Matthew Bolte.
46522 2010-03-25  Bruno Haible  <bruno@clisp.org>
46524         Avoid collision between gnulib wrapper and libintl wrapper.
46525         * lib/printf.c (printf): Don't define if a printf wrapper is already
46526         defined in intl/printf.c.
46527         Reported by Michel Boaventura <michel@michelboaventura.com>.
46529 2010-03-25  Bruno Haible  <bruno@clisp.org>
46531         Use ANSI C.
46532         * lib/readutmp.h (getutent): Provide ANSI C prototype.
46534 2010-03-25  Bruno Haible  <bruno@clisp.org>
46536         Minor formatting changes.
46537         * lib/acosl.c: Insert space before function argument list.
46538         * lib/argz.c: Likewise.
46539         * lib/asinl.c: Likewise.
46540         * lib/expl.c: Likewise.
46541         * lib/gen-uni-tables.c: Likewise.
46542         * lib/gettext.h: Likewise.
46543         * lib/glthread/lock.h: Likewise.
46544         * lib/tanl.c: Likewise.
46545         * lib/uniname/uniname.c: Likewise.
46546         * tests/test-idpriv-drop.c: Likewise.
46547         * tests/test-idpriv-droptemp.c: Likewise.
46548         * tests/test-lock.c: Likewise.
46549         * tests/test-tls.c: Likewise.
46550         * lib/argp-help.c: Insert space before function-like macro argument
46551         list.
46552         * lib/memcmp.c: Likewise.
46553         * tests/test-base64.c: Likewise.
46554         * lib/localename.c: Insert space before sizeof's argument list.
46555         * lib/safe-alloc.h: Likewise.
46556         * lib/file-set.h: Insert space before macro argument list.
46557         * tests/test-argp.c: Likewise.
46558         * lib/argp-namefrob.h: Insert space before function parameter list.
46559         * lib/getaddrinfo.c: Likewise.
46560         * lib/netdb.in.h: Likewise.
46561         * lib/parse-duration.h: Likewise.
46562         * lib/parse-duration.c: Likewise.
46563         * lib/poll.c: Likewise.
46564         * lib/select.c: Likewise.
46565         * lib/trim.h: Likewise.
46566         * tests/test-usleep.c: Likewise.
46567         * lib/ldexpl.c: Insert space before function parameter list and before
46568         function argument list.
46569         * lib/logl.c: Likewise.
46570         * lib/sqrtl.c: Likewise.
46571         * lib/trim.c: Likewise.
46572         * lib/cosl.c: Use GNU style indentation. Insert space before function
46573         argument list.
46574         * lib/sinl.c: Likewise.
46575         * lib/tsearch.c: Insert space after 'for'.
46576         Reported by Jim Meyering.
46578 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
46580         * maint.mk (sc_Wundef_boolean): Check for the presence of the
46581         config header before grepping, as it's not present before
46582         autoreconf/configure are run.  Reported by Simon Josefsson.
46584 2010-03-23  Bruno Haible  <bruno@clisp.org>
46586         pt_chown: Make it work with automake < 1.11.
46587         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
46588         Reported by Simon Josefsson.
46590 2010-03-23  Bruno Haible  <bruno@clisp.org>
46592         pt_chown: Don't depend on GPLed modules.
46593         * lib/pt_chown.c: Don't include idpriv.h.
46594         (main): Don't drop privileges.
46595         * modules/pt_chown (Depends-on): Remove idpriv-drop.
46596         Reported by Simon Josefsson.
46598 2010-03-24  Simon Josefsson  <simon@josefsson.org>
46600         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
46601         suggestions from karl@freefriends.org (Karl Berry).
46603 2010-03-22  Eric Blake  <eblake@redhat.com>
46605         gethostname: further tweaks
46606         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
46607         are overriding gethostname.
46608         Suggested by Bruno Haible.
46610 2010-03-21  Bruno Haible  <bruno@clisp.org>
46612         Fix comments.
46613         * lib/forkpty.c (rpl_forkpty): Fix comment.
46614         * lib/openpty.c (rpl_openpty): Likewise.
46615         Reported by Eric Blake.
46617 2010-03-22  Eric Blake  <eblake@redhat.com>
46619         gethostname: fix build on mingw
46620         * lib/unistd.in.h (includes): Work around fact that mingw
46621         <winsock2.h> re-includes <unistd.h>, by avoiding any
46622         redeclarations if we are being included by <winsock2.h>.
46623         Reported by Matthias Bolte.
46625 2010-03-21  Bruno Haible  <bruno@clisp.org>
46627         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
46628         * lib/forkpty.c (forkpty): New replacement function, from glibc with
46629         modifications.
46630         * lib/pty.in.h (forkpty): Update declaration. Add comments.
46631         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
46632         provide the replacement.
46633         * modules/forkpty (Depends-on): Add openpty, login_tty.
46634         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
46635         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
46636         * doc/glibc-functions/forkpty.texi: More supported platforms.
46637         * config/srclist.txt: Add forkpty.c (commented).
46639 2010-03-21  Bruno Haible  <bruno@clisp.org>
46641         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
46642         (Makefile.am): Verify that PTY_LIB is defined.
46644         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
46646 2010-03-21  Bruno Haible  <bruno@clisp.org>
46648         Tests for module 'login_tty'.
46649         * modules/login_tty-tests: New file.
46650         * tests/test-login_tty.c: New file.
46652         New module 'login_tty'.
46653         * lib/login_tty.c: New file.
46654         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
46655         * modules/login_tty: New file.
46656         * doc/glibc-functions/login_tty.texi: Mention the new module.
46658 2010-03-21  Bruno Haible  <bruno@clisp.org>
46660         login_tty: Documentation.
46661         * doc/glibc-functions/login_tty.texi: New file.
46662         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
46664 2010-03-21  Bruno Haible  <bruno@clisp.org>
46666         pty: Consistent macro naming.
46667         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
46668         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
46669         * modules/pty (configure.ac): Update.
46671 2010-03-21  Bruno Haible  <bruno@clisp.org>
46673         Tests for openpty: Make stricter.
46674         * tests/test-openpty.c (main): Add test of canonical processing and
46675         erase.
46676         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
46678         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
46679         * lib/openpty.c (openpty): New replacement function.
46680         * lib/pty.in.h: Include <termios.h>.
46681         (openpty): Update declaration. Add comments.
46682         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
46683         is not declared, arrange to provide the replacement. Check for _getpty
46684         and posix_openpt.
46685         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
46686         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
46687         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
46688         * modules/pty-tests (test_pty_c___LDADD): New variable.
46689         * doc/glibc-functions/openpty.texi: More supported platforms.
46691 2010-03-21  Bruno Haible  <bruno@clisp.org>
46693         setenv: Tweaks.
46694         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
46695         the test program.
46696         * doc/posix-functions/setenv.texi: Update platforms list.
46698 2010-03-21  Bruno Haible  <bruno@clisp.org>
46700         New module 'unlockpt'.
46701         * lib/unlockpt.c: New file, from glibc with modifications.
46702         * m4/unlockpt.m4: New file.
46703         * modules/unlockpt: New file.
46704         * lib/stdlib.in.h (unlockpt): New declaration.
46705         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
46706         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
46707         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
46708         HAVE_UNLOCKPT.
46709         * doc/posix-functions/unlockpt.texi: Mention the new module.
46710         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
46711         * config/srclist.txt: Add unlockpt.c (commented).
46713 2010-03-21  Jim Meyering  <meyering@redhat.com>
46715         maint.mk: prohibit inclusion of "intprops.h" without use
46716         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
46718 2010-03-21  Bruno Haible  <bruno@clisp.org>
46720         New module 'grantpt'.
46721         * lib/grantpt.c: New file, from glibc with modifications.
46722         * m4/grantpt.m4: New file.
46723         * modules/grantpt: New file.
46724         * lib/stdlib.in.h (grantpt): New declaration.
46725         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
46726         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
46727         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
46728         HAVE_GRANTPT.
46729         * doc/posix-functions/grantpt.texi: Mention the new module.
46730         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
46731         * config/srclist.txt: Add grantpt.c (commented).
46733 2010-03-21  Bruno Haible  <bruno@clisp.org>
46735         New module 'pt_chown'.
46736         * lib/pt_chown.c: New file, from glibc with modifications.
46737         * lib/pty-private.h: New file, from glibc with modifications.
46738         * modules/pt_chown: New file.
46739         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
46741 2010-03-21  Bruno Haible  <bruno@clisp.org>
46743         Tests for module 'ptsname'.
46744         * modules/ptsname-tests: New file.
46745         * tests/test-ptsname.c: New file.
46747         New module 'ptsname'.
46748         * lib/ptsname.c: New file, from glibc with modifications.
46749         * m4/ptsname.m4: New file.
46750         * modules/ptsname: New file.
46751         * lib/stdlib.in.h (ptsname): New declaration.
46752         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
46753         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
46754         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
46755         HAVE_PTSNAME.
46756         * doc/posix-functions/ptsname.texi: Mention the new module.
46757         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
46758         * config/srclist.txt: Add ptsname.c (commented).
46760 2010-03-21  Bruno Haible  <bruno@clisp.org>
46762         Tests for module 'ttyname_r'.
46763         * modules/ttyname_r-tests: New file.
46764         * tests/test-ttyname_r.c: New file.
46766         New module 'ttyname_r'.
46767         * lib/ttyname_r.c: New file.
46768         * m4/ttyname_r.m4: New file.
46769         * modules/ttyname_r: New file.
46770         * lib/unistd.in.h (ttyname_r): New declaration.
46771         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
46772         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
46773         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
46774         HAVE_TTYNAME_R.
46775         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
46776         * doc/posix-functions/ttyname_r.texi: Mention the new module.
46778 2010-03-20  Bruno Haible  <bruno@clisp.org>
46780         signal: Undefine macro definitions in C++ mode.
46781         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
46782         sigfillset): Undefine macro definitions from the system header in C++
46783         mode.
46784         Reported by John W. Eaton <jwe@gnu.org>.
46786 2010-03-20  Bruno Haible  <bruno@clisp.org>
46788         Ensure no #include statements inside extern "C" { ... }.
46789         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
46790         contain #include statements.
46791         * lib/time.in.h: Likewise.
46793 2010-03-20  Bruno Haible  <bruno@clisp.org>
46795         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
46796         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
46797         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
46798         Reported by John W. Eaton <jwe@gnu.org>.
46800 2010-03-20  Bruno Haible  <bruno@clisp.org>
46802         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
46803         Reported by Jim Meyering.
46805 2010-03-20  Bruno Haible  <bruno@clisp.org>
46807         pipe: Set errno upon failure.
46808         * lib/pipe.h: Specify that when -1 is returned, errno is set.
46809         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
46810         errno value in error message.
46812 2010-03-20  Bruno Haible  <bruno@clisp.org>
46813             Jim Meyering  <meyering@redhat.com>
46815         lchown: Avoid "unused variable" warning.
46816         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
46818 2010-03-20  Bruno Haible  <bruno@clisp.org>
46820         Work around unlink() bug on MacOS X 10.5.6.
46821         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
46822         attempting to unlink a parent directory.
46823         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
46824         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
46825         activate for the replacement function.
46826         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
46828 2010-03-20  Bruno Haible  <bruno@clisp.org>
46830         Fix link errors on Solaris 8.
46831         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
46832         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
46834 2010-03-19  Jim Meyering  <meyering@redhat.com>
46836         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
46837         The _LIBC implementation of build_range_exp correctly honors the
46838         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
46839         However, the non-_LIBC implementation would ignore that syntax-bit
46840         flag and return REG_ERANGE unconditionally.
46841         This change makes it honor that flag.
46842         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
46843         Make two pointer parameters "const".
46844         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
46845         (parse_bracket_exp): Update caller.
46847         regex.m4: correct the reversed range endpoint ([b-a]) test
46848         * m4/regex.m4: When requiring that [b-a] evoke failure,
46849         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
46850         test pass once again for x86-based systems.
46852 2010-03-19  Bruno Haible  <bruno@clisp.org>
46854         scandir: Fix link error on Solaris 8.
46855         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
46856         macros.
46858 2010-03-19  Bruno Haible  <bruno@clisp.org>
46860         getusershell: Fix documentation.
46861         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
46862         module.
46863         * doc/glibc-functions/setusershell.texi: Likewise.
46865         getusershell: Provide declaration, missing on Solaris 9.
46866         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
46867         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
46868         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
46869         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
46870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46871         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
46872         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
46873         HAVE_GETUSERSHELL.
46874         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
46876 2010-03-19  Bruno Haible  <bruno@clisp.org>
46878         wctype: Provide iswblank function.
46879         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
46880         exists and is fine.
46881         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
46882         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
46883         * tests/test-wctype.c (main): Re-enable the iswblank tests.
46884         * doc/posix-functions/iswblank.texi: Update.
46886 2010-03-19  Bruno Haible  <bruno@clisp.org>
46888         Tests of module 'pty' in C++ mode.
46889         * modules/pty-tests: New file.
46890         * tests/test-pty-c++.cc: New file.
46891         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
46893 2010-03-19  Eric Blake  <eblake@redhat.com>
46895         logb: fix documentation
46896         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
46897         1.5 declaration bug.
46899         forkpty, openpty: prefer glibc's const-safe prototype
46900         * lib/forkpty.c (rpl_forkpty): New file.
46901         * lib/openpty.c (rpl_openpty): Likewise.
46902         * modules/forkpty (Files): Distribute it.
46903         * modules/openpty (Files): Likewise.
46904         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
46905         check...
46906         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
46907         replacement for for non-const BSD signature.
46908         * modules/pty (Makefile.am): Substitute witnesses.
46909         * lib/pty.in.h (forkpty, openpty): Declare replacements.
46910         * tests/test-forkpty.c: Update signature check.
46911         * tests/test-openpty.c: Likewise.
46912         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
46913         * doc/glibc-functions/openpty.texi (openpty): Likewise.
46915         forkpty, openpty: split functions into new modules
46916         * modules/pty (Makefile.am): Substitute new witnesses.
46917         (Libraries): Move library detection...
46918         * modules/forkpty: ...into new module.
46919         * modules/openpty: Another new module.
46920         * modules/pty-tests: Rename and split...
46921         * modules/forkpty-tests: ...to this...
46922         * modules/openpty-tests: ...and this.
46923         * tests/test-pty.c: Rename and split...
46924         * tests/test-forkpty.c: ...to this...
46925         * tests/test-openpty.c: ...and this.
46926         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
46927         (gl_PTY): Split library searching...
46928         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
46929         (gl_FORKPTY, gl_OPENPTY): New macros.
46930         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
46931         * NEWS: Mention the split.
46932         * MODULES.html.sh (Misc): Document the modules.
46933         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
46934         * doc/glibc-functions/openpty.texi (openpty): Likewise.
46936         pty: improve replacement header
46937         * lib/pty.in.h: New file.
46938         * modules/pty (Files): Ship it.
46939         (Makefile.am): Always build replacement.
46940         * m4/pty.m4: Rename...
46941         * m4/pty_h.m4: ...to this.
46942         (gl_PTY): Modernize setting of witness macros; update check of
46943         forkpty to take proper advantage of cache.
46944         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
46946         getopt: avoid compiler warning
46947         * lib/getopt.c (attribute_hidden): Remove unused macro.
46949 2010-03-18  Bruno Haible  <bruno@clisp.org>
46951         Fix link errors on Solaris 8.
46952         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
46953         * modules/search-tests (test_search_c___LDADD): Likewise.
46954         * modules/signal-tests (test_signal_c___LDADD): Likewise.
46955         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
46956         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
46957         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
46958         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
46959         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
46960         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
46962 2010-03-18  Bruno Haible  <bruno@clisp.org>
46964         Fix bug introduced on 2010-03-14.
46965         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
46966         (gl_SPAWN_H): Require it.
46967         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
46968         Reported by Simon Josefsson.
46970 2010-03-18  Bruno Haible  <bruno@clisp.org>
46972         Fix typo introduced on 2009-12-31.
46973         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
46974         posix_spawn_file_actions_adddup2.
46976 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
46977         and Eric Blake  <eblake@redhat.com>
46979         test-vc-list-files-git: make more robust
46980         * tests/test-vc-list-files-git.sh: Unset problematic environment
46981         variables.  Chain commands together.
46983 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
46985         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
46986         `AC_CHECK_DECL' invocation.
46988 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
46990         * lib/inttostr.c (inttostr): Make sure the invocation of verify
46991         appears before executable statements. Suggested by Petr Sumbera
46992         <Petr.Sumbera@Sun.COM>.
46994 2010-03-14  Bruno Haible  <bruno@clisp.org>
46996         * tests/test-flock.c (test_exclusive): Comment out a test that causes
46997         portability problems. Instead use a simpler test.
46998         (main): Check that invalid arguments are rejected only on Linux.
47000 2010-03-14  Bruno Haible  <bruno@clisp.org>
47002         Fix bug introduced on 2009-12-31.
47003         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
47004         gl_PREREQ_SYS_H_WINSOCK2 always.
47005         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
47006         SYS_SOCKET_H variable.
47007         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
47008         Update comments.
47009         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
47010         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
47011         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
47012         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
47013         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
47015 2010-03-14  Bruno Haible  <bruno@clisp.org>
47017         Fix values returned by sinl, cosl.
47018         * lib/trigl.h: Add specification comments.
47019         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
47020         that combines the values from the precomputed table with the values of
47021         the Chebyshev polynomials.
47023 2010-03-14  Bruno Haible  <bruno@clisp.org>
47025         Fix compilation error when modules 'posix_spawn[p]' are not used.
47026         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
47027         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
47029 2010-03-14  Bruno Haible  <bruno@clisp.org>
47031         Fix compilation error on mingw when module 'time_r' is not used.
47032         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
47033         is 1.
47034         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
47035         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
47036         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
47037         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
47039 2010-03-14  Bruno Haible  <bruno@clisp.org>
47041         Fix compilation error with Sun C.
47042         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
47043         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
47044         instead of GCC specific ULONG_LONG_MAX.
47045         * lib/xstrtoll.c: Likewise.
47046         * lib/xstrtoull.c: Likewise.
47048 2010-03-13  Bruno Haible  <bruno@clisp.org>
47050         Allow the user to disable C++ code and tests.
47051         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
47052         (gl_PROG_ANSI_CXX): Require it.
47054 2010-03-13  Bruno Haible  <bruno@clisp.org>
47056         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
47057         cases.
47059 2010-03-13  Bruno Haible  <bruno@clisp.org>
47061         Test that gnulib does not break the standard C++ headers.
47062         * tests/test-locale-c++2.cc: New file.
47063         * modules/locale-tests (Files): Add it.
47064         (Makefile.am): Compile it for test-locale-c++.
47065         * tests/test-math-c++2.cc: New file.
47066         * modules/math-tests (Files): Add it.
47067         (Makefile.am): Compile it for test-math-c++.
47068         * tests/test-signal-c++2.cc: New file.
47069         * modules/signal-tests (Files): Add it.
47070         (Makefile.am): Compile it for test-signal-c++.
47071         * tests/test-stdio-c++2.cc: New file.
47072         * modules/stdio-tests (Files): Add it.
47073         (Makefile.am): Compile it for test-stdio-c++.
47074         * tests/test-stdlib-c++2.cc: New file.
47075         * modules/stdlib-tests (Files): Add it.
47076         (Makefile.am): Compile it for test-stdlib-c++.
47077         * tests/test-string-c++2.cc: New file.
47078         * modules/string-tests (Files): Add it.
47079         (Makefile.am): Compile it for test-string-c++.
47080         * tests/test-time-c++2.cc: New file.
47081         * modules/time-tests (Files): Add it.
47082         (Makefile.am): Compile it for test-time-c++.
47083         Reported by John W. Eaton <jwe@gnu.org>.
47085 2010-03-13  Bruno Haible  <bruno@clisp.org>
47087         * gnulib-tool (func_usage): Clarify which options are available for
47088         --create-testdir and --create-megatestdir.
47090 2010-03-13  Bruno Haible  <bruno@clisp.org>
47092         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
47093         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
47094         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
47095         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
47096         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
47097         when appropriate.
47098         Reported by Jim Meyering.
47100 2010-03-12  Simon Josefsson  <simon@josefsson.org>
47102         * gnulib-tool (func_import): Explain origin of code.
47104 2010-03-12  Bruno Haible  <bruno@clisp.org>
47106         Fix problem with automake's definition of CXXLINK.
47107         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
47108         Reported by Simon Josefsson and Ludovic Courtès.
47110 2010-03-12  Bruno Haible  <bruno@clisp.org>
47112         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
47113         stable releases.
47115 2010-03-11  Bruno Haible  <bruno@clisp.org>
47117         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
47118         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
47119         whether the system provides one variant or multiple variants of the
47120         function.
47121         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
47122         C++ compilers.
47123         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
47124         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
47125         Reported by Jim Meyering.
47127 2010-03-09  Simon Josefsson  <simon@josefsson.org>
47129         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
47131 2010-03-08  Bruno Haible  <bruno@clisp.org>
47133         gnulib-tool: Add support for --libtool in --create-testdir.
47134         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
47135         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
47137 2010-03-08  Eric Blake  <eblake@redhat.com>
47139         gnulib-tool.texi: mention possibility of git submodule
47140         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
47141         submodules.
47142         * doc/.gitignore: Ignore another generated file.
47144 2010-03-08  Karl Berry  <karl@gnu.org>
47146         * doc/gnulib-tool.texi (VCS Issues): Mention third option
47147         of committing gnulib files while skipping others.
47149 2010-03-07  Bruno Haible  <bruno@clisp.org>
47151         Tests of module 'wctype' in C++ mode.
47152         * tests/test-wctype-c++.cc: New file.
47153         * modules/wctype-tests (Files): Add it and tests/signature.h.
47154         (Depends-on): Add ansi-c++-opt.
47155         (Makefile.am): Arrange to compile and run test-wctype-c++.
47157         Tests of module 'wchar' in C++ mode.
47158         * tests/test-wchar-c++.cc: New file.
47159         * modules/wchar-tests (Files): Add it and tests/signature.h.
47160         (Depends-on): Add ansi-c++-opt.
47161         (Makefile.am): Arrange to compile and run test-wchar-c++.
47162         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
47163         gl_MODULE_INDICATOR.
47165         Tests of module 'unistd' in C++ mode.
47166         * tests/test-unistd-c++.cc: New file.
47167         * modules/unistd-tests (Files): Add it and tests/signature.h.
47168         (Depends-on): Add ansi-c++-opt.
47169         (Makefile.am): Arrange to compile and run test-unistd-c++.
47170         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
47171         gl_MODULE_INDICATOR.
47173         Tests of module 'time' in C++ mode.
47174         * tests/test-time-c++.cc: New file.
47175         * modules/time-tests (Files): Add it and tests/signature.h.
47176         (Depends-on): Add ansi-c++-opt.
47177         (Makefile.am): Arrange to compile and run test-time-c++.
47178         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
47180         Tests of module 'sys_time' in C++ mode.
47181         * tests/test-sys_time-c++.cc: New file.
47182         * modules/sys_time-tests (Files): Add it and tests/signature.h.
47183         (Depends-on): Add ansi-c++-opt.
47184         (Makefile.am): Arrange to compile and run test-sys_time-c++.
47185         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
47186         gl_MODULE_INDICATOR.
47188         Tests of module 'sys_stat' in C++ mode.
47189         * tests/test-sys_stat-c++.cc: New file.
47190         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
47191         (Depends-on): Add ansi-c++-opt.
47192         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
47193         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
47194         gl_MODULE_INDICATOR.
47196         Tests of module 'sys_socket' in C++ mode.
47197         * tests/test-sys_socket-c++.cc: New file.
47198         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
47199         (Depends-on): Add ansi-c++-opt.
47200         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
47201         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
47202         gl_MODULE_INDICATOR.
47204         Tests of module 'sys_select' in C++ mode.
47205         * tests/test-sys_select-c++.cc: New file.
47206         * modules/sys_select-tests (Files): Add it and tests/signature.h.
47207         (Depends-on): Add ansi-c++-opt.
47208         (Makefile.am): Arrange to compile and run test-sys_select-c++.
47209         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
47210         gl_MODULE_INDICATOR.
47212         Tests of module 'sys_ioctl' in C++ mode.
47213         * tests/test-sys_ioctl-c++.cc: New file.
47214         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
47215         (Depends-on): Add ansi-c++-opt.
47216         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
47217         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
47218         gl_MODULE_INDICATOR.
47220         Tests of module 'string' in C++ mode.
47221         * tests/test-string-c++.cc: New file.
47222         * modules/string-tests (Files): Add it and tests/signature.h.
47223         (Depends-on): Add ansi-c++-opt.
47224         (Makefile.am): Arrange to compile and run test-string-c++.
47225         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
47226         gl_MODULE_INDICATOR.
47228         Tests of module 'stdlib' in C++ mode.
47229         * tests/test-stdlib-c++.cc: New file.
47230         * modules/stdlib-tests (Files): Add it and tests/signature.h.
47231         (Depends-on): Add ansi-c++-opt.
47232         (Makefile.am): Arrange to compile and run test-stdlib-c++.
47233         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
47234         gl_MODULE_INDICATOR.
47236         Tests of module 'stdio' in C++ mode.
47237         * tests/test-stdio-c++.cc: New file.
47238         * modules/stdio-tests (Files): Add it and tests/signature.h.
47239         (Depends-on): Add ansi-c++-opt.
47240         (Makefile.am): Arrange to compile and run test-stdio-c++.
47241         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
47242         gl_MODULE_INDICATOR.
47244         Tests of module 'spawn' in C++ mode.
47245         * tests/test-spawn-c++.cc: New file.
47246         * modules/spawn-tests (Files): Add it and tests/signature.h.
47247         (Depends-on): Add ansi-c++-opt.
47248         (Makefile.am): Arrange to compile and run test-spawn-c++.
47249         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
47250         gl_MODULE_INDICATOR.
47252         Tests of module 'signal' in C++ mode.
47253         * tests/test-signal-c++.cc: New file.
47254         * modules/signal-tests (Files): Add it and tests/signature.h.
47255         (Depends-on): Add ansi-c++-opt.
47256         (Makefile.am): Arrange to compile and run test-signal-c++.
47257         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
47258         gl_MODULE_INDICATOR.
47260         Tests of module 'search' in C++ mode.
47261         * tests/test-search-c++.cc: New file.
47262         * modules/search-tests (Files): Add it and tests/signature.h.
47263         (Depends-on): Add ansi-c++-opt.
47264         (Makefile.am): Arrange to compile and run test-search-c++.
47265         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
47266         gl_MODULE_INDICATOR.
47268         Tests of module 'math' in C++ mode.
47269         * tests/test-math-c++.cc: New file.
47270         * modules/math-tests (Files): Add it and tests/signature.h.
47271         (Depends-on): Add ansi-c++-opt.
47272         (Makefile.am): Arrange to compile and run test-math-c++.
47273         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
47275         Tests of module 'locale' in C++ mode.
47276         * tests/test-locale-c++.cc: New file.
47277         * modules/locale-tests (Files): Add it and tests/signature.h.
47278         (Depends-on): Add ansi-c++-opt.
47279         (Makefile.am): Arrange to compile and run test-locale-c++.
47280         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
47281         gl_MODULE_INDICATOR.
47283         Tests of module 'langinfo' in C++ mode.
47284         * tests/test-langinfo-c++.cc: New file.
47285         * modules/langinfo-tests (Files): Add it and tests/signature.h.
47286         (Depends-on): Add ansi-c++-opt.
47287         (Makefile.am): Arrange to compile and run test-langinfo-c++.
47288         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
47289         gl_MODULE_INDICATOR.
47291         Tests of module 'iconv-h' in C++ mode.
47292         * tests/test-iconv-h-c++.cc: New file.
47293         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
47294         (Depends-on): Add ansi-c++-opt.
47295         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
47297         Tests of module 'glob' in C++ mode.
47298         * tests/test-glob-c++.cc: New file.
47299         * modules/glob-tests (Files): Add it.
47300         (Depends-on): Add ansi-c++-opt.
47301         (Makefile.am): Arrange to compile and run test-glob-c++.
47303         Tests of module 'fcntl-h' in C++ mode.
47304         * tests/test-fcntl-h-c++.cc: New file.
47305         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
47306         (Depends-on): Add ansi-c++-opt.
47307         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
47308         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
47309         gl_MODULE_INDICATOR.
47311         Tests of module 'dirent' in C++ mode.
47312         * tests/test-dirent-c++.cc: New file.
47313         * modules/dirent-tests (Files): Add it and tests/signature.h.
47314         (Depends-on): Add ansi-c++-opt.
47315         (Makefile.am): Arrange to compile and run test-dirent-c++.
47316         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
47317         gl_MODULE_INDICATOR.
47319         New module 'ansi-c++-opt'.
47320         * modules/ansi-c++-opt: New file.
47321         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
47323         Document C++ namespace mode.
47324         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
47326         wctype: Avoid #define replacements in C++ mode.
47327         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
47328         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
47329         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
47330         In C++, define a namespaced alias symbol.
47331         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
47332         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
47333         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
47334         rule.
47336         wchar: Avoid #define replacements in C++ mode.
47337         * lib/wchar.in.h: Include c++defs.h.
47338         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
47339         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
47340         symbol.
47341         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
47342         * modules/wchar (Depends-on): Add c++defs.
47343         (Makefile.am): Update wchar.h rule.
47345         unistd: Avoid #define replacements in C++ mode.
47346         * lib/unistd.in.h: Include c++defs.h.
47347         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
47348         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
47349         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
47350         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
47351         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
47352         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
47353         symbol.
47354         (environ): Update.
47355         * modules/unistd (Depends-on): Add c++defs.
47356         (Makefile.am): Update unistd.h rule.
47358         time: Avoid #define replacements in C++ mode.
47359         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
47360         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
47361         define a namespaced alias symbol.
47362         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
47363         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
47364         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
47365         * modules/time (Depends-on): Add c++defs, warn-on-use.
47366         (Makefile.am): Update time.h rule.
47367         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
47368         * modules/nanosleep (configure.ac): Likewise.
47369         * modules/strptime (configure.ac): Likewise.
47370         * modules/timegm (configure.ac): Likewise.
47372         sys_time: Avoid #define replacements in C++ mode.
47373         * lib/sys_time.in.h: Include c++defs.h.
47374         (gettimeofday): In C++, define a namespaced alias symbol.
47375         * modules/sys_time (Depends-on): Add c++defs.
47376         (Makefile.am): Update sys/time.h rule.
47378         sys_stat: Avoid #define replacements in C++ mode.
47379         * lib/sys_stat.in.h: Include c++defs.h.
47380         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
47381         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
47382         namespaced alias symbol.
47383         In C++, define a namespaced alias symbol.
47384         * modules/sys_stat (Depends-on): Add c++defs.
47385         (Makefile.am): Update sys/stat.h rule.
47387         sys_socket: Avoid #define replacements in C++ mode.
47388         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
47389         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
47390         definitions also when the system has a <sys/socket.h>.
47391         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47392         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
47393         In C++, define a namespaced alias symbol.
47394         * modules/sys_socket (Depends-on): Add c++defs.
47395         (Makefile.am): Update sys/socket.h rule.
47397         sys_select: Avoid #define replacements in C++ mode.
47398         * lib/sys_select.in.h: Include c++defs.h. Enable the function
47399         definitions also when the system has a <sys/select.h>.
47400         (select): In C++, define a namespaced alias symbol.
47401         * modules/sys_select (Depends-on): Add c++defs.
47402         (Makefile.am): Update sys/select.h rule.
47404         sys_ioctl: Avoid #define replacements in C++ mode.
47405         * lib/sys_ioctl.in.h: Include c++defs.h.
47406         (ioctl): In C++, define a namespaced alias symbol.
47407         * modules/sys_ioctl (Depends-on): Add c++defs.
47408         (Makefile.am): Update sys/ioctl.h rule.
47410         string: Avoid #define replacements in C++ mode.
47411         * lib/string.in.h: Include c++defs.h.
47412         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
47413         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
47414         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
47415         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
47416         strsignal, strverscmp): In C++, define a namespaced alias symbol.
47417         * modules/string (Depends-on): Add c++defs.
47418         (Makefile.am): Update string.h rule.
47420         stdlib: Avoid #define replacements in C++ mode.
47421         * lib/stdlib.in.h: Include c++defs.h.
47422         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
47423         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
47424         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
47425         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
47426         symbol.
47427         * modules/stdlib (Depends-on): Add c++defs.
47428         (Makefile.am): Update stdlib.h rule.
47430         stdio: Avoid #define replacements in C++ mode.
47431         * lib/stdio.in.h: Include c++defs.h.
47432         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
47433         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
47434         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
47435         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
47436         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
47437         namespaced alias symbol.
47438         * modules/stdio (Depends-on): Add c++defs.
47439         (Makefile.am): Update stdio.h rule.
47441         spawn: Avoid #define replacements in C++ mode.
47442         * lib/spawn.in.h: Include c++defs.h.
47443         (posix_spawn, posix_spawnp, posix_spawnattr_init,
47444         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
47445         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
47446         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
47447         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
47448         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
47449         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
47450         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
47451         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
47452         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
47453         In C++, define a namespaced alias symbol.
47454         * modules/spawn (Depends-on): Add c++defs.
47455         (Makefile.am): Update spawn.h rule.
47457         signal: Avoid #define replacements in C++ mode.
47458         * lib/signal.in.h: Include c++defs.h.
47459         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
47460         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
47461         namespaced alias symbol.
47462         * modules/signal (Depends-on): Add c++defs.
47463         (Makefile.am): Update signal.h rule.
47465         search: Avoid #define replacements in C++ mode.
47466         * lib/search.in.h: Include c++defs.h.
47467         (_gl_search_compar_fn, _gl_search_action_fn): New types.
47468         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
47469         symbol.
47470         * modules/search (Depends-on): Add c++defs.
47471         (Makefile.am): Update search.h rule.
47473         math: Avoid #define replacements in C++ mode.
47474         * lib/math.in.h: Include c++defs.h.
47475         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
47476         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
47477         trunc, truncl): In C++, define a namespaced alias symbol.
47478         * modules/math (Depends-on): Add c++defs.
47479         (Makefile.am): Update math.h rule.
47481         locale: Avoid #define replacements in C++ mode.
47482         * lib/locale.in.h: Include c++defs.h.
47483         (duplocale): In C++, define a namespaced alias symbol.
47484         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
47485         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
47486         * modules/locale (Depends-on): Add c++defs.
47487         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
47489         langinfo: Avoid #define replacements in C++ mode.
47490         * lib/langinfo.in.h: Include c++defs.h.
47491         (nl_langinfo): In C++, define a namespaced alias symbol.
47492         * modules/langinfo (Depends-on): Add c++defs.
47493         (Makefile.am): Update langinfo.h rule.
47495         iconv-h: Avoid #define replacements in C++ mode.
47496         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
47497         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
47498         symbol.
47499         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47500         whenever iconv is present.
47501         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
47502         (Makefile.am): Update iconv.h rule.
47504         glob: Avoid #define replacements in C++ mode.
47505         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
47506         (_gl_glob_errfunc_fn): New type.
47507         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
47508         symbol.
47509         * modules/glob (Depends-on): Add c++defs, warn-on-use.
47510         (Makefile.am): Update glob.h rule.
47512         fcntl-h: Avoid #define replacements in C++ mode.
47513         * lib/fcntl.in.h: Include c++defs.h.
47514         (fcntl, open, openat): In C++, define a namespaced alias symbol.
47515         * modules/fcntl-h (Depends-on): Add c++defs.
47516         (Makefile.am): Update fcntl.h rule.
47518         dirent: Avoid #define replacements in C++ mode.
47519         * lib/dirent.in.h: Include c++defs.h.
47520         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
47521         namespaced alias symbol.
47522         (dirfd): Update declaration.
47523         * modules/dirent (Depends-on): Add c++defs.
47524         (Makefile.am): Update dirent.h rule.
47526         ctype: Make it usable in C++ code.
47527         * lib/ctype.in.h: Include c++defs.h.
47528         (isblank): Declare as extern "C".
47529         * modules/ctype (Depends-on): Add c++defs.
47530         (Makefile.am): Update ctype.h rule.
47532         New module 'c++defs'.
47533         * modules/c++defs: New file.
47534         * build-aux/c++defs.h: New file.
47535         Reported by John W. Eaton <jwe@gnu.org>.
47537 2010-03-07  Bruno Haible  <bruno@clisp.org>
47539         logb: Provide missing declaration for Cygwin.
47540         * lib/math.in.h (logb): New declaration.
47541         * m4/logb.m4: New file.
47542         * modules/logb (Files): Add m4/logb.m4.
47543         (Depends-on): Add math.
47544         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
47545         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
47546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
47547         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
47548         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
47550 2010-03-07  Bruno Haible  <bruno@clisp.org>
47552         Fix test-cond link error.
47553         * tests/test-cond.c: Include <stdio.h>.
47555 2010-03-07  Bruno Haible  <bruno@clisp.org>
47557         Fix test-dirent-safer link error.
47558         * modules/dirent-safer-tests (Makefile.am): Define
47559         test_dirent_safer_LDADD.
47561 2010-03-07  Bruno Haible  <bruno@clisp.org>
47563         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
47564         among default module list.
47566 2010-03-07  Bruno Haible  <bruno@clisp.org>
47568         Fix link error on platforms with GNU libiconv.
47569         * modules/unistr/u8-strcoll-tests (Makefile): Define
47570         test_u8_strcoll_LDADD.
47571         * modules/unistr/u16-strcoll-tests (Makefile): Define
47572         test_u16_strcoll_LDADD.
47573         * modules/unistr/u32-strcoll-tests (Makefile): Define
47574         test_u32_strcoll_LDADD.
47576 2010-03-07  Bruno Haible  <bruno@clisp.org>
47578         Use POSIX declarations for socket functions.
47579         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
47580         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
47581         rpl_sendto): Change declaration to match POSIX.
47582         * lib/connect.c (rpl_connect): Likewise.
47583         * lib/accept.c (rpl_accept): Likewise.
47584         * lib/bind.c (rpl_bind): Likewise.
47585         * lib/getpeername.c (rpl_getpeername): Likewise.
47586         * lib/getsockname.c (rpl_getsockname): Likewise.
47587         * lib/recv.c (rpl_recv): Likewise.
47588         * lib/send.c (rpl_send): Likewise.
47589         * lib/recvfrom.c (rpl_recvfrom): Likewise.
47590         * lib/sendto.c (rpl_sendto): Likewise.
47592 2010-03-06  Bruno Haible  <bruno@clisp.org>
47594         Clarify access, euidaccess, faccessat.
47595         * doc/posix-functions/faccessat.texi: Mention security problem under
47596         "Other problems", not "Portability problems".
47597         * doc/posix-functions/access.texi: Likewise. Mention a related security
47598         problem.
47599         * doc/glibc-functions/euidaccess.texi: Mention security problems.
47600         * lib/euidaccess.c: Add comments about platforms.
47601         * lib/unistd.in.h (access, euidaccess): Add warnings.
47603 2010-03-07  Bruno Haible  <bruno@clisp.org>
47605         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
47606         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
47607         (POSIX_SPAWN_SETSCHEDULER): Likewise.
47608         (POSIX_SPAWN_USEVFORK): Define in a way that works when
47609         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
47610         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
47611         declare when POSIX_SPAWN_SETSCHEDULER is zero.
47612         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
47613         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
47614         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
47615         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
47616         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
47617         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
47618         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
47619         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
47620         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
47621         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
47622         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
47623         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
47624         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
47625         Likewise.
47626         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
47627         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
47628         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
47629         Likewise.
47630         * tests/test-spawn.c (main): Make it work when
47631         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
47633 2010-03-07  Bruno Haible  <bruno@clisp.org>
47635         Fix incorrect Makefile.am generation in German locale.
47636         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47637         Execute sed command with character range in C locale.
47639 2010-03-06  Bruno Haible  <bruno@clisp.org>
47641         Tests for module 'iconv-h'.
47642         * modules/iconv-h-tests: New file.
47643         * tests/test-iconv-h.c: New file.
47645         New module 'iconv-h'.
47646         * modules/iconv-h: New file.
47647         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
47648         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
47649         (configure.ac): Remove gl_ICONV_H.
47650         (Makefile.am): Remove rule for iconv.h.
47652 2010-03-06  Bruno Haible  <bruno@clisp.org>
47654         More consistent naming of *.m4 files.
47655         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
47656         * modules/wctype (Files): Update.
47658         More consistent naming of *.m4 files.
47659         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
47660         * modules/wchar (Files): Update.
47662 2010-03-06  Jim Meyering  <meyering@redhat.com>
47664         euidaccess: relax license to LGPLv2+
47665         * modules/euidaccess (License): Relax to LGPLv2+.
47667 2010-03-06  Bruno Haible  <bruno@clisp.org>
47669         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
47670         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
47671         (Makefile.am): Augment lib_SOURCES instead.
47673 2010-03-04  Jim Meyering  <meyering@redhat.com>
47675         utime: remove obsolete module
47676         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
47677         unnecessary for years, and has been marked as obsolete for 10 months.
47678         * modules/utime: Remove file.
47679         * lib/utime.c: Remove file.
47680         * m4/utime.m4: Remove file.
47681         * m4/utimes-null.m4: Remove file.
47682         * doc/posix-functions/utime.texi (utime): Remove reference to
47683         the module.  Move the sole "fixed by gnulib" item into the
47684         "problems not fixed by Gnulib" list.
47685         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
47687 2010-03-05  Simon Josefsson  <simon@josefsson.org>
47689         * modules/exit (License): Relax license to LGPLv2+.
47690         (Status): Mark as obsolete.
47691         * NEWS: Mention deprecated 'exit' module.
47692         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
47693         of now obsolete 'exit'.
47695 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47697         fts-lgpl: remove unused module
47698         * modules/fts-lgpl: Remove.
47699         * MODULES.html.sh (func_all_modules): Adjust.
47700         * check-module (find_included_lib_files): Adjust.
47701         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
47703 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
47705         copy-acl: enhance Solaris ACL error handling
47706         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
47707         * lib/set-mode-acl.c (qset_acl): Likewise.
47709 2010-03-02  Bruno Haible  <bruno@clisp.org>
47711         spawn: Don't override the system defined values on FreeBSD 8.
47712         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
47713         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
47714         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
47715         if HAVE_POSIX_SPAWN is 1.
47716         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
47718 2010-03-01  Bruno Haible  <bruno@clisp.org>
47720         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
47721         regarding Automake.
47723 2010-02-25  Bruno Haible  <bruno@clisp.org>
47725         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
47726         * gnulib-tool: Define 'echo' as a function only before the ksh alias
47727         setting, not afterwards.
47728         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
47730 2010-02-24  Eric Blake  <eblake@redhat.com>
47732         bootstrap, git-version-gen: use timestamp
47733         * build-aux/git-version-gen (scriptversion): Force UTC.
47734         * build-aux/bootstrap (scriptversion): New variable.
47736         bootstrap: allow older git
47737         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
47738         older than 1.6.4.  Requested by the libvirt project.
47740 2010-02-23  Eric Blake  <eblake@redhat.com>
47742         warn-on-use: work with old autoconf
47743         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
47744         AS_VAR semantics of autoconf 2.60.
47745         Reported by Bruno Haible.
47747         bootstrap: improve some comments
47748         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
47749         clarification comments.
47751         gettimeofday: provide correct function
47752         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
47753         when replacement is declared, otherwise provide gettimeofday.
47754         Reported by Michael Goffioul.
47756 2010-02-23  Jim Meyering  <meyering@redhat.com>
47758         lib-ignore: relax license to "unlimited", not LGPLv2+
47759         * modules/lib-ignore (License): Relax to "unlimited".
47761 2010-02-23  Jim Meyering  <meyering@redhat.com>
47763         lib-ignore: relax license to LGPLv2+
47764         * modules/lib-ignore (License): Relax to LGPLv2+.
47766 2010-02-22  Eric Blake  <eblake@redhat.com>
47768         lseek: avoid bash 3.2 broken pipe bug
47769         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
47770         warning from bash 3.2.
47771         Reported by Ben Pfaff, with analysis from Bruno Haible.
47773         bootstrap: support non-FSF copyright holder
47774         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
47775         bootstrap.conf override of COPYRIGHT_HOLDER.
47776         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
47778         bootstrap: interoperate with gettext 0.14.1
47779         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
47781         bootstrap: allow for alternate submodule location
47782         * build-aux/bootstrap (gnulib_path): New variable; use instead of
47783         hardcoding submodule location.
47784         (gnulib_mk): Allow direct use of Makefile.am.
47786         bootstrap: use GNULIB_SRCDIR to reduce disk usage
47787         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
47788         rather than reconfiguring where the submodule points.
47790         gettimeofday: restore support for platforms that lack function
47791         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
47792         replacement if function is missing.
47793         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
47794         * modules/sys_time (Makefile.am): Substitute it.
47795         * lib/sys_time.in.h (gettimeofday): Check it.
47796         Reported by Michael Goffioul.
47798 2010-02-21  Bruno Haible  <bruno@clisp.org>
47800         * lib/stdio.in.h (obstack_printf): Fix typo.
47802 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
47804         vc-list-files: use bzr ls's -R option
47805         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
47806         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
47808 2010-02-21  Jim Meyering  <meyering@redhat.com>
47810         init.sh: fix EXEEXT shims to work also for names like test-prog
47811         * tests/init.sh: Re-exec a better shell, when needed.
47812         If the current shell lacks support for posix $(...), an init.sh-using
47813         test will now try to find a shell that supports that.  If EXEEXT is
47814         nonempty, we also require support for hyphen-in-alias-name and shell
47815         substitutions like ${var#glob}.  Failure to find such a shell results
47816         in a skipped test.
47818 2010-02-21  Bruno Haible  <bruno@clisp.org>
47820         Really work around around "broken pipe" error message from bash 3.2.
47821         * gnulib-tool (func_reset_sigpipe): Remove function.
47822         (echo): In bash 3.2, define to a function that uses printf.
47823         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
47825 2010-02-20  Bruno Haible  <bruno@clisp.org>
47827         Restore support for automake 1.9.6 with autoconf 2.61.
47828         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
47829         Reported by James Youngman <jay@gnu.org>.
47831 2010-02-20  Bruno Haible  <bruno@clisp.org>
47833         Improve *printf warning condition.
47834         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
47835         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
47836         and the function is overridden due to SIGPIPE emulation.
47838 2010-02-20  Bruno Haible  <bruno@clisp.org>
47840         * lib/stdio.in.h: Tweak comments.
47842 2010-02-19  Bruno Haible  <bruno@clisp.org>
47844         Make it easier to find modules. New gnulib-tool option '--find'.
47845         * gnulib-tool: New option --find.
47846         (func_usage): Document it.
47847         (func_sanitize_modulelist): New function, extracted from
47848         func_all_modules.
47849         (func_all_modules): Invoke it.
47850         * doc/gnulib-tool.texi (Which modules?): New node.
47852 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
47854         * lib/sys_select.in.h: Provide select replacement even if
47855         sys/select.h exists on a system, for Interix.
47857 2010-02-18  Jim Meyering  <meyering@redhat.com>
47859         init.sh: don't use $(...) just yet
47860         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
47861         to accommodate e.g., Solaris' /bin/sh.
47863 2010-02-17  Bruno Haible  <bruno@clisp.org>
47865         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
47866         Reported by Ludovic Courtès <ludo@gnu.org>.
47868 2010-02-16  Simon Josefsson  <simon@josefsson.org>
47870         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
47871         linking with -lintl.
47873 2010-02-17  Simon Josefsson  <simon@josefsson.org>
47875         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
47876         if not provided by the system's netdb.h.  Reported by
47877         ludo@gnu.org (Ludovic Courtès).
47879 2010-02-15  Jim Meyering  <meyering@redhat.com>
47881         init.sh: improve portability and efficiency
47882         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
47883         "dummy" in a for loop.
47884         Use '!', not '^' to select the complement of a character set used
47885         in a "case" statement.
47886         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
47887         Suggestions from Eric Blake.
47889         init.sh: automatically accommodate programs with the .exe suffix
47890         Automatically arrange for an invocation of "prog" to execute the
47891         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
47892         may use the simpler "prog", yet still work when built on a system
47893         that requires specifying the added suffix.
47894         Do this by constructing a function named "prog" that invokes
47895         "prog.exe" for each .exe file in selected directories.
47896         * tests/init.sh (find_exe_basenames_): New function.
47897         (create_exe_shim_functions_): New function.
47898         (path_prepend_): Use it.
47900         maint.mk: mark syntax-check sc_*.m rules as .PHONY
47901         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
47902         "make -t syntax-check" doesn't create a ton of sc_*.m files.
47904 2010-02-14  Jim Meyering  <meyering@redhat.com>
47906         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
47907         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
47908         (sc_prohibit_hash_pjw_without_use): New rule.
47910         maint.mk: allow the default upload destination dir to be overridden
47911         * top/maint.mk (upload_dest_dir_): Define with a default that
47912         preserves the status quo.
47913         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
47914         Reported by Peter Simons.
47916         maint.mk: prohibit inclusion of "hash.h" without_use
47917         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
47919 2010-02-10  Jim Meyering  <meyering@redhat.com>
47921         maint.mk: prohibit inclusion of "ignore-value.h" without_use
47922         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
47924 2010-02-09  Eric Blake  <ebb9@byu.net>
47925         and Bruno Haible  <bruno@clisp.org>
47927         obstack-printf-posix: ensure declaration
47928         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
47929         extracted from gl_FUNC_OBSTACK_PRINTF.
47930         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
47931         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47932         Likewise.
47933         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
47934         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
47935         0.
47937 2010-02-08  Bruno Haible  <bruno@clisp.org>
47939         gnulib-tool: Fix typo in 2010-02-07 commit.
47940         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
47941         Reported by Eric Blake.
47943 2010-02-07  Bruno Haible  <bruno@clisp.org>
47945         gnulib-tool: Fix up caching patches.
47946         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
47947         option --no-cache. Use associative arrays when supported by the shell.
47948         (sed_comments): New variable.
47949         (modcache): Renamed from do_cache.
47950         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
47951         abbreviate unnecessarily.
47952         (have_associative): New variable.
47953         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
47954         way also for ksh and zsh.
47955         (func_init_sed_convert_to_cache_statements): New function, extracted
47956         from func_cache_lookup_module. Add support for associative arrays.
47957         Don't set the c_MODULE_cached variable here. Ignore all lines before
47958         the first field header. Remove only the final newline, not all trailing
47959         newlines. Support empty fields correctly. Limit the use of 'eval' to
47960         assignments.
47961         (func_get_description, func_get_status, func_get_notice,
47962         func_get_applicability, func_get_filelist, func_get_dependencies,
47963         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
47964         func_get_automake_snippet, func_get_include_directive,
47965         func_get_link_directive, func_get_license, func_get_maintainer):
47966         Update documentation. List the unoptimized code first. Add support for
47967         associative arrays. Limit the use of 'eval' to assignments.
47968         (func_get_applicability): Undo stylistic pessimisations.
47969         (func_get_automake_snippet, func_get_include_directive): Reduce code
47970         duplication.
47971         (func_modules_transitive_closure, func_modules_add_dummy,
47972         func_modules_notice, func_modules_to_filelist, func_add_file,
47973         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
47974         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
47975         func_create_testdir, func_create_megatestdir): Update documentation.
47977 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47979         * gnulib-tool (func_cache_lookup_module): Store the module name
47980         belonging to the cache variable; error out if two different
47981         module names map to the same cache variable name.
47983 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47985         gnulib-tool: Make caching optional.
47986         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
47987         Update matching short versions of --no-changelog.
47988         (func_usage): Update.
47989         (sed_extract_cache_prog): Renamed from ...
47990         (sed_extract_prog): ... this; revert to old extraction script.
47991         (func_get_description, func_get_status)
47992         (func_get_notice, func_get_applicability, func_get_filelist)
47993         (func_get_dependencies, func_get_autoconf_early_snippet)
47994         (func_get_autoconf_snippet, func_get_automake_snippet)
47995         (func_get_include_directive, func_get_link_directive)
47996         (func_get_license, func_get_maintainer): If $do_cache is false,
47997         use old, non-caching extraction scripts.
47998         Suggestion by Bruno Haible.
48000 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48002         gnulib-tool: cache module metainformation.
48003         * gnulib-tool (sed_extract_prog): Match newline before each
48004         header, and rewrite header to a shell variable suffix.
48005         (func_cache_var, func_cache_lookup_module): New functions,
48006         to turn a module name into a cache variable prefix, and to
48007         look up and cache module metainformation.
48008         (func_get_description, func_get_status)
48009         (func_get_notice, func_get_applicability, func_get_filelist)
48010         (func_get_dependencies, func_get_autoconf_early_snippet)
48011         (func_get_autoconf_snippet, func_get_automake_snippet)
48012         (func_get_include_directive, func_get_link_directive)
48013         (func_get_license, func_get_maintainer): Use
48014         func_cache_lookup_module.
48016 2010-02-07  Bruno Haible  <bruno@clisp.org>
48018         fnctl: Fix missing dependency.
48019         * modules/fcntl (Depends-on): Add getdtablesize.
48020         Reported by John W. Eaton <jwe@gnu.org>.
48022 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48024         Argp: fix recognition of short alias options.
48026         * lib/argp-parse.c (convert_options): Fix improper use of
48027         `|' between character values.
48028         * tests/test-argp.c (group1_option): New alias option
48029         --read (-r).
48030         (group1_parser): Special handling for 'r'.
48031         (test15): New test case.
48032         (test_fun): Add test15.
48033         * tests/test-argp-2.sh: Update expected --help and --usage
48034         outputs.
48036 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48038         * tests/test-argp.c: Fix indentation.
48040 2010-02-04  Eric Blake  <ebb9@byu.net>
48042         gettimeofday: expose type of second argument
48043         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
48044         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
48045         * tests/test-gettimeofday.c: Use it to silence warning.
48046         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
48047         the issue.
48049 2010-02-03  Jim Meyering  <meyering@redhat.com>
48051         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
48052         * lib/regcomp.c (TYPE_SIGNED): Define.
48053         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
48055         regcomp.c: avoid a new -Wshadow warning
48056         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
48058 2010-02-01  Jim Meyering  <meyering@redhat.com>
48060         removing useless parentheses in cpp #define directives
48061         For motivation, see commit c0221df4, "define STREQ(a,b)
48062         consistently, removing useless parentheses"
48063         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
48064         * lib/mountlist.c (MNT_IGNORE): Likewise.
48065         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
48067 2010-02-01  Eric Blake  <ebb9@byu.net>
48069         sys_time: use link-warning
48070         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
48071         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
48072         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
48073         * modules/sys_time (Depends-on): Add warn-on-use.
48074         (Makefile.am): Always build replacement.
48075         (configure.ac): Update substitutions.
48076         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
48077         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
48078         bother with SYS_TIME_H.
48079         * modules/gettimeofday (configure.ac): Declare indicator.
48080         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
48081         in use.
48083         closein-tests: silence compiler warning
48084         * tests/test-closein.c (main): Ignore fread result.
48085         * modules/closein-tests (Depends-on): Add ignore-value.
48087         tests: silence warning about system return
48088         * tests/test-areadlink-with-size.c (main): Ignore system result.
48089         * tests/test-areadlink.c (main): Likewise.
48090         * tests/test-areadlinkat-with-size.c (main): Likewise.
48091         * tests/test-areadlinkat.c (main): Likewise.
48092         * tests/test-canonicalize-lgpl.c (main): Likewise.
48093         * tests/test-canonicalize.c (main): Likewise.
48094         * tests/test-chown.c (main): Likewise.
48095         * tests/test-fchownat.c (main): Likewise.
48096         * tests/test-fdutimensat.c (main): Likewise.
48097         * tests/test-fstatat.c (main): Likewise.
48098         * tests/test-futimens.c (main): Likewise.
48099         * tests/test-lchown.c (main): Likewise.
48100         * tests/test-link.c (main): Likewise.
48101         * tests/test-linkat.c (main): Likewise.
48102         * tests/test-lstat.c (main): Likewise.
48103         * tests/test-mkdir.c (main): Likewise.
48104         * tests/test-mkdirat.c (main): Likewise.
48105         * tests/test-mkfifo.c (main): Likewise.
48106         * tests/test-mkfifoat.c (main): Likewise.
48107         * tests/test-mknod.c (main): Likewise.
48108         * tests/test-readlink.c (main): Likewise.
48109         * tests/test-remove.c (main): Likewise.
48110         * tests/test-rename.c (main): Likewise.
48111         * tests/test-renameat.c (main): Likewise.
48112         * tests/test-rmdir.c (main): Likewise.
48113         * tests/test-symlink.c (main): Likewise.
48114         * tests/test-symlinkat.c (main): Likewise.
48115         * tests/test-unlink.c (main): Likewise.
48116         * tests/test-unlinkat.c (main): Likewise.
48117         * tests/test-utimens.c (main): Likewise.
48118         * tests/test-utimensat.c (main): Likewise.
48119         * modules/areadlink-tests (Depends-on): Add ignore-value.
48120         * modules/areadlink-with-size-tests (Depends-on): Likewise.
48121         * modules/areadlinkat-tests (Depends-on): Likewise.
48122         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
48123         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
48124         * modules/canonicalize-tests (Depends-on): Likewise.
48125         * modules/chown-tests (Depends-on): Likewise.
48126         * modules/fdutimensat-tests (Depends-on): Likewise.
48127         * modules/futimens-tests (Depends-on): Likewise.
48128         * modules/lchown-tests (Depends-on): Likewise.
48129         * modules/link-tests (Depends-on): Likewise.
48130         * modules/linkat-tests (Depends-on): Likewise.
48131         * modules/lstat-tests (Depends-on): Likewise.
48132         * modules/mkdir-tests (Depends-on): Likewise.
48133         * modules/mkfifo-tests (Depends-on): Likewise.
48134         * modules/mkfifoat-tests (Depends-on): Likewise.
48135         * modules/mknod-tests (Depends-on): Likewise.
48136         * modules/openat-tests (Depends-on): Likewise.
48137         * modules/readlink-tests (Depends-on): Likewise.
48138         * modules/remove-tests (Depends-on): Likewise.
48139         * modules/rename-tests (Depends-on): Likewise.
48140         * modules/renameat-tests (Depends-on): Likewise.
48141         * modules/rmdir-tests (Depends-on): Likewise.
48142         * modules/symlink-tests (Depends-on): Likewise.
48143         * modules/symlinkat-tests (Depends-on): Likewise.
48144         * modules/unlink-tests (Depends-on): Likewise.
48145         * modules/utimens-tests (Depends-on): Likewise.
48146         * modules/utimensat-tests (Depends-on): Likewise.
48148 2010-01-31  Bruno Haible  <bruno@clisp.org>
48150         Perform the same test for many <math.h> functions.
48151         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
48152         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
48153         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
48154         of gl_MATHFUNC.
48155         * modules/acos (configure.ac): Likewise.
48156         * modules/asin (configure.ac): Likewise.
48157         * modules/atan (configure.ac): Likewise.
48158         * modules/atan2 (configure.ac): Likewise.
48159         * modules/cbrt (configure.ac): Likewise.
48160         * modules/copysign (configure.ac): Likewise.
48161         * modules/cos (configure.ac): Likewise.
48162         * modules/cosh (configure.ac): Likewise.
48163         * modules/erf (configure.ac): Likewise.
48164         * modules/erfc (configure.ac): Likewise.
48165         * modules/exp (configure.ac): Likewise.
48166         * modules/fmod (configure.ac): Likewise.
48167         * modules/hypot (configure.ac): Likewise.
48168         * modules/j0 (configure.ac): Likewise.
48169         * modules/j1 (configure.ac): Likewise.
48170         * modules/jn (configure.ac): Likewise.
48171         * modules/lgamma (configure.ac): Likewise.
48172         * modules/log (configure.ac): Likewise.
48173         * modules/log10 (configure.ac): Likewise.
48174         * modules/log1p (configure.ac): Likewise.
48175         * modules/pow (configure.ac): Likewise.
48176         * modules/remainder (configure.ac): Likewise.
48177         * modules/sin (configure.ac): Likewise.
48178         * modules/sinh (configure.ac): Likewise.
48179         * modules/tan (configure.ac): Likewise.
48180         * modules/tanh (configure.ac): Likewise.
48181         * modules/y0 (configure.ac): Likewise.
48182         * modules/y1 (configure.ac): Likewise.
48183         * modules/yn (configure.ac): Likewise.
48184         Suggested by Paolo Bonzini.
48186 2010-01-31  Bruno Haible  <bruno@clisp.org>
48188         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
48190 2010-01-31  Bruno Haible  <bruno@clisp.org>
48192         Work around getdelim() bug on FreeBSD 8.0.
48193         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
48194         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
48195         not work.
48196         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
48197         is 1.
48198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
48199         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
48200         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
48201         a non-zero size.
48202         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
48204 2010-01-31  Bruno Haible  <bruno@clisp.org>
48206         Work around getline() bug on FreeBSD 8.0.
48207         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
48208         and a non-zero size.
48209         * tests/test-getline.c (main): Likewise.
48210         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
48211         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
48213 2010-01-28  Eric Blake  <ebb9@byu.net>
48215         regex: fix build failure
48216         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
48217         platforms.
48219 2010-01-28  Jim Meyering  <meyering@redhat.com>
48221         regex: do not ignore memory allocation failure
48222         * lib/regex_internal.c (create_cd_newstate): Detect
48223         re_node_set_init_copy failure.   Extracted from glibc commit
48224         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
48226         regex: sync more white-space changes from libc
48227         * lib/regex_internal.c: White-space only changes.
48228         * lib/regexec.c: Likewise.
48230         regex: add many uses of __attribute_warn_unused_result__
48231         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
48232         * lib/regexec.c: Likewise.
48233         Extracted from a messy glibc commit.
48235         regcomp.c: spelling and merge-artifact from glibc
48236         * lib/regcomp.c: Merge remainder of glibc's
48237         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
48239         regcomp.c: sync white-space changes from glibc
48240         * lib/regcomp.c: Merge to accommodate white space
48241         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
48243         regcomp.c: do not ignore internal return values
48244         * lib/regcomp.c: Do not ignore internal return values.
48245         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
48246         but without its white-space changes and spelling fixes.
48248         regex_internal.h: define __attribute_warn_unused_result__
48249         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
48251         maint: add a syntax-check rule to check for vulnerable Makefile.in
48252         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
48254 2010-01-27  Jim Meyering  <meyering@redhat.com>
48256         ncftpput-ftp: clean up spaces
48257         * build-aux/ncftpput-ftp: Make Copyright line consistent.
48258         Remove trailing blanks.
48260 2010-01-27  Simon Josefsson  <simon@josefsson.org>
48262         * build-aux/git-version-gen: Fix copyright statement.
48263         * build-aux/gnupload: Likewise.
48264         * tests/test-arcfour.c: Likewise.
48265         * tests/test-arctwo.c: Likewise.
48266         * tests/test-count-one-bits.c: Likewise.
48267         * tests/test-crc.c: Likewise.
48268         * tests/test-des.c: Likewise.
48269         * tests/test-gc-arcfour.c: Likewise.
48270         * tests/test-gc-arctwo.c: Likewise.
48271         * tests/test-gc-des.c: Likewise.
48272         * tests/test-gc-hmac-md5.c: Likewise.
48273         * tests/test-gc-hmac-sha1.c: Likewise.
48274         * tests/test-gc-md2.c: Likewise.
48275         * tests/test-gc-md4.c: Likewise.
48276         * tests/test-gc-md5.c: Likewise.
48277         * tests/test-gc-pbkdf2-sha1.c: Likewise.
48278         * tests/test-gc-rijndael.c: Likewise.
48279         * tests/test-gc-sha1.c: Likewise.
48280         * tests/test-gc.c: Likewise.
48281         * tests/test-gethostname.c: Likewise.
48282         * tests/test-gettimeofday.c: Likewise.
48283         * tests/test-hash.c: Likewise.
48284         * tests/test-hmac-md5.c: Likewise.
48285         * tests/test-hmac-sha1.c: Likewise.
48286         * tests/test-md2.c: Likewise.
48287         * tests/test-md4.c: Likewise.
48288         * tests/test-md5.c: Likewise.
48289         * tests/test-memchr.c: Likewise.
48290         * tests/test-memchr2.c: Likewise.
48291         * tests/test-memcmp.c: Likewise.
48292         * tests/test-memmem.c: Likewise.
48293         * tests/test-memrchr.c: Likewise.
48294         * tests/test-rawmemchr.c: Likewise.
48295         * tests/test-read-file.c: Likewise.
48296         * tests/test-rijndael.c: Likewise.
48297         * tests/test-sockets.c: Likewise.
48298         * tests/test-strchrnul.c: Likewise.
48299         * tests/test-strstr.c: Likewise.
48300         * tests/test-strtod.c: Likewise.
48301         * build-aux/ncftpput-ftp: Likewise.
48303 2010-01-26  Eric Blake  <ebb9@byu.net>
48305         ignore-value: update recommended header name
48306         * modules/ignore-value (Include): Only use <> for headers that
48307         exist in glibc.
48309 2010-01-26  Jim Meyering  <meyering@redhat.com>
48311         test-userspec.c: avoid compiler warnings
48312         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
48313         and "initialization discards qualifiers..." warnings.
48314         Put the first "uid" in its own scope, and make char* members "const".
48316 2010-01-25  Bruno Haible  <bruno@clisp.org>
48318         gnulib-tool: Make warning diagnostics consistent.
48319         * gnulib-tool (func_warning): New function.
48320         Use it everywhere where gnulib-tool produces output to stderr and it is
48321         not a fatal error.
48323 2010-01-25  Bruno Haible  <bruno@clisp.org>
48325         Fix test dependencies.
48326         * modules/xstrtol-tests (Depends-on): Add inttypes.
48327         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
48329 2010-01-25 Pádraig Brady <P@draigBrady.com>
48331         syntax-check: detect incorrect boolean macro values in config.h
48332         * modules/maintainer-makefile (configure.ac): Parameterize the location
48333         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
48334         The logic is from Eric Blake and the location indicated by Jim Meyering.
48335         Note the more natural CONFIG_HEADER name is prohibited by automake
48336         for backwards compatibility reasons.
48337         * top/maint.mk (sc_Wundef_boolean): New rule.
48339 2010-01-25  Jim Meyering  <meyering@redhat.com>
48341         bootstrap: detect MacOS 10.6's shasum, too
48342         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
48343         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
48345 2010-01-23  Jim Meyering  <meyering@redhat.com>
48347         xstrtoll: new module
48348         * modules/xstrtoll: New file.
48349         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
48350         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
48351         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
48352         ./configure fails if you use this module and lack "long long".
48353         * modules/xstrtoll-tests: New module.
48354         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
48355         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
48356         new init.sh-based test framework.
48358 2010-01-24  Bruno Haible  <bruno@clisp.org>
48360         Tests for module 'yn'.
48361         * modules/yn-tests: New file.
48362         * tests/test-yn.c: New file.
48364         Tests for module 'y1'.
48365         * modules/y1-tests: New file.
48366         * tests/test-y1.c: New file.
48368         Tests for module 'y0'.
48369         * modules/y0-tests: New file.
48370         * tests/test-y0.c: New file.
48372         Tests for module 'tanh'.
48373         * modules/tanh-tests: New file.
48374         * tests/test-tanh.c: New file.
48376         Tests for module 'tan'.
48377         * modules/tan-tests: New file.
48378         * tests/test-tan.c: New file.
48380         Tests for module 'sqrt'.
48381         * modules/sqrt-tests: New file.
48382         * tests/test-sqrt.c: New file.
48384         Tests for module 'sinh'.
48385         * modules/sinh-tests: New file.
48386         * tests/test-sinh.c: New file.
48388         Tests for module 'sin'.
48389         * modules/sin-tests: New file.
48390         * tests/test-sin.c: New file.
48392         Tests for module 'rint'.
48393         * modules/rint-tests: New file.
48394         * tests/test-rint.c: New file.
48396         Tests for module 'remainder'.
48397         * modules/remainder-tests: New file.
48398         * tests/test-remainder.c: New file.
48400         Tests for module 'pow'.
48401         * modules/pow-tests: New file.
48402         * tests/test-pow.c: New file.
48404         Tests for module 'nextafter'.
48405         * modules/nextafter-tests: New file.
48406         * tests/test-nextafter.c: New file.
48408         Tests for module 'modf'.
48409         * modules/modf-tests: New file.
48410         * tests/test-modf.c: New file.
48412         Tests for module 'logb'.
48413         * modules/logb-tests: New file.
48414         * tests/test-logb.c: New file.
48416         Tests for module 'log1p'.
48417         * modules/log1p-tests: New file.
48418         * tests/test-log1p.c: New file.
48420         Tests for module 'log10'.
48421         * modules/log10-tests: New file.
48422         * tests/test-log10.c: New file.
48424         Tests for module 'log'.
48425         * modules/log-tests: New file.
48426         * tests/test-log.c: New file.
48428         Tests for module 'lgamma'.
48429         * modules/lgamma-tests: New file.
48430         * tests/test-lgamma.c: New file.
48432         Tests for module 'ldexp'.
48433         * modules/ldexp-tests: New file.
48434         * tests/test-ldexp.c: New file.
48436         Tests for module 'jn'.
48437         * modules/jn-tests: New file.
48438         * tests/test-jn.c: New file.
48440         Tests for module 'j1'.
48441         * modules/j1-tests: New file.
48442         * tests/test-j1.c: New file.
48444         Tests for module 'j0'.
48445         * modules/j0-tests: New file.
48446         * tests/test-j0.c: New file.
48448         Tests for module 'hypot'.
48449         * modules/hypot-tests: New file.
48450         * tests/test-hypot.c: New file.
48452         Tests for module 'fmod'.
48453         * modules/fmod-tests: New file.
48454         * tests/test-fmod.c: New file.
48456         Tests for module 'fabs'.
48457         * modules/fabs-tests: New file.
48458         * tests/test-fabs.c: New file.
48460         Tests for module 'exp'.
48461         * modules/exp-tests: New file.
48462         * tests/test-exp.c: New file.
48464         Tests for module 'erfc'.
48465         * modules/erfc-tests: New file.
48466         * tests/test-erfc.c: New file.
48468         Tests for module 'erf'.
48469         * modules/erf-tests: New file.
48470         * tests/test-erf.c: New file.
48472         Tests for module 'cosh'.
48473         * modules/cosh-tests: New file.
48474         * tests/test-cosh.c: New file.
48476         Tests for module 'cos'.
48477         * modules/cos-tests: New file.
48478         * tests/test-cos.c: New file.
48480         Tests for module 'copysign'.
48481         * modules/copysign-tests: New file.
48482         * tests/test-copysign.c: New file.
48484         Tests for module 'cbrt'.
48485         * modules/cbrt-tests: New file.
48486         * tests/test-cbrt.c: New file.
48488         Tests for module 'atan2'.
48489         * modules/atan2-tests: New file.
48490         * tests/test-atan2.c: New file.
48492         Tests for module 'atan'.
48493         * modules/atan-tests: New file.
48494         * tests/test-atan.c: New file.
48496         Tests for module 'asin'.
48497         * modules/asin-tests: New file.
48498         * tests/test-asin.c: New file.
48500         Tests for module 'acos'.
48501         * modules/acos-tests: New file.
48502         * tests/test-acos.c: New file.
48504 2010-01-24  Bruno Haible  <bruno@clisp.org>
48506         Fix tests for common <math.h> functions.
48507         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
48508         code snippet that references the function pointer, rather than merely
48509         calling the function. Substitute the FUNC_LIBM variable.
48510         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
48511         * modules/acos (configure.ac): Likewise.
48512         * modules/asin (configure.ac): Likewise.
48513         * modules/atan (configure.ac): Likewise.
48514         * modules/atan2 (configure.ac): Likewise.
48515         * modules/cbrt (configure.ac): Likewise.
48516         * modules/copysign (configure.ac): Likewise.
48517         * modules/cos (configure.ac): Likewise.
48518         * modules/cosh (configure.ac): Likewise.
48519         * modules/erf (configure.ac): Likewise.
48520         * modules/erfc (configure.ac): Likewise.
48521         * modules/exp (configure.ac): Likewise.
48522         * modules/fabs (configure.ac): Likewise.
48523         * modules/fmod (configure.ac): Likewise.
48524         * modules/hypot (configure.ac): Likewise.
48525         * modules/j0 (configure.ac): Likewise.
48526         * modules/j1 (configure.ac): Likewise.
48527         * modules/jn (configure.ac): Likewise.
48528         * modules/ldexp (configure.ac): Likewise.
48529         * modules/lgamma (configure.ac): Likewise.
48530         * modules/log (configure.ac): Likewise.
48531         * modules/log10 (configure.ac): Likewise.
48532         * modules/log1p (configure.ac): Likewise.
48533         * modules/logb (configure.ac): Likewise.
48534         * modules/modf (configure.ac): Likewise.
48535         * modules/nextafter (configure.ac): Likewise.
48536         * modules/pow (configure.ac): Likewise.
48537         * modules/remainder (configure.ac): Likewise.
48538         * modules/rint (configure.ac): Likewise.
48539         * modules/sin (configure.ac): Likewise.
48540         * modules/sinh (configure.ac): Likewise.
48541         * modules/tan (configure.ac): Likewise.
48542         * modules/tanh (configure.ac): Likewise.
48543         * modules/y0 (configure.ac): Likewise.
48544         * modules/y1 (configure.ac): Likewise.
48545         * modules/yn (configure.ac): Likewise.
48547 2010-01-24  Bruno Haible  <bruno@clisp.org>
48549         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
48550         * tests/test-acosl.c (x): New variable.
48551         (main): Store argument in x and fetch it from x.
48552         * tests/test-asinl.c (x): New variable.
48553         (main): Store argument in x and fetch it from x.
48554         * tests/test-atanl.c (x): New variable.
48555         (main): Store argument in x and fetch it from x.
48556         * tests/test-cosl.c (x): New variable.
48557         (main): Store argument in x and fetch it from x.
48558         * tests/test-expl.c (x): New variable.
48559         (main): Store argument in x and fetch it from x.
48560         * tests/test-logl.c (x): New variable.
48561         (main): Store argument in x and fetch it from x.
48562         * tests/test-sinl.c (x): New variable.
48563         (main): Store argument in x and fetch it from x.
48564         * tests/test-sqrtl.c (x): New variable.
48565         (main): Store argument in x and fetch it from x.
48566         * tests/test-tanl.c (x): New variable.
48567         (main): Store argument in x and fetch it from x.
48569 2010-01-24  Bruno Haible  <bruno@clisp.org>
48571         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
48572         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
48573         assignments to the initial TESTS_ENVIRONMENT.
48574         * doc/gnulib.texi (Unit test modules): Document it.
48575         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
48576         TESTS_ENVIRONMENT.
48577         * modules/btowc-tests (Makefile.am): Likewise.
48578         * modules/c-stack-tests (Makefile.am): Likewise.
48579         * modules/c-strcase-tests (Makefile.am): Likewise.
48580         * modules/copy-file-tests (Makefile.am): Likewise.
48581         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
48582         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
48583         * modules/mbrtowc-tests (Makefile.am): Likewise.
48584         * modules/mbscasecmp-tests (Makefile.am): Likewise.
48585         * modules/mbscasestr-tests (Makefile.am): Likewise.
48586         * modules/mbschr-tests (Makefile.am): Likewise.
48587         * modules/mbscspn-tests (Makefile.am): Likewise.
48588         * modules/mbsinit-tests (Makefile.am): Likewise.
48589         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
48590         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
48591         * modules/mbspbrk-tests (Makefile.am): Likewise.
48592         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
48593         * modules/mbsrchr-tests (Makefile.am): Likewise.
48594         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
48595         * modules/mbsspn-tests (Makefile.am): Likewise.
48596         * modules/mbsstr-tests (Makefile.am): Likewise.
48597         * modules/nl_langinfo-tests (Makefile.am): Likewise.
48598         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
48599         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
48600         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
48601         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
48602         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
48603         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
48604         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
48605         * modules/wcrtomb-tests (Makefile.am): Likewise.
48606         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
48607         * modules/wcsrtombs-tests (Makefile.am): Likewise.
48608         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
48609         assignments from TESTS_ENVIRONMENT.
48610         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
48611         augmentation.
48612         * modules/argp-version-etc-tests (Makefile.am): Likewise.
48613         * modules/atexit-tests (Makefile.am): Likewise.
48614         * modules/binary-io-tests (Makefile.am): Likewise.
48615         * modules/closein-tests (Makefile.am): Likewise.
48616         * modules/dprintf-posix-tests (Makefile.am): Likewise.
48617         * modules/exclude-tests (Makefile.am): Likewise.
48618         * modules/fflush-tests (Makefile.am): Likewise.
48619         * modules/fpending-tests (Makefile.am): Likewise.
48620         * modules/fprintf-posix-tests (Makefile.am): Likewise.
48621         * modules/freadahead-tests (Makefile.am): Likewise.
48622         * modules/freadptr-tests (Makefile.am): Likewise.
48623         * modules/freadseek-tests (Makefile.am): Likewise.
48624         * modules/fseek-tests (Makefile.am): Likewise.
48625         * modules/fseeko-tests (Makefile.am): Likewise.
48626         * modules/ftell-tests (Makefile.am): Likewise.
48627         * modules/ftello-tests (Makefile.am): Likewise.
48628         * modules/idpriv-drop-tests (Makefile.am): Likewise.
48629         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
48630         * modules/lseek-tests (Makefile.am): Likewise.
48631         * modules/parse-duration-tests (Makefile.am): Likewise.
48632         * modules/perror-tests (Makefile.am): Likewise.
48633         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
48634         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
48635         * modules/pipe-tests (Makefile.am): Likewise.
48636         * modules/pread-tests (Makefile.am): Likewise.
48637         * modules/printf-posix-tests (Makefile.am): Likewise.
48638         * modules/select-tests (Makefile.am): Likewise.
48639         * modules/sigpipe-tests (Makefile.am): Likewise.
48640         * modules/tsearch-tests (Makefile.am): Likewise.
48641         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
48642         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
48643         * modules/uniname/uniname-tests (Makefile.am): Likewise.
48644         * modules/uniwidth/width-tests (Makefile.am): Likewise.
48645         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
48646         * modules/version-etc-tests (Makefile.am): Likewise.
48647         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
48648         * modules/vprintf-posix-tests (Makefile.am): Likewise.
48649         * modules/xalloc-die-tests (Makefile.am): Likewise.
48650         * modules/xprintf-posix-tests (Makefile.am): Likewise.
48651         * modules/xstrtoimax-tests (Makefile.am): Likewise.
48652         * modules/xstrtol-tests (Makefile.am): Likewise.
48653         * modules/xstrtoumax-tests (Makefile.am): Likewise.
48654         * modules/yesno-tests (Makefile.am): Likewise.
48655         Suggested by Jim Meyering.
48657 2010-01-24  Bruno Haible  <bruno@clisp.org>
48659         More documentation.
48660         * doc/gnulib.texi (Writing modules): New chapter.
48661         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
48662         the new chapter.
48664 2010-01-24  Jim Meyering  <meyering@redhat.com>
48666         maint.mk: do not prepend "./" after filtering
48667         * top/maint.mk (_prepend_srcdir_prefix): New variable
48668         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
48669         "./" when $(srcdir) is ".".
48671         define STREQ(a,b) consistently, removing useless parentheses
48672         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
48673         since the only risk is that "a" or "b" contains an unparenthesized
48674         comma, but if either did that, STREQ would have 3 or more arguments.
48675         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
48676         * lib/fts.c (STREQ): Remove unnecessary parentheses.
48677         * lib/hash-triple.c (STREQ): Likewise.
48678         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
48679         * lib/getugroups.c (STREQ): Likewise.
48681 2010-01-23  Jim Meyering  <meyering@redhat.com>
48683         maint.mk: fix syntax-check in a non-srcdir build directory
48684         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
48685         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
48687 2010-01-22  Jim Meyering  <meyering@redhat.com>
48689         userspec: add unit tests
48690         * tests/test-userspec.c: New file.
48691         * modules/userspec-tests: Likewise.
48693 2010-01-21  Jim Meyering  <meyering@redhat.com>
48695         maint.mk: handle source file names containing "." robustly
48696         * top/maint.mk (_dot_escaped_srcdir): Define.
48697         (VC_LIST): Use it in LHS of sed substitution.
48699 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
48701         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
48702         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
48703         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
48704         from a non-srcdir build.
48706 2010-01-20  Eric Blake  <ebb9@byu.net>
48708         warn-on-use: use instead of link-warning
48709         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
48710         * modules/unistd (Depends-on, Makefile.am): Likewise.
48711         * modules/arpa_inet (Depends-on): Replace link-warning with
48712         warn-on-use.
48713         (Makefile.am): Update rules accordingly.
48714         * modules/ctype (Depends-on, Makefile.am): Likewise.
48715         * modules/dirent (Depends-on, Makefile.am): Likewise.
48716         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
48717         * modules/inttypes (Depends-on, Makefile.am): Likewise.
48718         * modules/langinfo (Depends-on, Makefile.am): Likewise.
48719         * modules/locale (Depends-on, Makefile.am): Likewise.
48720         * modules/math (Depends-on, Makefile.am): Likewise.
48721         * modules/search (Depends-on, Makefile.am): Likewise.
48722         * modules/signal (Depends-on, Makefile.am): Likewise.
48723         * modules/spawn (Depends-on, Makefile.am): Likewise.
48724         * modules/stdlib (Depends-on, Makefile.am): Likewise.
48725         * modules/string (Depends-on, Makefile.am): Likewise.
48726         * modules/strings (Depends-on, Makefile.am): Likewise.
48727         * modules/sys_file (Depends-on, Makefile.am): Likewise.
48728         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
48729         * modules/sys_select (Depends-on, Makefile.am): Likewise.
48730         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
48731         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
48732         * modules/sys_times (Depends-on, Makefile.am): Likewise.
48733         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
48734         * modules/wchar (Depends-on, Makefile.am): Likewise.
48735         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
48736         should be poisoned.
48737         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
48738         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
48739         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
48740         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48741         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
48742         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48743         * m4/math_h.m4 (gl_MATH_H): Likewise.
48744         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48745         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48746         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48747         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
48748         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
48749         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
48750         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
48751         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
48752         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
48753         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48754         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48755         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48756         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
48757         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
48758         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48759         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48760         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
48761         GL_LINK_WARNING.
48762         * lib/ctype.in.h: Likewise.
48763         * lib/dirent.in.h: Likewise.
48764         * lib/fcntl.in.h: Likewise.
48765         * lib/inttypes.in.h: Likewise.
48766         * lib/langinfo.in.h: Likewise.
48767         * lib/locale.in.h: Likewise.
48768         * lib/math.in.h: Likewise.
48769         * lib/search.in.h: Likewise.
48770         * lib/signal.in.h: Likewise.
48771         * lib/spawn.in.h: Likewise.
48772         * lib/stdio.in.h: Likewise.
48773         * lib/stdlib.in.h: Likewise.
48774         * lib/string.in.h: Likewise.
48775         * lib/strings.in.h: Likewise.
48776         * lib/sys_file.in.h: Likewise.
48777         * lib/sys_ioctl.in.h: Likewise.
48778         * lib/sys_select.in.h: Likewise.
48779         * lib/sys_socket.in.h: Likewise.
48780         * lib/sys_stat.in.h: Likewise.
48781         * lib/sys_times.in.h: Likewise.
48782         * lib/sys_utsname.in.h: Likewise.
48783         * lib/unistd.in.h: Likewise.
48784         * lib/wchar.in.h: Likewise.
48786 2010-01-20  Bruno Haible  <bruno@clisp.org>
48788         Avoid duplicate -lm.
48789         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
48790         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
48791         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
48792         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
48793         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
48794         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
48795         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
48796         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
48797         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
48798         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
48799         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
48800         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
48801         Reported by Paolo Bonzini.
48803 2010-01-19  Bruno Haible  <bruno@clisp.org>
48805         langinfo, nl_langinfo: Relicense under LGPLv2+.
48806         * modules/langinfo (License): Change to LGPLv2+.
48807         * modules/nl_langinfo (License): Likewise.
48808         Patch by David Lutterkort <lutter@redhat.com>.
48810 2010-01-19  Bruno Haible  <bruno@clisp.org>
48812         Avoid compilation error with cc on OSF/1 5.1.
48813         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
48814         statement, not before.
48815         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48817 2010-01-18  Bruno Haible  <bruno@clisp.org>
48819         Avoid a link error due to the __printf__ symbol.
48820         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
48821         and 2.6.x.
48822         (__format__, __printf__): Remove definitions.
48823         * lib/argp-fmtstream.h: Likewise.
48824         * lib/argp.h: Likewise.
48825         * lib/error.h: Likewise.
48826         * lib/vasnprintf.h: Likewise.
48827         * lib/xprintf.h: Likewise.
48828         * lib/xvasprintf.h: Likewise.
48829         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48831 2010-01-18  Bruno Haible  <bruno@clisp.org>
48833         Tests for module 'tanl'.
48834         * modules/tanl-tests: New file.
48835         * tests/test-tanl.c: New file.
48837         Tests for module 'sqrtl'.
48838         * modules/sqrtl-tests: New file.
48839         * tests/test-sqrtl.c: New file.
48841         Tests for module 'sinl'.
48842         * modules/sinl-tests: New file.
48843         * tests/test-sinl.c: New file.
48845         Tests for module 'logl'.
48846         * modules/logl-tests: New file.
48847         * tests/test-logl.c: New file.
48849         Tests for module 'expl'.
48850         * modules/expl-tests: New file.
48851         * tests/test-expl.c: New file.
48853         Tests for module 'cosl'.
48854         * modules/cosl-tests: New file.
48855         * tests/test-cosl.c: New file.
48857         Tests for module 'atanl'.
48858         * modules/atanl-tests: New file.
48859         * tests/test-atanl.c: New file.
48861         Tests for module 'asinl'.
48862         * modules/asinl-tests: New file.
48863         * tests/test-asinl.c: New file.
48865         Tests for module 'acosl'.
48866         * modules/acosl-tests: New file.
48867         * tests/test-acosl.c: New file.
48869         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
48870         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
48871         tanl): Use the standard gnulib idiom.
48872         * lib/cosl.c: Don't include trigl.c and sincosl.c.
48873         * lib/sinl.c: Likewise.
48874         * lib/tanl.c: Don't include trigl.c.
48875         (kernel_tanl): Make static.
48876         * lib/sincosl.c: Include trigl.h first.
48877         * lib/trigl.c: Likewise.
48878         * m4/acosl.m4: New file.
48879         * m4/asinl.m4: New file.
48880         * m4/atanl.m4: New file.
48881         * m4/cosl.m4: New file.
48882         * m4/expl.m4: New file.
48883         * m4/logl.m4: New file.
48884         * m4/sinl.m4: New file.
48885         * m4/sqrtl.m4: New file.
48886         * m4/tanl.m4: New file.
48887         * m4/mathl.m4: Remove file.
48888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
48889         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
48890         Don't initialize GNULIB_MATHL.
48891         * modules/acosl: New file.
48892         * modules/asinl: New file.
48893         * modules/atanl: New file.
48894         * modules/cosl: New file.
48895         * modules/expl: New file.
48896         * modules/logl: New file.
48897         * modules/sinl: New file.
48898         * modules/sqrtl: New file.
48899         * modules/tanl: New file.
48900         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
48901         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
48902         substitute GNULIB_MATHL.
48903         * modules/mathl: Rewritten.
48904         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
48905         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
48906         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
48907         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
48908         * doc/posix-functions/expl.texi: Mention the 'expl' module.
48909         * doc/posix-functions/logl.texi: Mention the 'logl' module.
48910         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
48911         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
48912         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
48914 2010-01-18  Bruno Haible  <bruno@clisp.org>
48916         sqrt: Make gl_FUNC_SQRT requirable.
48917         * m4/sqrt.m4: New file.
48918         * modules/sqrt (Files): Add it.
48919         (configure.ac): Invoke gl_FUNC_SQRT.
48921 2010-01-18  Bruno Haible  <bruno@clisp.org>
48923         New modules for common <math.h> functions.
48924         * m4/mathfunc.m4: New file.
48925         * modules/acos: New file.
48926         * modules/asin: New file.
48927         * modules/atan: New file.
48928         * modules/atan2: New file.
48929         * modules/cbrt: New file.
48930         * modules/copysign: New file.
48931         * modules/cos: New file.
48932         * modules/cosh: New file.
48933         * modules/erf: New file.
48934         * modules/erfc: New file.
48935         * modules/exp: New file.
48936         * modules/fabs: New file.
48937         * modules/fmod: New file.
48938         * modules/hypot: New file.
48939         * modules/j0: New file.
48940         * modules/j1: New file.
48941         * modules/jn: New file.
48942         * modules/ldexp: New file.
48943         * modules/lgamma: New file.
48944         * modules/log: New file.
48945         * modules/log10: New file.
48946         * modules/log1p: New file.
48947         * modules/logb: New file.
48948         * modules/modf: New file.
48949         * modules/nextafter: New file.
48950         * modules/pow: New file.
48951         * modules/remainder: New file.
48952         * modules/rint: New file.
48953         * modules/sin: New file.
48954         * modules/sinh: New file.
48955         * modules/sqrt: New file.
48956         * modules/tan: New file.
48957         * modules/tanh: New file.
48958         * modules/y0: New file.
48959         * modules/y1: New file.
48960         * modules/yn: New file.
48961         * doc/posix-functions/acos.texi: Mention the 'acos' module.
48962         * doc/posix-functions/asin.texi: Mention the 'asin' module.
48963         * doc/posix-functions/atan.texi: Mention the 'atan' module.
48964         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
48965         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
48966         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
48967         * doc/posix-functions/cos.texi: Mention the 'cos' module.
48968         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
48969         * doc/posix-functions/erf.texi: Mention the 'erf' module.
48970         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
48971         * doc/posix-functions/exp.texi: Mention the 'exp' module.
48972         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
48973         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
48974         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
48975         * doc/posix-functions/j0.texi: Mention the 'j0' module.
48976         * doc/posix-functions/j1.texi: Mention the 'j1' module.
48977         * doc/posix-functions/jn.texi: Mention the 'jn' module.
48978         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
48979         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
48980         * doc/posix-functions/log.texi: Mention the 'log' module.
48981         * doc/posix-functions/log10.texi: Mention the 'log10' module.
48982         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
48983         * doc/posix-functions/logb.texi: Mention the 'logb' module.
48984         * doc/posix-functions/modf.texi: Mention the 'modf' module.
48985         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
48986         * doc/posix-functions/pow.texi: Mention the 'pow' module.
48987         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
48988         * doc/posix-functions/rint.texi: Mention the 'rint' module.
48989         * doc/posix-functions/sin.texi: Mention the 'sin' module.
48990         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
48991         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
48992         * doc/posix-functions/tan.texi: Mention the 'tan' module.
48993         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
48994         * doc/posix-functions/y0.texi: Mention the 'y0' module.
48995         * doc/posix-functions/y1.texi: Mention the 'y1' module.
48996         * doc/posix-functions/yn.texi: Mention the 'yn' module.
48998 2010-01-18  Jim Meyering  <meyering@redhat.com>
49000         ignore-value: relax license to LGPLv2+
49001         * modules/ignore-value (License): Relax to LGPLv2+.
49003         getdate: don't leak when TZ contains two or more '"'s
49004         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
49005         double quote in TZ after the first one.
49007         readtokens: do not leak internal token_lengths buffer
49008         * lib/readtokens.c (readtokens): Free the local, lengths,
49009         when the supplied "token_lengths" parameter is NULL.
49011 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49013         Fix a couple of missing LIBTHREAD link failures on AIX.
49014         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
49015         $(LIBTHREAD).
49016         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
49018         Link test-poll against INET_PTON_LIB.
49019         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
49020         for inet_pton on Solaris 10.
49022 2010-01-17  Bruno Haible  <bruno@clisp.org>
49024         unistdio/*-sprintf: Fix typo in module description.
49025         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
49026         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
49027         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
49028         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
49029         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
49030         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
49031         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
49032         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49034 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49036         gnulib-tool: fix filelist for AIX, HP-UX ksh.
49037         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
49038         variables in shell case patterns, for AIX and HP-UX ksh.
49040         Split large sed scripts, for HP-UX sed.
49041         * modules/stdio: Split sed scripts around 50 sed commands,
49042         to avoid HP-UX limit of 99 commands, in the near future.
49043         * modules/string: Likewise.
49044         * modules/unistd: Likewise.
49046         gnulib-tool: avoid writing in the current directory.
49047         * gnulib-tool (func_emit_lib_Makefile_am)
49048         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
49049         not in the current directory, so concurrent gnulib-tool
49050         instances do not interfere.
49052 2010-01-16  Jim Meyering  <meyering@redhat.com>
49054         doc: update users.txt
49055         * users.txt: Add grep.
49056         (diffutils, gzip): Update URLs.
49058 2010-01-12  Bruno Haible  <bruno@clisp.org>
49060         posix_spawn: Avoid test failure on Cygwin.
49061         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
49062         characters.
49063         Reported by Simon Josefsson.
49065 2010-01-12  Bruno Haible  <bruno@clisp.org>
49067         * tests/test-cond.c (main): When skipping the test, show the reason.
49069 2010-01-12  Simon Josefsson  <simon@josefsson.org>
49071         * lib/striconv.c (str_cd_iconv): Avoid if before free.
49073 2010-01-12  Simon Josefsson  <simon@josefsson.org>
49075         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
49076         VC_LIST_ALWAYS_EXCLUDE_REGEX.
49078 2010-01-12  Eric Blake  <ebb9@byu.net>
49080         build: guarantee AS_VAR_IF
49081         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
49082         (gl_AS_VAR_IF): Move...
49083         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
49084         Reported by Simon Josefsson.
49086 2010-01-12  Simon Josefsson  <simon@josefsson.org>
49088         * lib/stdio.in.h: Fix typo.
49090 2010-01-12  Simon Josefsson  <simon@josefsson.org>
49092         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
49093         libgpg-error.
49095 2010-01-12  Simon Josefsson  <simon@josefsson.org>
49097         * tests/test-xalloc-die.sh: Use $EXEEXT.
49099 2010-01-12  Simon Josefsson  <simon@josefsson.org>
49100             Bruno Haible  <bruno@clisp.org>
49102         getlogin, getlogin_r: Avoid test failure.
49103         * tests/test-getlogin.c: Include <stdio.h>.
49104         (main): Skip the test when the function fails because stdin is not a
49105         tty.
49106         * tests/test-getlogin_r.c: Include <stdio.h>.
49107         (main): Skip the test when the function fails because stdin is not a
49108         tty.
49110 2010-01-11  Eric Blake  <ebb9@byu.net>
49112         tests: avoid more large file warnings
49113         * tests/test-fflush.c: Avoid warning about ftell use.
49114         * tests/test-fseek.c: Avoid warning about fseek use.
49116 2010-01-10  Bruno Haible  <bruno@clisp.org>
49118         nproc: Work better on Linux when /proc and /sys are not mounted.
49119         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
49120         as lower bound when, on glibc/Linux systems,
49121         sysconf (_SC_NPROCESSORS_CONF) returns 1.
49122         Suggested by Pádraig Brady <P@draigbrady.com>.
49123         Reported by Dmitry V. Levin <ldv@altlinux.org>.
49125         nproc: Refactor.
49126         * lib/nproc.c (num_processors_via_affinity_mask): New function,
49127         extracted from num_processors.
49128         (num_processors): Call it.
49130 2010-01-11  Jim Meyering  <meyering@redhat.com>
49132         utimecmp: avoid new warning from upcoming gcc-4.5.0
49133         * lib/utimecmp.c (BILLION): Define using #define rather than an
49134         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
49136 2010-01-11  Eric Blake  <ebb9@byu.net>
49138         math: add portability warnings for classification macros
49139         * modules/math (Depends-on): Add warn-on-use.
49140         (Makefile.am): Provide new substitutions.
49141         * m4/math_h.m4 (gl_MATH_H): Require inline.
49142         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
49143         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
49144         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
49145         implement warnings.
49147         unistd: warn on use of environ without module
49148         * modules/unistd (Depends-on): Add warn-on-use.
49149         (Makefile.am): Provide new substitutions.
49150         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
49151         * lib/unistd.in.h (environ): Wrap with a warning helper function.
49153         stdio: warn on suspicious uses
49154         * modules/stdio (Depends-on): Add warn-on-use.
49155         (Makefile.am): Provide new substitutions.
49156         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
49157         fseeko.
49158         * lib/stdio.in.h (gets): Always warn on use.
49159         (fseek, ftell): Adjust when warnings are issued, and honor
49160         _GL_NO_LARGE_FILES as a way to silence the warning.
49161         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
49162         any warning about large file offsets.
49163         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
49164         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
49165         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
49166         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
49167         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
49168         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
49169         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
49170         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
49172         warn-on-use: new module
49173         * modules/warn-on-use: New file.
49174         * build-aux/warn-on-use.h: Likewise.
49175         * m4/warn-on-use.m4: Likewise.
49176         * MODULES.html.sh (Support for building): Mention it.
49178 2010-01-10  Bruno Haible  <bruno@clisp.org>
49180         Tests for module 'unistr/u32-strdup'.
49181         * modules/unistr/u32-strdup-tests: New file.
49182         * tests/unistr/test-u32-strdup.c: New file.
49184         Tests for module 'unistr/u16-strdup'.
49185         * modules/unistr/u16-strdup-tests: New file.
49186         * tests/unistr/test-u16-strdup.c: New file.
49188         Tests for module 'unistr/u8-strdup'.
49189         * modules/unistr/u8-strdup-tests: New file.
49190         * tests/unistr/test-u8-strdup.c: New file.
49191         * tests/unistr/test-strdup.h: New file.
49193         Tests for module 'unistr/u32-strncmp'.
49194         * modules/unistr/u32-strncmp-tests: New file.
49195         * tests/unistr/test-u32-strncmp.c: New file.
49197         Tests for module 'unistr/u16-strncmp'.
49198         * modules/unistr/u16-strncmp-tests: New file.
49199         * tests/unistr/test-u16-strncmp.c: New file.
49201         Tests for module 'unistr/u8-strncmp'.
49202         * modules/unistr/u8-strncmp-tests: New file.
49203         * tests/unistr/test-u8-strncmp.c: New file.
49204         * tests/unistr/test-strncmp.h: New file.
49206         Tests for module 'unistr/u32-strcoll'.
49207         * modules/unistr/u32-strcoll-tests: New file.
49208         * tests/unistr/test-u32-strcoll.c: New file.
49210         Tests for module 'unistr/u16-strcoll'.
49211         * modules/unistr/u16-strcoll-tests: New file.
49212         * tests/unistr/test-u16-strcoll.c: New file.
49214         Tests for module 'unistr/u8-strcoll'.
49215         * modules/unistr/u8-strcoll-tests: New file.
49216         * tests/unistr/test-u8-strcoll.c: New file.
49218         Tests for module 'unistr/u32-strcmp'.
49219         * modules/unistr/u32-strcmp-tests: New file.
49220         * tests/unistr/test-u32-strcmp.c: New file.
49221         * tests/unistr/test-u32-strcmp.h: New file.
49223         Tests for module 'unistr/u16-strcmp'.
49224         * modules/unistr/u16-strcmp-tests: New file.
49225         * tests/unistr/test-u16-strcmp.c: New file.
49226         * tests/unistr/test-u16-strcmp.h: New file.
49228         Tests for module 'unistr/u8-strcmp'.
49229         * modules/unistr/u8-strcmp-tests: New file.
49230         * tests/unistr/test-u8-strcmp.c: New file.
49231         * tests/unistr/test-u8-strcmp.h: New file.
49232         * tests/unistr/test-strcmp.h: New file.
49234         Tests for module 'unistr/u32-strncat'.
49235         * modules/unistr/u32-strncat-tests: New file.
49236         * tests/unistr/test-u32-strncat.c: New file.
49238         Tests for module 'unistr/u16-strncat'.
49239         * modules/unistr/u16-strncat-tests: New file.
49240         * tests/unistr/test-u16-strncat.c: New file.
49242         Tests for module 'unistr/u8-strncat'.
49243         * modules/unistr/u8-strncat-tests: New file.
49244         * tests/unistr/test-u8-strncat.c: New file.
49245         * tests/unistr/test-strncat.h: New file.
49247         Tests for module 'unistr/u32-strcat'.
49248         * modules/unistr/u32-strcat-tests: New file.
49249         * tests/unistr/test-u32-strcat.c: New file.
49251         Tests for module 'unistr/u16-strcat'.
49252         * modules/unistr/u16-strcat-tests: New file.
49253         * tests/unistr/test-u16-strcat.c: New file.
49255         Tests for module 'unistr/u8-strcat'.
49256         * modules/unistr/u8-strcat-tests: New file.
49257         * tests/unistr/test-u8-strcat.c: New file.
49258         * tests/unistr/test-strcat.h: New file.
49260         Tests for module 'unistr/u32-stpncpy'.
49261         * modules/unistr/u32-stpncpy-tests: New file.
49262         * tests/unistr/test-u32-stpncpy.c: New file.
49264         Tests for module 'unistr/u16-stpncpy'.
49265         * modules/unistr/u16-stpncpy-tests: New file.
49266         * tests/unistr/test-u16-stpncpy.c: New file.
49268         Tests for module 'unistr/u8-stpncpy'.
49269         * modules/unistr/u8-stpncpy-tests: New file.
49270         * tests/unistr/test-u8-stpncpy.c: New file.
49271         * tests/unistr/test-stpncpy.h: New file.
49273         Tests for module 'unistr/u32-strncpy'.
49274         * modules/unistr/u32-strncpy-tests: New file.
49275         * tests/unistr/test-u32-strncpy.c: New file.
49277         Tests for module 'unistr/u16-strncpy'.
49278         * modules/unistr/u16-strncpy-tests: New file.
49279         * tests/unistr/test-u16-strncpy.c: New file.
49281         Tests for module 'unistr/u8-strncpy'.
49282         * modules/unistr/u8-strncpy-tests: New file.
49283         * tests/unistr/test-u8-strncpy.c: New file.
49284         * tests/unistr/test-strncpy.h: New file.
49286         Tests for module 'unistr/u32-stpcpy'.
49287         * modules/unistr/u32-stpcpy-tests: New file.
49288         * tests/unistr/test-u32-stpcpy.c: New file.
49290         Tests for module 'unistr/u16-stpcpy'.
49291         * modules/unistr/u16-stpcpy-tests: New file.
49292         * tests/unistr/test-u16-stpcpy.c: New file.
49294         Tests for module 'unistr/u8-stpcpy'.
49295         * modules/unistr/u8-stpcpy-tests: New file.
49296         * tests/unistr/test-u8-stpcpy.c: New file.
49297         * tests/unistr/test-stpcpy.h: New file.
49299         Tests for module 'unistr/u32-strcpy'.
49300         * modules/unistr/u32-strcpy-tests: New file.
49301         * tests/unistr/test-u32-strcpy.c: New file.
49303         Tests for module 'unistr/u16-strcpy'.
49304         * modules/unistr/u16-strcpy-tests: New file.
49305         * tests/unistr/test-u16-strcpy.c: New file.
49307         Tests for module 'unistr/u8-strcpy'.
49308         * modules/unistr/u8-strcpy-tests: New file.
49309         * tests/unistr/test-u8-strcpy.c: New file.
49310         * tests/unistr/test-strcpy.h: New file.
49312         Tests for module 'unistr/u32-strnlen'.
49313         * modules/unistr/u32-strnlen-tests: New file.
49314         * tests/unistr/test-u32-strnlen.c: New file.
49316         Tests for module 'unistr/u16-strnlen'.
49317         * modules/unistr/u16-strnlen-tests: New file.
49318         * tests/unistr/test-u16-strnlen.c: New file.
49320         Tests for module 'unistr/u8-strnlen'.
49321         * modules/unistr/u8-strnlen-tests: New file.
49322         * tests/unistr/test-u8-strnlen.c: New file.
49323         * tests/unistr/test-strnlen.h: New file.
49325         Tests for module 'unistr/u32-strlen'.
49326         * modules/unistr/u32-strlen-tests: New file.
49327         * tests/unistr/test-u32-strlen.c: New file.
49329         Tests for module 'unistr/u16-strlen'.
49330         * modules/unistr/u16-strlen-tests: New file.
49331         * tests/unistr/test-u16-strlen.c: New file.
49333         Tests for module 'unistr/u8-strlen'.
49334         * modules/unistr/u8-strlen-tests: New file.
49335         * tests/unistr/test-u8-strlen.c: New file.
49337         Tests for module 'unistr/u32-prev'.
49338         * modules/unistr/u32-prev-tests: New file.
49339         * tests/unistr/test-u32-prev.c: New file.
49341         Tests for module 'unistr/u16-prev'.
49342         * modules/unistr/u16-prev-tests: New file.
49343         * tests/unistr/test-u16-prev.c: New file.
49345         Tests for module 'unistr/u8-prev'.
49346         * modules/unistr/u8-prev-tests: New file.
49347         * tests/unistr/test-u8-prev.c: New file.
49349         Tests for module 'unistr/u32-next'.
49350         * modules/unistr/u32-next-tests: New file.
49351         * tests/unistr/test-u32-next.c: New file.
49353         Tests for module 'unistr/u16-next'.
49354         * modules/unistr/u16-next-tests: New file.
49355         * tests/unistr/test-u16-next.c: New file.
49357         Tests for module 'unistr/u8-next'.
49358         * modules/unistr/u8-next-tests: New file.
49359         * tests/unistr/test-u8-next.c: New file.
49361         Tests for module 'unistr/u32-strmbtouc'.
49362         * modules/unistr/u32-strmbtouc-tests: New file.
49363         * tests/unistr/test-u32-strmbtouc.c: New file.
49365         Tests for module 'unistr/u16-strmbtouc'.
49366         * modules/unistr/u16-strmbtouc-tests: New file.
49367         * tests/unistr/test-u16-strmbtouc.c: New file.
49369         Tests for module 'unistr/u8-strmbtouc'.
49370         * modules/unistr/u8-strmbtouc-tests: New file.
49371         * tests/unistr/test-u8-strmbtouc.c: New file.
49373         Tests for module 'unistr/u32-strmblen'.
49374         * modules/unistr/u32-strmblen-tests: New file.
49375         * tests/unistr/test-u32-strmblen.c: New file.
49377         Tests for module 'unistr/u16-strmblen'.
49378         * modules/unistr/u16-strmblen-tests: New file.
49379         * tests/unistr/test-u16-strmblen.c: New file.
49381         Tests for module 'unistr/u8-strmblen'.
49382         * modules/unistr/u8-strmblen-tests: New file.
49383         * tests/unistr/test-u8-strmblen.c: New file.
49385         Tests for module 'unistr/u32-cpy-alloc'.
49386         * modules/unistr/u32-cpy-alloc-tests: New file.
49387         * tests/unistr/test-u32-cpy-alloc.c: New file.
49389         Tests for module 'unistr/u16-cpy-alloc'.
49390         * modules/unistr/u16-cpy-alloc-tests: New file.
49391         * tests/unistr/test-u16-cpy-alloc.c: New file.
49393         Tests for module 'unistr/u8-cpy-alloc'.
49394         * modules/unistr/u8-cpy-alloc-tests: New file.
49395         * tests/unistr/test-u8-cpy-alloc.c: New file.
49396         * tests/unistr/test-cpy-alloc.h: New file.
49398         Tests for module 'unistr/u32-mbsnlen'.
49399         * modules/unistr/u32-mbsnlen-tests: New file.
49400         * tests/unistr/test-u32-mbsnlen.c: New file.
49402         Tests for module 'unistr/u16-mbsnlen'.
49403         * modules/unistr/u16-mbsnlen-tests: New file.
49404         * tests/unistr/test-u16-mbsnlen.c: New file.
49406         Tests for module 'unistr/u8-mbsnlen'.
49407         * modules/unistr/u8-mbsnlen-tests: New file.
49408         * tests/unistr/test-u8-mbsnlen.c: New file.
49410         Tests for module 'unistr/u32-chr'.
49411         * modules/unistr/u32-chr-tests: New file.
49412         * tests/unistr/test-u32-chr.c: New file.
49414         Tests for module 'unistr/u16-chr'.
49415         * modules/unistr/u16-chr-tests: New file.
49416         * tests/unistr/test-u16-chr.c: New file.
49418         Tests for module 'unistr/u8-chr'.
49419         * modules/unistr/u8-chr-tests: New file.
49420         * tests/unistr/test-u8-chr.c: New file.
49421         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
49423         Tests for module 'unistr/u32-cmp2'.
49424         * modules/unistr/u32-cmp2-tests: New file.
49425         * tests/unistr/test-u32-cmp2.c: New file.
49427         Tests for module 'unistr/u16-cmp2'.
49428         * modules/unistr/u16-cmp2-tests: New file.
49429         * tests/unistr/test-u16-cmp2.c: New file.
49431         Tests for module 'unistr/u8-cmp2'.
49432         * modules/unistr/u8-cmp2-tests: New file.
49433         * tests/unistr/test-u8-cmp2.c: New file.
49434         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
49436         Tests for module 'unistr/u32-cmp'.
49437         * modules/unistr/u32-cmp-tests: New file.
49438         * tests/unistr/test-u32-cmp.c: New file.
49440         Tests for module 'unistr/u16-cmp'.
49441         * modules/unistr/u16-cmp-tests: New file.
49442         * tests/unistr/test-u16-cmp.c: New file.
49444         Tests for module 'unistr/u8-cmp'.
49445         * modules/unistr/u8-cmp-tests: New file.
49446         * tests/unistr/test-u8-cmp.c: New file.
49447         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
49449         Tests for module 'unistr/u32-set'.
49450         * modules/unistr/u32-set-tests: New file.
49451         * tests/unistr/test-u32-set.c: New file.
49453         Tests for module 'unistr/u16-set'.
49454         * modules/unistr/u16-set-tests: New file.
49455         * tests/unistr/test-u16-set.c: New file.
49457         Tests for module 'unistr/u8-set'.
49458         * modules/unistr/u8-set-tests: New file.
49459         * tests/unistr/test-u8-set.c: New file.
49460         * tests/unistr/test-set.h: New file.
49462         Tests for module 'unistr/u32-move'.
49463         * modules/unistr/u32-move-tests: New file.
49464         * tests/unistr/test-u32-move.c: New file.
49466         Tests for module 'unistr/u16-move'.
49467         * modules/unistr/u16-move-tests: New file.
49468         * tests/unistr/test-u16-move.c: New file.
49470         Tests for module 'unistr/u8-move'.
49471         * modules/unistr/u8-move-tests: New file.
49472         * tests/unistr/test-u8-move.c: New file.
49473         * tests/unistr/test-move.h: New file.
49475         Tests for module 'unistr/u32-cpy'.
49476         * modules/unistr/u32-cpy-tests: New file.
49477         * tests/unistr/test-u32-cpy.c: New file.
49479         Tests for module 'unistr/u16-cpy'.
49480         * modules/unistr/u16-cpy-tests: New file.
49481         * tests/unistr/test-u16-cpy.c: New file.
49483         Tests for module 'unistr/u8-cpy'.
49484         * modules/unistr/u8-cpy-tests: New file.
49485         * tests/unistr/test-u8-cpy.c: New file.
49486         * tests/unistr/test-cpy.h: New file.
49488 2010-01-09  Bruno Haible  <bruno@clisp.org>
49490         Tests for module 'unistr/u32-uctomb'.
49491         * modules/unistr/u32-uctomb-tests: New file.
49492         * tests/unistr/test-u32-uctomb.c: New file.
49494         Tests for module 'unistr/u16-uctomb'.
49495         * modules/unistr/u16-uctomb-tests: New file.
49496         * tests/unistr/test-u16-uctomb.c: New file.
49498         Tests for module 'unistr/u8-uctomb'.
49499         * modules/unistr/u8-uctomb-tests: New file.
49500         * tests/unistr/test-u8-uctomb.c: New file.
49502         Tests for module 'unistr/u32-mbtoucr'.
49503         * modules/unistr/u32-mbtoucr-tests: New file.
49504         * tests/unistr/test-u32-mbtoucr.c: New file.
49506         Tests for module 'unistr/u16-mbtoucr'.
49507         * modules/unistr/u16-mbtoucr-tests: New file.
49508         * tests/unistr/test-u16-mbtoucr.c: New file.
49510         Tests for module 'unistr/u8-mbtoucr'.
49511         * modules/unistr/u8-mbtoucr-tests: New file.
49512         * tests/unistr/test-u8-mbtoucr.c: New file.
49514         Tests for module 'unistr/u32-mbtouc'.
49515         * modules/unistr/u32-mbtouc-tests: New file.
49516         * tests/unistr/test-u32-mbtouc.c: New file.
49518         Tests for module 'unistr/u16-mbtouc'.
49519         * modules/unistr/u16-mbtouc-tests: New file.
49520         * tests/unistr/test-u16-mbtouc.c: New file.
49522         Tests for module 'unistr/u8-mbtouc'.
49523         * modules/unistr/u8-mbtouc-tests: New file.
49524         * tests/unistr/test-u8-mbtouc.c: New file.
49526         Tests for module 'unistr/u32-mbtouc-unsafe'.
49527         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
49528         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
49529         * tests/unistr/test-u32-mbtouc.h: New file.
49531         Tests for module 'unistr/u16-mbtouc-unsafe'.
49532         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
49533         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
49534         * tests/unistr/test-u16-mbtouc.h: New file.
49536         Tests for module 'unistr/u8-mbtouc-unsafe'.
49537         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
49538         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
49539         * tests/unistr/test-u8-mbtouc.h: New file.
49541         Tests for module 'unistr/u32-mblen'.
49542         * modules/unistr/u32-mblen-tests: New file.
49543         * tests/unistr/test-u32-mblen.c: New file.
49545         Tests for module 'unistr/u16-mblen'.
49546         * modules/unistr/u16-mblen-tests: New file.
49547         * tests/unistr/test-u16-mblen.c: New file.
49549         Tests for module 'unistr/u8-mblen'.
49550         * modules/unistr/u8-mblen-tests: New file.
49551         * tests/unistr/test-u8-mblen.c: New file.
49553         Tests for module 'unistr/u32-to-u16'.
49554         * modules/unistr/u32-to-u16-tests: New file.
49555         * tests/unistr/test-u32-to-u16.c: New file.
49557         Tests for module 'unistr/u32-to-u8'.
49558         * modules/unistr/u32-to-u8-tests: New file.
49559         * tests/unistr/test-u32-to-u8.c: New file.
49561         Tests for module 'unistr/u16-to-u32'.
49562         * modules/unistr/u16-to-u32-tests: New file.
49563         * tests/unistr/test-u16-to-u32.c: New file.
49565         Tests for module 'unistr/u16-to-u8'.
49566         * modules/unistr/u16-to-u8-tests: New file.
49567         * tests/unistr/test-u16-to-u8.c: New file.
49569         Tests for module 'unistr/u8-to-u32'.
49570         * modules/unistr/u8-to-u32-tests: New file.
49571         * tests/unistr/test-u8-to-u32.c: New file.
49573         Tests for module 'unistr/u8-to-u16'.
49574         * modules/unistr/u8-to-u16-tests: New file.
49575         * tests/unistr/test-u8-to-u16.c: New file.
49577         Tests for module 'unistr/u32-check'.
49578         * modules/unistr/u32-check-tests: New file.
49579         * tests/unistr/test-u32-check.c: New file.
49581         Tests for module 'unistr/u16-check'.
49582         * modules/unistr/u16-check-tests: New file.
49583         * tests/unistr/test-u16-check.c: New file.
49585         Tests for module 'unistr/u8-check'.
49586         * modules/unistr/u8-check-tests: New file.
49587         * tests/unistr/test-u8-check.c: New file.
49589         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
49590         (category_equals): New function.
49591         (main): Add more tests.
49592         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
49594         * tests/unictype/test-bidi_byname.c (main): Add more tests.
49596 2010-01-10  Bruno Haible  <bruno@clisp.org>
49598         unistr/u*-strcoll: Try harder to distinguish different strings.
49599         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
49600         compare s1 and s2 to see if they are different.
49602 2010-01-10  Bruno Haible  <bruno@clisp.org>
49604         unistr/u*-stpncpy: Fix the return value.
49605         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
49606         description of the return value consistent with stpncpy in glibc.
49607         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
49608         written non-NUL unit.
49610 2010-01-10  Bruno Haible  <bruno@clisp.org>
49612         unistr/u*-next: Add missing dependencies.
49613         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
49614         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
49615         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
49617 2010-01-10  Bruno Haible  <bruno@clisp.org>
49619         unistr/u8-mbsnlen: Fix return value for incomplete character.
49620         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
49621         u8_mblen.
49622         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
49623         Remove unistr/u8-mblen.
49624         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
49625         u16_mblen.
49626         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
49627         Remove unistr/u16-mblen.
49629 2010-01-10  Bruno Haible  <bruno@clisp.org>
49631         wchar: Fix compilation error when <wchar.h> is used from coreutils.
49632         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
49633         Reported by Brian Gough <bjg@gnu.org> and
49634         Chris Clayton <chris2553@googlemail.com> via
49635         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
49637 2010-01-09  Bruno Haible  <bruno@clisp.org>
49639         unistr/u16-to-u32: Reject invalid input.
49640         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
49641         u16_mbtouc.
49642         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
49643         Remove unistr/u16-mbtouc.
49645         unistr/u16-to-u8: Reject invalid input.
49646         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
49647         u16_mbtouc.
49648         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
49649         Remove unistr/u16-mbtouc.
49651         unistr/u8-to-u32: Reject invalid input.
49652         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
49653         u8_mbtouc.
49654         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
49655         Remove unistr/u8-mbtouc.
49657         unistr/u8-to-u16: Reject invalid input.
49658         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
49659         u8_mbtouc.
49660         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
49661         Remove unistr/u8-mbtouc.
49663 2010-01-09  Bruno Haible  <bruno@clisp.org>
49665         Tests for module 'getlogin'.
49666         * modules/getlogin-tests: New file.
49667         * tests/test-getlogin.c: New file.
49669         New module 'getlogin'.
49670         * lib/unistd.in.h (getlogin): New declaration.
49671         * lib/getlogin.c: New file.
49672         * m4/getlogin.m4: New file.
49673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
49674         HAVE_GETLOGIN.
49675         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
49676         HAVE_GETLOGIN.
49677         * modules/getlogin: New file.
49678         * doc/posix-functions/getlogin.texi: Mention the new module.
49679         Reported by John W. Eaton <jwe@gnu.org>.
49681 2010-01-09  Bruno Haible  <bruno@clisp.org>
49683         getlogin_r: Support for native Windows.
49684         * lib/getlogin_r.c: Include <windows.h>
49685         (getlogin_r): Implement for native Windows.
49686         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
49687         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
49688         via John W. Eaton <jwe@gnu.org>.
49690 2010-01-09  Bruno Haible  <bruno@clisp.org>
49692         getlogin_r: Small fixes.
49693         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
49694         succeeds.
49695         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
49696         before testing whether getlogin_r is declared. No need to set
49697         HAVE_DECL_GETLOGIN_R to 1.
49698         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
49700 2010-01-09  Bruno Haible  <bruno@clisp.org>
49702         * lib/unistd.in.h (getlogin_r): Add comment.
49704 2010-01-09  Bruno Haible  <bruno@clisp.org>
49706         Tests for module 'getlogin_r'.
49707         * modules/getlogin_r-tests: New file.
49708         * tests/test-getlogin_r.c: New file.
49710 2010-01-09  Jim Meyering  <meyering@redhat.com>
49712         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
49713         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
49714         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
49716 2010-01-08  Simon Josefsson  <simon@josefsson.org>
49718         * lib/dup2.c (rpl_dup2): Improve comment.
49720 2010-01-08  Eric Blake  <ebb9@byu.net>
49722         maint.mk: allow packages to add makefile @@ exceptions
49723         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
49724         (sc_makefile_check): Rename...
49725         (sc_makefile_at_at_check): ...to this, and use hook.
49727         dup2: work around mingw bug
49728         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
49729         Reported by Simon Josefsson.
49731 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
49733         glob: Fix C++ compilation.
49734         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
49735         C++.
49737 2010-01-07  Bruno Haible  <bruno@clisp.org>
49739         Fix indentation of wctype.in.h, broken since 2007-01-06.
49740         * lib/wctype.in.h: Fix indentation of preprocessor directives.
49742 2010-01-07  Bruno Haible  <bruno@clisp.org>
49744         mbslen: Avoid collision with system function.
49745         * lib/string.in.h [MirBSD]: Include <wchar.h>.
49746         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
49747         * m4/mbslen.m4: New file.
49748         * modules/mbslen (Files): Add it.
49749         (configure.ac): Invoke gl_MBSLEN.
49750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
49751         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
49752         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
49753         via Ian Beckwith <ianb@erislabs.net>.
49755 2010-01-07  Bruno Haible  <bruno@clisp.org>
49757         dirent: Document the last fix.
49758         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
49760 2010-01-07  Bruno Haible  <bruno@clisp.org>
49762         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
49763         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
49764         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
49765         va_list are defined.
49766         * doc/posix-headers/stdio.texi: Document the bug of missing types.
49767         Reported by Eric Blake.
49769 2010-01-07  Bruno Haible  <bruno@clisp.org>
49771         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
49772         * modules/xlist (Depends-on): Add 'list',
49773         * modules/xoset (Depends-on): Add 'oset'.
49774         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49776 2010-01-07  Bruno Haible  <bruno@clisp.org>
49778         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
49779         * doc/posix-functions/strncasecmp.texi: Likewise.
49781 2010-01-07  Bruno Haible  <bruno@clisp.org>
49783         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
49785 2010-01-07  John W. Eaton  <jwe@octave.org>
49787         wctype: allow C++ use
49788         * lib/wctype.in.h: Add extern "C" block for C++.
49790 2010-01-06  Eric Blake  <ebb9@byu.net>
49792         maint.mk: detect incorrect GFDL usage
49793         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
49795 2010-01-06  Jim Meyering  <meyering@redhat.com>
49796         and Eric Blake  <ebb9@byu.net>
49798         maint.mk: ignore multi-line copyright in NEWS
49799         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
49801 2010-01-06  Eric Blake  <ebb9@byu.net>
49803         select: add missing dependency
49804         * modules/select-tests (Depends-on): Move sockets dependency...
49805         * modules/select (Depends-on): ...here.
49806         Reported by Ian Beckwith.
49808         doc: regenerate INSTALL
49809         * doc/INSTALL: Reflect recent autoconf update.
49810         * doc/INSTALL.ISO: Likewise.
49811         * doc/INSTALL.UTF-8: Likewise.
49813         pread: fix compilation on glibc
49814         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
49815         Reported by Ralf Wildenhues.
49817         dirent: fix test failure
49818         * lib/dirent.in.h (includes): Guarantee ino_t.
49819         Reported by Ralf Wildenhues.
49821 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
49823         linkat, renameat: avoid bad free
49824         * lib/at-func2.c (at_func2): Fix typo.
49825         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
49827 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49829         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
49830         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
49831         to avoid failure of symlink test later.
49833 2010-01-06  Eric Blake  <ebb9@byu.net>
49835         stdio, unistd: guarantee ssize_t
49836         * lib/unistd.in.h (includes): Ensure that types required by POSIX
49837         2008 are exposed when needed.
49838         * lib/stdio.in.h (includes): Likewise.
49839         Reported by Ralf Wildenhues.
49841 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
49843         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
49844         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
49845         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
49847 2010-01-06  Jim Meyering  <meyering@redhat.com>
49849         readtokens: this module *does* require xalloc.h
49850         It uses only functions that were omitted by the old syntax-check rule.
49851         * lib/readtokens.c: Include "xalloc.h" once again.
49852         * modules/readtokens (Depends-on): Add xalloc.
49853         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
49855 2010-01-05  Eric Blake  <ebb9@byu.net>
49857         maint: support 'make announcement' from a VPATH build
49858         * top/maint.mk (announcement): Look for correct NEWS file.
49860 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
49862         utimens (fdutimens): ignore a negative FD, per contract
49863         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
49864         when we have a valid file descriptor.  Otherwise, using a brand
49865         new glibc (with just-patched futimens that now fails with EBADF)
49866         would cause this function to fail with ENOSYS.
49867         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
49868         See also http://bugzilla.redhat.com/552320.
49870 2010-01-05  Eric Blake  <ebb9@byu.net>
49872         strcase: document what it provides
49873         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
49874         gnulib module.
49875         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
49876         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
49878 2010-01-05  Jim Meyering  <meyering@redhat.com>
49880         maint: remove useless inclusions of "xalloc.h"
49881         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
49882         * lib/readtokens.c: Likewise.
49883         * lib/same.c: Likewise.
49884         * modules/getloadavg (Depends-on): Remove xalloc.
49885         * modules/readtokens: Likewise.
49886         * modules/same: Likewise.
49888         maint.mk: include 4 more function names in alloca.h-checking regexp
49889         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
49890         regexp.  Before, we would give a false-positive (saying alloca.h
49891         is included unnecessarily) when the only uses involved omitted symbols.
49893         xalloc.h: use consistent formatting
49894         * lib/xalloc.h: Move declarations to start in the first column.
49896 2010-01-05  Eric Blake  <ebb9@byu.net>
49898         mkdir: avoid xalloc
49899         * lib/mkdir.c (includes): Drop unused header.
49900         Reported by John W. Eaton.
49902 2010-01-04  Jim Meyering  <meyering@redhat.com>
49904         nl_langinfo: avoid configure-time syntax error
49905         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
49906         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
49907         the empty string.  Don't let that provoke a shell syntax error.
49909         regcomp, regexec, fnmatch: avoid array bounds read error
49910         * lib/regcomp.c (build_equiv_class): From glibc:
49911         Use only the low 24 bits of a findidx return value as an index
49912         into the weights array.  Patch by Ulrich Drepper:
49913         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
49914         * lib/regexec.c (check_node_accept_bytes): Likewise.
49915         * lib/fnmatch_loop.c (FCT): Likewise.
49917         regcomp: skip collseq lookup when there are no rules
49918         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
49919         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
49921         regcomp: recognize ill-formed { } expressions
49922         * lib/regcomp.c (parse_dup_op): From glibc:
49923         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
49925         regcomp: fix typo in comment
49926         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
49927         s/satisfy/satisfies/.
49929         regcomp: sync from glibc: remove dead store
49930         * lib/regcomp.c (duplicate_node_closure): Remove useless
49931         search_duplicated_node call and dead store.
49933         regcomp: sync from glibc; always use nl_langinfo
49934         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
49935         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
49936         * modules/regex (Depends-on): Add nl_langinfo.
49938 2010-01-04  Eric Blake  <ebb9@byu.net>
49940         fdopendir: fix configure test
49941         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
49943 2010-01-01  Bruno Haible  <bruno@clisp.org>
49945         wchar: Remove unused configure check.
49946         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
49948 2010-01-01  Eric Blake  <ebb9@byu.net>
49950         headers: make check of system header explicit
49951         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
49952         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
49953         ourselves.
49954         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49955         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49956         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49957         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
49958         internals.
49959         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
49960         missing.
49961         Suggested by Bruno Haible.
49963 2010-01-01  Jim Meyering  <meyering@redhat.com>
49965         ChangeLog: tweak to eliminate unnecessary copyright line
49966         * ChangeLog: Remove a copyright line that was mistakenly updated
49967         by today's update-copyright run.  Reported by Eric Blake.
49969         test-update-copyright: don't let envvar setting cause test failure
49970         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
49972 2010-01-01  Bruno Haible  <bruno@clisp.org>
49974         localename: Avoid gcc warning.
49975         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
49976         function if it is not used.
49978 2010-01-01  Jim Meyering  <meyering@redhat.com>
49980         update nearly all FSF copyright year lists to include 2010
49981         Use the same procedure as for 2009, outlined in
49982         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
49984         version-etc: set COPYRIGHT_YEAR to 2010
49985         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
49987 2009-12-31  Eric Blake  <ebb9@byu.net>
49989         doc: correct availability of cygwin 1.5.x getopt
49990         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
49991         variables.
49992         * doc/posix-functions/opterr.texi (opterr): Likewise.
49993         * doc/posix-functions/optind.texi (optind): Likewise.
49994         * doc/posix-functions/optopt.texi (optopt): Likewise.
49995         * doc/posix-functions/tzname.texi (tzname): Likewise.
49997         openat: update maintainer
49998         * modules/openat (Maintainer): Add myself.
50000         utimens: avoid shadowing warning
50001         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
50002         buffers into one, to avoid shadowing, as well as avoiding a
50003         redundant stat.
50004         Reported by Jim Meyering.
50006         test-dup2: avoid compiler warning
50007         * tests/test-dup2.c (is_inheritable): Only define if used.
50009 2010-01-01  Bruno Haible  <bruno@clisp.org>
50011         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
50012         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
50013         defined, use wctomb instead of wcrtomb.
50015 2010-01-01  Bruno Haible  <bruno@clisp.org>
50017         iconv: Reject native Solaris iconv.
50018         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
50019         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
50021 2009-12-31  Bruno Haible  <bruno@clisp.org>
50023         * tests/test-signal.c (main): Remove test of 'SIG'.
50025 2009-12-31  Bruno Haible  <bruno@clisp.org>
50027         spawn: Fix incomplete fix.
50028         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
50029         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
50030         warnings for GNULIB_POSIXCHECK again.
50031         Reported by Eric Blake.
50033 2009-12-31  Bruno Haible  <bruno@clisp.org>
50035         Avoid namespace pollution on glibc systems.
50036         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
50037         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
50038         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
50039         glibc systems.
50041 2009-12-31  Bruno Haible  <bruno@clisp.org>
50043         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
50044         (gl_REPLACE_WCHAR_H): Turn into a no-op.
50045         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
50046         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
50047         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
50048         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
50049         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
50051 2009-12-31  Bruno Haible  <bruno@clisp.org>
50053         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
50054         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
50055         afterwards.
50057 2009-12-31  Bruno Haible  <bruno@clisp.org>
50059         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
50060         SYS_UTSNAME_H.
50062 2009-12-31  Bruno Haible  <bruno@clisp.org>
50064         spawn: Fix misapplied patch.
50065         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
50066         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
50067         warnings for GNULIB_POSIXCHECK.
50069 2009-12-31  Bruno Haible  <bruno@clisp.org>
50071         times: Update after sys_times changed.
50072         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
50073         * modules/times (Files): Add it.
50074         (configure.ac): Invoke gl_FUNC_TIMES.
50076 2009-12-31  Bruno Haible  <bruno@clisp.org>
50078         Use AC_C_INLINE where necessary.
50079         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
50080         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50081         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
50082         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
50083         * m4/mbfile.m4 (gl_MBFILE): Likewise.
50084         * m4/mbiter.m4 (gl_MBITER): Likewise.
50085         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50086         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
50087         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
50088         * modules/u64 (configure.ac): Likewise.
50090 2009-12-31  Bruno Haible  <bruno@clisp.org>
50092         Use AC_C_INLINE instead of module 'inline' where possible.
50093         * modules/inline (Description): Clarify purpose.
50094         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
50095         * modules/count-one-bits (Depends-on): Remove inline.
50096         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
50097         * modules/openat (Depends-on): Remove inline.
50098         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
50099         instead of depending on module 'inline'.
50100         * modules/filevercmp (Depends-on, configure.ac): Likewise.
50101         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
50102         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
50103         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
50104         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
50105         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
50106         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
50107         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
50108         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
50109         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
50110         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
50111         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
50112         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
50113         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
50114         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
50115         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
50116         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
50117         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
50118         Likewise.
50119         * modules/unictype/property-ascii-hex-digit (Depends-on,
50120         configure.ac): Likewise.
50121         * modules/unictype/property-bidi-arabic-digit (Depends-on,
50122         configure.ac): Likewise.
50123         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
50124         configure.ac): Likewise.
50125         * modules/unictype/property-bidi-block-separator (Depends-on,
50126         configure.ac): Likewise.
50127         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
50128         configure.ac): Likewise.
50129         * modules/unictype/property-bidi-common-separator (Depends-on,
50130         configure.ac): Likewise.
50131         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
50132         Likewise.
50133         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
50134         configure.ac): Likewise.
50135         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
50136         configure.ac): Likewise.
50137         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
50138         configure.ac): Likewise.
50139         * modules/unictype/property-bidi-european-digit (Depends-on,
50140         configure.ac): Likewise.
50141         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
50142         configure.ac): Likewise.
50143         * modules/unictype/property-bidi-left-to-right (Depends-on,
50144         configure.ac): Likewise.
50145         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
50146         configure.ac): Likewise.
50147         * modules/unictype/property-bidi-other-neutral (Depends-on,
50148         configure.ac): Likewise.
50149         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
50150         Likewise.
50151         * modules/unictype/property-bidi-segment-separator (Depends-on,
50152         configure.ac): Likewise.
50153         * modules/unictype/property-bidi-whitespace (Depends-on,
50154         configure.ac): Likewise.
50155         * modules/unictype/property-combining (Depends-on, configure.ac):
50156         Likewise.
50157         * modules/unictype/property-composite (Depends-on, configure.ac):
50158         Likewise.
50159         * modules/unictype/property-currency-symbol (Depends-on,
50160         configure.ac): Likewise.
50161         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
50162         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
50163         Likewise.
50164         * modules/unictype/property-default-ignorable-code-point (Depends-on,
50165         configure.ac): Likewise.
50166         * modules/unictype/property-deprecated (Depends-on, configure.ac):
50167         Likewise.
50168         * modules/unictype/property-diacritic (Depends-on, configure.ac):
50169         Likewise.
50170         * modules/unictype/property-extender (Depends-on, configure.ac):
50171         Likewise.
50172         * modules/unictype/property-format-control (Depends-on, configure.ac):
50173         Likewise.
50174         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
50175         Likewise.
50176         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
50177         Likewise.
50178         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
50179         Likewise.
50180         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
50181         Likewise.
50182         * modules/unictype/property-hyphen (Depends-on, configure.ac):
50183         Likewise.
50184         * modules/unictype/property-id-continue (Depends-on, configure.ac):
50185         Likewise.
50186         * modules/unictype/property-id-start (Depends-on, configure.ac):
50187         Likewise.
50188         * modules/unictype/property-ideographic (Depends-on, configure.ac):
50189         Likewise.
50190         * modules/unictype/property-ids-binary-operator (Depends-on,
50191         configure.ac): Likewise.
50192         * modules/unictype/property-ids-trinary-operator (Depends-on,
50193         configure.ac): Likewise.
50194         * modules/unictype/property-ignorable-control (Depends-on,
50195         configure.ac): Likewise.
50196         * modules/unictype/property-iso-control (Depends-on, configure.ac):
50197         Likewise.
50198         * modules/unictype/property-join-control (Depends-on, configure.ac):
50199         Likewise.
50200         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
50201         Likewise.
50202         * modules/unictype/property-line-separator (Depends-on, configure.ac):
50203         Likewise.
50204         * modules/unictype/property-logical-order-exception (Depends-on,
50205         configure.ac): Likewise.
50206         * modules/unictype/property-lowercase (Depends-on, configure.ac):
50207         Likewise.
50208         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
50209         * modules/unictype/property-non-break (Depends-on, configure.ac):
50210         Likewise.
50211         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
50212         Likewise.
50213         * modules/unictype/property-numeric (Depends-on, configure.ac):
50214         Likewise.
50215         * modules/unictype/property-other-alphabetic (Depends-on,
50216         configure.ac): Likewise.
50217         * modules/unictype/property-other-default-ignorable-code-point
50218         (Depends-on, configure.ac): Likewise.
50219         * modules/unictype/property-other-grapheme-extend (Depends-on,
50220         configure.ac): Likewise.
50221         * modules/unictype/property-other-id-continue (Depends-on,
50222         configure.ac): Likewise.
50223         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
50224         Likewise.
50225         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
50226         Likewise.
50227         * modules/unictype/property-other-math (Depends-on, configure.ac):
50228         Likewise.
50229         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
50230         Likewise.
50231         * modules/unictype/property-paired-punctuation (Depends-on,
50232         configure.ac): Likewise.
50233         * modules/unictype/property-paragraph-separator (Depends-on,
50234         configure.ac): Likewise.
50235         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
50236         Likewise.
50237         * modules/unictype/property-pattern-white-space (Depends-on,
50238         configure.ac): Likewise.
50239         * modules/unictype/property-private-use (Depends-on, configure.ac):
50240         Likewise.
50241         * modules/unictype/property-punctuation (Depends-on, configure.ac):
50242         Likewise.
50243         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
50244         Likewise.
50245         * modules/unictype/property-radical (Depends-on, configure.ac):
50246         Likewise.
50247         * modules/unictype/property-sentence-terminal (Depends-on,
50248         configure.ac): Likewise.
50249         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
50250         Likewise.
50251         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
50252         * modules/unictype/property-terminal-punctuation (Depends-on,
50253         configure.ac): Likewise.
50254         * modules/unictype/property-titlecase (Depends-on, configure.ac):
50255         Likewise.
50256         * modules/unictype/property-unassigned-code-value (Depends-on,
50257         configure.ac): Likewise.
50258         * modules/unictype/property-unified-ideograph (Depends-on,
50259         configure.ac): Likewise.
50260         * modules/unictype/property-uppercase (Depends-on, configure.ac):
50261         Likewise.
50262         * modules/unictype/property-variation-selector (Depends-on,
50263         configure.ac): Likewise.
50264         * modules/unictype/property-white-space (Depends-on, configure.ac):
50265         Likewise.
50266         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
50267         Likewise.
50268         * modules/unictype/property-xid-start (Depends-on, configure.ac):
50269         Likewise.
50270         * modules/unictype/property-zero-width (Depends-on, configure.ac):
50271         Likewise.
50272         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
50273         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
50274         Likewise.
50276 2009-12-31  Bruno Haible  <bruno@clisp.org>
50278         Remove unnecessary AC_C_INLINE invocation.
50279         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
50280         since 2009-08-21.
50282 2009-12-31  Jim Meyering  <meyering@redhat.com>
50284         maint.mk: don't require explicit gpg_key_ID in cfg.mk
50285         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
50286         With this change, we can all remove the gpg_key_ID = ... definition
50287         from our respective cfg.mk files.
50289         maint.mk: create announcement template in ~/, not in /tmp
50290         * top/maint.mk (emit_upload_commands): Adjust.
50291         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
50292         Remove temporary file, .ci-msg.
50294 2009-12-31  Eric Blake  <ebb9@byu.net>
50296         link-warning: always build headers with link warnings
50297         * modules/arpa_inet (Makefile.am): Always build replacement
50298         header.
50299         * modules/ctype (Makefile.am): Likewise.
50300         * modules/dirent (Makefile.am): Likewise.
50301         * modules/inttypes (Makefile.am): Likewise.
50302         * modules/langinfo (Makefile.am): Likewise.
50303         * modules/locale (Makefile.am): Likewise.
50304         * modules/spawn (Makefile.am): Likewise.
50305         * modules/sys_file (Makefile.am): Likewise.
50306         * modules/sys_ioctl (Makefile.am): Likewise.
50307         * modules/sys_select (Makefile.am): Likewise.
50308         * modules/sys_socket (Makefile.am): Likewise.
50309         * modules/sys_times (Makefile.am): Likewise.
50310         * modules/sys_utsname (Makefile.am): Likewise.
50311         * modules/sys_wait (Makefile.am): Likewise.
50312         * modules/wchar (Makefile.am): Likewise.
50313         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
50314         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
50315         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
50316         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
50317         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
50318         Likewise.
50319         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50320         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
50321         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
50322         Likewise.
50323         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
50324         Likewise.
50325         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
50326         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
50327         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
50328         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50329         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
50330         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
50331         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
50332         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
50333         (gl_WCHAR_H_DEFAULTS): Likewise.
50335 2009-12-31  Eric Blake  <ebb9@byu.net>
50337         signal, spawn: use link warnings
50338         * lib/signal.in.h (sigset_t): Make unconditional.
50339         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
50340         (sigpending, sigprocmask, sigaction): Add link warnings.
50341         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
50342         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
50343         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
50344         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
50345         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
50346         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
50347         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
50348         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
50349         (posix_spawn_file_actions_destroy)
50350         (posix_spawn_file_actions_addopen)
50351         (posix_spawn_file_actions_addclose)
50352         (posix_spawn_file_actions_adddup2): Likewise.
50353         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
50354         * tests/test-signal.c (main): Enhance test.
50356         spawn: improve wrapper support
50357         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
50358         (gl_SPAWN_H_DEFAULTS): New defaults.
50359         * modules/spawn (Makefile.am): Substitute them.
50360         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
50361         Only declare if missing or broken.
50363         sys_times, sys_utsname: use include_next
50364         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
50365         header.
50366         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
50367         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
50368         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
50369         * modules/sys_times (Depends-on): Add include_next.
50370         (Makefile.am): Substitute additional values.
50371         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
50372         * lib/sys_times.in.h (includes): Include native header, if
50373         available.
50374         * lib/sys_utsname.in.h (includes): Likewise.
50375         * tests/test-sys_times.c (main): Enhance test.
50377         fdutimensat: revert prior patch
50378         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
50379         utimens.h.
50380         Reported by Bruno Haible.
50382 2009-12-30  Eric Blake  <ebb9@byu.net>
50384         sys_wait: drop link-warning dependency
50385         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
50386         link-warning efforts.
50387         * lib/sys_wait.in.h: Likewise.
50389         fdutimensat: remove bogus dependency
50390         * modules/fdutimensat (Depends-on): Drop inline.
50392         unistd: fix typo
50393         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
50395 2009-12-30  Bruno Haible  <bruno@clisp.org>
50397         Fix compilation error with Solaris cc.
50398         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
50399         * lib/unicase/u16-is-invariant.c: Likewise.
50400         * lib/unicase/u32-is-invariant.c: Likewise.
50401         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50403 2009-12-30  Bruno Haible  <bruno@clisp.org>
50405         Fix test crash.
50406         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
50407         locales.
50408         Reported by Simon Josefsson <simon@josefsson.org>.
50410 2009-12-30  Bruno Haible  <bruno@clisp.org>
50412         Fix compilation error on most platforms.
50413         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
50414         Reported by Simon Josefsson <simon@josefsson.org>
50415         and Nelson H. F. Beebe <beebe@math.utah.edu>.
50417 2009-12-30  Eric Blake  <ebb9@byu.net>
50419         futimens, utimensat: work around ntfs-3g bug
50420         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
50421         a ctime bug is present, and expand workaround to cover ntfs-3g.
50422         * lib/utimens.c (fdutimens, lutimens): Likewise.
50423         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
50424         (validate_timespec): Adjust return value.
50425         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
50426         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
50427         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
50429 2009-12-29  Eric Blake  <ebb9@byu.net>
50431         link-warning: make usage consistent
50432         * modules/ctype (Depends-on): Add link-warning.
50433         (Makefile.am): Update rules accordingly.
50434         * modules/langinfo (Depends-on, Makefile.am): Likewise.
50435         * modules/locale (Depends-on, Makefile.am): Likewise.
50436         * modules/sys_file (Makefile.am): Likewise.
50437         * modules/getopt-posix (Makefile.am): Delete unused link warning
50438         efforts.
50439         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
50440         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
50441         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
50442         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
50444         stdio: remove unused variables
50445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
50446         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
50447         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
50449         tests: test more substitute headers
50450         * modules/ctype-tests: New file.
50451         * modules/dirent-tests: Likewise.
50452         * modules/spawn-tests: Likewise.
50453         * modules/sys_file-tests: Likewise.
50454         * modules/sys_ioctl-tests: Likewise.
50455         * modules/sys_wait-tests: Likewise.
50456         * tests/test-ctype.c: Likewise.
50457         * tests/test-dirent.c: Likewise.
50458         * tests/test-spawn.c: Likewise.
50459         * tests/test-sys_file.c: Likewise.
50460         * tests/test-sys_ioctl.c: Likewise.
50461         * tests/test-sys_wait.c: Likewise.
50462         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
50463         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
50464         whether or not flock is in use.
50466         tests: remove License section from module
50467         * modules/arpa_inet-tests: Remove unneeded section.
50468         * modules/byteswap-tests: Likewise.
50469         * modules/ceilf-tests: Likewise.
50470         * modules/ceill-tests: Likewise.
50471         * modules/crypto/des-tests: Likewise.
50472         * modules/crypto/gc-arcfour-tests: Likewise.
50473         * modules/crypto/gc-arctwo-tests: Likewise.
50474         * modules/crypto/gc-des-tests: Likewise.
50475         * modules/crypto/gc-hmac-md5-tests: Likewise.
50476         * modules/crypto/gc-hmac-sha1-tests: Likewise.
50477         * modules/crypto/gc-md2-tests: Likewise.
50478         * modules/crypto/gc-md4-tests: Likewise.
50479         * modules/crypto/gc-md5-tests: Likewise.
50480         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
50481         * modules/crypto/gc-rijndael-tests: Likewise.
50482         * modules/crypto/gc-sha1-tests: Likewise.
50483         * modules/crypto/gc-tests: Likewise.
50484         * modules/crypto/md2-tests: Likewise.
50485         * modules/crypto/md4-tests: Likewise.
50486         * modules/fcntl-h-tests: Likewise.
50487         * modules/floorf-tests: Likewise.
50488         * modules/floorl-tests: Likewise.
50489         * modules/frexp-nolibm-tests: Likewise.
50490         * modules/frexp-tests: Likewise.
50491         * modules/frexpl-nolibm-tests: Likewise.
50492         * modules/frexpl-tests: Likewise.
50493         * modules/getaddrinfo-tests: Likewise.
50494         * modules/inttypes-tests: Likewise.
50495         * modules/isfinite-tests: Likewise.
50496         * modules/isinf-tests: Likewise.
50497         * modules/ldexpl-tests: Likewise.
50498         * modules/locale-tests: Likewise.
50499         * modules/math-tests: Likewise.
50500         * modules/netdb-tests: Likewise.
50501         * modules/netinet_in-tests: Likewise.
50502         * modules/printf-frexp-tests: Likewise.
50503         * modules/printf-frexpl-tests: Likewise.
50504         * modules/priv-set-tests: Likewise.
50505         * modules/random_r-tests: Likewise.
50506         * modules/round-tests: Likewise.
50507         * modules/roundf-tests: Likewise.
50508         * modules/roundl-tests: Likewise.
50509         * modules/search-tests: Likewise.
50510         * modules/select-tests: Likewise.
50511         * modules/signal-tests: Likewise.
50512         * modules/stdbool-tests: Likewise.
50513         * modules/stddef-tests: Likewise.
50514         * modules/stdint-tests: Likewise.
50515         * modules/stdio-tests: Likewise.
50516         * modules/stdlib-tests: Likewise.
50517         * modules/string-tests: Likewise.
50518         * modules/strings-tests: Likewise.
50519         * modules/sys_select-tests: Likewise.
50520         * modules/sys_socket-tests: Likewise.
50521         * modules/sys_stat-tests: Likewise.
50522         * modules/sys_time-tests: Likewise.
50523         * modules/sys_utsname-tests: Likewise.
50524         * modules/sysexits-tests: Likewise.
50525         * modules/time-tests: Likewise.
50526         * modules/trunc-tests: Likewise.
50527         * modules/truncf-tests: Likewise.
50528         * modules/truncl-tests: Likewise.
50529         * modules/tsearch-tests: Likewise.
50530         * modules/unistd-tests: Likewise.
50531         * modules/wchar-tests: Likewise.
50532         * modules/wctype-tests: Likewise.
50534         tests: fix license on several tests
50535         * tests/test-des.c: Update to GPLv3+.
50536         * tests/test-flock.c: Likewise.
50537         * tests/test-fsync.c: Likewise.
50538         * tests/test-futimens.h: Likewise.
50539         * tests/test-gc-arcfour.c: Likewise.
50540         * tests/test-gc-arctwo.c: Likewise.
50541         * tests/test-gc-des.c: Likewise.
50542         * tests/test-gc-hmac-md5.c: Likewise.
50543         * tests/test-gc-hmac-sha1.c: Likewise.
50544         * tests/test-gc-md2.c: Likewise.
50545         * tests/test-gc-md4.c: Likewise.
50546         * tests/test-gc-md5.c: Likewise.
50547         * tests/test-gc-pbkdf2-sha1.c: Likewise.
50548         * tests/test-gc-rijndael.c: Likewise.
50549         * tests/test-gc-sha1.c: Likewise.
50550         * tests/test-gc.c: Likewise.
50551         * tests/test-getcwd.c: Likewise.
50552         * tests/test-link.c: Likewise.
50553         * tests/test-link.h: Likewise.
50554         * tests/test-lutimens.h: Likewise.
50555         * tests/test-md2.c: Likewise.
50556         * tests/test-md4.c: Likewise.
50557         * tests/test-mkdir.h: Likewise.
50558         * tests/test-rename.c: Likewise.
50559         * tests/test-rename.h: Likewise.
50560         * tests/test-safe-alloc.c: Likewise.
50561         * tests/test-utimens-common.h: Likewise.
50562         * tests/test-utimens.h: Likewise.
50564         maint: sync license texts
50565         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
50566         * doc/gpl-3.0.texi: Revert copyright year update.
50567         * doc/lgpl-3.0.texi: Likewise.
50569 2009-12-29  Jim Meyering  <meyering@redhat.com>
50571         update nearly all FSF copyright year lists to include 2009
50572         The files named by the following are exempted:
50573             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
50574               test -f "$dst" && { echo "$dst"; continue; }
50575               test -d "$dst" || continue
50576               echo "$dst"/$(basename "$src")
50577             done > exempt
50578             git ls-files tests/unictype >> exempt
50579         In the remaining files, convert to all-interval notation if
50580         - there is already at least one year interval like 2000-2003
50581         - the file is maintained by me
50582         - the file is in lib/uni*/, where that style already prevails
50583         Otherwise, use update-copyright's default.
50585 2009-12-29  Simon Josefsson  <simon@josefsson.org>
50586         and Eric Blake  <ebb9@byu.net>
50588         tests: don't require debug system() to pass
50589         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
50590         * tests/test-rmdir.h (test_rmdir_func): Likewise.
50591         * tests/test-unlink.h (test_unlink_func): Likewise.
50592         * tests/test-fstatat.c (main): ...into callers.
50593         * tests/test-lstat.c (main): Likewise.
50594         * tests/test-rmdir.c (main): Likewise.
50595         * tests/test-unlink.c (main): Likewise.
50596         * tests/test-unlinkat.c (main): Likewise.
50597         * tests/test-areadlink-with-size.c (main): Don't require a
50598         debug-only system call to pass, aiding cross-testing to mingw.
50599         * tests/test-areadlink.c (main): Likewise.
50600         * tests/test-areadlinkat-with-size.c (main): Likewise.
50601         * tests/test-areadlinkat.c (main): Likewise.
50602         * tests/test-canonicalize-lgpl.c (main): Likewise.
50603         * tests/test-canonicalize.c (main): Likewise.
50604         * tests/test-chown.c (main): Likewise.
50605         * tests/test-fchownat.c (main): Likewise.
50606         * tests/test-lchown.c (main): Likewise.
50607         * tests/test-fdutimensat.c (main): Likewise.
50608         * tests/test-futimens.c (main): Likewise.
50609         * tests/test-link.c (main): Likewise.
50610         * tests/test-linkat.c (main): Likewise.
50611         * tests/test-mkdir.c (main): Likewise.
50612         * tests/test-mkdirat.c (main): Likewise.
50613         * tests/test-mkfifo.c (main): Likewise.
50614         * tests/test-mkfifoat.c (main): Likewise.
50615         * tests/test-mknod.c (main): Likewise.
50616         * tests/test-readlink.c (main): Likewise.
50617         * tests/test-remove.c (main): Likewise.
50618         * tests/test-rename.c (main): Likewise.
50619         * tests/test-renameat.c (main): Likewise.
50620         * tests/test-symlink.c (main): Likewise.
50621         * tests/test-symlinkat.c (main): Likewise.
50622         * tests/test-utimens.c (main): Likewise.
50623         * tests/test-utimensat.c (main): Likewise.
50625 2009-12-29  Simon Josefsson  <simon@josefsson.org>
50627         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
50628         on $(UNUSED_PARAMETER_H) to avoid build failure.
50630 2009-12-28  Jim Meyering  <meyering@redhat.com>
50632         update-copyright: you may specify a max. line length other than 72
50633         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
50635         maint: use consistent FSF copyright line syntax
50636         * lib/posixtm.c: Add missing comma in FSF copyright line.
50637         * lib/posixtm.h: Likewise.
50638         * lib/getugroups.c: Add missing ", Inc.".
50640         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
50641         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
50642         FSF copyright line.  Remove trailing blanks.
50644 2009-12-28  Eric Blake  <ebb9@byu.net>
50646         test-dup2: reduce dependencies
50647         * modules/cloexec (Configure.ac): Set witness.
50648         * modules/dup2-tests (Depends-on): Drop cloexec.
50649         * tests/test-dup2.c (main): Skip portion of test if cloexec module
50650         not present.
50651         Suggested by Bruno Haible.
50653 2009-12-26  Bruno Haible  <bruno@clisp.org>
50655         Remove an unneeded dependency.
50656         * modules/fseterr (Depends-on): Remove dup2.
50658 2009-12-26  Eric Blake  <ebb9@byu.net>
50660         tests: use macros.h in more places
50661         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
50662         (ASSERT_STREAM): Provide default of stderr.
50663         * tests/test-dirent-safer.c: Include macros.h, using alternate
50664         stream for assertions.
50665         * tests/test-dup-safer.c: Likewise.
50666         * tests/test-freopen-safer.c: Likewise.
50667         * tests/test-getopt.c: Likewise.
50668         * tests/test-openat-safer.c: Likewise.
50669         * tests/test-pipe.c: Likewise.
50670         * tests/test-popen-safer.c: Likewise.
50671         * modules/dirent-safer-tests (Files): Include macros.h.
50672         * modules/unistd-safer-tests (Files): Likewise.
50673         * modules/freopen-safer-tests (Files): Likewise.
50674         * modules/getopt-posix-tests (Files): Likewise.
50675         * modules/openat-safer-tests (Files): Likewise.
50676         * modules/pipe-tests (Files): Likewise.
50678 2009-12-26  Bruno Haible  <bruno@clisp.org>
50680         javacomp: Portability fix.
50681         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
50682         that it also works on Solaris.
50684 2009-12-26  Bruno Haible  <bruno@clisp.org>
50686         localename: Fix storage allocation of gl_locale_name_thread's result.
50687         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
50688         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
50689         all platforms that have 'uselocale'.
50690         (gl_locale_name_thread_unsafe): New function, extracted from
50691         gl_locale_name_thread.
50692         (gl_locale_name_thread): Call struniq on all platforms that have
50693         'uselocale'.
50694         * tests/test-localename.c (test_locale_name_thread): Check that the
50695         resulting strings are permanently allocated.
50696         * modules/localename-tests (Depends-on): Add strdup.
50698 2009-12-26  Bruno Haible  <bruno@clisp.org>
50700         * tests/test-localename.c (categories): Fill in the strings.
50702 2009-12-26  Jim Meyering  <meyering@redhat.com>
50704         isdir: complete the removal of m4/isdir.m4
50705         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
50707         isdir: clean up, since at least grep still uses it
50708         * lib/isdir.c: Include "isdir.h".
50709         (S_ISDIR): Remove now-unneeded definition.
50710         * modules/isdir (Files): Add lib/isdir.h.
50711         * lib/isdir.h: New file, with declaration.
50712         * m4/isdir.m4: Remove file -- unneeded.
50714 2009-12-25  Bruno Haible  <bruno@clisp.org>
50716         selinux-h: Make generated .h files standalone.
50717         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
50718         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
50719         * lib/se-selinux.in.h: Likewise.
50720         * modules/selinux-h (Depends-on): Add unused-parameter.
50721         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
50722         selinux/selinux.h and selinux/context.h.
50723         Suggested by Eric Blake.
50725 2009-12-25  Bruno Haible  <bruno@clisp.org>
50727         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
50728         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
50729         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
50730         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
50731         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
50733 2009-12-24  Bruno Haible  <bruno@clisp.org>
50735         openat: Fix warning.
50736         * lib/openat-proc.c: Include <unistd.h>.
50738 2009-12-24  Bruno Haible  <bruno@clisp.org>
50740         New module 'unused-parameter'.
50741         * build-aux/unused-parameter.h: New file, extracted from earlier
50742         gnulib-common.m4.
50743         * modules/unused-parameter: New file.
50744         * lib/unistr.h: Include unused-parameter.h.
50745         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
50746         _GL_UNUSED.
50747         * modules/unistr/base (Depends-on): Add unused-parameter.
50749 2009-12-24  Bruno Haible  <bruno@clisp.org>
50751         Add missing dependencies to 'extensions' module.
50752         * m4/extensions.m4: Add comment.
50753         * modules/accept4 (Depends-on): Add extensions.
50754         * modules/dup3 (Depends-on): Likewise.
50755         * modules/fcntl (Depends-on): Likewise.
50756         * modules/futimens (Depends-on): Likewise.
50757         * modules/mknod (Depends-on): Likewise.
50758         * modules/pipe2 (Depends-on): Likewise.
50759         * modules/stat-time (Depends-on): Likewise.
50760         * modules/strcasestr-simple (Depends-on): Likewise.
50761         * modules/strsignal (Depends-on): Likewise.
50762         * modules/utimensat (Depends-on): Likewise.
50763         * modules/localcharset (Depends-on): Likewise. Needed because of
50764         gl_FCNTL_O_FLAGS.
50765         * modules/wcrtomb (Depends-on): Likewise. Needed because of
50766         AC_TYPE_MBSTATE_T.
50767         * modules/wcsnrtombs (Depends-on): Likewise.
50768         * modules/wcsrtombs (Depends-on): Likewise.
50770 2009-12-24  Bruno Haible  <bruno@clisp.org>
50772         binary-io: Avoid gcc warning due to SET_BINARY.
50773         * lib/binary-io.h (SET_BINARY): Cast the result to void.
50774         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
50776 2009-12-24  Bruno Haible  <bruno@clisp.org>
50778         Avoid future namespace pollution on glibc systems.
50779         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
50780         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
50781         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
50782         glibc systems.
50784 2009-12-24  Bruno Haible  <bruno@clisp.org>
50786         Refactor common macros used in tests.
50787         * tests/macros.h: New file.
50788         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
50789         and/or <stdlib.h>, if appropriate.
50790         (ASSERT, SIZEOF): Remove macros.
50791         * tests/test-areadlink-with-size.c: Likewise.
50792         * tests/test-areadlinkat.c: Likewise.
50793         * tests/test-areadlinkat-with-size.c: Likewise.
50794         * tests/test-argmatch.c: Likewise.
50795         * tests/test-argv-iter.c: Likewise.
50796         * tests/test-array-mergesort.c: Likewise.
50797         * tests/test-array_list.c: Likewise.
50798         * tests/test-array_oset.c: Likewise.
50799         * tests/test-avltree_list.c: Likewise.
50800         * tests/test-avltree_oset.c: Likewise.
50801         * tests/test-avltreehash_list.c: Likewise.
50802         * tests/test-base64.c: Likewise.
50803         * tests/test-binary-io.c: Likewise.
50804         * tests/test-bitrotate.c: Likewise.
50805         * tests/test-btowc.c: Likewise.
50806         * tests/test-byteswap.c: Likewise.
50807         * tests/test-c-ctype.c: Likewise.
50808         * tests/test-c-stack.c: Likewise.
50809         * tests/test-c-strcasecmp.c: Likewise.
50810         * tests/test-c-strcasestr.c: Likewise.
50811         * tests/test-c-strncasecmp.c: Likewise.
50812         * tests/test-c-strstr.c: Likewise.
50813         * tests/test-canonicalize-lgpl.c: Likewise.
50814         * tests/test-canonicalize.c: Likewise.
50815         * tests/test-carray_list.c: Likewise.
50816         * tests/test-ceilf1.c: Likewise.
50817         * tests/test-ceilf2.c: Likewise.
50818         * tests/test-ceill.c: Likewise.
50819         * tests/test-chown.c: Likewise.
50820         * tests/test-cloexec.c: Likewise.
50821         * tests/test-copy-acl.c: Likewise.
50822         * tests/test-copy-file.c: Likewise.
50823         * tests/test-count-one-bits.c: Likewise.
50824         * tests/test-dprintf-posix.c: Likewise.
50825         * tests/test-dup2.c: Likewise.
50826         * tests/test-dup3.c: Likewise.
50827         * tests/test-duplocale.c: Likewise.
50828         * tests/test-fbufmode.c: Likewise.
50829         * tests/test-fchdir.c: Likewise.
50830         * tests/test-fchownat.c: Likewise.
50831         * tests/test-fcntl-safer.c: Likewise.
50832         * tests/test-fcntl.c: Likewise.
50833         * tests/test-fdopendir.c: Likewise.
50834         * tests/test-fdutimensat.c: Likewise.
50835         * tests/test-fflush2.c: Likewise.
50836         * tests/test-file-has-acl.c: Likewise.
50837         * tests/test-filevercmp.c: Likewise.
50838         * tests/test-flock.c: Likewise.
50839         * tests/test-floorf1.c: Likewise.
50840         * tests/test-floorf2.c: Likewise.
50841         * tests/test-floorl.c: Likewise.
50842         * tests/test-fnmatch.c: Likewise.
50843         * tests/test-fopen.h: Likewise.
50844         * tests/test-fpending.c: Likewise.
50845         * tests/test-fprintf-posix.c: Likewise.
50846         * tests/test-fpurge.c: Likewise.
50847         * tests/test-freadable.c: Likewise.
50848         * tests/test-freadahead.c: Likewise.
50849         * tests/test-freading.c: Likewise.
50850         * tests/test-freadptr.c: Likewise.
50851         * tests/test-freadptr2.c: Likewise.
50852         * tests/test-freadseek.c: Likewise.
50853         * tests/test-freopen.c: Likewise.
50854         * tests/test-frexp.c: Likewise.
50855         * tests/test-frexpl.c: Likewise.
50856         * tests/test-fseek.c: Likewise.
50857         * tests/test-fseeko.c: Likewise.
50858         * tests/test-fstatat.c: Likewise.
50859         * tests/test-fstrcmp.c: Likewise.
50860         * tests/test-fsync.c: Likewise.
50861         * tests/test-ftell.c: Likewise.
50862         * tests/test-ftello.c: Likewise.
50863         * tests/test-func.c: Likewise.
50864         * tests/test-futimens.c: Likewise.
50865         * tests/test-fwritable.c: Likewise.
50866         * tests/test-fwriting.c: Likewise.
50867         * tests/test-getcwd.c: Likewise.
50868         * tests/test-getdate.c: Likewise.
50869         * tests/test-getdelim.c: Likewise.
50870         * tests/test-getdtablesize.c: Likewise.
50871         * tests/test-getgroups.c: Likewise.
50872         * tests/test-getline.c: Likewise.
50873         * tests/test-getndelim2.c: Likewise.
50874         * tests/test-glob.c: Likewise.
50875         * tests/test-hash.c: Likewise.
50876         * tests/test-i-ring.c: Likewise.
50877         * tests/test-iconv-utf.c: Likewise.
50878         * tests/test-iconv.c: Likewise.
50879         * tests/test-idpriv-drop.c: Likewise.
50880         * tests/test-idpriv-droptemp.c: Likewise.
50881         * tests/test-inet_ntop.c: Likewise.
50882         * tests/test-inet_pton.c: Likewise.
50883         * tests/test-isblank.c: Likewise.
50884         * tests/test-isfinite.c: Likewise.
50885         * tests/test-isinf.c: Likewise.
50886         * tests/test-isnan.c: Likewise.
50887         * tests/test-isnand.h: Likewise.
50888         * tests/test-isnanf.h: Likewise.
50889         * tests/test-isnanl.h: Likewise.
50890         * tests/test-lchown.c: Likewise.
50891         * tests/test-ldexpl.c: Likewise.
50892         * tests/test-link.c: Likewise.
50893         * tests/test-linkat.c: Likewise.
50894         * tests/test-linked_list.c: Likewise.
50895         * tests/test-linkedhash_list.c: Likewise.
50896         * tests/test-localename.c: Likewise.
50897         * tests/test-lseek.c: Likewise.
50898         * tests/test-lstat.c: Likewise.
50899         * tests/test-mbmemcasecmp.c: Likewise.
50900         * tests/test-mbmemcasecoll.c: Likewise.
50901         * tests/test-mbrtowc.c: Likewise.
50902         * tests/test-mbscasecmp.c: Likewise.
50903         * tests/test-mbscasestr1.c: Likewise.
50904         * tests/test-mbscasestr2.c: Likewise.
50905         * tests/test-mbscasestr3.c: Likewise.
50906         * tests/test-mbscasestr4.c: Likewise.
50907         * tests/test-mbschr.c: Likewise.
50908         * tests/test-mbscspn.c: Likewise.
50909         * tests/test-mbsinit.c: Likewise.
50910         * tests/test-mbsncasecmp.c: Likewise.
50911         * tests/test-mbsnrtowcs.c: Likewise.
50912         * tests/test-mbspbrk.c: Likewise.
50913         * tests/test-mbspcasecmp.c: Likewise.
50914         * tests/test-mbsrchr.c: Likewise.
50915         * tests/test-mbsrtowcs.c: Likewise.
50916         * tests/test-mbsspn.c: Likewise.
50917         * tests/test-mbsstr1.c: Likewise.
50918         * tests/test-mbsstr2.c: Likewise.
50919         * tests/test-mbsstr3.c: Likewise.
50920         * tests/test-memchr.c: Likewise.
50921         * tests/test-memchr2.c: Likewise.
50922         * tests/test-memcmp.c: Likewise.
50923         * tests/test-memmem.c: Likewise.
50924         * tests/test-memrchr.c: Likewise.
50925         * tests/test-mkdir.c: Likewise.
50926         * tests/test-mkdirat.c: Likewise.
50927         * tests/test-mkfifo.c: Likewise.
50928         * tests/test-mkfifoat.c: Likewise.
50929         * tests/test-mknod.c: Likewise.
50930         * tests/test-nanosleep.c: Likewise.
50931         * tests/test-nl_langinfo.c: Likewise.
50932         * tests/test-obstack-printf.c: Likewise.
50933         * tests/test-open.c: Likewise.
50934         * tests/test-openat.c: Likewise.
50935         * tests/test-pipe-filter-gi1.c: Likewise.
50936         * tests/test-pipe-filter-gi2-main.c: Likewise.
50937         * tests/test-pipe-filter-ii1.c: Likewise.
50938         * tests/test-pipe-filter-ii2-main.c: Likewise.
50939         * tests/test-pipe2.c: Likewise.
50940         * tests/test-popen.h: Likewise.
50941         * tests/test-posixtm.c: Likewise.
50942         * tests/test-pread.c: Likewise.
50943         * tests/test-printf-frexp.c: Likewise.
50944         * tests/test-printf-frexpl.c: Likewise.
50945         * tests/test-printf-posix.c: Likewise.
50946         * tests/test-priv-set.c: Likewise.
50947         * tests/test-quotearg.c: Likewise.
50948         * tests/test-random_r.c: Likewise.
50949         * tests/test-rawmemchr.c: Likewise.
50950         * tests/test-rbtree_list.c: Likewise.
50951         * tests/test-rbtree_oset.c: Likewise.
50952         * tests/test-rbtreehash_list.c: Likewise.
50953         * tests/test-readlink.c: Likewise.
50954         * tests/test-remove.c: Likewise.
50955         * tests/test-rename.c: Likewise.
50956         * tests/test-renameat.c: Likewise.
50957         * tests/test-rmdir.c: Likewise.
50958         * tests/test-round1.c: Likewise.
50959         * tests/test-roundf1.c: Likewise.
50960         * tests/test-roundl.c: Likewise.
50961         * tests/test-safe-alloc.c: Likewise.
50962         * tests/test-sameacls.c: Likewise.
50963         * tests/test-set-mode-acl.c: Likewise.
50964         * tests/test-setenv.c: Likewise.
50965         * tests/test-sigaction.c: Likewise.
50966         * tests/test-signbit.c: Likewise.
50967         * tests/test-sleep.c: Likewise.
50968         * tests/test-snprintf-posix.c: Likewise.
50969         * tests/test-snprintf.c: Likewise.
50970         * tests/test-sprintf-posix.c: Likewise.
50971         * tests/test-stat-time.c: Likewise.
50972         * tests/test-stat.c: Likewise.
50973         * tests/test-strcasestr.c: Likewise.
50974         * tests/test-strchrnul.c: Likewise.
50975         * tests/test-strerror.c: Likewise.
50976         * tests/test-striconv.c: Likewise.
50977         * tests/test-striconveh.c: Likewise.
50978         * tests/test-striconveha.c: Likewise.
50979         * tests/test-strsignal.c: Likewise.
50980         * tests/test-strstr.c: Likewise.
50981         * tests/test-strtod.c: Likewise.
50982         * tests/test-strverscmp.c: Likewise.
50983         * tests/test-symlink.c: Likewise.
50984         * tests/test-symlinkat.c: Likewise.
50985         * tests/test-trunc1.c: Likewise.
50986         * tests/test-trunc2.c: Likewise.
50987         * tests/test-truncf1.c: Likewise.
50988         * tests/test-truncf2.c: Likewise.
50989         * tests/test-truncl.c: Likewise.
50990         * tests/test-uname.c: Likewise.
50991         * tests/test-unlink.c: Likewise.
50992         * tests/test-unlinkat.c: Likewise.
50993         * tests/test-unsetenv.c: Likewise.
50994         * tests/test-usleep.c: Likewise.
50995         * tests/test-utimens.c: Likewise.
50996         * tests/test-utimensat.c: Likewise.
50997         * tests/test-vasnprintf-posix.c: Likewise.
50998         * tests/test-vasnprintf-posix2.c: Likewise.
50999         * tests/test-vasnprintf.c: Likewise.
51000         * tests/test-vasprintf-posix.c: Likewise.
51001         * tests/test-vasprintf.c: Likewise.
51002         * tests/test-vdprintf-posix.c: Likewise.
51003         * tests/test-vfprintf-posix.c: Likewise.
51004         * tests/test-vprintf-posix.c: Likewise.
51005         * tests/test-vsnprintf-posix.c: Likewise.
51006         * tests/test-vsnprintf.c: Likewise.
51007         * tests/test-vsprintf-posix.c: Likewise.
51008         * tests/test-wcrtomb.c: Likewise.
51009         * tests/test-wcsnrtombs.c: Likewise.
51010         * tests/test-wcsrtombs.c: Likewise.
51011         * tests/test-wctype.c: Likewise.
51012         * tests/test-wcwidth.c: Likewise.
51013         * tests/test-xfprintf-posix.c: Likewise.
51014         * tests/test-xmemdup0.c: Likewise.
51015         * tests/test-xprintf-posix.c: Likewise.
51016         * tests/test-xvasprintf.c: Likewise.
51017         * tests/unicase/test-locale-language.c: Likewise.
51018         * tests/unicase/test-mapping-part1.h: Likewise.
51019         * tests/unicase/test-predicate-part1.h: Likewise.
51020         * tests/unicase/test-u8-casecmp.c: Likewise.
51021         * tests/unicase/test-u8-casecoll.c: Likewise.
51022         * tests/unicase/test-u8-casefold.c: Likewise.
51023         * tests/unicase/test-u8-is-cased.c: Likewise.
51024         * tests/unicase/test-u8-is-casefolded.c: Likewise.
51025         * tests/unicase/test-u8-is-lowercase.c: Likewise.
51026         * tests/unicase/test-u8-is-titlecase.c: Likewise.
51027         * tests/unicase/test-u8-is-uppercase.c: Likewise.
51028         * tests/unicase/test-u8-tolower.c: Likewise.
51029         * tests/unicase/test-u8-totitle.c: Likewise.
51030         * tests/unicase/test-u8-toupper.c: Likewise.
51031         * tests/unicase/test-u16-casecmp.c: Likewise.
51032         * tests/unicase/test-u16-casecoll.c: Likewise.
51033         * tests/unicase/test-u16-casefold.c: Likewise.
51034         * tests/unicase/test-u16-is-cased.c: Likewise.
51035         * tests/unicase/test-u16-is-casefolded.c: Likewise.
51036         * tests/unicase/test-u16-is-lowercase.c: Likewise.
51037         * tests/unicase/test-u16-is-titlecase.c: Likewise.
51038         * tests/unicase/test-u16-is-uppercase.c: Likewise.
51039         * tests/unicase/test-u16-tolower.c: Likewise.
51040         * tests/unicase/test-u16-totitle.c: Likewise.
51041         * tests/unicase/test-u16-toupper.c: Likewise.
51042         * tests/unicase/test-u32-casecmp.c: Likewise.
51043         * tests/unicase/test-u32-casecoll.c: Likewise.
51044         * tests/unicase/test-u32-casefold.c: Likewise.
51045         * tests/unicase/test-u32-is-cased.c: Likewise.
51046         * tests/unicase/test-u32-is-casefolded.c: Likewise.
51047         * tests/unicase/test-u32-is-lowercase.c: Likewise.
51048         * tests/unicase/test-u32-is-titlecase.c: Likewise.
51049         * tests/unicase/test-u32-is-uppercase.c: Likewise.
51050         * tests/unicase/test-u32-tolower.c: Likewise.
51051         * tests/unicase/test-u32-totitle.c: Likewise.
51052         * tests/unicase/test-u32-toupper.c: Likewise.
51053         * tests/unicase/test-ulc-casecmp.c: Likewise.
51054         * tests/unicase/test-ulc-casecoll.c: Likewise.
51055         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51056         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
51057         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51058         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51059         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
51060         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
51061         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51062         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51063         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51064         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
51065         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51066         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51067         * tests/unictype/test-bidi_byname.c: Likewise.
51068         * tests/unictype/test-bidi_name.c: Likewise.
51069         * tests/unictype/test-bidi_of.c: Likewise.
51070         * tests/unictype/test-bidi_test.c: Likewise.
51071         * tests/unictype/test-block_list.c: Likewise.
51072         * tests/unictype/test-block_of.c: Likewise.
51073         * tests/unictype/test-block_test.c: Likewise.
51074         * tests/unictype/test-categ_and.c: Likewise.
51075         * tests/unictype/test-categ_and_not.c: Likewise.
51076         * tests/unictype/test-categ_byname.c: Likewise.
51077         * tests/unictype/test-categ_name.c: Likewise.
51078         * tests/unictype/test-categ_none.c: Likewise.
51079         * tests/unictype/test-categ_of.c: Likewise.
51080         * tests/unictype/test-categ_or.c: Likewise.
51081         * tests/unictype/test-categ_test_withtable.c: Likewise.
51082         * tests/unictype/test-combining.c: Likewise.
51083         * tests/unictype/test-decdigit.c: Likewise.
51084         * tests/unictype/test-digit.c: Likewise.
51085         * tests/unictype/test-mirror.c: Likewise.
51086         * tests/unictype/test-numeric.c: Likewise.
51087         * tests/unictype/test-pr_byname.c: Likewise.
51088         * tests/unictype/test-pr_test.c: Likewise.
51089         * tests/unictype/test-predicate-part1.h: Likewise.
51090         * tests/unictype/test-scripts.c: Likewise.
51091         * tests/unictype/test-sy_c_ident.c: Likewise.
51092         * tests/unictype/test-sy_java_ident.c: Likewise.
51093         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
51094         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
51095         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
51096         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
51097         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
51098         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
51099         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
51100         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
51101         * tests/uninorm/test-canonical-decomposition.c: Likewise.
51102         * tests/uninorm/test-compat-decomposition.c: Likewise.
51103         * tests/uninorm/test-composition.c: Likewise.
51104         * tests/uninorm/test-decomposing-form.c: Likewise.
51105         * tests/uninorm/test-decomposition.c: Likewise.
51106         * tests/uninorm/test-u8-nfc.c: Likewise.
51107         * tests/uninorm/test-u8-nfd.c: Likewise.
51108         * tests/uninorm/test-u8-nfkc.c: Likewise.
51109         * tests/uninorm/test-u8-nfkd.c: Likewise.
51110         * tests/uninorm/test-u8-normcmp.c: Likewise.
51111         * tests/uninorm/test-u8-normcoll.c: Likewise.
51112         * tests/uninorm/test-u16-nfc.c: Likewise.
51113         * tests/uninorm/test-u16-nfd.c: Likewise.
51114         * tests/uninorm/test-u16-nfkc.c: Likewise.
51115         * tests/uninorm/test-u16-nfkd.c: Likewise.
51116         * tests/uninorm/test-u16-normcmp.c: Likewise.
51117         * tests/uninorm/test-u16-normcoll.c: Likewise.
51118         * tests/uninorm/test-u32-nfc.c: Likewise.
51119         * tests/uninorm/test-u32-nfd.c: Likewise.
51120         * tests/uninorm/test-u32-nfkc.c: Likewise.
51121         * tests/uninorm/test-u32-nfkd.c: Likewise.
51122         * tests/uninorm/test-u32-normalize-big.c: Likewise.
51123         * tests/uninorm/test-u32-normcmp.c: Likewise.
51124         * tests/uninorm/test-u32-normcoll.c: Likewise.
51125         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
51126         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
51127         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
51128         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
51129         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
51130         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
51131         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
51132         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
51133         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
51134         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
51135         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
51136         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
51137         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
51138         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
51139         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
51140         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
51141         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
51142         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
51143         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
51144         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
51145         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
51146         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
51147         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
51148         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
51149         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
51150         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
51151         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
51152         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
51153         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
51154         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
51155         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
51156         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
51157         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
51158         * tests/uniwidth/test-u8-strwidth.c: Likewise.
51159         * tests/uniwidth/test-u8-width.c: Likewise.
51160         * tests/uniwidth/test-u16-strwidth.c: Likewise.
51161         * tests/uniwidth/test-u16-width.c: Likewise.
51162         * tests/uniwidth/test-u32-strwidth.c: Likewise.
51163         * tests/uniwidth/test-u32-width.c: Likewise.
51164         * tests/uniwidth/test-uc_width.c: Likewise.
51165         * tests/uniwidth/test-uc_width2.c: Likewise.
51166         * modules/acl-tests (Files): Add tests/macros.h.
51167         * modules/areadlink-tests (Files): Likewise.
51168         * modules/areadlink-with-size-tests (Files): Likewise.
51169         * modules/areadlinkat-tests (Files): Likewise.
51170         * modules/areadlinkat-with-size-tests (Files): Likewise.
51171         * modules/argmatch-tests (Files): Likewise.
51172         * modules/argv-iter-tests (Files): Likewise.
51173         * modules/array-list-tests (Files): Likewise.
51174         * modules/array-mergesort-tests (Files): Likewise.
51175         * modules/array-oset-tests (Files): Likewise.
51176         * modules/avltree-list-tests (Files): Likewise.
51177         * modules/avltree-oset-tests (Files): Likewise.
51178         * modules/avltreehash-list-tests (Files): Likewise.
51179         * modules/base64-tests (Files): Likewise.
51180         * modules/binary-io-tests (Files): Likewise.
51181         * modules/bitrotate-tests (Files): Likewise.
51182         * modules/btowc-tests (Files): Likewise.
51183         * modules/byteswap-tests (Files): Likewise.
51184         * modules/c-ctype-tests (Files): Likewise.
51185         * modules/c-stack-tests (Files): Likewise.
51186         * modules/c-strcase-tests (Files): Likewise.
51187         * modules/c-strcasestr-tests (Files): Likewise.
51188         * modules/c-strstr-tests (Files): Likewise.
51189         * modules/canonicalize-lgpl-tests (Files): Likewise.
51190         * modules/canonicalize-tests (Files): Likewise.
51191         * modules/carray-list-tests (Files): Likewise.
51192         * modules/ceilf-tests (Files): Likewise.
51193         * modules/ceill-tests (Files): Likewise.
51194         * modules/chown-tests (Files): Likewise.
51195         * modules/cloexec-tests (Files): Likewise.
51196         * modules/copy-file-tests (Files): Likewise.
51197         * modules/count-one-bits-tests (Files): Likewise.
51198         * modules/dprintf-posix-tests (Files): Likewise.
51199         * modules/dup2-tests (Files): Likewise.
51200         * modules/dup3-tests (Files): Likewise.
51201         * modules/duplocale-tests (Files): Likewise.
51202         * modules/fbufmode-tests (Files): Likewise.
51203         * modules/fchdir-tests (Files): Likewise.
51204         * modules/fcntl-safer-tests (Files): Likewise.
51205         * modules/fcntl-tests (Files): Likewise.
51206         * modules/fdopendir-tests (Files): Likewise.
51207         * modules/fdutimensat-tests (Files): Likewise.
51208         * modules/fflush-tests (Files): Likewise.
51209         * modules/filevercmp-tests (Files): Likewise.
51210         * modules/flock-tests (Files): Likewise.
51211         * modules/floorf-tests (Files): Likewise.
51212         * modules/floorl-tests (Files): Likewise.
51213         * modules/fnmatch-tests (Files): Likewise.
51214         * modules/fopen-safer-tests (Files): Likewise.
51215         * modules/fopen-tests (Files): Likewise.
51216         * modules/fpending-tests (Files): Likewise.
51217         * modules/fprintf-posix-tests (Files): Likewise.
51218         * modules/fpurge-tests (Files): Likewise.
51219         * modules/freadable-tests (Files): Likewise.
51220         * modules/freadahead-tests (Files): Likewise.
51221         * modules/freading-tests (Files): Likewise.
51222         * modules/freadptr-tests (Files): Likewise.
51223         * modules/freadseek-tests (Files): Likewise.
51224         * modules/freopen-tests (Files): Likewise.
51225         * modules/frexp-nolibm-tests (Files): Likewise.
51226         * modules/frexp-tests (Files): Likewise.
51227         * modules/frexpl-nolibm-tests (Files): Likewise.
51228         * modules/frexpl-tests (Files): Likewise.
51229         * modules/fseek-tests (Files): Likewise.
51230         * modules/fseeko-tests (Files): Likewise.
51231         * modules/fstrcmp-tests (Files): Likewise.
51232         * modules/fsync-tests (Files): Likewise.
51233         * modules/ftell-tests (Files): Likewise.
51234         * modules/ftello-tests (Files): Likewise.
51235         * modules/func-tests (Files): Likewise.
51236         * modules/futimens-tests (Files): Likewise.
51237         * modules/fwritable-tests (Files): Likewise.
51238         * modules/fwriting-tests (Files): Likewise.
51239         * modules/getcwd-tests (Files): Likewise.
51240         * modules/getdate-tests (Files): Likewise.
51241         * modules/getdelim-tests (Files): Likewise.
51242         * modules/getdtablesize-tests (Files): Likewise.
51243         * modules/getgroups-tests (Files): Likewise.
51244         * modules/getline-tests (Files): Likewise.
51245         * modules/getndelim2-tests (Files): Likewise.
51246         * modules/glob-tests (Files): Likewise.
51247         * modules/hash-tests (Files): Likewise.
51248         * modules/i-ring-tests (Files): Likewise.
51249         * modules/iconv-tests (Files): Likewise.
51250         * modules/iconv_open-utf-tests (Files): Likewise.
51251         * modules/idpriv-drop-tests (Files): Likewise.
51252         * modules/idpriv-droptemp-tests (Files): Likewise.
51253         * modules/inet_ntop-tests (Files): Likewise.
51254         * modules/inet_pton-tests (Files): Likewise.
51255         * modules/isblank-tests (Files): Likewise.
51256         * modules/isfinite-tests (Files): Likewise.
51257         * modules/isinf-tests (Files): Likewise.
51258         * modules/isnan-tests (Files): Likewise.
51259         * modules/isnand-nolibm-tests (Files): Likewise.
51260         * modules/isnand-tests (Files): Likewise.
51261         * modules/isnanf-nolibm-tests (Files): Likewise.
51262         * modules/isnanf-tests (Files): Likewise.
51263         * modules/isnanl-nolibm-tests (Files): Likewise.
51264         * modules/isnanl-tests (Files): Likewise.
51265         * modules/lchown-tests (Files): Likewise.
51266         * modules/ldexpl-tests (Files): Likewise.
51267         * modules/link-tests (Files): Likewise.
51268         * modules/linkat-tests (Files): Likewise.
51269         * modules/linked-list-tests (Files): Likewise.
51270         * modules/linkedhash-list-tests (Files): Likewise.
51271         * modules/localename-tests (Files): Likewise.
51272         * modules/lseek-tests (Files): Likewise.
51273         * modules/lstat-tests (Files): Likewise.
51274         * modules/mbmemcasecmp-tests (Files): Likewise.
51275         * modules/mbmemcasecoll-tests (Files): Likewise.
51276         * modules/mbrtowc-tests (Files): Likewise.
51277         * modules/mbscasecmp-tests (Files): Likewise.
51278         * modules/mbscasestr-tests (Files): Likewise.
51279         * modules/mbschr-tests (Files): Likewise.
51280         * modules/mbscspn-tests (Files): Likewise.
51281         * modules/mbsinit-tests (Files): Likewise.
51282         * modules/mbsncasecmp-tests (Files): Likewise.
51283         * modules/mbsnrtowcs-tests (Files): Likewise.
51284         * modules/mbspbrk-tests (Files): Likewise.
51285         * modules/mbspcasecmp-tests (Files): Likewise.
51286         * modules/mbsrchr-tests (Files): Likewise.
51287         * modules/mbsrtowcs-tests (Files): Likewise.
51288         * modules/mbsspn-tests (Files): Likewise.
51289         * modules/mbsstr-tests (Files): Likewise.
51290         * modules/memchr-tests (Files): Likewise.
51291         * modules/memchr2-tests (Files): Likewise.
51292         * modules/memcmp-tests (Files): Likewise.
51293         * modules/memmem-tests (Files): Likewise.
51294         * modules/memrchr-tests (Files): Likewise.
51295         * modules/mkdir-tests (Files): Likewise.
51296         * modules/mkfifo-tests (Files): Likewise.
51297         * modules/mkfifoat-tests (Files): Likewise.
51298         * modules/mknod-tests (Files): Likewise.
51299         * modules/nanosleep-tests (Files): Likewise.
51300         * modules/nl_langinfo-tests (Files): Likewise.
51301         * modules/obstack-printf-tests (Files): Likewise.
51302         * modules/open-tests (Files): Likewise.
51303         * modules/openat-tests (Files): Likewise.
51304         * modules/pipe-filter-gi-tests (Files): Likewise.
51305         * modules/pipe-filter-ii-tests (Files): Likewise.
51306         * modules/pipe2-tests (Files): Likewise.
51307         * modules/popen-safer-tests (Files): Likewise.
51308         * modules/popen-tests (Files): Likewise.
51309         * modules/posixtm-tests (Files): Likewise.
51310         * modules/pread-tests (Files): Likewise.
51311         * modules/printf-frexp-tests (Files): Likewise.
51312         * modules/printf-frexpl-tests (Files): Likewise.
51313         * modules/printf-posix-tests (Files): Likewise.
51314         * modules/priv-set-tests (Files): Likewise.
51315         * modules/quotearg-tests (Files): Likewise.
51316         * modules/random_r-tests (Files): Likewise.
51317         * modules/rawmemchr-tests (Files): Likewise.
51318         * modules/rbtree-list-tests (Files): Likewise.
51319         * modules/rbtree-oset-tests (Files): Likewise.
51320         * modules/rbtreehash-list-tests (Files): Likewise.
51321         * modules/readlink-tests (Files): Likewise.
51322         * modules/remove-tests (Files): Likewise.
51323         * modules/rename-tests (Files): Likewise.
51324         * modules/renameat-tests (Files): Likewise.
51325         * modules/rmdir-tests (Files): Likewise.
51326         * modules/round-tests (Files): Likewise.
51327         * modules/roundf-tests (Files): Likewise.
51328         * modules/roundl-tests (Files): Likewise.
51329         * modules/safe-alloc-tests (Files): Likewise.
51330         * modules/setenv-tests (Files): Likewise.
51331         * modules/sigaction-tests (Files): Likewise.
51332         * modules/signbit-tests (Files): Likewise.
51333         * modules/sleep-tests (Files): Likewise.
51334         * modules/snprintf-posix-tests (Files): Likewise.
51335         * modules/snprintf-tests (Files): Likewise.
51336         * modules/sprintf-posix-tests (Files): Likewise.
51337         * modules/stat-tests (Files): Likewise.
51338         * modules/stat-time-tests (Files): Likewise.
51339         * modules/strcasestr-tests (Files): Likewise.
51340         * modules/strchrnul-tests (Files): Likewise.
51341         * modules/strerror-tests (Files): Likewise.
51342         * modules/striconv-tests (Files): Likewise.
51343         * modules/striconveh-tests (Files): Likewise.
51344         * modules/striconveha-tests (Files): Likewise.
51345         * modules/strsignal-tests (Files): Likewise.
51346         * modules/strstr-tests (Files): Likewise.
51347         * modules/strtod-tests (Files): Likewise.
51348         * modules/strverscmp-tests (Files): Likewise.
51349         * modules/symlink-tests (Files): Likewise.
51350         * modules/symlinkat-tests (Files): Likewise.
51351         * modules/trunc-tests (Files): Likewise.
51352         * modules/truncf-tests (Files): Likewise.
51353         * modules/truncl-tests (Files): Likewise.
51354         * modules/uname-tests (Files): Likewise.
51355         * modules/unicase/cased-tests (Files): Likewise.
51356         * modules/unicase/ignorable-tests (Files): Likewise.
51357         * modules/unicase/locale-language-tests (Files): Likewise.
51358         * modules/unicase/tolower-tests (Files): Likewise.
51359         * modules/unicase/totitle-tests (Files): Likewise.
51360         * modules/unicase/toupper-tests (Files): Likewise.
51361         * modules/unicase/u8-casecmp-tests (Files): Likewise.
51362         * modules/unicase/u8-casecoll-tests (Files): Likewise.
51363         * modules/unicase/u8-casefold-tests (Files): Likewise.
51364         * modules/unicase/u8-is-cased-tests (Files): Likewise.
51365         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
51366         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
51367         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
51368         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
51369         * modules/unicase/u8-tolower-tests (Files): Likewise.
51370         * modules/unicase/u8-totitle-tests (Files): Likewise.
51371         * modules/unicase/u8-toupper-tests (Files): Likewise.
51372         * modules/unicase/u16-casecmp-tests (Files): Likewise.
51373         * modules/unicase/u16-casecoll-tests (Files): Likewise.
51374         * modules/unicase/u16-casefold-tests (Files): Likewise.
51375         * modules/unicase/u16-is-cased-tests (Files): Likewise.
51376         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
51377         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
51378         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
51379         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
51380         * modules/unicase/u16-tolower-tests (Files): Likewise.
51381         * modules/unicase/u16-totitle-tests (Files): Likewise.
51382         * modules/unicase/u16-toupper-tests (Files): Likewise.
51383         * modules/unicase/u32-casecmp-tests (Files): Likewise.
51384         * modules/unicase/u32-casecoll-tests (Files): Likewise.
51385         * modules/unicase/u32-casefold-tests (Files): Likewise.
51386         * modules/unicase/u32-is-cased-tests (Files): Likewise.
51387         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
51388         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
51389         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
51390         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
51391         * modules/unicase/u32-tolower-tests (Files): Likewise.
51392         * modules/unicase/u32-totitle-tests (Files): Likewise.
51393         * modules/unicase/u32-toupper-tests (Files): Likewise.
51394         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
51395         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
51396         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
51397         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
51398         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
51399         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
51400         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
51401         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
51402         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
51403         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
51404         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
51405         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
51406         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
51407         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
51408         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
51409         * modules/unictype/bidicategory-name-tests (Files): Likewise.
51410         * modules/unictype/bidicategory-of-tests (Files): Likewise.
51411         * modules/unictype/bidicategory-test-tests (Files): Likewise.
51412         * modules/unictype/block-list-tests (Files): Likewise.
51413         * modules/unictype/block-of-tests (Files): Likewise.
51414         * modules/unictype/block-test-tests (Files): Likewise.
51415         * modules/unictype/category-C-tests (Files): Likewise.
51416         * modules/unictype/category-Cc-tests (Files): Likewise.
51417         * modules/unictype/category-Cf-tests (Files): Likewise.
51418         * modules/unictype/category-Cn-tests (Files): Likewise.
51419         * modules/unictype/category-Co-tests (Files): Likewise.
51420         * modules/unictype/category-Cs-tests (Files): Likewise.
51421         * modules/unictype/category-L-tests (Files): Likewise.
51422         * modules/unictype/category-Ll-tests (Files): Likewise.
51423         * modules/unictype/category-Lm-tests (Files): Likewise.
51424         * modules/unictype/category-Lo-tests (Files): Likewise.
51425         * modules/unictype/category-Lt-tests (Files): Likewise.
51426         * modules/unictype/category-Lu-tests (Files): Likewise.
51427         * modules/unictype/category-M-tests (Files): Likewise.
51428         * modules/unictype/category-Mc-tests (Files): Likewise.
51429         * modules/unictype/category-Me-tests (Files): Likewise.
51430         * modules/unictype/category-Mn-tests (Files): Likewise.
51431         * modules/unictype/category-N-tests (Files): Likewise.
51432         * modules/unictype/category-Nd-tests (Files): Likewise.
51433         * modules/unictype/category-Nl-tests (Files): Likewise.
51434         * modules/unictype/category-No-tests (Files): Likewise.
51435         * modules/unictype/category-P-tests (Files): Likewise.
51436         * modules/unictype/category-Pc-tests (Files): Likewise.
51437         * modules/unictype/category-Pd-tests (Files): Likewise.
51438         * modules/unictype/category-Pe-tests (Files): Likewise.
51439         * modules/unictype/category-Pf-tests (Files): Likewise.
51440         * modules/unictype/category-Pi-tests (Files): Likewise.
51441         * modules/unictype/category-Po-tests (Files): Likewise.
51442         * modules/unictype/category-Ps-tests (Files): Likewise.
51443         * modules/unictype/category-S-tests (Files): Likewise.
51444         * modules/unictype/category-Sc-tests (Files): Likewise.
51445         * modules/unictype/category-Sk-tests (Files): Likewise.
51446         * modules/unictype/category-Sm-tests (Files): Likewise.
51447         * modules/unictype/category-So-tests (Files): Likewise.
51448         * modules/unictype/category-Z-tests (Files): Likewise.
51449         * modules/unictype/category-Zl-tests (Files): Likewise.
51450         * modules/unictype/category-Zp-tests (Files): Likewise.
51451         * modules/unictype/category-Zs-tests (Files): Likewise.
51452         * modules/unictype/category-and-not-tests (Files): Likewise.
51453         * modules/unictype/category-and-tests (Files): Likewise.
51454         * modules/unictype/category-byname-tests (Files): Likewise.
51455         * modules/unictype/category-name-tests (Files): Likewise.
51456         * modules/unictype/category-none-tests (Files): Likewise.
51457         * modules/unictype/category-of-tests (Files): Likewise.
51458         * modules/unictype/category-or-tests (Files): Likewise.
51459         * modules/unictype/category-test-withtable-tests (Files): Likewise.
51460         * modules/unictype/combining-class-tests (Files): Likewise.
51461         * modules/unictype/ctype-alnum-tests (Files): Likewise.
51462         * modules/unictype/ctype-alpha-tests (Files): Likewise.
51463         * modules/unictype/ctype-blank-tests (Files): Likewise.
51464         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
51465         * modules/unictype/ctype-digit-tests (Files): Likewise.
51466         * modules/unictype/ctype-graph-tests (Files): Likewise.
51467         * modules/unictype/ctype-lower-tests (Files): Likewise.
51468         * modules/unictype/ctype-print-tests (Files): Likewise.
51469         * modules/unictype/ctype-punct-tests (Files): Likewise.
51470         * modules/unictype/ctype-space-tests (Files): Likewise.
51471         * modules/unictype/ctype-upper-tests (Files): Likewise.
51472         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
51473         * modules/unictype/decimal-digit-tests (Files): Likewise.
51474         * modules/unictype/digit-tests (Files): Likewise.
51475         * modules/unictype/mirror-tests (Files): Likewise.
51476         * modules/unictype/numeric-tests (Files): Likewise.
51477         * modules/unictype/property-alphabetic-tests (Files): Likewise.
51478         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
51479         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
51480         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
51481         Likewise.
51482         * modules/unictype/property-bidi-block-separator-tests (Files):
51483         Likewise.
51484         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
51485         Likewise.
51486         * modules/unictype/property-bidi-common-separator-tests (Files):
51487         Likewise.
51488         * modules/unictype/property-bidi-control-tests (Files): Likewise.
51489         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
51490         Likewise.
51491         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
51492         Likewise.
51493         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
51494         Likewise.
51495         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
51496         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
51497         Likewise.
51498         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
51499         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
51500         Likewise.
51501         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
51502         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
51503         * modules/unictype/property-bidi-segment-separator-tests (Files):
51504         Likewise.
51505         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
51506         * modules/unictype/property-byname-tests (Files): Likewise.
51507         * modules/unictype/property-combining-tests (Files): Likewise.
51508         * modules/unictype/property-composite-tests (Files): Likewise.
51509         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
51510         * modules/unictype/property-dash-tests (Files): Likewise.
51511         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
51512         * modules/unictype/property-default-ignorable-code-point-tests (Files):
51513         Likewise.
51514         * modules/unictype/property-deprecated-tests (Files): Likewise.
51515         * modules/unictype/property-diacritic-tests (Files): Likewise.
51516         * modules/unictype/property-extender-tests (Files): Likewise.
51517         * modules/unictype/property-format-control-tests (Files): Likewise.
51518         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
51519         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
51520         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
51521         * modules/unictype/property-hex-digit-tests (Files): Likewise.
51522         * modules/unictype/property-hyphen-tests (Files): Likewise.
51523         * modules/unictype/property-id-continue-tests (Files): Likewise.
51524         * modules/unictype/property-id-start-tests (Files): Likewise.
51525         * modules/unictype/property-ideographic-tests (Files): Likewise.
51526         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
51527         * modules/unictype/property-ids-trinary-operator-tests (Files):
51528         Likewise.
51529         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
51530         * modules/unictype/property-iso-control-tests (Files): Likewise.
51531         * modules/unictype/property-join-control-tests (Files): Likewise.
51532         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
51533         * modules/unictype/property-line-separator-tests (Files): Likewise.
51534         * modules/unictype/property-logical-order-exception-tests (Files):
51535         Likewise.
51536         * modules/unictype/property-lowercase-tests (Files): Likewise.
51537         * modules/unictype/property-math-tests (Files): Likewise.
51538         * modules/unictype/property-non-break-tests (Files): Likewise.
51539         * modules/unictype/property-not-a-character-tests (Files): Likewise.
51540         * modules/unictype/property-numeric-tests (Files): Likewise.
51541         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
51542         * modules/unictype/property-other-default-ignorable-code-point-tests
51543         (Files): Likewise.
51544         * modules/unictype/property-other-grapheme-extend-tests (Files):
51545         Likewise.
51546         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
51547         * modules/unictype/property-other-id-start-tests (Files): Likewise.
51548         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
51549         * modules/unictype/property-other-math-tests (Files): Likewise.
51550         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
51551         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
51552         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
51553         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
51554         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
51555         * modules/unictype/property-private-use-tests (Files): Likewise.
51556         * modules/unictype/property-punctuation-tests (Files): Likewise.
51557         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
51558         * modules/unictype/property-radical-tests (Files): Likewise.
51559         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
51560         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
51561         * modules/unictype/property-space-tests (Files): Likewise.
51562         * modules/unictype/property-terminal-punctuation-tests (Files):
51563         Likewise.
51564         * modules/unictype/property-test-tests (Files): Likewise.
51565         * modules/unictype/property-titlecase-tests (Files): Likewise.
51566         * modules/unictype/property-unassigned-code-value-tests (Files):
51567         Likewise.
51568         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
51569         * modules/unictype/property-uppercase-tests (Files): Likewise.
51570         * modules/unictype/property-variation-selector-tests (Files): Likewise.
51571         * modules/unictype/property-white-space-tests (Files): Likewise.
51572         * modules/unictype/property-xid-continue-tests (Files): Likewise.
51573         * modules/unictype/property-xid-start-tests (Files): Likewise.
51574         * modules/unictype/property-zero-width-tests (Files): Likewise.
51575         * modules/unictype/scripts-tests (Files): Likewise.
51576         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
51577         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
51578         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
51579         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
51580         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
51581         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
51582         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
51583         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
51584         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
51585         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
51586         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
51587         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
51588         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
51589         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
51590         * modules/uninorm/composition-tests (Files): Likewise.
51591         * modules/uninorm/decomposing-form-tests (Files): Likewise.
51592         * modules/uninorm/decomposition-tests (Files): Likewise.
51593         * modules/uninorm/filter-tests (Files): Likewise.
51594         * modules/uninorm/nfc-tests (Files): Likewise.
51595         * modules/uninorm/nfd-tests (Files): Likewise.
51596         * modules/uninorm/nfkc-tests (Files): Likewise.
51597         * modules/uninorm/nfkd-tests (Files): Likewise.
51598         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
51599         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
51600         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
51601         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
51602         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
51603         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
51604         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
51605         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51606         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
51607         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
51608         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
51609         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
51610         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51611         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
51612         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
51613         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
51614         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
51615         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51616         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
51617         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
51618         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
51619         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
51620         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51621         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
51622         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
51623         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
51624         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
51625         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
51626         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
51627         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
51628         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
51629         * modules/uniwidth/u8-width-tests (Files): Likewise.
51630         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
51631         * modules/uniwidth/u16-width-tests (Files): Likewise.
51632         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
51633         * modules/uniwidth/u32-width-tests (Files): Likewise.
51634         * modules/uniwidth/width-tests (Files): Likewise.
51635         * modules/unlink-tests (Files): Likewise.
51636         * modules/unsetenv-tests (Files): Likewise.
51637         * modules/usleep-tests (Files): Likewise.
51638         * modules/utimens-tests (Files): Likewise.
51639         * modules/utimensat-tests (Files): Likewise.
51640         * modules/vasnprintf-posix-tests (Files): Likewise.
51641         * modules/vasnprintf-tests (Files): Likewise.
51642         * modules/vasprintf-posix-tests (Files): Likewise.
51643         * modules/vasprintf-tests (Files): Likewise.
51644         * modules/vdprintf-posix-tests (Files): Likewise.
51645         * modules/vfprintf-posix-tests (Files): Likewise.
51646         * modules/vprintf-posix-tests (Files): Likewise.
51647         * modules/vsnprintf-posix-tests (Files): Likewise.
51648         * modules/vsnprintf-tests (Files): Likewise.
51649         * modules/vsprintf-posix-tests (Files): Likewise.
51650         * modules/wcrtomb-tests (Files): Likewise.
51651         * modules/wcsnrtombs-tests (Files): Likewise.
51652         * modules/wcsrtombs-tests (Files): Likewise.
51653         * modules/wctype-tests (Files): Likewise.
51654         * modules/wcwidth-tests (Files): Likewise.
51655         * modules/xmemdup0-tests (Files): Likewise.
51656         * modules/xprintf-posix-tests (Files): Likewise.
51657         * modules/xvasprintf-tests (Files): Likewise.
51659 2009-12-24  Eric Blake  <ebb9@byu.net>
51661         test-nanosleep: fix typo
51662         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
51663         patch.
51664         Reported by Bruno Haible.
51666 2009-12-24  Bruno Haible  <bruno@clisp.org>
51668         Reduce namespace pollution on glibc systems.
51669         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
51670         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
51671         systems.
51672         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
51673         <getopt.h> on glibc systems.
51674         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
51675         systems.
51676         * lib/fcntl.c: Include <unistd.h> here instead.
51678 2009-12-24  Bruno Haible  <bruno@clisp.org>
51680         * lib/stdlib.in.h (includes): Fix typo in today's commit.
51682 2009-12-24  Eric Blake  <ebb9@byu.net>
51684         tests: add signature checks
51685         * tests/signature.h (SIGNATURE_CHECK): New file.
51686         * modules/atexit-tests (Files): Use it.
51687         * modules/btowc-tests (Files): Likewise.
51688         * modules/canonicalize-lgpl-tests (Files): Likewise.
51689         * modules/ceilf-tests (Files): Likewise.
51690         * modules/ceill-tests (Files): Likewise.
51691         * modules/chown-tests (Files): Likewise.
51692         * modules/dprintf-posix-tests (Files): Likewise.
51693         * modules/dup2-tests (Files): Likewise.
51694         * modules/dup3-tests (Files): Likewise.
51695         * modules/duplocale-tests (Files): Likewise.
51696         * modules/fchdir-tests (Files): Likewise.
51697         * modules/fcntl-tests (Files): Likewise.
51698         * modules/fdopendir-tests (Files): Likewise.
51699         * modules/fflush-tests (Files): Likewise.
51700         * modules/flock-tests (Files): Likewise.
51701         * modules/floorf-tests (Files): Likewise.
51702         * modules/floorl-tests (Files): Likewise.
51703         * modules/fnmatch-tests (Files): Likewise.
51704         * modules/fopen-tests (Files): Likewise.
51705         * modules/fprintf-posix-tests (Files): Likewise.
51706         * modules/freopen-tests (Files): Likewise.
51707         * modules/frexp-nolibm-tests (Files): Likewise.
51708         * modules/frexp-tests (Files): Likewise.
51709         * modules/frexpl-nolibm-tests (Files): Likewise.
51710         * modules/frexpl-tests (Files): Likewise.
51711         * modules/fseek-tests (Files): Likewise.
51712         * modules/fseeko-tests (Files): Likewise.
51713         * modules/fsync-tests (Files): Likewise.
51714         * modules/ftell-tests (Files): Likewise.
51715         * modules/ftello-tests (Files): Likewise.
51716         * modules/futimens-tests (Files): Likewise.
51717         * modules/getaddrinfo-tests (Files): Likewise.
51718         * modules/getcwd-tests (Files): Likewise.
51719         * modules/getdelim-tests (Files): Likewise.
51720         * modules/getdtablesize-tests (Files): Likewise.
51721         * modules/getgroups-tests (Files): Likewise.
51722         * modules/gethostname-tests (Files): Likewise.
51723         * modules/getline-tests (Files): Likewise.
51724         * modules/getopt-posix-tests (Files): Likewise.
51725         * modules/gettimeofday-tests (Files): Likewise.
51726         * modules/glob-tests (Files): Likewise.
51727         * modules/iconv-tests (Files): Likewise.
51728         * modules/inet_ntop-tests (Files): Likewise.
51729         * modules/inet_pton-tests (Files): Likewise.
51730         * modules/isblank-tests (Files): Likewise.
51731         * modules/lchown-tests (Files): Likewise.
51732         * modules/ldexpl-tests (Files): Likewise.
51733         * modules/link-tests (Files): Likewise.
51734         * modules/linkat-tests (Files): Likewise.
51735         * modules/lseek-tests (Files): Likewise.
51736         * modules/lstat-tests (Files): Likewise.
51737         * modules/mbrtowc-tests (Files): Likewise.
51738         * modules/mbsinit-tests (Files): Likewise.
51739         * modules/mbsnrtowcs-tests (Files): Likewise.
51740         * modules/mbsrtowcs-tests (Files): Likewise.
51741         * modules/memchr-tests (Files): Likewise.
51742         * modules/memcmp-tests (Files): Likewise.
51743         * modules/memmem-tests (Files): Likewise.
51744         * modules/memrchr-tests (Files): Likewise.
51745         * modules/mkdir-tests (Files): Likewise.
51746         * modules/mkfifo-tests (Files): Likewise.
51747         * modules/mkfifoat-tests (Files): Likewise.
51748         * modules/mknod-tests (Files): Likewise.
51749         * modules/nanosleep-tests (Files): Likewise.
51750         * modules/nl_langinfo-tests (Files): Likewise.
51751         * modules/obstack-printf-tests (Files): Likewise.
51752         * modules/open-tests (Files): Likewise.
51753         * modules/openat-tests (Files): Likewise.
51754         * modules/perror-tests (Files): Likewise.
51755         * modules/pipe2-tests (Files): Likewise.
51756         * modules/poll-tests (Files): Likewise.
51757         * modules/popen-tests (Files): Likewise.
51758         * modules/posix_spawn-tests (Files): Likewise.
51759         * modules/posix_spawnp-tests (Files): Likewise.
51760         * modules/pread-tests (Files): Likewise.
51761         * modules/printf-posix-tests (Files): Likewise.
51762         * modules/pty-tests (Files): Likewise.
51763         * modules/random_r-tests (Files): Likewise.
51764         * modules/rawmemchr-tests (Files): Likewise.
51765         * modules/readlink-tests (Files): Likewise.
51766         * modules/remove-tests (Files): Likewise.
51767         * modules/rename-tests (Files): Likewise.
51768         * modules/renameat-tests (Files): Likewise.
51769         * modules/rmdir-tests (Files): Likewise.
51770         * modules/round-tests (Files): Likewise.
51771         * modules/roundf-tests (Files): Likewise.
51772         * modules/roundl-tests (Files): Likewise.
51773         * modules/select-tests (Files): Likewise.
51774         * modules/setenv-tests (Files): Likewise.
51775         * modules/sigaction-tests (Files): Likewise.
51776         * modules/sleep-tests (Files): Likewise.
51777         * modules/snprintf-posix-tests (Files): Likewise.
51778         * modules/snprintf-tests (Files): Likewise.
51779         * modules/sprintf-posix-tests (Files): Likewise.
51780         * modules/stat-tests (Files): Likewise.
51781         * modules/strcasestr-tests (Files): Likewise.
51782         * modules/strchrnul-tests (Files): Likewise.
51783         * modules/strerror-tests (Files): Likewise.
51784         * modules/strsignal-tests (Files): Likewise.
51785         * modules/strstr-tests (Files): Likewise.
51786         * modules/strtod-tests (Files): Likewise.
51787         * modules/strverscmp-tests (Files): Likewise.
51788         * modules/symlink-tests (Files): Likewise.
51789         * modules/symlinkat-tests (Files): Likewise.
51790         * modules/times-tests (Files): Likewise.
51791         * modules/trunc-tests (Files): Likewise.
51792         * modules/truncf-tests (Files): Likewise.
51793         * modules/truncl-tests (Files): Likewise.
51794         * modules/tsearch-tests (Files): Likewise.
51795         * modules/uname-tests (Files): Likewise.
51796         * modules/unlink-tests (Files): Likewise.
51797         * modules/unsetenv-tests (Files): Likewise.
51798         * modules/usleep-tests (Files): Likewise.
51799         * modules/utimensat-tests (Files): Likewise.
51800         * modules/vasprintf-tests (Files): Likewise.
51801         * modules/vdprintf-posix-tests (Files): Likewise.
51802         * modules/vfprintf-posix-tests (Files): Likewise.
51803         * modules/vprintf-posix-tests (Files): Likewise.
51804         * modules/vsnprintf-posix-tests (Files): Likewise.
51805         * modules/vsnprintf-tests (Files): Likewise.
51806         * modules/vsprintf-posix-tests (Files): Likewise.
51807         * modules/wcrtomb-tests (Files): Likewise.
51808         * modules/wcsnrtombs-tests (Files): Likewise.
51809         * modules/wcsrtombs-tests (Files): Likewise.
51810         * modules/wcwidth-tests (Files): Likewise.
51811         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
51812         * tests/test-isinf.c (isinf): Likewise.
51813         * tests/test-isnan.c (isnan): Likewise.
51814         * tests/test-signbit.c (signbit): Likewise.
51815         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
51816         declaration, either as macro or with correct signature.
51817         (select): Ensure function under test is declared with correct
51818         signature in correct header.
51819         * tests/test-atexit.c (atexit): Likewise.
51820         * tests/test-btowc.c (btowc): Likewise.
51821         * tests/test-canonicalize-lgpl.c (realpath)
51822         (canonicalize_file_name): Likewise.
51823         * tests/test-ceilf1.c (ceilf): Likewise.
51824         * tests/test-ceill.c (ceill): Likewise.
51825         * tests/test-chown.c (chown): Likewise.
51826         * tests/test-dprintf-posix.c (dprintf): Likewise.
51827         * tests/test-dup2.c (dup2): Likewise.
51828         * tests/test-dup3.c (dup3): Likewise.
51829         * tests/test-duplocale.c (duplocale): Likewise.
51830         * tests/test-fchdir.c (fchdir): Likewise.
51831         * tests/test-fchownat.c (fchownat): Likewise.
51832         * tests/test-fcntl.c (fcntl): Likewise.
51833         * tests/test-fdopendir.c (fdopendir): Likewise.
51834         * tests/test-fflush.c (fflush): Likewise.
51835         * tests/test-flock.c (flock): Likewise.
51836         * tests/test-floorf1.c (floorf): Likewise.
51837         * tests/test-floorl.c (floorl): Likewise.
51838         * tests/test-fnmatch.c (fnmatch): Likewise.
51839         * tests/test-fopen.c (fopen): Likewise.
51840         * tests/test-fprintf-posix.c (fprintf): Likewise.
51841         * tests/test-freopen.c (freopen): Likewise.
51842         * tests/test-frexp.c (frexp): Likewise.
51843         * tests/test-frexpl.c (frexpl): Likewise.
51844         * tests/test-fseek.c (fseek): Likewise.
51845         * tests/test-fseeko.c (fseeko): Likewise.
51846         * tests/test-fstatat.c (fstatat): Likewise.
51847         * tests/test-fsync.c (fsync): Likewise.
51848         * tests/test-ftell.c (ftell): Likewise.
51849         * tests/test-ftello.c (ftello): Likewise.
51850         * tests/test-futimens.c (futimens): Likewise.
51851         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
51852         (gai_strerror): Likewise.
51853         * tests/test-getcwd.c (getcwd): Likewise.
51854         * tests/test-getdelim.c (getdelim): Likewise.
51855         * tests/test-getdtablesize.c (getdtablesize): Likewise.
51856         * tests/test-getgroups.c (getgroups): Likewise.
51857         * tests/test-gethostname.c (gethostname): Likewise.
51858         * tests/test-getline.c (getline): Likewise.
51859         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
51860         Likewise.
51861         * tests/test-gettimeofday.c (gettimeofday): Likewise.
51862         * tests/test-glob.c (glob, globfree): Likewise.
51863         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
51864         * tests/test-inet_ntop.c (inet_ntop): Likewise.
51865         * tests/test-inet_pton.c (inet_pton): Likewise.
51866         * tests/test-isblank.c (isblank): Likewise.
51867         * tests/test-lchown.c (lchown): Likewise.
51868         * tests/test-ldexpl.c (ldexpl): Likewise.
51869         * tests/test-link.c (link): Likewise.
51870         * tests/test-linkat.c (linkat): Likewise.
51871         * tests/test-lseek.c (lseek): Likewise.
51872         * tests/test-lstat.c (lstat): Likewise.
51873         * tests/test-mbrtowc.c (mbrtowc): Likewise.
51874         * tests/test-mbsinit.c (mbsinit): Likewise.
51875         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
51876         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
51877         * tests/test-memchr.c (memchr): Likewise.
51878         * tests/test-memcmp.c (memcmp): Likewise.
51879         * tests/test-memmem.c (memmem): Likewise.
51880         * tests/test-memrchr.c (memrchr): Likewise.
51881         * tests/test-mkdir.c (mkdir): Likewise.
51882         * tests/test-mkdirat.c (mkdirat): Likewise.
51883         * tests/test-mkfifo.c (mkfifo): Likewise.
51884         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
51885         * tests/test-mknod.c (mknod): Likewise.
51886         * tests/test-nanosleep.c (nanosleep): Likewise.
51887         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
51888         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
51889         Likewise.
51890         * tests/test-open.c (open): Likewise.
51891         * tests/test-openat.c (openat): Likewise.
51892         * tests/test-perror.c (perror): Likewise.
51893         * tests/test-pipe2.c (pipe2): Likewise.
51894         * tests/test-poll.c (poll): Likewise.
51895         * tests/test-popen.c (popen, pclose): Likewise.
51896         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
51897         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
51898         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
51899         (posix_spawn_file_actions_destroy)
51900         (posix_spawn_file_actions_addclose)
51901         (posix_spawn_file_actions_addopen)
51902         (posix_spawn_file_actions_adddup2): Likewise.
51903         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
51904         * tests/test-pread.c (pread): Likewise.
51905         * tests/test-printf-posix.c (printf): Likewise.
51906         * tests/test-pty.c (openpty, forkpty): Likewise.
51907         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
51908         (random_r): Likewise.
51909         * tests/test-rawmemchr.c (rawmemchr): Likewise.
51910         * tests/test-readlink.c (readlink): Likewise.
51911         * tests/test-remove.c (remove): Likewise.
51912         * tests/test-rename.c (rename): Likewise.
51913         * tests/test-renameat.c (renameat): Likewise.
51914         * tests/test-rmdir.c (rmdir): Likewise.
51915         * tests/test-round1.c (round): Likewise.
51916         * tests/test-roundf1.c (roundf): Likewise.
51917         * tests/test-roundl.c (roundl): Likewise.
51918         * tests/test-setenv.c (setenv): Likewise.
51919         * tests/test-sigaction.c (sigaction): Likewise.
51920         * tests/test-sleep.c (sleep): Likewise.
51921         * tests/test-snprintf.c (snprintf): Likewise.
51922         * tests/test-sprintf-posix.c (sprintf): Likewise.
51923         * tests/test-stat.c (stat): Likewise.
51924         * tests/test-stpncpy.c (stpncpy): Likewise.
51925         * tests/test-strcasestr.c (strcasestr): Likewise.
51926         * tests/test-strchrnul.c (strchrnul): Likewise.
51927         * tests/test-strerror.c (strerror): Likewise.
51928         * tests/test-strsignal.c (strsignal): Likewise.
51929         * tests/test-strstr.c (strstr): Likewise.
51930         * tests/test-strtod.c (strtod): Likewise.
51931         * tests/test-strverscmp.c (strverscmp): Likewise.
51932         * tests/test-symlink.c (symlink): Likewise.
51933         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
51934         * tests/test-times.c (times): Likewise.
51935         * tests/test-trunc1.c (trunc): Likewise.
51936         * tests/test-truncf1.c (truncf): Likewise.
51937         * tests/test-truncl.c (truncl): Likewise.
51938         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
51939         Likewise.
51940         * tests/test-uname.c (uname): Likewise.
51941         * tests/test-unlink.c (unlink): Likewise.
51942         * tests/test-unlinkat.c (unlinkat): Likewise.
51943         * tests/test-unsetenv.c (unsetenv): Likewise.
51944         * tests/test-usleep.c (usleep): Likewise.
51945         * tests/test-utimensat.c (utimensat): Likewise.
51946         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
51947         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
51948         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
51949         * tests/test-vprintf-posix.c (vprintf): Likewise.
51950         * tests/test-vsnprintf.c (vsnprintf): Likewise.
51951         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
51952         * tests/test-wcrtomb.c (wcrtomb): Likewise.
51953         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
51954         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
51955         * tests/test-wcwidth.c (wcwidth): Likewise.
51957         build: pull in conditional headers during GNULIB_POSIXCHECK
51958         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
51959         definitions from any conditionally-included headers.
51960         * lib/stdlib.in.h (includes): Likewise.
51961         * lib/unistd.in.h (includes): Likewise.
51963 2009-12-24  Bruno Haible  <bruno@clisp.org>
51965         * tests/test-argv-iter.c: Include header file being tested immediately
51966         after config.h.
51967         * tests/test-base64.c: Likewise.
51968         * tests/test-flock.c: Likewise.
51969         * tests/test-fsync.c: Likewise.
51970         * tests/test-getdate.c: Likewise.
51971         * tests/test-getndelim2.c: Likewise.
51972         * tests/test-isfinite.c: Likewise.
51973         * tests/test-isinf.c: Likewise.
51974         * tests/test-strerror.c: Likewise.
51975         * tests/test-strsignal.c: Likewise.
51977 2009-12-23  Eric Blake  <ebb9@byu.net>
51979         unistd: work around cygwin bug
51980         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
51981         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
51982         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
51984 2009-12-23  Bruno Haible  <bruno@clisp.org>
51986         localename: More tests.
51987         * tests/test-localename.c (SIZEOF): New macro.
51988         (categories): New variable.
51989         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
51990         test_locale_name_default): Add test w.r.t. thread locale.
51991         (test_locale_name_thread): New function.
51992         (main): Invoke it.
51994         localename: Make aware of thread locale.
51995         * lib/localename.h (gl_locale_name_thread): New declaration.
51996         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
51997         behaviour with respect to thread locale.
51998         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
51999         <langinfo.h>, glthread/lock.h.
52000         (SIZE_BITS): New macro.
52001         (string_hash): New function.
52002         (struct hash_node): New type.
52003         (HASH_TABLE_SIZE): New macro.
52004         (struniq_hash_table, struniq_lock): New variables.
52005         (struniq): New function.
52006         (gl_locale_name_thread): New function.
52007         (gl_locale_name): Invoke it.
52008         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
52009         * modules/localename (Depends-on): Add lock.
52010         Reported by Mike Gran <spk121@yahoo.com>.
52012 2009-12-23  Eric Blake  <ebb9@byu.net>
52014         va-args: new module
52015         * modules/va-args: New file.
52016         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
52017         * MODULES.html.sh (Core language properties): Mention it.
52019         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
52020         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
52021         named alias for __attribute__((__unused__)).
52022         * lib/chown.c: Update client.
52023         * lib/fchmodat.c: Likewise.
52024         * lib/fts.c: Likewise.
52025         * lib/getdate.y: Likewise.
52026         * lib/getgroups.c: Likewise.
52027         * lib/getopt.c: Likewise.
52028         * lib/getugroups.c: Likewise.
52029         * lib/mkdir.c: Likewise.
52030         * lib/mkfifo.c: Likewise.
52031         * lib/mkfifoat.c: Likewise.
52032         * lib/mknod.c: Likewise.
52033         * lib/mknodat.c: Likewise.
52034         * lib/readlink.c: Likewise.
52035         * lib/se-context.in.h: Likewise.
52036         * lib/se-selinux.in.h: Likewise.
52037         * lib/sockets.c: Likewise.
52038         * lib/symlink.c: Likewise.
52039         * lib/symlinkat.c: Likewise.
52040         * lib/unicodeio.c: Likewise.
52041         * lib/unistr.h: Likewise.
52042         * tests/test-areadlink.c: Likewise.
52043         * tests/test-areadlinkat.c: Likewise.
52044         * tests/test-filenamecat.c: Likewise.
52045         * tests/test-fseeko.c: Likewise.
52046         * tests/test-ftello.c: Likewise.
52047         * tests/test-getdate.c: Likewise.
52048         * tests/test-getgroups.c: Likewise.
52049         * tests/test-gethostname.c: Likewise.
52050         * tests/test-quotearg.c: Likewise.
52051         * tests/test-version-etc.c: Likewise.
52052         * tests/test-xalloc-die.c: Likewise.
52053         * tests/test-xfprintf-posix.c: Likewise.
52054         * tests/test-xprintf-posix.c: Likewise.
52055         * tests/test-xvasprintf.c: Likewise.
52057         tests: avoid compiler warnings
52058         * tests/test-fcntl.c (main): Delete unused parameters.
52059         * tests/test-freopen-safer.c (main): Likewise.
52060         * tests/test-xalloc-die.c (main): Mark unused parameters.
52061         * tests/test-fseeko.c (main): Likewise.
52062         * tests/test-ftello.c (main): Likewise.
52063         * tests/test-nanosleep.c (main): Avoid declaration warning.
52064         * tests/test-sleep.c (main): Likewise.
52065         * tests/test-unsetenv.c (main): Silence warning about string
52066         literal.
52067         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
52069 2009-12-23  Bruno Haible  <bruno@clisp.org>
52071         * tests/test-localename.c (test_locale_name): New function, extracted
52072         from main. Also test mixed situations.
52073         (test_locale_name_posix, test_locale_name_environ,
52074         test_locale_name_default): New functions.
52075         (main): Invoke them all.
52076         * modules/localename-tests (configure.ac): Test for newlocale.
52078 2009-12-23  Bruno Haible  <bruno@clisp.org>
52080         unistd: Ensure getcwd gets declared before being overridden.
52081         * lib/unistd.in.h: Conditionally include <io.h>.
52083 2009-12-22  Bruno Haible  <bruno@clisp.org>
52085         wchar: Diagnose broken combination of glibc and gcc versions and flags.
52086         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
52087         (gl_WCHAR_H): Invoke it.
52088         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
52089         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
52090         Reported by Karl Berry <karl@freefriends.org>.
52092 2009-12-22  Eric Blake  <ebb9@byu.net>
52094         math, unistd: avoid redundant includes
52095         * lib/math.in.h (isnan): No need to re-include <math.h>.
52096         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
52098         getsubopt: work around cygwin bug
52099         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
52100         avoid conflicting with system getsubopt.
52101         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
52102         bug.
52104         getopt: synchronize from glibc
52105         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
52106         parameter order.  Adjust all callers.
52107         (_getopt_internal_r, main): Adjust quoting in error messages.
52108         Drop considerations for outdated POSIX 1003.2 error message.
52109         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
52110         callers.
52111         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
52113         test-getopt: test stderr behavior
52114         * modules/getopt-posix-tests (Depends-on): Add dup2.
52115         * tests/test-getopt.c (ASSERT): Avoid stderr.
52116         (main): Move stderr to a temporary file.
52117         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
52118         Instead, add parameter to inform caller if output occurred.
52119         (test_getopt): Adjust all existing tests to expect silence, and
52120         add new tests of leading ":".
52121         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
52122         glibc shortcomings with leading "-:" or "+:" in optstring.
52123         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
52124         Likewise.
52125         * doc/posix-functions/getopt.texi (getopt): Likewise.
52127         test-getopt: enhance test
52128         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
52129         supports optind=0.
52130         * tests/test-getopt.c (OPTIND_MIN): Move...
52131         * tests/test-getopt.h (OPTIND_MIN): ...here.
52132         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
52133         Require that optind=0 works, since modern BSD supports it in
52134         addition to optreset, and since coreutils expects it.
52135         (test_getopt_long_only): New test.
52136         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
52137         glibc shortcomings with 'W;', and enforcement of optind=0.
52138         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
52139         Likewise.
52141 2009-12-21  Bruno Haible  <bruno@clisp.org>
52143         localename: Improvements for MacOS X and Cygwin.
52144         * lib/localename.h (gl_locale_name_environ): New declaration.
52145         * lib/localename.c (gl_locale_name_environ): New function, extracted from
52146         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
52147         (gl_locale_name_posix): Invoke it.
52148         (gl_locale_name_default): Add comments. Use Windows native API also on
52149         Cygwin.
52151 2009-12-21  Bruno Haible  <bruno@clisp.org>
52153         Update list of Win32 locale ids.
52154         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
52155         (LANG_SAMI): Renamed from LANG_SAAMI.
52156         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
52157         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
52158         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
52159         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
52160         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
52161         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
52162         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
52163         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
52164         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
52165         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
52166         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
52167         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
52168         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
52169         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
52170         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
52171         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
52172         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
52173         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
52174         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
52175         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
52176         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
52177         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
52178         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
52179         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
52180         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
52181         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
52182         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
52183         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
52184         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
52185         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
52186         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
52187         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
52188         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
52189         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
52190         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
52191         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
52192         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
52193         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
52194         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
52195         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
52196         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
52197         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
52198         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
52199         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
52200         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
52201         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
52202         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
52203         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
52204         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
52205         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
52206         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
52207         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
52208         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
52209         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
52210         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
52211         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
52212         Add more languages and countries for Sami, Sorbian. Add more countries
52213         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
52214         for Pashto. Change country for Syriac, Tswana.
52216 2009-12-21  Eric Blake  <ebb9@byu.net>
52218         test-utimens: avoid spurious failure
52219         * tests/test-chown.h (nap): Factor...
52220         * tests/nap.h: ...into new file.
52221         * tests/test-lchown.h (nap): Avoid duplication.
52222         * tests/test-utimens-common.h (nap): Use shared implementation,
52223         necessary on file systems with 1-second resolution.
52224         * modules/chown-tests (Files): Include new file.
52225         * modules/fdutimensat-tests (Files): Likewise.
52226         * modules/futimens-tests (Files): Likewise.
52227         * modules/lchown-tests (Files): Likewise.
52228         * modules/openat-tests (Files): Likewise.
52229         * modules/utimens-tests (Files): Likewise.
52230         * modules/utimensat-tests (Files): Likewise.
52232 2009-12-19  Eric Blake  <ebb9@byu.net>
52234         futimens, utimensat: work around Linux bug
52235         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
52236         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
52237         * lib/utimensat.c (rpl_utimensat): Work around it.
52238         * lib/futimens.c (rpl_futimens): Adjust comment.
52240         utimens: work around Linux ctime bug
52241         * lib/utimens.c (detect_ctime_bug): New helper function.
52242         (update_timespec): Differentiate between workaround needed for
52243         this bug vs. what is needed for systems that lack utimensat.
52244         (fdutimens, lutimens): Work around bug.
52246         utimens: check for ctime update
52247         * tests/test-utimens-common.h (check_ctime): Define.
52248         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
52249         * tests/test-futimens.h (test_futimens): Likewise.
52250         * tests/test-lutimens.h (test_lutimens): Likewise.
52251         * doc/posix-functions/futimens.texi (futimens): Document the bug.
52252         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
52254 2009-12-19  Bruno Haible  <bruno@clisp.org>
52256         dprintf-posix: Check against memory leak fixed on 2009-12-15.
52257         * tests/test-dprintf-posix2.sh: New file.
52258         * tests/test-dprintf-posix2.c: New file.
52259         * modules/dprintf-posix-tests (Files): Add them.
52260         (configure.ac): Check for getrlimit and setrlimit.
52261         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
52263 2009-12-19  Bruno Haible  <bruno@clisp.org>
52265         fprintf-posix: Check against memory leak fixed on 2009-12-15.
52266         * tests/test-fprintf-posix3.sh: New file.
52267         * tests/test-fprintf-posix3.c: New file.
52268         * modules/fprintf-posix-tests (Files): Add them.
52269         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
52271 2009-12-19  Eric Blake  <ebb9@byu.net>
52273         dirfd: fix prototype
52274         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
52275         * lib/dirfd.c (dirfd): Likewise.
52277         canonicalize: reduce memory usage
52278         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
52279         allocation to size.
52280         Reported by Solar Designer <solar@openwall.com>.
52282 2009-12-19  Bruno Haible  <bruno@clisp.org>
52284         New module attribute 'Applicability'.
52285         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
52286         * gnulib-tool: New option --extract-applicability.
52287         (func_usage): Document it.
52288         (sed_extract_prog): Recognize it.
52289         (func_get_applicability): New function.
52290         (func_import): Generalize handling of 'link-warning' module.
52291         * modules/link-warning (Applicability): New section.
52292         * modules/arg-nonnull (Applicability): New section.
52293         Repoted by Simon Josefsson <simon@josefsson.org>.
52295 2009-12-19  Bruno Haible  <bruno@clisp.org>
52297         fflush: tweak
52298         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
52299         * lib/fseeko.c (rpl_fseeko): Likewise.
52301 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
52303         * lib/gl_list.h: Fix typo in comment.
52305 2009-12-16  Eric Blake  <ebb9@byu.net>
52307         fcntl: use to simplify other modules
52308         * modules/cloexec (Depends-on): Add fcntl.
52309         * modules/fchdir (Depends-on): Likewise.
52310         * modules/fd-safer-flag (Depends-on): Likewise.
52311         * modules/unistd-safer (Depends-on): Likewise.
52312         * modules/dup3 (configure.ac): Set module indicator.
52313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
52314         missing.
52315         * lib/fchdir.c (_gl_register_dup): Fix comment.
52316         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
52317         * lib/dup-safer.c (dup_safer): Likewise.
52318         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
52319         * lib/dup3.c (dup3): Likewise.
52320         * tests/test-fchdir.c (main): Enhance test.
52321         Fixes a dup_cloexec bug reported by Ondřej Vašík.
52323         fcntl: port portions of fcntl to mingw
52324         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
52325         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
52326         replacement for mingw.
52327         * modules/fcntl (Description): Update.
52328         (Depends-on): Add dup2.
52329         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
52330         * modules/fcntl-h (Makefile.am): Substitute it.
52331         * lib/fcntl.in.h (fcntl): Update declaration.
52332         (F_DUPFD, F_GETFD): New macros, when needed.
52333         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
52334         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
52335         * tests/test-fcntl.c (check_flags, main): Enhance test for items
52336         we now guarantee.
52338         fcntl: work around cygwin bug in F_DUPFD
52339         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
52340         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
52341         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
52342         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
52343         * doc/posix-functions/fcntl.texi (fcntl): Document it.
52345         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
52346         * modules/fcntl (Files): List new files.
52347         (configure.ac): Run a test.
52348         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
52349         * lib/fcntl.c (rpl_fcntl): Likewise.
52350         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
52351         (gl_FCNTL_H): Always replace fcntl.h.
52352         * modules/fcntl-h (Makefile.am): Substitute witnesses.
52353         * lib/fcntl.in.h (fcntl): Declare replacement.
52354         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
52355         needed, plus a witness.
52356         * doc/posix-functions/fcntl.texi (fcntl): Document this.
52357         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
52358         * tests/test-fcntl.c: New file.
52359         * modules/fcntl-tests: Likewise.
52361         binary-io: avoid potential compilation warning
52362         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
52363         directives.
52365         fflush: avoid compilation error on NetBSD
52366         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
52367         between off_t and fpos_t, since the latter is sometimes a struct.
52368         * lib/fseeko.c (rpl_fseeko): Likewise.
52369         Reported by Alexander Nasonov <alnsn@yandex.ru>.
52371 2009-12-15  Eric Blake  <ebb9@byu.net>
52373         fcntl-h, stdio, sys_ioctl: fix declarations
52374         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
52375         function must not take arguments.
52376         * lib/sys_ioctl.in.h (ioctl): Likewise.
52377         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
52378         (open): Add a link warning.
52380 2009-12-15  Jim Meyering  <meyering@redhat.com>
52382         areadlink, areadlink-with-size: relax license to LGPLv2+
52383         * modules/areadlink (License): Relax to LGPLv2+.
52384         * modules/areadlink-with-size (License): Likewise.
52386 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
52387             Bruno Haible  <bruno@clisp.org>
52389         *printf: Fix memory leak.
52390         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
52391         * lib/vfprintf.c (vfprintf): Likewise.
52392         * lib/dprintf.c (dprintf): Likewise.
52393         * lib/vdprintf.c (vdprintf): Likewise.
52395 2009-12-14  Eric Blake  <ebb9@byu.net>
52397         accept4: adjust module dependencies
52398         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
52400         utimens: one more try at avoiding compiler warning
52401         * lib/utimens.c (lutimens): Lower scope of result.
52403 2009-12-13  Bruno Haible  <bruno@clisp.org>
52405         Move the malloc checking from module 'list' to new module 'xlist'.
52406         * modules/xlist: New file.
52407         * lib/gl_xlist.h: New file.
52408         * lib/gl_xlist.c: New file.
52409         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
52410         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
52411         gl_list_add_last, gl_list_add_before, gl_list_add_after,
52412         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
52413         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
52414         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
52415         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
52416         gl_sortedlist_nx_add): New declarations.
52417         (struct gl_list_implementation): Rename and change methods accordingly.
52418         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
52419         (gl_list_nx_create): Renamed from gl_list_create.
52420         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
52421         (gl_list_nx_set_at): Renamed from gl_list_set_at.
52422         (gl_list_nx_add_first): Renamed from gl_list_add_first.
52423         (gl_list_nx_add_last): Renamed from gl_list_add_last.
52424         (gl_list_nx_add_before): Renamed from gl_list_add_before.
52425         (gl_list_nx_add_after): Renamed from gl_list_add_after.
52426         (gl_list_nx_add_at): Renamed from gl_list_add_at.
52427         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
52428         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
52429         gl_list_create_empty.
52430         (gl_list_nx_create): Renamed from gl_list_create.
52431         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
52432         (gl_list_nx_set_at): Renamed from gl_list_set_at.
52433         (gl_list_nx_add_first): Renamed from gl_list_add_first.
52434         (gl_list_nx_add_last): Renamed from gl_list_add_last.
52435         (gl_list_nx_add_before): Renamed from gl_list_add_before.
52436         (gl_list_nx_add_after): Renamed from gl_list_add_after.
52437         (gl_list_nx_add_at): Renamed from gl_list_add_at.
52438         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
52439         * lib/gl_array_list.c: Don't include xalloc.h.
52440         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
52441         NULL upon out-of-memory.
52442         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
52443         out-of-memory.
52444         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
52445         Change return type to 'int'.
52446         (gl_array_nx_set_at): Renamed from gl_array_set_at.
52447         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
52448         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
52449         upon out-of-memory.
52450         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
52451         upon out-of-memory.
52452         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
52453         upon out-of-memory.
52454         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
52455         upon out-of-memory.
52456         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
52457         out-of-memory.
52458         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
52459         Update.
52460         (gl_array_list_implementation): Update.
52461         * lib/gl_carray_list.c: Don't include xalloc.h.
52462         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
52463         Return NULL upon out-of-memory.
52464         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
52465         out-of-memory.
52466         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
52467         Change return type to 'int'.
52468         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
52469         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
52470         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
52471         upon out-of-memory.
52472         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
52473         upon out-of-memory.
52474         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
52475         out-of-memory.
52476         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
52477         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
52478         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
52479         Update.
52480         (gl_carray_list_implementation): Update.
52481         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
52482         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
52483         gl_linked_create_empty. Return NULL upon out-of-memory.
52484         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
52485         out-of-memory.
52486         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
52487         Change return type to 'int'. Return -1 upon out-of-memory.
52488         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
52489         out-of-memory.
52490         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
52491         upon out-of-memory.
52492         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
52493         upon out-of-memory.
52494         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
52495         NULL upon out-of-memory.
52496         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
52497         upon out-of-memory.
52498         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
52499         out-of-memory.
52500         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
52501         Update.
52502         * lib/gl_linked_list.c: Don't include xalloc.h.
52503         (gl_linked_list_implementation): Update.
52504         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
52505         (add_to_bucket): Change return type to 'int'.
52506         (gl_linkedhash_list_implementation): Update.
52507         * lib/gl_anytree_list1.h (free_subtree): New function.
52508         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
52509         gl_tree_create_empty. Return NULL upon out-of-memory.
52510         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
52511         Change return type to 'int'. Return -1 upon out-of-memory.
52512         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
52513         out-of-memory.
52514         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
52515         (gl_tree_remove_node): New function, moved here from
52516         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
52517         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
52518         Update.
52519         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
52520         malloc, not xmalloc. Return NULL upon out-of-memory.
52521         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
52522         out-of-memory.
52523         (gl_tree_remove_node_from_tree): New function, extracted from
52524         gl_tree_remove_node.
52525         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
52526         upon out-of-memory.
52527         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
52528         out-of-memory.
52529         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
52530         upon out-of-memory.
52531         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
52532         upon out-of-memory.
52533         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
52534         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
52535         not xmalloc. Return NULL upon out-of-memory.
52536         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
52537         out-of-memory.
52538         (gl_tree_remove_node_from_tree): New function, extracted from
52539         gl_tree_remove_node.
52540         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
52541         upon out-of-memory.
52542         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
52543         out-of-memory.
52544         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
52545         upon out-of-memory.
52546         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
52547         upon out-of-memory.
52548         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
52549         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
52550         gl_anytree_list1.h before gl_anyavltree_list2.h.
52551         (gl_avltree_list_implementation): Update.
52552         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
52553         gl_anytree_list1.h before gl_anyavltree_list2.h.
52554         (gl_rbtree_list_implementation): Update.
52555         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
52556         Change return type to 'int'. Return -1 upon out-of-memory. Use
52557         __builtin_expect.
52558         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
52559         (gl_avltreehash_list_implementation): Update.
52560         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
52561         (gl_rbtreehash_list_implementation): Update.
52562         * modules/array-list (Depends-on): Remove xalloc.
52563         * modules/carray-list (Depends-on): Likewise.
52564         * modules/linked-list (Depends-on): Likewise.
52565         * modules/linkedhash-list (Depends-on): Likewise.
52566         * modules/avltree-list (Depends-on): Likewise.
52567         * modules/rbtree-list (Depends-on): Likewise.
52568         * modules/avltreehash-list (Depends-on): Likewise.
52569         * modules/rbtreehash-list (Depends-on): Likewise.
52571         * modules/xsublist: New file.
52572         * lib/gl_xsublist.h: New file.
52573         * lib/gl_xsublist.c: New file.
52574         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
52575         (gl_sublist_nx_create): New declaration.
52576         * lib/gl_sublist.c: Don't include xalloc.h.
52577         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
52578         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
52579         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
52580         Change return type to 'int'. Return -1 upon out-of-memory.
52581         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
52582         upon out-of-memory.
52583         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
52584         NULL upon out-of-memory.
52585         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
52586         upon out-of-memory.
52587         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
52588         NULL upon out-of-memory.
52589         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
52590         NULL upon out-of-memory.
52591         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
52592         upon out-of-memory.
52593         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
52594         (gl_sublist_list_implementation): Update.
52595         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
52596         upon out-of-memory.
52597         * modules/sublist (Depends-on): Remove xalloc.
52599         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
52600         * tests/test-carray_list.c: Likewise.
52601         * tests/test-linked_list.c: Likewise.
52602         * tests/test-linkedhash_list.c: Likewise.
52603         * tests/test-avltree_list.c: Likewise.
52604         * tests/test-rbtree_list.c: Likewise.
52605         * tests/test-avltreehash_list.c: Likewise.
52606         * tests/test-rbtreehash_list.c: Likewise.
52607         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
52608         * modules/carray-list-tests (Makefile.am): Likewise.
52609         * modules/linked-list-tests (Makefile.am): Likewise.
52610         * modules/linkedhash-list-tests (Makefile.am): Likewise.
52611         * modules/avltree-list-tests (Makefile.am): Likewise.
52612         * modules/rbtree-list-tests (Makefile.am): Likewise.
52613         * modules/avltreehash-list-tests (Makefile.am): Likewise.
52614         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
52616         * NEWS: Mention the changes.
52618         * lib/clean-temp.c: Include gl_xlist.h.
52619         * modules/clean-temp (Depends-on): Add xlist.
52621         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
52622         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
52624         * tests/test-array_oset.c: Include gl_xlist.h.
52625         * modules/array-oset-tests (Depends-on): Add xlist.
52627         Reported by José E. Marchesi <jemarch@gnu.org>.
52629 2009-12-13  Bruno Haible  <bruno@clisp.org>
52631         Move the malloc checking from module 'oset' to new module 'xoset'.
52632         * modules/xoset: New file.
52633         * lib/gl_xoset.h: New file.
52634         * lib/gl_xoset.c: New file.
52635         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
52636         declarations.
52637         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
52638         (struct gl_oset_implementation): Rename and change methods accordingly.
52639         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
52640         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
52641         'int'. Mark as __warn_unused_result__.
52642         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
52643         gl_oset_create_empty.
52644         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
52645         'int'.
52646         * lib/gl_array_oset.c: Don't include xalloc.h.
52647         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
52648         malloc, not xmalloc.
52649         (grow): Change return type to 'int'. Don't call xalloc_die.
52650         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
52651         to 'int'.
52652         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
52653         'int'.
52654         (gl_array_oset_implementation): Update.
52655         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
52656         gl_tree_create_empty.
52657         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
52658         'int'.
52659         * lib/gl_avltree_oset.c: Don't include xalloc.h.
52660         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
52661         xmalloc.
52662         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
52663         not xmalloc.
52664         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
52665         xmalloc.
52666         (gl_avltree_oset_implementation): Update.
52667         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
52668         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
52669         xmalloc.
52670         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
52671         not xmalloc.
52672         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
52673         xmalloc.
52674         (gl_rbtree_oset_implementation): Update.
52675         * modules/array-oset (Depends-on): Remove xalloc.
52676         * modules/avltree-oset (Depends-on): Likewise.
52677         * modules/rbtree-oset (Depends-on): Likewise.
52678         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
52679         * tests/test-avltree_oset.c: Likewise.
52680         * tests/test-rbtree_oset.c: Likewise.
52681         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
52682         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
52683         * modules/rbtree-oset-tests (Makefile.am): Likewise.
52684         * NEWS: Mention the change.
52686 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
52688         maint.mk: allow a project to override release-prep commands
52689         * top/maint.mk (alpha, beta, stable): Move release-preparatory
52690         commands into a new rule.
52691         (release-prep): New rule.
52692         (release-prep-hook): New overridable variable.
52694 2009-12-13  Bruno Haible  <bruno@clisp.org>
52696         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
52698 2009-12-13  Jim Meyering  <meyering@redhat.com>
52700         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
52701         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
52703 2009-12-12  Bruno Haible  <bruno@clisp.org>
52705         duplocale: Tweak.
52706         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
52708 2009-12-12  Karl Berry  <karl@gnu.org>
52710         * config/srclist.txt (strtoll.c): tab changes, no more sync.
52712 2009-12-12  Bruno Haible  <bruno@clisp.org>
52714         * m4/po.m4: Undo incorrect untabification.
52716 2009-12-12  Bruno Haible  <bruno@clisp.org>
52718         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
52719         * modules/c-strtod (Depends-on): Add locale.
52720         * modules/c-strtold (Depends-on): Likewise.
52722 2009-12-12  Bruno Haible  <bruno@clisp.org>
52724         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
52726 2009-12-11  Eric Blake  <ebb9@byu.net>
52728         setenv: relax requirement in light of POSIX ruling
52729         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
52730         not NULL.
52731         * tests/test-setenv.c (main): Relax test.
52732         * tests/test-unsetenv.c (main): Likewise.
52733         * doc/posix-functions/setenv.texi (setenv): Document this.
52734         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
52736 2009-12-11  Bruno Haible  <bruno@clisp.org>
52738         New module 'fd-safer-flag'.
52739         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
52740         * lib/dup-safer.c (dup_safer_flag): Remove function.
52741         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
52742         * lib/fd-safer.c (fd_safer_flag): Remove function.
52743         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
52744         * modules/cloexec (configure.ac): Drop indicator macro.
52745         * modules/fd-safer-flag: New file.
52746         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
52747         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
52748         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
52750 2009-12-11  Bruno Haible  <bruno@clisp.org>
52752         Tests for module 'nl_langinfo'.
52753         * modules/nl_langinfo-tests: New file.
52754         * tests/test-nl_langinfo.sh: New file.
52755         * tests/test-nl_langinfo.c: New file.
52757         New module 'nl_langinfo'.
52758         * lib/nl_langinfo.c: New file.
52759         * m4/nl_langinfo.m4: New file.
52760         * modules/nl_langinfo: New file.
52761         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
52763 2009-12-11  Bruno Haible  <bruno@clisp.org>
52765         Tests for module 'langinfo'.
52766         * modules/langinfo-tests: New file.
52767         * tests/test-langinfo.c: New file.
52769         New module 'langinfo'.
52770         * lib/langinfo.in.h: New file.
52771         * m4/langinfo_h.m4: New file.
52772         * modules/langinfo: New file.
52773         * doc/posix-headers/langinfo.texi: Mention the new module.
52775 2009-12-11  Bruno Haible  <bruno@clisp.org>
52777         * lib/config.charset: Untabify.
52779 2009-12-11  Bruno Haible  <bruno@clisp.org>
52781         * modules/unistd-safer (configure.ac): Drop indicator macro.
52783 2009-12-11  Bruno Haible  <bruno@clisp.org>
52785         Move pipe2-safer code to its own file.
52786         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
52787         * lib/pipe-safer.c (pipe2_safer): Remove function.
52788         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
52789         (Makefile.am): Add it to lib_SOURCES.
52791 2009-12-10  Bruno Haible  <bruno@clisp.org>
52793         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
52795 2009-12-10  Bruno Haible  <bruno@clisp.org>
52797         Declare which arguments expect non-NULL values, for GCC and clang.
52798         * build-aux/arg-nonnull.h: New file.
52799         * modules/arg-nonnull: New file.
52800         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
52801         (inet_ntop, inet_pton): Use it.
52802         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
52803         (closedir, dirfd, opendir, scandir, alphasort): Use it.
52804         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
52805         (open, openat): Use it.
52806         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
52807         (fnmatch): Use it.
52808         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
52809         (getopt, getopt_long, getopt_long_only): Use it.
52810         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
52811         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
52812         Use it.
52813         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
52814         (iconv_open): Use it.
52815         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
52816         (strtoimax, strtoumax): Use it.
52817         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
52818         (duplocale): Use it.
52819         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
52820         (frexp, frexpl): Use it.
52821         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
52822         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
52823         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
52824         (tsearch, tfind, tdelete, twalk): Use it.
52825         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
52826         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
52827         sigpending): Use it.
52828         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
52829         (posix_spawn, posix_spawnp, posix_spawnattr_init,
52830         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
52831         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
52832         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
52833         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
52834         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
52835         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
52836         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
52837         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
52838         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
52839         Use it.
52840         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
52841         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
52842         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
52843         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
52844         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
52845         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
52846         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
52847         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
52848         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
52849         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
52850         strtoull, unsetenv): Use it.
52851         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
52852         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
52853         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
52854         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
52855         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
52856         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
52857         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
52858         (strcasecmp, strncasecmp): Use it.
52859         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
52860         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
52861         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
52862         rpl_setsockopt): Use it.
52863         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
52864         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
52865         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
52866         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
52867         (gettimeofday): Use it.
52868         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
52869         (times): Use it.
52870         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
52871         (uname): Use it.
52872         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
52873         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
52874         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
52875         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
52876         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
52877         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
52878         unlinkat, write): Use it.
52879         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
52880         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
52881         * lib/argv-iter.h: Include arg-nonnull.h.
52882         (_ATTRIBUTE_NONNULL_): Remove macro.
52883         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
52884         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
52885         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
52886         optimization.
52887         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
52888         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
52889         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
52890         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
52891         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
52892         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
52893         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
52894         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
52895         * modules/arpa_inet (Depends-on): Add arg-nonnull.
52896         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
52897         * modules/dirent (Depends-on): Add arg-nonnull.
52898         (Makefile.am): Insert arg-nonnull.h into dirent.h.
52899         * modules/fcntl-h (Depends-on): Add arg-nonnull.
52900         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
52901         * modules/fnmatch (Depends-on): Add arg-nonnull.
52902         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
52903         * modules/getopt-posix (Depends-on): Add arg-nonnull.
52904         (Makefile.am): Insert arg-nonnull.h into getopt.h.
52905         * modules/glob (Depends-on): Add arg-nonnull.
52906         (Makefile.am): Insert arg-nonnull.h into glob.h.
52907         * modules/iconv_open (Depends-on): Add arg-nonnull.
52908         (Makefile.am): Insert arg-nonnull.h into iconv.h.
52909         * modules/inttypes (Depends-on): Add arg-nonnull.
52910         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
52911         * modules/locale (Depends-on): Add arg-nonnull.
52912         (Makefile.am): Insert arg-nonnull.h into locale.h.
52913         * modules/math (Depends-on): Add arg-nonnull.
52914         (Makefile.am): Insert arg-nonnull.h into math.h.
52915         * modules/netdb (Depends-on): Add arg-nonnull.
52916         (Makefile.am): Insert arg-nonnull.h into netdb.h.
52917         * modules/search (Depends-on): Add arg-nonnull.
52918         (Makefile.am): Insert arg-nonnull.h into search.h.
52919         * modules/signal (Depends-on): Add arg-nonnull.
52920         (Makefile.am): Insert arg-nonnull.h into signal.h.
52921         * modules/spawn (Depends-on): Add arg-nonnull.
52922         (Makefile.am): Insert arg-nonnull.h into spawn.h.
52923         * modules/stdio (Depends-on): Add arg-nonnull.
52924         (Makefile.am): Insert arg-nonnull.h into stdio.h.
52925         * modules/stdlib (Depends-on): Add arg-nonnull.
52926         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
52927         * modules/string (Depends-on): Add arg-nonnull.
52928         (Makefile.am): Insert arg-nonnull.h into string.h.
52929         * modules/strings (Depends-on): Add arg-nonnull.
52930         (Makefile.am): Insert arg-nonnull.h into strings.h.
52931         * modules/sys_socket (Depends-on): Add arg-nonnull.
52932         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
52933         * modules/sys_stat (Depends-on): Add arg-nonnull.
52934         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
52935         * modules/sys_time (Depends-on): Add arg-nonnull.
52936         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
52937         * modules/sys_times (Depends-on): Add arg-nonnull.
52938         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
52939         * modules/sys_utsname (Depends-on): Add arg-nonnull.
52940         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
52941         * modules/time (Depends-on): Add arg-nonnull.
52942         (Makefile.am): Insert arg-nonnull.h into time.h.
52943         * modules/unistd (Depends-on): Add arg-nonnull.
52944         (Makefile.am): Insert arg-nonnull.h into unistd.h.
52945         * modules/wchar (Depends-on): Add arg-nonnull.
52946         (Makefile.am): Insert arg-nonnull.h into wchar.h.
52947         * modules/argv-iter (Depends-on): Add arg-nonnull.
52948         * tests/test-canonicalize.c (null_ptr): New function.
52949         (main): Use it.
52950         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
52951         (main): Use it.
52952         * tests/test-memmem.c (null_ptr): New function.
52953         (main): Use it.
52954         Reported by Jim Meyering.
52956 2009-12-10  Bruno Haible  <bruno@clisp.org>
52958         Use spaces for indentation, not tabs.
52959         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
52960         * m4/*.m4: Untabify.
52961         * build-aux/*.h: Untabify.
52962         * tests/**/*.[hc]: Untabify.
52963         * README: New section "Indent with spaces, not TABs", based on
52964         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
52965         * NEWS: Mention the change.
52967 2009-12-10  Bruno Haible  <bruno@clisp.org>
52969         pty test: Fix link error.
52970         * modules/pty-tests (Makefile.am): Add the default LDADD value to
52971         test_pty_LDADD.
52973 2009-12-07  Simon Josefsson  <simon@josefsson.org>
52975         * modules/pty: New file.
52976         * modules/pty-tests: New file.
52977         * m4/pty.m4: New file.
52978         * tests/test-pty.c: New file.
52979         * doc/glibc-headers/pty.texi: Modified.
52980         * doc/glibc-functions/forkpty.texi: Modified.
52981         * doc/glibc-functions/openpty.texi: Modified.
52983 2009-12-10  Bruno Haible  <bruno@clisp.org>
52985         Avoid syntax error in C++ mode.
52986         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
52988 2009-12-10  Bruno Haible  <bruno@clisp.org>
52990         Use sed with option -e.
52991         * gnulib-tool (func_version, func_emit_copyright_notice,
52992         func_emit_initmacro_end, func_import, func_create_testdir): Pass
52993         option -e to sed.
52994         * modules/link-warning (Makefile.am): Likewise.
52996 2009-12-10  Jim Meyering  <meyering@redhat.com>
52998         mgetgroups: do not write bytes beyond end of malloc'd buffer
52999         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
53000         username, we call getgroups with a one-element-shorter buffer,
53001         but still told it the length was original, max_n_groups.
53003 2009-12-09  Eric Blake  <ebb9@byu.net>
53005         cloexec: relax license
53006         * modules/cloexec (Maintainer): Add myself.
53007         (License): Use LGPL, not GPL.
53009         link-warning: optimize generation
53010         * modules/link-warning (Makefile.am): Reduce process usage.
53012 2009-12-09  Bruno Haible  <bruno@clisp.org>
53014         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
53015         workaround was added on 2009-11-17.
53017 2009-12-09  Jim Meyering  <meyering@redhat.com>
53018             Bruno Haible  <bruno@clisp.org>
53020         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
53021         * modules/link-warning (Makefile.am): Make the comment-removing sed
53022         command more robust in the face of bootstrap-prepended comment lines.
53024 2009-12-09  Bruno Haible  <bruno@clisp.org>
53026         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
53027         most one group.
53029 2009-12-09  Simon Josefsson <simon@josefsson.org>
53030             Bruno Haible  <bruno@clisp.org>
53032         * build-aux/link-warning.h: Add copyright notice.
53033         * modules/link-warning (Makefile.am): Generate link-warning.h from
53034         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
53035         * NEWS: Mention change in link-warning module.
53036         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
53037         * modules/dirent (Makefile.am): Add dependency to dirent.h.
53038         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
53039         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
53040         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
53041         * modules/math (Makefile.am): Add dependency to math.h.
53042         * modules/search (Makefile.am): Add dependency to search.h.
53043         * modules/signal (Makefile.am): Add dependency to signal.h.
53044         * modules/spawn (Makefile.am): Add dependency to spawn.h.
53045         * modules/stdio (Makefile.am): Add dependency to stdio.h.
53046         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
53047         * modules/string (Makefile.am): Add dependency to string.h.
53048         * modules/strings (Makefile.am): Add dependency to strings.h.
53049         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
53050         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
53051         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
53052         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
53053         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
53054         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
53055         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
53056         * modules/unistd (Makefile.am): Add dependency to unistd.h.
53057         * modules/wchar (Makefile.am): Add dependency to wchar.h.
53059 2009-12-09  Bruno Haible  <bruno@clisp.org>
53061         fchdir: Optimize away rpl_fstat when possible.
53062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
53063         REPLACE_OPEN_DIRECTORY.
53064         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
53066 2009-12-09  Bruno Haible  <bruno@clisp.org>
53068         * lib/fchdir.c: Update comment.
53070 2009-12-09  Bruno Haible  <bruno@clisp.org>
53072         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
53074 2009-12-08  Eric Blake  <ebb9@byu.net>
53076         fchdir: avoid memory leak on re-registration.
53077         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
53079 2009-12-08  Jim Meyering  <meyering@redhat.com>
53081         init.sh: avoid Solaris 10 /bin/sh portability problem
53082         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
53083         sourced script:
53084           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
53085           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
53086           bar
53087         tests/init.sh relied on that, accepting a --set-path=DIR argument,
53088         and two tests used that idiom.
53089         * tests/init.sh: Update suggested usage comments.
53090         (path_prepend_): New function, to be used in place
53091         of the --src-path=DIR option.
53092         (setup_): Move PATH-prepending code into path_prepend_.
53093         * tests/test-pread.sh: Adapt to new usage.
53094         * tests/test-xalloc-die.sh: Likewise.
53096 2009-12-08  Simon Josefsson  <simon@josefsson.org>
53098         * doc/gnulib.texi (Glibc pty.h): Add.
53099         * doc/glibc-functions/forkpty.texi: Add.
53100         * doc/glibc-functions/openpty.texi: Add.
53101         Suggested by Bruno Haible.
53103 2009-12-08  Eric Blake  <ebb9@byu.net>
53105         fchdir: fix logic bugs
53106         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
53107         * tests/test-fchdir.c (main): Enhance test.
53108         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
53109         is in use.
53111         dup2: fix logic bugs
53112         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
53113         REPLACE_DUP2 to decide when rpl_dup2 is needed.
53114         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
53115         exists.
53116         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
53118 2009-12-07  Eric Blake  <ebb9@byu.net>
53120         unlink: fix m4 detection
53121         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
53123         unistd-safer: add unit test
53124         * modules/unistd-safer-tests: New file.
53125         * tests/test-dup-safer.c: Likewise.
53126         * tests/test-cloexec.c (setmode): Avoid compiler warning.
53127         * tests/test-dup2.c (setmode): Likewise.
53128         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
53130         cloexec: preserve text vs. binary across dup_cloexec
53131         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
53132         mode.
53133         * modules/dup2-tests (Depends-on): Add binary-io.
53134         * modules/cloexec-tests (Depends-on): Likewise.
53135         * tests/test-dup2.c (setmode, is_mode): New helpers.
53136         (main): Add tests that translation mode is preserved.
53137         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
53138         Reported by Bruno Haible.
53140         mgetgroups: reduce duplicate listings
53141         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
53142         resulting array.
53143         * tests/test-chown.h (test_chown): Simplify client.
53144         * tests/test-lchown.h (test_lchown): Likewise.
53146 2009-12-06  Bruno Haible  <bruno@clisp.org>
53148         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
53149         value.
53151 2009-12-06  Bruno Haible  <bruno@clisp.org>
53153         * lib/progname.c: Include stdio.h, stdlib.h.
53154         (set_program_name): Reject a NULL argument.
53156 2009-12-05  Eric Blake  <ebb9@byu.net>
53158         pipe2-safer: new module
53159         * modules/pipe2-safer: New file.
53160         * lib/unistd-safer.h (pipe2_safer): New prototype.
53161         * lib/unistd--.h (pipe2): New wrapper.
53162         * lib/pipe-safer.c (pipe2_safer): New function.
53163         * modules/pipe (Depends-on): Add pipe2-safer.
53164         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
53166         stdlib-safer: preserve cloexec flag for mkostemp[s]
53167         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
53168         fd_safer_flag.
53170         unistd-safer: allow preservation of cloexec status via flag
53171         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
53172         prototypes.
53173         * lib/dup-safer.c (dup_safer_flag): New function.
53174         * lib/fd-safer.c (fd_safer_flag): Likewise.
53175         * modules/cloexec (configure.ac): Set witness.
53177         test-dup2: enhance test
53178         * modules/dup2-tests (Depends-on): Add cloexec.
53179         * tests/test-dup2.c (main): Enhance test.
53181         cloexec: add dup_cloexec
53182         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
53183         header and comments.
53184         * lib/cloexec.c (set_cloexec_flag): Add comments.
53185         (dup_cloexec): New function, with mingw implementation borrowed
53186         from...
53187         * lib/w32spawn.h (dup_noinherit): ...here.
53188         * modules/execute (Depends-on): Add cloexec.
53189         * modules/pipe (Depends-on): Likewise.
53190         * modules/cloexec (Depends-on): Add dup2.
53191         * modules/cloexec-tests (Files): New file.
53192         * tests/test-cloexec.c: Likewise.
53194         test-xalloc-die: fix test for mingw
53195         * modules/xalloc-die-tests (Files): Add tests/init.sh.
53196         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
53197         directory and .exe suffix off argv[0] output.
53199         test-fseeko: fix test for mingw
53200         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
53201         than undefining fseek, so test will pass on mingw.
53203 2009-12-05  Bruno Haible  <bruno@clisp.org>
53205         * lib/progname.h (set_program_name): Clarify specification.
53206         * lib/progname.c (set_program_name): Likewise.
53207         Reported by Jim Meyering.
53209 2009-12-05  Jim Meyering  <meyering@redhat.com>
53211         maint.mk: backslash-escape parens in default regexp
53212         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
53213         backslash-escape the literal parentheses.
53215         maint.mk: news-date-check: use grep -E
53216         * top/maint.mk (today): Define a Make variable, not a...
53217         (news-date-check): ...shell variable.
53218         (news-date-regexp): Use the Make variable.
53219         Use grep's -E option.  Change the failing diagnostic to mention
53220         the variable, $(news-date-regexp).
53222 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
53224         maintainer-makefile: allow customization of NEWS entry format
53225         * top/maint.mk (news-date-regexp): New overridable variable.
53226         (news-date-check): Use it.
53228 2009-12-04  Eric Blake  <ebb9@byu.net>
53230         mgetgroups: add xgetgroups, and avoid ENOSYS failures
53231         * lib/mgetgroups.h (xgetgroups): New prototype.
53232         * lib/mgetgroups.c (xgetgroups): New wrapper.
53233         (mgetgroups): Handle ENOSYS.
53234         * modules/mgetgroups (Depends-on): Add realloc.
53235         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
53237         mgetgroups: avoid argument promotion issues with -1
53238         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
53239         for invalid gid_t.
53240         * tests/test-chown.h (getegid, test_chown): Likewise.
53241         * tests/test-lchown.h (getegid, test_lchown): Likewise.
53243 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
53245         exclude: Fix header file problems.
53246         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
53248 2009-12-01  Jim Meyering  <meyering@redhat.com>
53250         fts: fts_open: do not let an empty string cause immediate failure
53251         This is required in support of GNU rm, for which the command
53252         "rm A '' B" must process and remove both A and B, in spite of
53253         the empty string argument.
53254         * lib/fts.c (fts_open): Do not let the presence of an empty string
53255         cause fts_open to fail immediately.  Most fts-using tools must be
53256         able to process all arguments, in order, and can be expected to
53257         diagnose such arguments themselves.
53259 2009-11-30  Eric Blake  <ebb9@byu.net>
53261         utimens: fix compilation error
53262         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
53263         Declare variable at right scope.
53265 2009-11-29  Jim Meyering  <meyering@redhat.com>
53267         bootstrap: handle perl-5.11's changed --version output
53268         * build-aux/bootstrap (get_version): Handle perl separately,
53269         since perl-5.11's --version output is different.
53271 2009-11-28  Jim Meyering  <meyering@redhat.com>
53273         userspec: depend on the inttostr module, too
53274         * modules/userspec (Depends-on): Add inttostr.
53276         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
53277         * lib/userspec.c (parse_with_separator): Do not accept a user ID
53278         number of MAXUID when it evaluates to (uid_t) -1.
53279         Likewise for group ID.  Reported by Matt McCutchen in
53280         <http://savannah.gnu.org/bugs/?28113>
53282         userspec: reformat to use spaces, not TABs
53283         * lib/userspec.c: Expand TABs to spaces.
53284         Add Emacs' "indent-tabs-mode: nil" hint.
53286 2009-11-27  Eric Blake  <ebb9@byu.net>
53288         getopt-gnu: flush out another BSD bug
53289         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
53290         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
53291         flush out BSD bug.
53292         * tests/test-getopt.h (test_getopt): End lists with NULL.
53293         * tests/test-getopt_long.h (test_getopt_long): Likewise.
53294         (test_getopt_long_posix): Enhance test.
53295         * modules/getopt-posix-tests (Depends-on): Add stdbool.
53296         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
53297         getopt-gnu.
53298         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53299         Likewise.
53301 2009-11-27  Simon Josefsson  <simon@josefsson.org>
53303         * modules/idpriv-droptemp-tests (Notice): Fix text.
53305 2009-11-27  Jim Meyering  <meyering@redhat.com>
53307         test-xalloc-die: avoid spurious failure due to libtool argv difference
53308         In a libtool-enabled project, this test would fail due to a difference
53309         in the emitted program name, e.g.,
53310         -test-xalloc-die: memory exhausted
53311         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
53312         Use program to avoid that.
53313         * modules/xalloc-die-tests (Depends-on): Add progname.
53314         * tests/test-xalloc-die.c: Include progname.h".
53315         (program_name): Remove decl.
53316         (main): Call set_program_name.
53317         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
53319 2009-11-26  Richard Jones  <rjones@redhat.com>
53321         w32sock: leave win32 error in place.
53322         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
53324 2009-11-26  Eric Blake  <ebb9@byu.net>
53326         init.sh: suggest to use skip_ and fail_ functions in comments
53327         * tests/init.sh: Add a sentence.
53329 2009-11-25  Bruno Haible  <bruno@clisp.org>
53331         init.sh: add documentation in comments
53332         * tests/init.sh: Add some developer and user documentation.
53334 2009-11-26  Jim Meyering  <meyering@redhat.com>
53336         init.sh: accommodate even those who specify bogus srcdir manually
53337         * tests/init.sh: Normally, srcdir is guaranteed by automake and
53338         configure-time tests to be sanitized, so that there is no need to
53339         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
53340         (with no double quotes) suffices.  However, since tests may be
53341         invoked manually, and since you may explicitly set srcdir to the
53342         name of a directory containing spaces, do quote its uses here.
53343         * tests/test-pread.sh: Likewise.
53344         Suggested by Bruno Haible.
53346         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
53347         * tests/test-pread.sh: Write no data into the pipe, because
53348         test-pread actually reads none.  This avoids a diagnostic,
53349         "bash: echo: write error: Broken pipe", that arises in the unusual
53350         event something is ignoring SIGPIPE, and might be interpreted
53351         as some sort of failure.  Reported by Bruno Haible.
53353 2009-11-25  Jim Meyering  <meyering@redhat.com>
53355         test-pread: cover failure with ESPIPE and EINVAL
53356         * tests/test-pread.c (main): Test for failure, too.
53357         * tests/test-pread.sh: Invoke with stdin on a pipe.
53358         Suggested by Eric Blake.
53360         pread: improvement and fix
53361         * modules/pread (Depends-on): Depend on lseek, for portability to
53362         e.g., mingw.  Suggested by Eric Blake.
53363         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
53365         unistd.in.h: correct declaration of pread
53366         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
53367         Reported by Richard W.M. Jones.
53369         test-pread.sh: distribute the test script
53370         * modules/pread-tests (Files): Include test-pread.sh.
53372         test-pread.sh: clean up
53373         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
53374         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
53375         That is unnecessary, since it's always ".".
53376         Suggestion from Eric Blake.
53378         test-pread.sh: make executable
53379         * tests/test-pread.sh: Set executable bit.
53380         Reported by Eric Blake.
53382         correct typo in test-pread.sh
53383         * tests/test-pread.sh: Add #! line.
53385         test pread
53386         * tests/test-pread.c: New file.
53387         * tests/test-pread.sh: Likewise.
53388         * modules/pread-tests: Likewise.
53390         pread: new module
53391         * modules/pread: New file.
53392         * lib/unistd.in.h (pread): Define/declare.
53393         * lib/pread.c (pread): New file.
53394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
53395         * modules/unistd (Makefile.am): Substitute witnesses.
53396         * doc/posix-functions/pread.texi (pread): Update.
53397         * MODULES.html.sh: Add pread.
53399 2009-11-25  Jim Meyering  <meyering@redhat.com>
53401         tests/init.sh: new file to be used via most *.sh tests
53402         * tests/init.sh: New file.
53404 2009-11-25  Eric Blake  <ebb9@byu.net>
53406         utimens: work around older Linux failure with symlinks
53407         * lib/utimens.c (lutimensat_works_really): New variable.
53408         (fdutimens, lutimens): Use it to manage kernels that support
53409         nanosecond times on files, but not on symlinks.
53410         Reported by Ondřej Vašík.
53412         utimes: fix configure grammar
53413         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
53415 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
53417         regex: Fix fastmap for multibyte character ranges.
53418         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
53419         characters when a multibyte character range is included.
53421 2009-11-22  Andy Wingo  <wingo@pobox.com>
53423         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
53424         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
53426 2009-11-24  Bruno Haible  <bruno@clisp.org>
53428         doc: Most *_l functions exist in MacOS X 10.5.
53429         * doc/posix-functions/duplocale.texi: Update platforms list.
53430         * doc/posix-functions/freelocale.texi: Likewise.
53431         * doc/posix-functions/newlocale.texi: Likewise.
53432         * doc/posix-functions/uselocale.texi: Likewise.
53433         * doc/posix-functions/isalnum_l.texi: Likewise.
53434         * doc/posix-functions/isalpha_l.texi: Likewise.
53435         * doc/posix-functions/isblank_l.texi: Likewise.
53436         * doc/posix-functions/iscntrl_l.texi: Likewise.
53437         * doc/posix-functions/isdigit_l.texi: Likewise.
53438         * doc/posix-functions/isgraph_l.texi: Likewise.
53439         * doc/posix-functions/islower_l.texi: Likewise.
53440         * doc/posix-functions/isprint_l.texi: Likewise.
53441         * doc/posix-functions/ispunct_l.texi: Likewise.
53442         * doc/posix-functions/isspace_l.texi: Likewise.
53443         * doc/posix-functions/isupper_l.texi: Likewise.
53444         * doc/posix-functions/iswalnum_l.texi: Likewise.
53445         * doc/posix-functions/iswalpha_l.texi: Likewise.
53446         * doc/posix-functions/iswblank_l.texi: Likewise.
53447         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53448         * doc/posix-functions/iswctype_l.texi: Likewise.
53449         * doc/posix-functions/iswdigit_l.texi: Likewise.
53450         * doc/posix-functions/iswgraph_l.texi: Likewise.
53451         * doc/posix-functions/iswlower_l.texi: Likewise.
53452         * doc/posix-functions/iswprint_l.texi: Likewise.
53453         * doc/posix-functions/iswpunct_l.texi: Likewise.
53454         * doc/posix-functions/iswspace_l.texi: Likewise.
53455         * doc/posix-functions/iswupper_l.texi: Likewise.
53456         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53457         * doc/posix-functions/isxdigit_l.texi: Likewise.
53458         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
53459         * doc/posix-functions/strcasecmp_l.texi: Likewise.
53460         * doc/posix-functions/strcoll_l.texi: Likewise.
53461         * doc/posix-functions/strfmon_l.texi: Likewise.
53462         * doc/posix-functions/strftime_l.texi: Likewise.
53463         * doc/posix-functions/strncasecmp_l.texi: Likewise.
53464         * doc/posix-functions/strxfrm_l.texi: Likewise.
53465         * doc/posix-functions/tolower_l.texi: Likewise.
53466         * doc/posix-functions/toupper_l.texi: Likewise.
53467         * doc/posix-functions/towctrans_l.texi: Likewise.
53468         * doc/posix-functions/towlower_l.texi: Likewise.
53469         * doc/posix-functions/towupper_l.texi: Likewise.
53470         * doc/posix-functions/wcscoll_l.texi: Likewise.
53471         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53472         * doc/posix-functions/wctrans_l.texi: Likewise.
53473         * doc/posix-functions/wctype_l.texi: Likewise.
53474         * doc/glibc-functions/strptime_l.texi: Likewise.
53475         * doc/glibc-functions/strtod_l.texi: Likewise.
53476         * doc/glibc-functions/strtof_l.texi: Likewise.
53477         * doc/glibc-functions/strtol_l.texi: Likewise.
53478         * doc/glibc-functions/strtold_l.texi: Likewise.
53479         * doc/glibc-functions/strtoll_l.texi: Likewise.
53480         * doc/glibc-functions/strtoul_l.texi: Likewise.
53481         * doc/glibc-functions/strtoull_l.texi: Likewise.
53482         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53483         * doc/glibc-functions/wcstod_l.texi: Likewise.
53484         * doc/glibc-functions/wcstof_l.texi: Likewise.
53485         * doc/glibc-functions/wcstol_l.texi: Likewise.
53486         * doc/glibc-functions/wcstold_l.texi: Likewise.
53487         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53488         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53489         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53491 2009-11-24  Bruno Haible  <bruno@clisp.org>
53493         duplocale: Fix logic bug.
53494         * lib/duplocale.c: Don't include <langinfo.h>.
53495         (_NL_LOCALE_NAME): Remove macro.
53496         (rpl_duplocale): Use setlocale instead of nl_langinfo.
53497         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
53499 2009-11-23  Jim Meyering  <meyering@redhat.com>
53501         test-update-copyright: don't hard-code /usr/bin/perl
53502         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
53503         perl to print the current year.  Gilles Espinasse reported that
53504         the replaced use of perl was hard-coded as /usr/bin/perl.
53506 2009-11-23  Bruno Haible  <bruno@clisp.org>
53508         duplocale: Add support for glibc 2.3.x.
53509         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
53511 2009-11-22  Bruno Haible  <bruno@clisp.org>
53513         vasnprintf: Tiny optimization.
53514         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
53515         MacOS X.
53517 2009-11-22  Bruno Haible  <bruno@clisp.org>
53519         Tests for module 'duplocale'.
53520         * modules/duplocale-tests: New file.
53521         * tests/test-duplocale.c: New file.
53523         New module 'duplocale'.
53524         * m4/duplocale.m4: New file.
53525         * lib/locale.in.h (duplocale): New declaration.
53526         * lib/duplocale.c: New file.
53527         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
53528         gl_LOCALE_H_DEFAULTS): New macros.
53529         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
53530         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
53531         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
53532         REPLACE_DUPLOCALE.
53533         * modules/duplocale: New file.
53534         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
53536 2009-11-22  Bruno Haible  <bruno@clisp.org>
53538         * modules/locale-tests (configure.ac): Test for newlocale function.
53539         * tests/test-locale.c: When the system has extended locale functions,
53540         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
53542         locale: Make locale_t available when possible.
53543         * lib/locale.in.h: Include <xlocale.h> when it exists.
53544         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
53545         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
53546         * modules/locale (Depends-on): Add extensions.
53547         (Makefile.am): Also substitute HAVE_XLOCALE_H.
53548         * doc/posix-headers/locale.texi: Document the problem with locale_t.
53550 2009-11-22  Bruno Haible  <bruno@clisp.org>
53552         Add comments.
53553         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
53554         invocation.
53555         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
53556         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
53557         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
53559 2009-11-22  Bruno Haible  <bruno@clisp.org>
53561         error: account for the possibility of freopen (stdout).
53562         * lib/error.c: Include <unistd.h>.
53563         (flush_stdout): New function, extracted from error and error_at_line.
53564         Determine stdout's fd dynamically.
53565         (error, error_at_line): Invoke flush_stdout.
53566         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
53567         * modules/error (Depends-on): Add unistd.
53569 2009-11-22  Bruno Haible  <bruno@clisp.org>
53571         diffseq: Add comment.
53572         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
53574 2009-11-22  Jim Meyering  <meyering@redhat.com>
53576         c-stack: avoid defining an unused static function
53577         * lib/c-stack.c (find_stack_direction): Do not define this function
53578         when it will not be used.
53580         diffseq: avoid spurious gcc warnings
53581         * lib/diffseq.h (IF_LINT2): Define.
53582         (compareseq): Use it to initialize two members of "part".
53583         This avoids two used-uninitialized warnings.
53585 2009-11-21  Jim Meyering  <meyering@redhat.com>
53587         c-stack: avoid "ignoring return value of `write'" warning
53588         * lib/c-stack.c: Include "ignore-value.h".
53589         (die): Explicitly ignore each write return value.
53590         * modules/c-stack (Depends-on): Add ignore-value.
53592 2009-11-21  Bruno Haible  <bruno@clisp.org>
53594         diffseq: reduce scope of variable 'best'.
53595         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
53596         variable, earlier used for two different purposes.
53598 2009-11-21  Jim Meyering  <meyering@redhat.com>
53600         diffseq: remove useless assignment to "best"
53601         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
53602         assignment.  At that point "best" is already guaranteed to be zero.
53604 2009-11-20  Eric Blake  <ebb9@byu.net>
53606         build: mention ftp redirector in release announcements
53607         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
53608         values that used to come from cfg.mk; mention FTP redirect URL.
53609         * build-aux/announce-gen: Mention the mirror list.
53610         Suggested by Karl Berry.
53612         nanosleep: improve port to mingw
53613         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
53614         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
53615         LIB_NANOSLEEP, but only when needed.
53616         * modules/select (Link): Document LIBSOCKET.
53617         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
53618         enough.
53620         nanosleep: work around cygwin bug
53621         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
53622         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
53623         bug.
53624         (getnow): Delete, not needed.
53625         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
53626         LIB_CLOCK_GETTIME.
53627         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
53628         clock-time, gettime.
53629         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
53630         bug.
53631         * modules/nanosleep-tests: New test.
53632         * tests/test-nanosleep.c: New file.
53634         sleep: work around cygwin bug
53635         * lib/sleep.c (rpl_sleep): Work around the bug.
53636         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
53637         (gl_PREREQ_SLEEP): Delete unused macro.
53638         * modules/sleep (Depends-on): Add verify.
53639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
53640         * modules/unistd (Makefile.am): Substitute witness.
53641         * lib/unistd.in.h (sleep): Update prototype.
53642         * doc/posix-functions/sleep.texi (sleep): Document the bug.
53643         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
53644         * modules/sleep-tests (Depends-on): Check for alarm.
53646 2009-11-20  Jim Meyering  <meyering@redhat.com>
53648         maint.mk: improve sc_prohibit_magic_number_exit
53649         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
53650         so it does not match uses like System.exit(1).
53651         Add comments showing how to correct all offenders.
53653 2009-11-19  Eric Blake  <ebb9@byu.net>
53655         xalloc-die-tests: add missing library
53656         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
53658         test-xvasprintf: silence compiler warnings
53659         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
53660         empty string from gcc.
53662 2009-11-19  Jim Meyering  <meyering@redhat.com>
53664         xfreopen: new module, from coreutils
53665         * modules/xfreopen: New module.
53666         * lib/xfreopen.c: New file.
53667         * lib/xfreopen.h: New file.
53668         * MODULES.html.sh (File stream based Input/Output"): Add it.
53670 2009-11-19  Eric Blake  <ebb9@byu.net>
53672         manywarnings: depend on warnings
53673         * modules/manywarnings (Depends-on): Add warnings.
53675         build: avoid compiler warnings
53676         * lib/select.c (rpl_select): Delete unused variable.
53677         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
53679 2009-11-18  Eric Blake  <ebb9@byu.net>
53681         tests: avoid false negative with --with-packager
53682         * tests/test-version-etc.sh: Discard packager information.
53683         * tests/test-argp-version-etc-1.sh: Likewise.
53684         Reported by Mike Frysinger.
53686         utimens: fix regression on Solaris
53687         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
53688         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
53689         can only change fd timestamps via futimesat.  Instead, use an
53690         additional witness macro to avoid BSD bug.
53691         Reported by Jim Meyering.
53693 2009-11-17  Eric Blake  <ebb9@byu.net>
53695         usleep: use it to simplify tests
53696         * modules/stat-time-tests (Depends-on): Add usleep.
53697         (configure.ac): Drop usleep check.
53698         * modules/chown-tests (Depends-on, configure.ac): Likewise.
53699         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
53700         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
53701         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
53702         * modules/openat-tests (Depends-on, configure.ac): Likewise.
53703         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
53704         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
53705         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
53706         Likewise.
53707         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
53708         * tests/test-lchown.h (nap): Likewise.
53709         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
53710         * tests/test-stat-time.c (nap): Likewise.
53711         * tests/test-utimens-common.h (nap): Update comments.
53713         usleep: new module
53714         * modules/usleep: New file.
53715         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
53716         * lib/usleep.c (usleep): Likewise.
53717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
53718         * modules/unistd (Makefile.am): Substitute witnesses.
53719         * lib/unistd.in.h (usleep): Add declaration.
53720         * doc/pastposix-functions/usleep.texi (usleep): Document this.
53721         * MODULES.html.sh (Date and time): Likewise.
53722         * modules/usleep-tests (Depends-on): New test.
53723         * tests/test-usleep.c: New file.
53725         chown: work around OpenBSD bug
53726         * lib/chown.c (rpl_chown): Work around the bug.
53727         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
53728         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
53729         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
53730         * modules/chown (Depends-on): Add stdbool.
53731         * modules/lchown (Depends-on): Likewise.
53732         * doc/posix-functions/chown.texi (chown): Document the bug.
53733         * doc/posix-functions/lchown.texi (lchown): Likewise.
53734         * tests/test-lchown.h (test_chown): Relax test.
53736         mkstemp: avoid conflict with C++ keyword template
53737         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
53738         * lib/mkostemp.c (mkostemp): Likewise.
53739         * lib/mkostemps.c (mkostemps): Likewise.
53740         * lib/mkstemp.c (mkstemp): Likewise.
53741         * lib/mkstemps.c (mkstemps): Likewise.
53743         xalloc-die-tests: optimize
53744         * tests/test-xalloc-die.sh: Reduce number of processes.
53746 2009-11-17  Simon Josefsson  <simon@josefsson.org>
53748         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
53749         patch from ludo@gnu.org (Ludovic Courtès).
53751 2009-11-17  Jim Meyering  <meyering@redhat.com>
53753         version-etc: use proper license string
53754         * modules/version-etc (License): Use LGPL, not LGPLv3+.
53755         * modules/version-etc-fsf: Likewise.
53757 2009-11-17  Simon Josefsson  <simon@josefsson.org>
53759         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
53760         printed to stdout.  Deal with EOL differences.
53762 2009-11-17  Eric Blake  <ebb9@byu.net>
53764         unsetenv: work around Solaris bug
53765         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
53766         * lib/unsetenv.c (rpl_unsetenv): Work around it.
53767         Reported by Jim Meyering.
53769         vasnprintf: avoid compiler warnings
53770         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
53771         variables.
53772         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
53774 2009-11-17  Simon Josefsson  <simon@josefsson.org>
53776         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
53777         settings since xalloc-die is no longer the self test,
53778         xalloc-die.sh is.
53780 2009-11-17  Jim Meyering  <meyering@redhat.com>
53782         test-xalloc-die.sh: make the code agree with the commit log
53783         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
53784         at the end, just in case you happen to have a test-xalloc-die
53785         program in some other PATH directory.
53787         test-xalloc-die.sh: fix a portability bug
53788         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
53789         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
53790         Otherwise, argv[0] (as often seen in diagnostics) would be too
53791         system-dependent, sometimes with, and sometimes without the leading "./".
53793         version-etc-fsf: relax license to LGPLv3+
53794         * modules/version-etc-fsf (License): Relax license.
53796 2009-11-16  Eric Blake  <ebb9@byu.net>
53798         xalloc-die-tests: avoid printing null pointer
53799         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
53800         shell script.
53801         * tests/test-xalloc-die.c (program_name): Declare.
53802         * tests/test-xalloc-die.sh (tmpfiles): New file.
53804         setenv, unsetenv: work around various bugs
53805         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
53806         (setenv) [HAVE_SETENV]: Work around bugs.
53807         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
53808         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
53809         for bugs.
53810         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
53811         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
53812         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
53813         * modules/stdlib (Makefile.am): Update substitutions.
53814         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
53815         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
53816         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
53817         * modules/setenv-tests: New test.
53818         * modules/unsetenv-tests: Likewise.
53819         * tests/test-setenv.c: New file.
53820         * tests/test-unsetenv.c: Likewise.
53822 2009-11-16  Jim Meyering  <meyering@redhat.com>
53824         version-etc: relax license to LGPLv3+
53825         * modules/version-etc (License): Relax license.
53827         better AC_REQUIRE expanded-before-required-warning avoidance
53828         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
53829         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
53830         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
53831         which is no longer needed.
53833 2009-11-16  Eric Blake  <ebb9@byu.net>
53835         test-freading: clean up temporary file
53836         * tests/test-freading.c (main): Remove file on success, and use
53837         ASSERT more liberally.
53838         Reported by Jim Meyering.
53840 2009-11-16  Jim Meyering  <meyering@redhat.com>
53842         avoid new AC_REQUIRE expanded-before-required warnings
53843         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
53844         merely using it.
53845         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
53846         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
53848 2009-11-15  Simon Josefsson  <simon@josefsson.org>
53850         * tests/test-xalloc-die.c: New file.
53851         * modules/xalloc-die-tests: New file.
53852         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
53853         XFAIL_TESTS so it can be appended by modules.
53855 2009-11-15  Simon Josefsson  <simon@josefsson.org>
53857         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
53858         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
53860 2009-11-14  Eric Blake  <ebb9@byu.net>
53862         fnmatch: avoid compiler warning
53863         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
53864         to silence compiler warning about mismatch signedness in ?:.
53865         Reported by Robert Millan.
53867         intprops: add double-inclusion guard
53868         * lib/intprops.h: Allow idempotent includes.
53869         Suggested by Bruce Korb.
53871         openat: detect Solaris fchownat bug
53872         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
53873         penalizing glibc chownat when only lchownat is broken.
53874         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
53875         trailing slash bugs.
53876         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
53877         * modules/openat-tests (Files): Include more files.
53878         (Depends-on): Add mgetgroups, sleep, stat-time.
53879         (configure.ac): Add additional checks.
53880         (Makefile.am): Build new test.
53881         * tests/test-fchownat.c: New file.
53883         lchown: detect Solaris and FreeBSD bug
53884         * lib/lchown.c (rpl_lchown): Work around bug.
53885         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
53886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
53887         * modules/unistd (Makefile.am): Populate it.
53888         * lib/unistd.in.h (lchown): Update declaration.
53889         * doc/posix-functions/lchown.texi (lchown): Document the bug.
53890         * modules/lchown-tests: New file.
53891         * tests/test-lchown.h (test_lchown): Likewise.
53892         * tests/test-lchown.c (main): Likewise.
53894         chown: detect Solaris and FreeBSD bug
53895         * lib/chown.c (rpl_chown): Work around bug.
53896         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
53897         (gl_PREREQ_CHOWN): Delete.
53898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
53899         * modules/unistd (Makefile.am): Populate it.
53900         * lib/unistd.in.h (chown): Update declaration.
53901         * lib/lchown.c (chown): Update client.
53902         * modules/lchown (Depends-on): Add lstat.
53903         * doc/posix-functions/chown.texi (chown): Document the bug.
53904         * doc/posix-functions/getgroups.texi (getgroups): Document
53905         getgroups pitfall.
53906         * modules/chown-tests: New file.
53907         * tests/test-chown.h (test_chown): Likewise.
53908         * tests/test-chown.c (main): Likewise.
53910 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
53912         gnulib-tool: correctly detect absence of m4 directories
53913         * gnulib-tool: Avoid extra newline on data passed to wc -l.
53915 2009-11-14  Jim Meyering  <meyering@redhat.com>
53917         maint.mk: Prohibit inclusion of "xalloc.h" without use.
53918         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
53920 2009-11-14  John W. Eaton  <jwe@gnu.org>
53922         strftime.h: wrap function declaration in extern "C" block
53923         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
53925 2009-11-13  Eric Blake  <ebb9@byu.net>
53927         getgroups: avoid compiler warning
53928         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
53930         getgroups: work around FreeBSD bug
53931         * lib/getgroups.c (rpl_getgroups): Work around the bug.
53932         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
53933         * doc/posix-functions/getgroups.texi (getgroups): Document it.
53934         * tests/test-getgroups.c (main): Fix buffer overrun.
53936         getgroups: avoid compilation failure
53937         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
53938         * modules/getgroups (Depends-on): Add stdint.
53940 2009-11-13  Jim Meyering  <meyering@redhat.com>
53942         test-getgroups: avoid compilation failure
53943         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
53945 2009-11-13  Eric Blake  <ebb9@byu.net>
53947         mgetgroups: new module, taken from coreutils
53948         * modules/mgetgroups: New file.
53949         * lib/mgetgroups.h: Likewise.
53950         * lib/mgetgroups.c (mgetgroups): Likewise.
53951         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
53952         * MODULES.html.sh (Users and groups): Mention it.
53954         getgroups: don't expose GETGROUPS_T to user
53955         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
53956         an element at a time if GETGROUPS_T is wrong size.
53957         * lib/getugroups.h (getugroups): Change signature.
53958         * lib/unistd.in.h (getgroups): Likewise.
53959         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
53960         signature needs fixing.
53961         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
53962         AC_TYPE_GETGROUPS.
53963         * modules/group-member (Depends-on): Add getgroups.
53964         * lib/group-member.c (group_info, get_group_info): Use gid_t.
53965         (group_member): Rely on getgroups replacement.
53966         * lib/getugroups.c (getugroups): Use gid_t.
53967         * tests/test-getgroups.c (main): Likewise.
53968         * NEWS: Mention the signature change.
53969         * doc/posix-functions/getgroups.texi (getgroups): Mention the
53970         problem with signature.
53971         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
53972         GETGROUPS_T is still useful for setgroups.
53974         getgroups, getugroups: provide stubs for mingw
53975         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
53976         * lib/getugroups.c (getugroups): Likewise.
53977         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
53978         function.  Modernize replacement scheme.
53979         (gl_PREREQ_GETGROUPS): Delete.
53980         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
53981         * modules/getgroups (configure.ac): Declare witness.
53982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
53983         * modules/unistd (Depends-on): Substitute witness.
53984         * lib/unistd.in.h (getgroups): Declare replacement.
53986         getgroups: avoid calling exit
53987         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
53988         drop xalloc.
53989         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
53990         dependencies.
53991         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
53992         exiting, in the rare case of malloc failure.
53994         getgroups: fix logic error
53995         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
53996         has more than 20 groups.
53997         * modules/getgroups-tests: New test.
53998         * tests/test-getgroups.c: New file.
54000 2009-11-13  Simon Josefsson  <simon@josefsson.org>
54002         * tests/test-base64.c: Improve.
54004 2009-11-13  Simon Josefsson  <simon@josefsson.org>
54006         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
54007         Blake <ebb9@byu.net>.
54009 2009-11-13  Simon Josefsson  <simon@josefsson.org>
54011         * tests/test-xvasprintf.c: Add %s%s related checks.
54013 2009-11-12  Eric Blake  <ebb9@byu.net>
54015         version-etc: match standards.texi style
54016         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
54017         and use <> only for URLs.
54019 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
54021         fts: do not fail on a submount during traversal
54022         * lib/fts.c (fts_build): Read the stat info again after opening
54023         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
54024         Original report at http://bugzilla.redhat.com/501848.
54026 2009-11-12  Jim Meyering  <meyering@redhat.com>
54028         bootstrap: sync from coreutils
54029         * build-aux/bootstrap (bootstrap_epilogue): New function.
54030         Use git_modules_config in one more place.  This make bootstrap's
54031         --gnulib-srcdir option more useful for testing.
54033         bootstrap: generalize autoheader check
54034         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
54035         AC_CONFIG_HEADERS.
54037 2009-11-11  Eric Blake  <ebb9@byu.net>
54039         mkfifoat: use new modules for Solaris and BSD bugs
54040         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
54041         * lib/mkfifoat.c (mknodat): Split...
54042         * lib/mknodat.c (mknodat): ...into new file.
54043         * modules/mkfifoat (Files): Ship new file.
54044         (Depends-on): Add mkfifo, mknod.
54045         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
54046         (Depends-on): Add symlink.
54047         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
54048         redundant with test_mkfifo.h.
54049         (do_mkfifoat, do_mknodat): New helpers.
54051         mknod: new module
54052         * modules/mknod: New file.
54053         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
54054         * lib/mknod.c (mknod): Likewise.
54055         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
54056         defaults.
54057         * modules/sys_stat (Makefile.am): Substitute them.
54058         * lib/sys_stat.in.h (mknod): Declare replacement.
54059         * MODULES.html.sh (Support for systems lacking POSIX:2008):
54060         Document it.
54061         * doc/posix-functions/mknod.texi (mknod): Likewise.
54062         * modules/mknod-tests: New test.
54063         * tests/test-mknod.c: Likewise.
54065         mkfifo: new module
54066         * modules/mkfifo: New file.
54067         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
54068         * lib/mkfifo.c (mkfifo): Likewise.
54069         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
54070         defaults.
54071         * modules/sys_stat (Makefile.am): Substitute them.
54072         * lib/sys_stat.in.h (mkfifo): Declare replacement.
54073         * MODULES.html.sh (Support for systems lacking POSIX:2008):
54074         Document it.
54075         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
54076         * modules/mkfifo-tests: New test.
54077         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
54078         from test-mkfifoat.c.
54079         * tests/test-mkfifo.c: New file.
54081         readlink: detect FreeBSD bug
54082         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
54083         slash on symlink.
54084         * doc/posix-functions/readlink.texi (readlink): Document the bug.
54085         * tests/test-readlink.h (test_readlink): Enhance test.
54087         symlink: detect FreeBSD bug
54088         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
54089         slash on symlink.
54090         * doc/posix-functions/symlink.texi (symlink): Document the bug.
54091         * tests/test-symlink.h (test_symlink): Enhance test.
54093 2009-11-10  Eric Blake  <ebb9@byu.net>
54095         link: detect FreeBSD bug
54096         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
54097         symlink.
54098         * doc/posix-functions/link.texi (link): Document the bug.
54099         * tests/test-link.h (test_link): Enhance test.
54100         * tests/test-linkat.c (main): Update caller.
54102         unlink, remove: detect FreeBSD bug
54103         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
54104         slash on symlink.
54105         * doc/posix-functions/unlink.texi (unlink): Document the bug.
54106         * doc/posix-functions/remove.texi (remove): Likewise.
54107         * tests/test-unlink.h (test_unlink): Enhance test.
54108         * tests/test-remove.c (main): Likewise.
54110 2009-11-09  Eric Blake  <ebb9@byu.net>
54112         rename: detect FreeBSD bug
54113         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
54114         slash on symlink.
54115         * modules/renameat-tests (Depends-on): Add filenamecat.
54116         * tests/test-rename.h (test_rename): Allow one more errno.
54117         * tests/test-renameat.c (main): Likewise.
54118         * doc/posix-functions/rename.texi (rename): Document the bug.
54120         open: detect FreeBSD bug
54121         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
54122         symlink.
54123         * doc/posix-functions/open.texi (open): Document the bug.
54124         * doc/posix-functions/utimes.texi (utimes): Likewise.
54125         * tests/test-open.h (test_open): Add parameters, and test symlink
54126         handling.
54127         * tests/test-open.c (main): Adjust caller.
54128         * tests/test-fcntl-safer.c (main): Likewise.
54129         * modules/open-tests (Depends-on): Add stdbool, symlink.
54130         * modules/fcntl-safer-tests (Depends-on): Likewise.
54131         * tests/test-openat.c (main): Add test-open tests.
54133         stat: detect FreeBSD bug
54134         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
54135         symlink.
54136         * doc/posix-functions/stat.texi (stat): Document the bug.
54137         * tests/test-stat.h (test_stat_func): Add argument.
54138         * tests/test-stat.c (main): Adjust caller.
54139         * tests/test-fstatat.c (main): Likewise.
54140         * modules/stat-tests (Depends-on): Add stdbool, symlink.
54141         Reported by Jim Meyering.
54143 2009-11-09  James Youngman  <jay@gnu.org>
54145         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
54146         * lib/strftime.c: Correct placement of #include "ignore-value.h".
54148 2009-11-08  Jim Meyering  <meyering@redhat.com>
54150         utimens: remove invalid futimesat call
54151         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
54152         It used the file descriptor of the target file as the DIR_FD
54153         parameter and NULL as the file name.  That caused failure with
54154         errno == EFAULT on FreeBSD-8.0-rc2
54156 2009-11-07  Eric Blake  <ebb9@byu.net>
54158         fflush, freadseek: use fseeko, not fseek
54159         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
54160         (clear_ungetc_buffer): Avoid potential problems on large files.
54161         * lib/freadseek.c (freadseek): Likewise.
54162         * modules/freadseek (Depends-on): Add fseeko.
54163         * modules/fseek (configure.ac): Set a witness.
54164         * tests/test-fflush.c (main): Use fseeko.
54165         * tests/test-fpurge.c (fseek): Disable link warning.
54166         * tests/test-freadable.c (fseek): Likewise.
54167         * tests/test-freading.c (fseek): Likewise.
54168         * tests/test-fseeko.c (fseek): Likewise.
54169         * tests/test-ftell.c (fseek): Likewise.
54170         * tests/test-ftello.c (fseek): Likewise.
54171         * tests/test-fwritable.c (fseek): Likewise.
54172         * tests/test-fwriting.c (fseek): Likewise.
54174 2009-11-06  Simon Josefsson  <simon@josefsson.org>
54176         * modules/memchr (Depends-on): Drop getpagesize dependency.
54178 2009-11-06  Simon Josefsson  <simon@josefsson.org>
54180         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
54181         Reported by Ludovic Courtès.
54182         * build-aux/pmccabe2html: Improve example usage.
54183         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
54185 2009-11-06  Jim Meyering  <meyering@redhat.com>
54187         do-release-commit-and-tag: New module.
54188         Automate the release-commit and tag process.
54189         * build-aux/do-release-commit-and-tag: New script, from coreutils.
54190         * modules/do-release-commit-and-tag: New file.
54191         * MODULES.html.sh (Support for maintaining and releasing): Add it.
54193 2009-11-06  Simon Josefsson  <simon@josefsson.org>
54195         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
54196         because test-select.c uses inet_pton.
54198 2009-11-06  Simon Josefsson  <simon@josefsson.org>
54200         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
54201         GETADDRINFO_LIB.  Bump serial number.
54202         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
54203         Suggested by Eric Blake <ebb9@byu.net>.
54205 2009-11-05  Eric Blake  <ebb9@byu.net>
54207         strtod: detect darwin bug
54208         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
54209         Reported by Leo Davis.
54211         freopen-safer: new module
54212         * modules/freopen-safer: New module.
54213         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
54214         * lib/freopen-safer.c (freopen_safer): New file.
54215         * lib/stdio-safer.h (freopen_safer): New declaration.
54216         * lib/stdio--.h (freopen): New override.
54217         * MODULES.html.sh (File stream based Input/Output): Mention it.
54218         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
54219         freopen-safer module.
54220         * doc/posix-functions/stderr.texi (stderr): Likewise.
54221         * doc/posix-functions/stdin.texi (stdin): Likewise.
54222         * doc/posix-functions/stdout.texi (stdout): Likewise.
54223         * modules/freopen-safer-tests: New test.
54224         * tests/test-reopen-safer.c: New file.
54226 2009-11-05  Jim Meyering  <meyering@redhat.com>
54228         maint.mk: Prohibit inclusion of "close-stream.h" without use.
54229         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
54231 2009-11-05  Simon Josefsson  <simon@josefsson.org>
54233         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
54235 2009-11-05  Simon Josefsson  <simon@josefsson.org>
54237         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
54239 2009-11-05  Simon Josefsson  <simon@josefsson.org>
54241         Fix link error.
54242         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
54243         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54245 2009-11-05  Simon Josefsson  <simon@josefsson.org>
54247         * tests/test-func.c: Also test value of __func__.
54249 2009-11-05  Simon Josefsson  <simon@josefsson.org>
54251         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
54252         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
54254 2009-11-05  Bruno Haible  <bruno@clisp.org>
54256         Fix link error.
54257         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
54258         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54259         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
54261 2009-11-05  Bruno Haible  <bruno@clisp.org>
54263         Tests for module 'inet_pton'.
54264         * modules/inet_pton-tests: New file.
54265         * tests/test-inet_pton.c: New file.
54267 2009-11-05  Bruno Haible  <bruno@clisp.org>
54269         Tests for module 'inet_ntop'.
54270         * modules/inet_ntop-tests: New file.
54271         * tests/test-inet_ntop.c: New file.
54273 2009-11-04  Eric Blake  <ebb9@byu.net>
54275         stdlib-safer: wrap all mkstemp variants
54276         * modules/mkostemp (configure.ac): Set witness.
54277         * modules/mkostemps (configure.ac): Likewise.
54278         * modules/mkstemps (configure.ac): Likewise.
54279         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
54280         (mkstemps_safer): Wrap more functions.
54281         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
54282         wrapping.
54283         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
54284         (mkstemps_safer): Implement the wrappers.
54286         mkstemps, mkostemps: new modules
54287         * modules/mkostemps: New module.
54288         * modules/mkstemps: Likewise.
54289         * lib/mkostemps.c (mkostemps): New file.
54290         * lib/mkstemps.c (mkstemps): Likewise.
54291         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
54292         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
54293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
54294         * modules/stdlib (Makefile.am): Substitute them.
54295         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
54296         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
54297         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
54298         * doc/gnulib.texi (Glibc stdlib.h): Include them.
54299         * MODULES.html.sh (File system functions): Mention them.
54301         tempname: resync from glibc
54302         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
54303         same values for __GT_FILE as glibc.  Abort even when assertions
54304         are disabled.
54305         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
54306         match its value otherwise.  Allow idempotent inclusion.
54307         * lib/mkdtemp.c (mkdtemp): Adjust caller.
54308         * lib/mkostemp.c (mkostemp): Likewise.
54309         * lib/mkstemp.c (mkstemp): Likewise.
54310         * lib/tmpfile.c (tmpfile): Likewise.
54311         * NEWS: Document this.
54313         utimens: fix use of futimens on older Linux
54314         * lib/utimens.c (fdutimens): Use updated, rather than original,
54315         timespec to avoid bug in older Linux kernel.
54316         Reported by Simon Josefsson.
54318 2009-11-04  Bruno Haible  <bruno@clisp.org>
54320         Make num_processors more flexible and consistent.
54321         * lib/nproc.h (enum nproc_query): New type.
54322         (num_processors): Add a 'query' argument.
54323         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
54324         (num_processors): Add a 'query' argument. Test the value of the
54325         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
54326         mingw, count the number of CPUs available for the current process.
54327         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
54328         Check for sched_getaffinity and sched_getaffinity_np.
54329         * modules/nproc (Depends-on): Add c-ctype, extensions.
54330         * NEWS: Mention the change.
54332 2009-11-03  Bruno Haible  <bruno@clisp.org>
54334         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
54336 2009-11-03  Jim Meyering  <meyering@redhat.com>
54338         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
54339         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
54340         if it is defined.
54342 2009-11-02  Eric Blake  <ebb9@byu.net>
54344         mktime, timegm: share common declaration
54345         * lib/mktime-internal.h: New file.
54346         * lib/mktime.c: Use it rather than open-coding a declaration.
54347         * lib/timegm.c: Likewise.
54348         * modules/mktime (Files): Ship it.
54349         * modules/timegm (Files): Likewise.
54350         Suggested by Bruno Haible.
54352         test-update-copyright: update test to match script changes
54353         * tests/test-update-copyright.sh: Avoid hard-coding perl
54354         location.  Don't update *.bak created by earlier runs.
54356 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54357             Simon Josefsson  <simon@josefsson.org>
54358             Bruno Haible  <bruno@clisp.org>
54360         Fix link error on Solaris 8.
54361         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
54362         also in libnsl. Define also INET_PTON_LIB.
54363         * modules/inet_pton (Link): New section.
54365 2009-11-02  Simon Josefsson  <simon@josefsson.org>
54366             Bruno Haible  <bruno@clisp.org>
54368         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
54369         * modules/inet_ntop (Link): New section.
54370         Reported by Boyan Kasarov <bkasarov@gmail.com>.
54372 2009-11-02  Eric Blake  <ebb9@byu.net>
54374         maint: avoid compiler warnings in m4 macros
54375         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
54376         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
54378 2009-11-02  Simon Josefsson  <simon@josefsson.org>
54380         * m4/pmccabe2html.m4: Remove file.
54381         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
54382         function.  Change maintainer.
54383         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
54384         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
54385         Courtès).
54387 2009-10-31  Eric Blake  <ebb9@byu.net>
54389         fseeko: fix m4 regression
54390         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
54391         regression from 2009-10-27.
54392         Reported by Ralf Wildenhues.
54394 2009-10-31  Jim Meyering  <meyering@redhat.com>
54396         inttostr: aesthetics and improved (compile-time) safety
54397         Define inttype_is_signed rather than inttype_is_unsigned,
54398         since the sole use is via "#if inttype_is_signed".
54399         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
54400         inttype_is_unsigned.
54401         * lib/offtostr.c (inttype_is_signed): Likewise.
54402         * lib/uinttostr.c (inttype_is_signed): Likewise.
54403         * lib/umaxtostr.c (inttype_is_signed): Likewise.
54404         * lib/inttostr.c (inttostr): Use verify to cross-check the
54405         inttype_is_signed value and the signedness of the actual type.
54406         * modules/inttostr (Depends-on): Add verify.
54408 2009-10-30  Eric Blake  <ebb9@byu.net>
54410         build: avoid compiler warnings
54411         * lib/fchmodat.c (lchmod): Mark unused variables.
54412         * lib/getopt.c (_getopt_initialize): Likewise.
54413         * lib/mktime.c (__mktime_internal): Provide prototype.
54414         * lib/inttostr.c (inttostr): Avoid compiler warning even with
54415         older gcc that do not understand #pragma GCC diagnostic.
54416         * lib/uinttostr.c (inttype_is_unsigned): Define.
54417         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
54419 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
54421         stat: fix compilation on AIX
54422         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
54423         only see struct stat64.
54425 2009-10-30  Eric Blake  <ebb9@byu.net>
54427         exclude: make more robust
54428         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
54429         rather than masking a coding bug.
54430         Suggested by Bruno Haible.
54432 2009-10-30  Jim Meyering  <meyering@redhat.com>
54434         perl scripts: remove #!/usr/bin/perl in favor of more portable...
54435         Rather than putting #!/usr/bin/perl on the first line,
54436         start with a variant of what's recommended by "man perlrun" that
54437         invokes the first "perl" program from your shell's search path.
54438         * build-aux/gitlog-to-changelog: Replace #!... as above.
54439         Add a "Local Variables" perl mode setting.
54440         Prompted by a patch from Ludovic Courtès.
54441         Improved by Eric Blake.
54442         * build-aux/useless-if-before-free: Likewise.
54443         * build-aux/announce-gen: Likewise.
54444         * build-aux/update-copyright: Likewise.
54446 2009-10-29  Eric Blake  <ebb9@byu.net>
54448         filenamecat-lgpl: adjust clients
54449         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
54450         filenamecat.
54451         * modules/renameat (Depends-on): Likewise.
54453         filenamecat: split into filenamecat-lgpl
54454         * modules/filenamecat-lgpl: New module.
54455         * modules/filenamecat (Files): Move library-safe files into
54456         filenamecat-lgpl.
54457         (Depends-on): Add filenamecat-lgpl.
54458         (configure.ac): Declare witness.
54459         * lib/filenamecat.h (file_name_concat): Only declare when using
54460         GPL module.
54461         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
54462         Move...
54463         * lib/filenamecat-lgpl.c: ...into new file.
54464         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
54465         (gl_FILE_NAME_CONCAT): Use it.
54466         * MODULES.html.sh (File system functions): Mention new module.
54468         argp: avoid memory leak
54469         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
54470         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
54471         base_name, since the latter malloc()s and can call exit().
54472         Leak introduced 2006-07-03.
54474         dirname-lgpl: adjust clients that don't need full dirname
54475         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
54476         * modules/filenamecat (Depends-on): Likewise.
54477         * modules/linkat (Depends-on): Likewise.
54478         * modules/mkancesdirs (Depends-on): Likewise.
54479         * modules/mkdir (Depends-on): Likewise.
54480         * modules/openat (Depends-on): Likewise.
54481         * modules/savewd (Depends-on): Likewise.
54482         * modules/rename (Depends-on): Likewise.
54483         (License): Relax license.
54484         * modules/mkdir-tests (Depends-on): Drop progname.
54485         (Makefile.am): Delete unneeded LDADD.
54486         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
54488         dirname: split into dirname-lgpl
54489         * modules/dirname-lgpl: New module.
54490         * modules/dirname (Files): Move library-safe files into
54491         dirname-lgpl.
54492         (Depends-on): Add dirname-lgpl.
54493         (configure.ac): Declare witness.
54494         * modules/double-slash-root (License): Relax license.
54495         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
54496         module.
54497         * lib/dirname.c (dir_len, mdir_name): Move...
54498         * lib/dirname-lgpl.c: ...into new file.
54499         * lib/basename.c (last_component, base_len): Move...
54500         * lib/basename-lgpl.c: ...into new file.
54501         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
54502         (gl_DIRNAME): Use it.
54503         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
54504         Mention new module.
54505         * modules/dirname-tests (Depends-on): Add progname.
54506         * tests/test-dirname.c (program_name): Delete.
54508         mkdir: make safe for libraries
54509         * modules/mkdir (Depends-on): Drop xalloc.
54510         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
54511         exit.
54513         tests: avoid some compiler warnings
54514         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
54515         literals.
54516         * tests/test-memchr.c (main): Avoid type mismatch.
54517         * tests/test-arpa_inet.c (main): Avoid unused parameters.
54518         * tests/test-base64.c (main): Likewise.
54519         * tests/test-getdelim.c (main): Likewise.
54520         * tests/test-gethostname.c (main): Likewise.
54521         * tests/test-getline.c (main): Likewise.
54522         * tests/test-netinet_in.c (main): Likewise.
54523         * tests/test-select.c (open_server_socket, main): Likewise.
54524         * tests/test-select-stdin.c (main): Likewise.
54525         * tests/test-sockets.c (main): Likewise.
54526         * tests/test-strsignal.c (main): Likewise.
54527         * tests/test-sys_select.c (main): Likewise.
54528         * tests/test-sys_socket.c (main): Likewise.
54529         * tests/test-u64.c (main): Likewise.
54530         * tests/test-xfprintf-posix.c (main): Likewise.
54531         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
54533         sockets: avoid compiler warning
54534         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
54536         maint: detect usage(1) and other suspicious exits
54537         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
54539 2009-10-29  Jim Meyering  <meyering@redhat.com>
54541         timespec: long-to-int truncation could make timespec_cmp malfunction
54542         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
54543         a multiple of 2^32 nanoseconds as no difference.
54545 2009-10-28  Jim Meyering  <meyering@redhat.com>
54547         fprintftime: wrap macro code argument in "do {...} while(0)"
54548         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
54549         cpy macro must be a statement that can be followed by a semicolon.
54550         Now that the else clause contains a comment and is hence longer
54551         than one line, I require curly braces.  That in turn requires
54552         that we wrap this code block in the standard do...while(0).
54554         fprintftime: remove stray semicolon from previous change
54555         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
54557         fprintftime: avoid a warning about ignored fwrite return value
54558         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
54559         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
54560         that is unsafe.
54561         * modules/fprintftime (Depends-on): Add ignore-value.
54563         exclude: avoid an unwarranted warning
54564         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
54566 2009-10-27  Eric Blake  <ebb9@byu.net>
54568         fseek: avoid compilation failure when fflush is replaced
54569         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
54570         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
54571         module is in use.
54572         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
54573         module is not in use; since REPLACE_FSEEK worked otherwise.
54574         (GNULIB_FTELLO): Likewise for ftell.
54575         Reported by Ian Beckwith and others.
54577 2009-10-27  Bruno Haible  <bruno@clisp.org>
54579         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
54580         Reported by Jim Meyering.
54582 2009-10-27  Jim Meyering  <jim@meyering.net>
54583             Bruno Haible  <bruno@clisp.org>
54585         Avoid warning despite dropping the return value of fwrite.
54586         * lib/unicodeio.c: Include ignore-value.h.
54587         (fwrite_success_callback): Explicitly ignore fwrite's return value.
54588         * modules/unicodeio (Depends-on): Add ignore-value.
54590 2009-10-26  Eric Blake  <ebb9@byu.net>
54592         areadlinkat: fix fallback path
54593         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
54594         pointer and zero.
54596 2009-10-22  Pádraig Brady  <P@draigBrady.com>
54598         Use a better IO block size for modern systems
54599         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
54600         * lib/md2.c: Likewise.
54601         * lib/md4.c: Likewise.
54602         * lib/md5.c: Likewise.
54603         * lib/sha1.c: Likewise.
54604         * lib/sha256.c: Likewise.
54605         * lib/sha512.c: Likewise.
54607 2009-10-22  Eric Blake  <ebb9@byu.net>
54609         tests: avoid several compiler warnings
54610         * tests/test-getcwd.c (main): Avoid buffer underflow.
54611         * tests/test-getdate.c (main): String literals are not safe with
54612         putenv, so use setenv.  Declare unused argument.
54613         * modules/getdate-tests (Depends-on): Add setenv.
54614         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
54615         problems with string literals in char *.
54616         * tests/test-hash.c (main): Avoid shadowing declaration.
54617         (insert_new): Treat string literals as char const *.
54618         * tests/test-getopt.h (test_getopt): Likewise.
54619         (getopt_loop): Alter types to minimize casting elsewhere.
54620         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
54621         (test_getopt_long_posix): Likewise.
54622         (do_getopt_long): Add wrapper to minimize casting.
54623         * tests/test-atexit.c (clear_temp_file): Use void.
54624         * tests/test-areadlink-with-size.c (main): Declare unused
54625         arguments.
54626         * tests/test-areadlink.c (main): Likewise.
54627         * tests/test-areadlinkat-with-size.c (main): Likewise.
54628         * tests/test-areadlinkat.c (main): Likewise.
54629         * tests/test-canonicalize-lgpl.c (main): Likewise.
54630         * tests/test-canonicalize.c (main): Likewise.
54631         * tests/test-dirent-safer.c (main): Likewise.
54632         * tests/test-dirname.c (main): Likewise.
54633         * tests/test-dup2.c (main): Likewise.
54634         * tests/test-fchdir.c (main): Likewise.
54635         * tests/test-fcntl-h.c (main): Likewise.
54636         * tests/test-fcntl-safer.c (main): Likewise.
54637         * tests/test-fdopendir.c (main): Likewise.
54638         * tests/test-fdutimensat.c (main): Likewise.
54639         * tests/test-fflush.c (main): Likewise.
54640         * tests/test-filenamecat.c (main): Likewise.
54641         * tests/test-filevercmp.c (main): Likewise.
54642         * tests/test-fopen-safer.c (main): Likewise.
54643         * tests/test-fopen.c (main): Likewise.
54644         * tests/test-fpending.c (main): Likewise.
54645         * tests/test-fpurge.c (main): Likewise.
54646         * tests/test-freading.c (main): Likewise.
54647         * tests/test-fstatat.c (main): Likewise.
54648         * tests/test-fsync.c (main): Likewise.
54649         * tests/test-futimens.c (main): Likewise.
54650         * tests/test-getndelim2.c (main): Likewise.
54651         * tests/test-gettimeofday.c (main): Likewise.
54652         * tests/test-getopt.c (main): Likewise.
54653         * tests/test-i-ring.c (main): Likewise.
54654         * tests/test-inttypes.c (main): Likewise.
54655         * tests/test-link.c (main): Likewise.
54656         * tests/test-lstat.c (main): Likewise.
54657         * tests/test-math.c (main): Likewise.
54658         * tests/test-md5.c (main): Likewise.
54659         * tests/test-memchr2.c (main): Likewise.
54660         * tests/test-memrchr.c (main): Likewise.
54661         * tests/test-mkdir.c (main): Likewise.
54662         * tests/test-mkdirat.c (main): Likewise.
54663         * tests/test-mkfifoat.c (main): Likewise.
54664         * tests/test-open.c (main): Likewise.
54665         * tests/test-openat-safer.c (main): Likewise.
54666         * tests/test-openat.c (main): Likewise.
54667         * tests/test-quotearg.c (main): Likewise.
54668         * tests/test-rawmemchr.c (main): Likewise.
54669         * tests/test-readlink.c (main): Likewise.
54670         * tests/test-remove.c (main): Likewise.
54671         * tests/test-rename.c (main): Likewise.
54672         * tests/test-renameat.c (main): Likewise.
54673         * tests/test-rmdir.c (main): Likewise.
54674         * tests/test-sha1.c (main): Likewise.
54675         * tests/test-signal.c (main): Likewise.
54676         * tests/test-sigaction.c (main): Likewise.
54677         * tests/test-stat.c (main): Likewise.
54678         * tests/test-stat-time.c (main): Likewise.
54679         * tests/test-stddef.c (main): Likewise.
54680         * tests/test-stdint.c (main): Likewise.
54681         * tests/test-stdio.c (main): Likewise.
54682         * tests/test-stdlib.c (main): Likewise.
54683         * tests/test-strchrnul.c (main): Likewise.
54684         * tests/test-strerror.c (main): Likewise.
54685         * tests/test-string.c (main): Likewise.
54686         * tests/test-strtod.c (main): Likewise.
54687         * tests/test-strverscmp.c (main): Likewise.
54688         * tests/test-symlink.c (main): Likewise.
54689         * tests/test-symlinkat.c (main): Likewise.
54690         * tests/test-sys_stat.c (main): Likewise.
54691         * tests/test-sys_time.c (main): Likewise.
54692         * tests/test-time.c (main): Likewise.
54693         * tests/test-unistd.c (main): Likewise.
54694         * tests/test-unlink.c (main): Likewise.
54695         * tests/test-unlinkat.c (main): Likewise.
54696         * tests/test-utimens.c (main): Likewise.
54697         * tests/test-utimensat.c (main): Likewise.
54698         * tests/test-version-etc.c (main): Likewise.
54699         * tests/test-wchar.c (main): Likewise.
54700         * tests/test-wctype.c (main): Likewise.
54701         * tests/test-xprintf-posix.c (main): Likewise.
54702         * tests/test-posixtm.c (main): Likewise.
54703         (STREQ): Delete unused macro.
54704         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
54705         shadowed variables.
54706         * tests/test-memchr.c (main): Likewise.
54708 2009-10-21  Eric Blake  <ebb9@byu.net>
54710         areadlinkat: avoid failure on older glibc
54711         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
54712         rather than mis-comparing 0 against FUNC_RESULT of char*.
54714 2009-10-21  Bruno Haible  <bruno@clisp.org>
54716         * modules/stpncpy (License): Relicense under LGPLv2+.
54717         Reported by David Lutterkort <lutter@redhat.com>.
54719 2009-10-20  Eric Blake  <ebb9@byu.net>
54721         utimensat: work around Solaris 9 bug
54722         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
54723         has trailing slash bugs.
54724         * tests/test-lutimens.h (test_lutimens): Enhance test.
54725         * tests/test-utimens.h (test_utimens): Likewise.
54726         * doc/posix-functions/utime.texi (utime): Enhance documentation.
54727         * doc/posix-functions/utimes.texi (utimes): Likewise.
54728         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
54729         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
54730         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
54731         * doc/posix-functions/futimens.texi (futimens): Likewise.
54733         fdutimensat: new module
54734         * modules/fdutimensat: New file.
54735         * lib/fdutimensat.c (fdutimensat): Likewise.
54736         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
54737         * MODULES.html.sh (File system functions): Mention module.
54738         * modules/fdutimensat-tests: New test.
54739         * tests/test-fdutimensat.c: Likewise.
54741         doc: regenerate INSTALL
54742         * doc/INSTALL: Reflect recent autoconf update.
54743         * doc/INSTALL.ISO: Likewise.
54744         * doc/INSTALL.UTF-8: Likewise.
54746 2009-10-20  Pádraig Brady  <P@draigBrady.com>
54748         acl: warn if ACL support is not detected
54749         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
54751 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
54753         * lib/nproc.h: Add extern "C" block for C++.
54755 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
54756             Bruno Haible  <bruno@clisp.org>
54758         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
54759         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
54760         * doc/posix-functions/isalpha.texi: Likewise.
54761         * doc/posix-functions/isblank.texi: Likewise.
54762         * doc/posix-functions/iscntrl.texi: Likewise.
54763         * doc/posix-functions/isdigit.texi: Likewise.
54764         * doc/posix-functions/isgraph.texi: Likewise.
54765         * doc/posix-functions/islower.texi: Likewise.
54766         * doc/posix-functions/isprint.texi: Likewise.
54767         * doc/posix-functions/ispunct.texi: Likewise.
54768         * doc/posix-functions/isspace.texi: Likewise.
54769         * doc/posix-functions/isupper.texi: Likewise.
54770         * doc/posix-functions/isxdigit.texi: Likewise.
54772 2009-10-18  Bruno Haible  <bruno@clisp.org>
54774         Tests for module 'isblank'.
54775         * modules/isblank-tests: New file.
54776         * tests/test-isblank.c: New file.
54778         New module 'isblank'.
54779         * lib/isblank.c: New file.
54780         * m4/isblank.m4: New file.
54781         * modules/isblank: New file.
54782         * doc/posix-functions/isblank.texi: Mention the new module.
54784 2009-10-18  Bruno Haible  <bruno@clisp.org>
54786         New module 'ctype'.
54787         * lib/ctype.in.h: New file.
54788         * m4/ctype.m4: New file.
54789         * modules/ctype: New file.
54790         * doc/posix-headers/ctype.texi: Mention the new module.
54792 2009-10-18  Jim Meyering  <meyering@redhat.com>
54794         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
54795         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
54796         right after its initialization, rather than farther down.
54797         Keeping these in close proximity makes it easier to ensure
54798         that each such variable is initialized.  E.g.,
54800             LIB_CLOCK_GETTIME=
54801             AC_SUBST([LIB_CLOCK_GETTIME])
54803         This change also increments these serial numbers.
54804         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
54805         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
54806         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54808 2009-10-18  Bruno Haible  <bruno@clisp.org>
54810         Don't let environment variables perturb build.
54811         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
54812         (gl_PREREQ_GETHRXTIME): ... not here.
54814 2009-10-18  Bruno Haible  <bruno@clisp.org>
54816         Avoid symlink attack in localcharset module.
54817         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
54818         (O_NOFOLLOW): Define fallback.
54819         (get_charset_aliases): Don't open the file if it is a symbolic link.
54820         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
54821         gl_FCNTL_H.
54822         (gl_FCNTL_H): Require it.
54823         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
54824         * modules/localcharset (Files): Add m4/fcntl_h.m4.
54825         Reported by Fergal Glynn <fglynn@veracode.com>.
54827 2009-10-18  Bruno Haible  <bruno@clisp.org>
54829         Implement nproc for mingw.
54830         * lib/nproc.c: Include <windows.h>
54831         (num_processors): On native Windows platforms, try GetSystemInfo.
54833 2009-10-18  Bruno Haible  <bruno@clisp.org>
54835         Implement nproc for IRIX.
54836         * lib/nproc.c: Include <sys/sysmp.h>.
54837         (num_processors): On IRIX systems, try sysmp.
54838         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
54840 2009-10-18  Bruno Haible  <bruno@clisp.org>
54842         Implement nproc for HP-UX.
54843         * lib/nproc.c: Include <sys/pstat.h>
54844         (num_processors): On HP-UX systems, try pstat_getdynamic.
54845         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
54846         pstat_getdynamic.
54848 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
54849             Bruno Haible  <bruno@clisp.org>
54851         Implement nproc for NetBSD, OpenBSD.
54852         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
54853         (ARRAY_SIZE): New macro.
54854         (num_processors): On BSD systems, try sysctl of HW_NCPU.
54855         * m4/nproc.m4: New file.
54856         * modules/nproc (Files): Add m4/nproc.m4.
54857         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
54858         (Makefile.am): Instead, augment lib_SOURCES.
54860 2009-10-18  Bruno Haible  <bruno@clisp.org>
54862         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
54863         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
54864         sys/param.h.
54866 2009-10-16  Eric Blake  <ebb9@byu.net>
54868         utimensat: new module
54869         * modules/utimensat: New file.
54870         * lib/utimensat.c (utimensat): Likewise.
54871         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
54872         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
54873         so we can work around Linux bugs.
54874         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
54875         * modules/sys_stat (Makefile.am): Substitute them.
54876         * lib/sys_stat.in.h (utimensat): Declare it.
54877         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
54878         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
54879         * modules/utimensat-tests: New test.
54880         * tests/test-utimensat.c: Likewise.
54882         utimens: let lutimens work on non-symlinks
54883         * lib/utimens.c (lutimens): Fall back to utimens rather than
54884         failing with ENOSYS, when file is not a symlink.
54885         (utimens): Reduce redirection.
54886         * tests/test-lutimens.h (test_lutimens): Update test to cover
54887         non-symlinks.
54888         * tests/test-utimens.h (test_utimens): Update test to cover
54889         symlinks.
54890         * tests/test-utimens.c (main): Update caller.
54892         utimens: cache whether utimensat syscall works
54893         * lib/utimens.c (utimensat_works_really): New cache variable.
54894         (fdutimens, lutimens): Use it to avoid failing syscall.
54896         test-stat-time, test-utimens: improve portability
54897         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
54898         ext4 on alpha, and for cygwin.
54899         * tests/test-utimens-common.h: New file.
54900         (nap): Factor delays into single function.
54901         * tests/test-lutimens.h (test_lutimens): Use new header.
54902         * tests/test-futimens.h (test_futimens): Likewise.
54903         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
54904         timestamps to occur from same machine, as was done previously for
54905         test_utimens.
54906         * modules/utimens-tests (Files): Ship new file.
54907         * modules/futimens-tests (Files): Likewise.
54908         Reported in part by Jim Meyering.
54910         sys_stat: sort replacement declarations
54911         * lib/sys_stat.in.h: Sort declarations.
54912         * lib/futimens.c (futimens): Fix typo.
54914 2009-10-15  Jim Meyering  <meyering@redhat.com>
54916         don't let environment settings perturb build
54917         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
54918         could cause a configure-time and/or build-time malfunction.
54919         Typically, a configure-time function-in-library test is performed
54920         via code like this:
54922           LIB_VAR=
54923           AC_SUBST([LIB_VAR])
54924           prefix_saved_LIBS=$LIBS
54925             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
54926                        [test "$ac_cv_search_FUNC" = "none required" ||
54927                         LIB_VAR=$ac_cv_search_FUNC])
54928           LIBS=$prefix_saved_LIBS
54930         However, in each of the files affected by this change, the LIB_VAR=
54931         initialization was omitted.  Thus, when set in the environment, its
54932         value would propagate into generated Makefiles when FUNC is not found
54933         in LIB_NAME.
54934         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
54935         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
54936         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54938 2009-10-14  Eric Blake  <ebb9@byu.net>
54940         fchdir: avoid infinite recursion in mingw
54941         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
54942         recursing.
54944         test-stat-time: port to mingw
54945         * tests/test-stat-time.c (force_unlink): Return a value.
54946         (test_ctime) [W32]: Fix compilation error.
54947         (nap): Don't call usleep with too large an argument.  Use
54948         force_unlink.
54949         * doc/pastposix-functions/usleep.texi (usleep): Document the
54950         portability issue.
54952 2009-10-13  Jim Meyering  <meyering@redhat.com>
54954         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
54955         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
54956         * modules/pipe-filter-ii: Likewise.
54957         * modules/sys_socket-tests: Likewise.
54958         * modules/tsearch-tests: Likewise.
54959         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
54960         (check): Depend on it.
54962 2009-10-12  Eric Blake  <ebb9@byu.net>
54964         utimens-tests: port to NFS file systems
54965         * tests/test-utimens.h (test_utimens): Refactor utimecmp
54966         comparisons to avoid spurious failures from timestamp drift
54967         between NFS machines.
54969 2009-10-12  Eric Blake  <ebb9@byu.net>
54971         stat-time-tests: minor cleanups
54972         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
54973         * tests/test-stat-time.c (nap): Separate assignment from call.
54974         Suggested by Paolo Bonzini and Bruno Haible.
54976         sys_stat: guarantee struct timespec
54977         * lib/sys_stat.in.h (includes): Always include <time.h>
54978         * modules/sys_stat (Depends-on): Add time.
54979         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
54980         mode_t permission values.
54981         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
54982         get at subsecond timestamps.
54984 2009-10-10  Eric Blake  <ebb9@byu.net>
54986         futimens: new module
54987         * modules/futimens: New file.
54988         * lib/futimens.c (futimens): Likewise.
54989         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
54990         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
54991         we can work around Linux bugs.
54992         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
54993         * modules/sys_stat (Makefile.am): Substitute them.
54994         * lib/sys_stat.in.h (futimens): Declare it.
54995         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
54996         * doc/posix-functions/futimens.texi (futimens): Likewise.
54997         * modules/futimens-tests: New test.
54998         * tests/test-futimens.c: Likewise.
55000         utimens: introduce fdutimens
55001         * lib/utimens.h (fdutimens): New prototype.
55002         * lib/utimens.c (gl_futimens): Move guts...
55003         (fdutimens): ...to new interface.
55004         * tests/test-utimens.c (do_fdutimens): Use it.
55006         utimens: add UTIME_NOW and UTIME_OMIT support
55007         * lib/utimens.c (validate_timespec, update_timespec): New helper
55008         functions.
55009         (gl_futimens, lutimens): Use them.
55010         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
55011         stdbool, sys_stat.
55012         (Link): Mention resulting library dependency.
55013         * modules/utimecmp (Link): Likewise.
55014         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
55015         (Makefile.am): Pick up library dependency.
55016         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
55017         definition.
55018         * tests/test-sys_stat.c: Test the definitions.
55019         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
55020         * NEWS: Document library dependency.
55022         utimecmp: support symlink timestamps
55023         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
55024         hashing when possible.  Use pathconf when available.
55025         (SYSCALL_RESOLUTION): Recognize tighter resolution.
55026         * modules/utimecmp (Depends-on): Add lstat.
55028         utimens: add lutimens interface
55029         * lib/utimens.c (lutimens): New function.
55030         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
55031         * lib/utimens.h (lutimens): Declare new interface.
55032         * tests/test-utimens.c (main): Enhance test.
55033         * tests/test-lutimens.h (test_lutimens): New file.
55034         * modules/utimens-tests (Files): Distribute it.
55035         (Depends-on): Add symlink.
55036         (configure.ac): Check for usleep.
55038         utimens: validate futimens usage
55039         * lib/utimens.c (gl_futimens): Require valid fd up front, using
55040         fewer syscalls on failure later on.  Avoid compiler warning on
55041         mingw.
55042         * modules/utimens (Depends-on): Add dup2.
55044         utimens: add test
55045         * modules/utimens-tests: New test.
55046         * tests/test-utimens.h: New file.
55047         * tests/test-futimens.h: Likewise.
55048         * tests/test-utimens.c: Likewise.
55050         doc: mention timestamp portability issues
55051         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
55052         instead.
55053         * doc/posix-functions/utime.texi (utime): Likewise.
55054         * doc/posix-functions/utimes.texi (utimes): Likewise.
55055         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
55056         instead.
55057         * doc/posix-functions/futimens.texi (futimens): Mention utimens
55058         module.
55059         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
55060         Mention weakness with symlink timestamps.
55061         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
55062         to utimensat/futimens instead.
55063         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
55065         test-dup2: enhance test
55066         * tests/test-dup2.c (main): Also check AT_FDCWD.
55068         test-stat-time: avoid more spurious failures
55069         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
55070         xfs; and avoid race if the two timestamps cross quantization edge.
55072         relocatable: prefer 'file system' over 'filesystem'
55073         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
55074         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
55075         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
55076         * doc/relocatable.texi (Enabling Relocatability): Likewise.
55077         * lib/relocatable.c (compute_curr_prefix): Likewise.
55079 2009-10-10  Jim Meyering  <meyering@redhat.com>
55081         stat-time-tests: check for the usleep function
55082         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
55084 2009-10-10  Bruno Haible  <bruno@clisp.org>
55086         * modules/xnanosleep: Put the Link section after the Include section.
55088 2009-10-09  Eric Blake  <ebb9@byu.net>
55090         dup2: work around FreeBSD 6.1 bug
55091         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
55092         * doc/posix-functions/dup2.texi (dup2): Document it.
55093         Reported by Nelson H. F. Beebe and Jim Meyering.
55095         test-stat-time: port to buggy NFS clients
55096         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
55097         (test_ctime): Also skip test if mtime and ctime are skewed.
55099         maint: prefer 'file system' over 'filesystem'
55100         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
55101         * doc/posix-functions/lstat.texi (lstat): Likewise.
55102         * lib/file-has-acl.c (file_has_acl): Likewise.
55103         * lib/fwriteerror.c [TEST]: Likewise.
55104         * tests/test-areadlink.h (test_areadlink): Likewise.
55105         * tests/test-areadlinkat-with-size.c (main): Likewise.
55106         * tests/test-areadlinkat.c (main): Likewise.
55107         * tests/test-canonicalize-lgpl.c (main): Likewise.
55108         * tests/test-canonicalize.c (main): Likewise.
55109         * tests/test-fstatat.c (main): Likewise.
55110         * tests/test-linkat.c (main): Likewise.
55111         * tests/test-lstat.h (test_lstat_func): Likewise.
55112         * tests/test-mkdir.h (test_mkdir): Likewise.
55113         * tests/test-readlink.h (test_readlink): Likewise.
55114         * tests/test-remove.c (main): Likewise.
55115         * tests/test-rename.h (test_rename): Likewise.
55116         * tests/test-renameat.c (main): Likewise.
55117         * tests/test-rmdir.h (test_rmdir_func): Likewise.
55118         * tests/test-symlink.h (test_symlink): Likewise.
55119         * tests/test-symlinkat.c (main): Likewise.
55120         * tests/test-unlink.h (test_unlink_func): Likewise.
55121         * tests/test-unlinkat.c (main): Likewise.
55123         maint: make realtime library usage explicit
55124         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
55125         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
55126         * modules/settime (Link): Likewise.
55127         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
55129         test-stat-time: speed up execution
55130         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
55131         warning on mingw.
55132         (nap): New helper function.
55133         (prepare_test): Use it to reduce sleep time.
55134         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
55135         execution.
55136         * modules/stat-time-tests (configure.ac): Check for usleep.
55138 2009-10-09  Jim Meyering  <meyering@redhat.com>
55140         selinux-h: always use getfilecon wrappers
55141         * lib/getfilecon.c: New file.
55142         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
55143         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
55144         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
55145         (fgetfilecon): Provide a stub.
55146         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
55147         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
55148         file unconditionally.
55149         When <selinux/selinux.h> is found, arrange to use wrappers.
55150         * modules/selinux-h (Files): Add getfilecon.c.
55151         (Makefile.am): Substitute include-next-related bits
55152         into the now-always-generated selinux/selinux.h file.
55153         * doc/glibc-functions/lgetfilecon.texi: New file.
55154         * doc/glibc-functions/fgetfilecon.texi: New file.
55155         * doc/glibc-functions/getfilecon.texi: New file.
55156         * doc/glibc-functions/getfilecon-desc.texi: New file.
55157         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
55158         which to pull in the new files.
55159         * MODULES.html.sh (Misc): Add selinux-h.
55161 2009-10-08  Jim Meyering  <meyering@redhat.com>
55163         unistd: fix comment typo
55164         * lib/unistd.in.h (euidaccess): Fix a comment typo.
55166 2009-10-08  Eric Blake  <ebb9@byu.net>
55168         areadlink: use SIZE_MAX consistently
55169         * modules/areadlink (Depends-on): Add stdint.
55170         * modules/areadlink-with-size (Depends-on): Likewise.
55171         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
55172         gives NULL; drop sys/types, since unistd gives size_t; and add
55173         stdint for SIZE_MAX.
55174         (SIZE_MAX): Rely on headers.
55175         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
55176         and add stdint.
55177         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
55178         (SIZE_MAX): Likewise.
55179         (INITIAL_BUF_SIZE): Turn into enum.
55180         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
55182 2009-10-08  Jim Meyering  <meyering@redhat.com>
55184         areadlinkat: avoid compilation failure
55185         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
55186         Fix typo in comment.
55188 2009-10-07  Eric Blake  <ebb9@byu.net>
55190         areadlinkat-with-size: new module
55191         * modules/areadlinkat-with-size: New module.
55192         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
55193         * lib/areadlink.h (areadlinkat): Declare it.
55194         * MODULES.html.sh (File system functions): Mention it.
55195         * modules/areadlinkat-with-size-tests: New test.
55196         * tests/test-areadlinkat-with-size.c: New file.
55198         xreadlinkat: new module
55199         * modules/xreadlinkat: New module.
55200         * lib/xreadlinkat.c (xreadlinkat): New file.
55201         * lib/xreadlink.h (xreadlinkat): Declare it.
55202         * MODULES.html.sh (File system functions): Mention it.
55204         areadlinkat: new module
55205         * lib/at-func.c (FUNC_FAIL): New define.
55206         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
55207         * modules/areadlinkat: New module.
55208         * lib/linkat.c (areadlinkat): Move...
55209         * lib/areadlinkat.c (areadlinkat): ...to new file.
55210         * lib/areadlink.h (areadlinkat): Declare it.
55211         * modules/linkat (Depends-on): Add areadlinkat.
55212         * MODULES.html.sh (File system functions): Mention it.
55213         * modules/areadlinkat-tests: New test.
55214         * tests/test-areadlinkat.c: New file.
55216         areadlink, areadlink-with-size: add tests
55217         * modules/areadlink-tests: New test.
55218         * modules/areadlink-with-size-tests: Likewise.
55219         * tests/test-areadlink.h: New file.
55220         * tests/test-areadlink.c: Likewise.
55221         * tests/test-areadlink-with-size.c: Likewise.
55223         maint: minor cleanups
55224         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
55225         _UNUSED_PARAMETER_ instead.
55226         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
55227         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
55228         * modules/linkat-tests (Files): Distribute test-link.h.
55230         openat, utimens: whitespace cleanup
55231         * lib/openat.c: Prefer space throughout, rather than mix of 8
55232         spaces vs. tabs.
55233         * lib/at-func.c: Likewise.
55234         * lib/utimens.c: Likewise.
55236         openat: avoid using wrong fd
55237         * lib/openat.c (openat_permissive): Reject user's fd if saving the
55238         working directory chooses same fd.
55239         * lib/at-func.c (AT_FUNC_NAME): Likewise.
55241         mkdir, mkdirat: fix cygwin 1.5.x bug
55242         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
55243         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
55244         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
55245         bug.
55246         (gl_PREREQ_MKDIR): Delete unused macro.
55247         * modules/mkdir (Files): Track file rename.
55248         (configure.ac): Update macro name.
55249         * modules/openat (Depends-on): Add mkdir.
55250         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
55252         mkdir, mkdirat: add tests
55253         * modules/mkdir-tests: New test.
55254         * tests/test-mkdir.h: New file.
55255         * tests/test-mkdir.c: Likewise.
55256         * tests/test-mkdirat.c: Likewise.
55257         * modules/openat-tests (Files): Add new files.
55258         (Makefile.am): Run new test.
55260 2009-10-06  Eric Blake  <ebb9@byu.net>
55262         doc: tweak *at function documentation
55263         * doc/posix-functions/faccessat.texi (faccessat): Mention
55264         known issue with replacement.
55265         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
55266         * doc/posix-functions/linkat.texi (linkat): Likewise.
55267         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
55268         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
55269         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
55270         * doc/posix-functions/renameat.texi (renameat): Likewise.
55271         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
55273         openat: fix GNU/Hurd bug in unlinkat
55274         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
55275         broken.
55276         * doc/posix-functions/unlink.texi (unlink): Document this.
55277         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
55279         fdopendir: fix GNU/Hurd bug
55280         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
55281         allowing non-directory fds.
55282         * lib/fdopendir.c (rpl_fdopendir): Work around it.
55283         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
55284         * modules/dirent (Makefile.am): Substitute it.
55285         * lib/dirent.in.h (fdopendir): Declare replacement.
55286         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
55287         * tests/test-fdopendir.c (main): Test something other than
55288         /dev/null, since on Hurd that behaves like a directory.
55290         test-symlink: port to GNU/Hurd
55291         * tests/test-symlink.h (test_symlink): Relax expected errno.
55293         doc: tweak more cygwin information
55294         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
55295         now compatible with glibc.
55296         * doc/posix-functions/getopt.texi (getopt): Likewise.
55298         getopt-gnu: add another test
55299         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
55300         guarantee behavior relied on by m4.
55301         * tests/test-getopt.c (main): Use it.
55302         * modules/getopt-posix-tests (Depends-on): Add setenv.
55303         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
55305         getopt: fix compilation on darwin
55306         * lib/getopt.in.h (includes): Leave breadcrumbs during system
55307         include.
55308         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
55309         Reported by Ludovic Courtès.
55311 2009-10-06  Bruno Haible  <bruno@clisp.org>
55313         * modules/size_max (Description): Discourage its use.
55314         Reported by Simon Josefsson.
55316 2009-10-06  Jim Meyering  <meyering@redhat.com>
55318         linkat: avoid compilation failure
55319         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
55321 2009-10-05  Eric Blake  <ebb9@byu.net>
55323         linkat: support Linux 2.6.17
55324         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
55325         linkat on Linux, but allow cache variable override.
55326         * lib/linkat.c (rpl_linkat): Define override.
55327         * modules/linkat (Depends-on): Add symlinkat.
55328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
55329         * modules/unistd (Makefile.am): Substitute it.
55330         * lib/unistd.in.h (linkat): Declare replacement.
55331         Reported by Pádraig Brady.
55333         quotearg: port test to systems with C.UTF-8 locale
55334         * tests/test-quotearg.c (struct result_strings): Add another
55335         member, differentiating between C.ASCII and C.UTF-8 handling.
55336         (compare_strings): Add parameter.
55337         (main): Adjust all callers.
55339         getopt: avoid clash with FreeBSD _getopt_internal
55340         * lib/getopt.in.h (_getopt_internal): Override the name.
55341         * lib/getopt_int.h (includes): Pick up any overrides.
55342         Reported by Reuben Thomas.
55344         hash: allow C89 compilation
55345         * lib/hash.c (check_tuning): Move declaration before statement.
55346         Reported by Reuben Thomas.
55348 2009-10-05  Karl Berry  <karl@gnu.org>
55350         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
55352 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
55353             Bruno Haible  <bruno@clisp.org>
55355         * lib/uname.c (uname): Use a table-driven algorithm to compute
55356         Windows NT versions.
55358 2009-10-04  Bruno Haible  <bruno@clisp.org>
55360         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
55361         program_invocation_short_name.
55362         * modules/progname (configure.ac): Test for presence of
55363         program_invocation_short_name.
55364         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
55366 2009-10-04  Bruno Haible  <bruno@clisp.org>
55368         * lib/progname.c (set_program_name): Fix comment.
55369         Reported by Jim Meyering.
55371 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
55372             Bruno Haible  <bruno@clisp.org>
55374         * lib/uname.c: Include <string.h>.
55375         (uname): Do only one call to GetVersionEx in the common case.
55377 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
55378             Bruno Haible  <bruno@clisp.org>
55380         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
55381         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
55382         (uname): Add support for Windows CE and various non-x86 CPU types.
55384 2009-10-03  Bruno Haible  <bruno@clisp.org>
55386         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
55387         invocation to tests/configure.ac.
55388         Reported by Ian Beckwith <ianb@erislabs.net>.
55390 2009-10-02  Eric Blake  <ebb9@byu.net>
55392         fchdir: avoid compiler warning
55393         * lib/fchdir.c (canonicalize_file_name)
55394         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
55396         test-open: support mingw errno values
55397         * tests/test-open.h (test_open): Relax test.
55398         * tests/test-fopen.h (test_fopen): Likewise.
55399         * tests/test-openat-safer.c (main): Likewise.
55401         open: fix opening directory on mingw
55402         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
55404         test-open: on GNU/Hurd, /dev/null is a directory
55405         * tests/test-fopen.h (main): Rename...
55406         (test_fopen): ...to this.  Use a guaranteed non-directory when
55407         confirming open behavior on trailing slash.
55408         * tests/test-openat-safer.c (main): Likewise.
55409         * tests/test-open.h (main): Likewise....
55410         (test_open): ...to this.
55411         * tests/test-fopen.c (main): Adjust caller.
55412         * tests/test-fopen-safer.c (main): Likewise.
55413         * tests/test-open.c (main): Likewise.
55414         * tests/test-fcntl-safer.c (main): Likewise.
55415         Reported by Samuel Thibault.
55417         rename, fchdir: don't ignore chdir failure
55418         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
55419         * lib/rename.c (rpl_rename) [W32]: Likewise.
55420         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
55421         an empty destination directory if source cannot be renamed,
55422         although there is still possibility for failure.
55423         * doc/posix-functions/rename.texi (rename): Document the race.
55424         Reported by Jim Meyering.
55426         maint: cleanup whitespace in recent commits
55427         * lib/rename.c (rpl_rename): Remove tabs.
55428         * tests/test-link.h (test_link): Likewise.
55429         * lib/fchdir.c (get_name): Likewise.
55430         Reported by Jim Meyering.
55432 2009-10-02  Ben Pfaff  <blp@gnu.org>
55434         relocatable-prog-wrapper: Add missing dependency on
55435         double-slash-root.
55436         * modules/relocatable-prog-wrapper: Add dependency.
55437         Reported by Ian Beckwith <ianb@erislabs.net>.
55439 2009-10-02  Eric Blake  <ebb9@byu.net>
55441         renameat: fix Solaris bugs
55442         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
55443         needed fixing.
55444         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
55445         * modules/stdio (Makefile.am): Substitute it.
55446         * lib/stdio.in.h (renameat): Declare replacement.
55447         * lib/renameat.c (rpl_renameat): Implement fix.
55449         renameat: new module
55450         * modules/renameat: New file.
55451         * lib/renameat.c (renameat): Likewise.
55452         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
55453         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
55454         * modules/stdio (Makefile.am): Substitute them.
55455         * lib/stdio.in.h (renameat): Declare it.
55456         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
55457         * doc/posix-functions/renameat.texi (renameat): Likewise.
55458         * modules/renameat-tests: New test.
55459         * tests/test-renameat.c: Likewise.
55461         rename: fix mingw bugs
55462         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
55463         directory overwrite bugs.
55465         rename: fix another cygwin 1.5 bug
55466         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
55467         checks.
55468         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
55469         unnecessary cygwin workarounds.  Also work around bug with moving
55470         full directory onto an empty one.
55471         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
55473         rename-dest-slash: merge into rename module
55474         * modules/rename-dest-slash (Status): Mark obsolete.
55475         (Depends-on): Add rename.
55476         (Files): Let rename do it all.
55477         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
55478         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
55479         * m4/rename-dest-slash.m4: ...so this file can be deleted.
55480         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
55481         * lib/rename.c (rpl_rename): Update comments.
55483         rename: fix cygwin 1.5.x bugs
55484         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
55485         * lib/rename.c (rpl_rename): Work around them.
55486         * modules/rename (Depends-on): Add same-inode.
55488         rename: fix Solaris 10 bug
55489         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
55490         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
55491         was the only bug.
55493         rename: fix Solaris 9 bug
55494         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
55495         on non-directory.  Avoid calling exit.
55496         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
55497         strdup.
55498         * modules/rename-tests (Depends-on): Drop lstat.
55499         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
55500         (gl_PREREQ_RENAME): Delete unused macro.
55502         rename-dest-slash: fix NetBSD bug
55503         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
55504         links.
55505         * modules/rename-dest-slash (Depends-on): Add same-inode.
55507         rename-tests: new test, exposes several platform bugs
55508         * modules/rename-tests: New file.
55509         * tests/test-rename.h: Likewise.
55510         * tests/test-rename.c: Likewise.
55511         * doc/posix-functions/rename.texi (rename): Improve documentation,
55512         including bugs that will eventually be fixed in gnulib.
55514 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
55516         * lib/uname.c: Include <stdlib.h>
55517         (uname): Assume version info is available.
55519 2009-10-02  Jim Meyering  <meyering@redhat.com>
55521         gnu-web-doc-update: correct --help output
55522         * build-aux/gnu-web-doc-update: Make --help output relevant.
55524         gnu-web-doc-update: add standard options
55525         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
55527         gnu-web-doc-update: New module.
55528         Use this script to automatically update the on-line web documentation
55529         for your GNU project at http://www.gnu.org/software/$pkg/manual/
55530         * modules/gnu-web-doc-update: New file, from coreutils.
55531         * build-aux/gnu-web-doc-update: New script.
55533 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
55535         link: LoadLibrary is not needed.
55536         * lib/link.c: Use GetModuleHandle.
55538 2009-10-01  Eric Blake  <ebb9@byu.net>
55540         getopt: bump serial number
55541         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
55542         change.
55544         tests: tighten link, rmdir, and remove tests
55545         * tests/test-link.h (includes): No need to use <config.h> here.
55546         Clean up if directory hard link was created, otherwise test for
55547         trailing '.'.
55548         * tests/test-linkat.c (main): Simplify.
55549         * tests/test-remove.c (main): Enhance test for trailing '.'.
55550         * tests/test-rmdir.h (test_rmdir_func): Likewise.
55552 2009-10-01  Jim Meyering  <meyering@redhat.com>
55554         maint.mk: requiring "make major" was annoying, for a "minor" release.
55555         What is intended is "stable", to contrast with alpha and beta,
55556         so require "make stable", not "make major".
55557         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
55558         (get_tool_versions): Likewise.
55559         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
55561 2009-09-30  Ben Pfaff  <blp@gnu.org>
55563         Fix broken build of replacement for Windows tmpfile().
55564         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
55565         flags argument added along with the 'mkostemp' module.
55567 2009-09-28  Bruno Haible  <bruno@clisp.org>
55569         Avoid identifier clash with POSIX function 'remove' defined as a macro.
55570         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
55571         to 'remove_elt'.
55572         (gl_list_remove): Update.
55573         * lib/gl_list.c (gl_list_remove): Update.
55574         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
55575         to 'remove_elt'.
55576         (gl_oset_remove): Update.
55577         * lib/gl_list.c (gl_oset_remove): Update.
55578         Reported by Eric Blake.
55580 2009-09-28  Eric Blake  <ebb9@byu.net>
55582         doc: mention yet more cygwin 1.7 status
55583         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
55584         cygwin.
55585         * doc/glibc-functions/execvpe.texi (execvpe): New file.
55586         * doc/gnulib.texi (Glibc unistd.h): Mention it.
55588         argp: fix test failure
55589         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
55590         that are not upper-case.  Pass correct range to tolower.
55592 2009-09-27  Jim Meyering  <meyering@redhat.com>
55594         test-yesno: work around sparc-dash here-document infelicity
55595         Without this change, the literal \177 byte in a here document
55596         would make dash 0.5.5.1-3 access uninitialized memory.
55597         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
55598         Instead, use a marker, "@", and filter through tr to create the desired
55599         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
55601 2009-09-27  Bruno Haible  <bruno@clisp.org>
55603         Disable untested support for new flavours of ACLs on AIX.
55604         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
55605         progress.
55606         * lib/set-mode-acl.c (qset_acl): Likewise.
55608 2008-12-07  Bruno Haible  <bruno@clisp.org>
55610         Add support for new flavours of ACLs on AIX. (Untested.)
55611         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
55612         (file_has_acl): Add support for newer AIX.
55613         * lib/set-mode-acl.c (qset_acl): Likewise.
55614         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
55615         Rainer Tammer <tammer@tammer.net>.
55617 2009-09-26  Eric Blake  <ebb9@byu.net>
55619         argp: fix compilation of getopt
55620         * lib/getopt.in.h (includes): Use different guard than glibc.
55621         Reported by Sergey Poznyakoff.
55623         doc: mention more cygwin 1.7 status
55624         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
55625         bug.
55626         * doc/posix-functions/execl.texi (execl): Likewise.
55627         * doc/posix-functions/execle.texi (execle): Likewise.
55628         * doc/posix-functions/execlp.texi (execlp): Likewise.
55629         * doc/posix-functions/execv.texi (execv): Likewise.
55630         * doc/posix-functions/execve.texi (execve): Likewise.
55631         * doc/posix-functions/execvp.texi (execvp): Likewise.
55632         * doc/glibc-functions/canonicalize_file_name.texi
55633         (canonicalize_file_name): Cygwin 1.7 now provides this.
55634         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
55635         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
55636         on AT_SYMLINK_NOFOLLOW.
55638 2009-09-24  Eric Blake  <ebb9@byu.net>
55640         test-linkat: make test more robust
55641         * tests/test-linkat.c (main): Avoid collision with EEXIST.
55643         getopt: fix inclusion guards for cygwin
55644         * modules/getopt-posix (Depends-on): Add include-next.
55645         (Makefile.am): Substitute more items in replacement header.
55646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
55647         <getopt.h>.
55648         * lib/getopt.in.h (includes): Use split inclusion guard, and
55649         prefer <getopt.h> over include <unistd.h> when one is present.
55650         (option): Also override name of 'struct option'.
55652         same-inode: revert prior change; it is not yet ready
55653         * NEWS: Undo mention of this change.
55654         * lib/same-inode.h (same-inode.h): Undo tri-state change.
55655         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
55656         * lib/cycle-check.c (cycle_check): Likewise.
55657         * lib/same.c (same_name): Likewise.
55658         * lib/at-func2.c (at_func2): Likewise.
55660 2009-09-23  Eric Blake  <ebb9@byu.net>
55662         linkat: new module
55663         * modules/linkat: New file.
55664         * lib/at-func2.c (at_func2): Likewise.
55665         * lib/linkat.c (linkat): Likewise.
55666         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
55667         * lib/openat-priv.h (at_func2): Add declaration.
55668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
55669         * modules/unistd (Makefile.am): Substitute them.
55670         * lib/unistd.in.h (linkat): Declare it.
55671         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
55672         * doc/posix-functions/linkat.texi (linkat): Likewise.
55673         * doc/posix-functions/link.texi (link): Tweak wording.
55674         * tests/test-link.c (main): Move guts...
55675         * tests/test-link.h (test_link): ...into new file.
55676         * modules/linkat-tests: New test.
55677         * tests/test-linkat.c: Likewise.
55678         * modules/link-tests (Files): Ship new file.
55679         (Depends-on): Add stdbool.
55681         dirname: add library-safe mdir_name
55682         * lib/dirname.h (mdir_name): New prototype.
55683         * lib/dirname.c (dir_name): Move guts...
55684         (mdir_name): ...to new function that avoids xalloc_die.
55686         fchdir: another mingw fix
55687         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
55688         * lib/fchdir.c (get_name): New helper method; skips canonicalize
55689         on mingw (where it has not yet been ported), and make it optional
55690         elsewhere.
55691         (_gl_register_fd): Use it.
55693         same-inode: make SAME_INODE tri-state, to port to mingw
55694         * NEWS: Mention this change.
55695         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
55696         st_ino always being 0.
55697         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
55698         * lib/cycle-check.c (cycle_check): Likewise.
55699         * lib/same.c (same_name): Likewise.
55701         lstat: avoid mingw compilation error
55702         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
55703         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
55704         lstat ourselves.
55705         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
55706         was adequate.
55707         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
55708         the checks for lstat.
55709         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
55711         link: fix test failure on Solaris 9
55712         * lib/link.c (rpl_link): Don't assume link will catch bogus
55713         trailing slash on source.
55715         test-symlinkat: enhance test
55716         * tests/test-readlink.c (main): Move guts...
55717         * tests/test-readlink.h (test_readlink): ...into new file.
55718         * tests/test-symlink.c (main): Move guts...
55719         * tests/test-symlink.h (test_symlink): ...into new file.
55720         * tests/test-symlinkat.c (main): Use new files for further
55721         coverage.
55722         (do_symlink, do_readlink): New helper functions.
55723         * modules/symlink-tests (Files): Ship new file.
55724         (Depends-on): Add stdbool.
55725         * modules/readlink-tests (Files): Ship new file.
55726         (Depends-on): Add stdbool.
55727         * modules/symlinkat-tests (Files): Use new files.
55729 2009-09-23  Eric Blake  <ebb9@byu.net>
55731         readlink: document portability issue with symlink length
55732         * doc/posix-functions/lstat.texi (lstat): Mention that some file
55733         systems have bogus st_size on symlinks, and mention the
55734         areadlink-with-size module.
55735         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
55736         * doc/posix-functions/readlink.texi (readlink): Mention the
55737         areadlink module, and ERANGE failure.
55738         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
55739         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
55741         readlink: fix Solaris 9 bug with trailing slash
55742         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
55743         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
55744         * doc/posix-functions/readlink.texi (readlink): Document this.
55745         * modules/readlink-tests: New test.
55746         * tests/test-readlink.c: Likewise.
55748         readlink: fix cygwin 1.5.x bug with return type
55749         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
55750         * lib/unistd.in.h (readlink): Use ssize_t.
55751         * lib/readlink.c (readlink): Likewise.
55752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
55753         * modules/unistd (Makefile.am): Substitute it.
55754         * lib/unistd.in.h (readlink): Declare replacement.
55755         * doc/posix-functions/readlink.texi (readlink): Document this.
55757         symlink: use throughout gnulib
55758         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
55759         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
55760         symlink is not used.
55761         * modules/symlinkat (Depends-on): Add symlink.
55762         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
55763         * modules/canonicalize-tests (Depends-on): Likewise.
55764         * modules/lstat-tests (Depends-on): Likewise.
55765         * modules/openat-tests (Depends-on): Likewise.
55766         * modules/remove-tests (Depends-on): Likewise.
55767         * modules/rmdir-tests (Depends-on): Likewise.
55768         * modules/unlink-tests (Depends-on): Likewise.
55769         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
55770         * tests/test-canonicalize.c (symlink): Likewise.
55771         * tests/test-fstatat.c (symlink): Likewise.
55772         * tests/test-lstat.c (symlink): Likewise.
55773         * tests/test-remove.c (symlink): Likewise.
55774         * tests/test-rmdir.c (symlink): Likewise.
55775         * tests/test-unlink.c (symlink): Likewise.
55776         * tests/test-unlinkat.c (symlink): Likewise.
55778         symlink: new module, for Solaris 9 bug
55779         * modules/symlink: New file.
55780         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
55781         * lib/symlink.c: Likewise.
55782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
55783         * modules/unistd (Makefile.am): Substitute them.
55784         * lib/unistd.in.h (symlink): Declare replacement.
55785         * MODULES.html.sh (File system functions): Mention it.
55786         * doc/posix-functions/symlink.texi (symlink): Likewise.
55787         * modules/symlink-tests: New test.
55788         * tests/test-symlink.c: Likewise.
55790 2009-09-23  Bruno Haible  <bruno@clisp.org>
55792         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
55793         when needed.
55794         Test case: gnulib-tool --import --with-tests atexit inttypes.
55795         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
55797 2009-09-23  Bruno Haible  <bruno@clisp.org>
55799         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
55800         subcommand, not in a subshell.
55802 2009-09-22  Eric Blake  <ebb9@byu.net>
55804         unistd: sort replacement declarations
55805         * lib/unistd.in.h: Sort declarations.
55807         open, openat: minor optimization
55808         * lib/open.c (open): If open succeeded, len is non-zero.
55809         * lib/openat.c (rpl_openat): Likewise.
55811         link-follow: ensure correct result
55812         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
55813         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
55814         distinguish between possible failures.
55816 2009-09-21  Eric Blake  <ebb9@byu.net>
55818         fts: avoid compiler warning
55819         * lib/fts.c (dirent_inode_sort_may_be_useful)
55820         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
55822 2009-09-19  Bruno Haible  <bruno@clisp.org>
55824         * lib/progreloc.c (canonicalize_file_name): New declaration.
55826 2009-09-19  Eric Blake  <ebb9@byu.net>
55828         link: fix quoting
55829         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
55831         openat: fix openat bugs on Solaris 9
55832         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
55833         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
55834         * modules/openat (Depends-on): Add open.
55835         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
55836         * modules/fcntl-h (Makefile.am): Substitute it.
55837         * lib/fcntl.in.h (openat): Declare replacement.
55838         * doc/posix-functions/openat.texi (openat): Document this.
55840         openat: move fstatat and unlinkat into correct files
55841         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
55842         compiled.
55843         * lib/openat.c (fstatat, unlinkat): Move...
55844         * lib/fstatat.c (fstatat): ...into correct files.
55845         * lib/unlinkat.c (unlinkat): Likewise.
55847         openat: fix unlinkat bugs on Solaris 9
55848         * lib/unlinkat.c (unlinkat): New file.
55849         * modules/openat (Depends-on): Add unlink.
55850         (Files): Distribute it.
55851         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
55852         trailing slash behavior is broken.
55853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
55854         * modules/unistd (Makefile.am): Substitute it.
55855         * lib/unistd.in.h (unlinkat): Declare replacement.
55856         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
55858         openat: fix fstatat bugs on Solaris 9
55859         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
55860         stat.
55861         * doc/posix-functions/fstatat.texi (fstatat): Document this.
55863         test-unlinkat: enhance test, to expose Solaris 9 bug
55864         * tests/test-unlink.c (main): Factor guts...
55865         * tests/test-unlink.h (test_rmdir_func): ...into new file.
55866         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
55867         * tests/test-rmdir.c (main): Adjust caller.
55868         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
55869         (unlinker): New helper function.
55870         (rmdirat): Enhance check.
55871         * modules/rmdir-tests (Depends-on): Add stdbool.
55872         * modules/unlink-tests (Depends-on): Likewise.
55873         (Files): Add test-unlink.h.
55874         * modules/openat-tests (Files): Likewise.
55875         (Depends-on): Add unlinkdir.
55877         test-fstatat: new test, to expose Solaris 9 bugs
55878         * tests/test-stat.c (main): Factor guts...
55879         * tests/test-stat.h (test_stat_func): ...into new file.
55880         * tests/test-lstat.c (main): Factor guts...
55881         * tests/test-lstat.h (test_lstat_func): ...into new file.
55882         * tests/test-fstatat.c: New file.
55883         * modules/stat-tests (Files): Add test-stat.h.
55884         * modules/lstat-tests (Files): Add test-lstat.h.
55885         (Depends-on): Add stdbool.
55886         * modules/openat-tests (Depends-on): Add pathmax.
55887         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
55888         (Makefile.am): Run new test.
55890         remove: new module, for mingw and Solaris 9 bugs
55891         * modules/remove: New file.
55892         * lib/remove.c: Likewise.
55893         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
55894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
55895         * modules/stdio (Makefile.am): Use them.
55896         * lib/stdio.in.h (remove): Declare replacement.
55897         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
55898         * doc/posix-functions/remove.texi (remove): Likewise.
55899         * modules/remove-tests: New test.
55900         * tests/test-remove.c: Likewise.
55902         unlink: new module, for Solaris 9 bug
55903         * modules/unlink: New file.
55904         * lib/unlink.c: Likewise.
55905         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
55906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
55907         * modules/unistd (Makefile.am): Use them.
55908         * lib/unistd.in.h (stat): Declare replacement.
55909         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
55910         * doc/posix-functions/unlink.texi (unlink): Likewise.
55911         * modules/unlink-tests: New test.
55912         * tests/test-unlink.c: Likewise.
55914         lstat: fix Solaris 9 bug
55915         * lib/lstat.c (lstat): Also check for trailing slash on
55916         non-symlink, non-directories.  Use stat module to simplify logic.
55917         * doc/posix-functions/lstat.texi (lstat): Document it.
55918         * modules/lstat-tests (Depends-on): Add errno, same-inode.
55919         (configure.ac): Check for symlink.
55920         * tests/test-lstat.c (main): Add more tests.
55922         stat: add as dependency to other modules
55923         * modules/chown (Depends-on): Add stat.
55924         * modules/euidaccess (Depends-on): Likewise.
55925         * modules/fchdir (Depends-on): Likewise.
55926         * modules/isdir (Depends-on): Likewise.
55927         * modules/link (Depends-on): Likewise.
55928         * modules/lstat (Depends-on): Likewise.
55929         * modules/mkdir-p (Depends-on): Likewise.
55930         * modules/modechange (Depends-on): Likewise.
55931         * modules/open (Depends-on): Likewise.
55932         * modules/readlink (Depends-on): Likewise.
55933         * modules/same (Depends-on): Likewise.
55935         stat: fix Solaris 9 bug
55936         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
55937         slash.
55938         * lib/stat.c (rpl_stat): Work around it.
55939         * doc/posix-functions/stat.texi (stat): Update documentation.
55941         stat: new module, for mingw bug
55942         * modules/stat: New file.
55943         * lib/stat.c: Likewise.
55944         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
55945         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
55946         * modules/sys_stat (Makefile.am): Use them.
55947         * lib/sys_stat.in.h (stat): Declare replacement.
55948         * lib/openat.c (fstatat): Deal with lstat and stat being function
55949         macros.
55950         * modules/openat (Depends-on): Add inline.
55951         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
55952         * doc/posix-functions/stat.texi (stat): Likewise.
55953         * modules/stat-tests: New test.
55954         * tests/test-stat.c: Likewise.
55956 2009-09-19  Jim Meyering  <meyering@redhat.com>
55958         syntax-check: detect unnecessary inclusion of canonicalize.h
55959         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
55961 2009-09-19  Eric Blake  <ebb9@byu.net>
55963         canonicalize-lgpl: adjust clients to use correct header
55964         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
55965         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
55966         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
55967         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
55968         * lib/progreloc.c (includes): Likewise.
55970 2009-09-19  Jim Meyering  <meyering@redhat.com>
55972         test-posixtm.c: correct a comment
55973         * tests/test-posixtm.c: Correct first-line comment.
55974         Spotted by Eric Blake.
55976 2009-09-16  Jim Meyering  <meyering@redhat.com>
55978         posixtm-tests: make T const-correct; add a test case
55979         * tests/test-posixtm.c (T): Declare const.
55980         Add a test for -(2^31+1).
55981         Remove useless can-succeed-only-in-2002 test.
55983         posixtm-tests: adjust the sole failing test
55984         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
55985         expected output matches what mktime now produces.  Cross-checked via
55986         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
55988         posixtm: move #ifdef'd tests into a new module
55989         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
55990         * tests/test-posixtm.c: ... this new file.
55991         * modules/posixtm-tests: New module.
55993 2009-09-19  Eric Blake  <ebb9@byu.net>
55995         openat: simplify use of at-func.c
55996         * lib/at-func.c (includes): Include prerequisites here, to
55997         simplify requirements on client files.
55998         * lib/openat-priv.h: Add double-inclusion guard.
55999         * lib/faccessat.c (includes): Simplify.
56000         * lib/fchmodat.c (includes): Likewise.
56001         * lib/fchownat.c (includes): Likewise.
56002         * lib/mkdirat.c (includes): Likewise.
56003         * lib/mkfifoat.c (includes): Likewise.
56004         * lib/symlinkat.c (includes): Likewise.
56006         openat: allow return of fd 0
56007         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
56008         * modules/save-cwd (Depends-on): Replace fcntl-safer with
56009         unistd-safer.
56010         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
56011         <fcntl.h>; this module does not leak fds.
56012         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
56013         must be allowed to return 0, leaving openat_safer to add the
56014         safety.
56015         (openat_permissive): Avoid writing to just-opened fd 2 if
56016         restoring the current directory fails.
56017         * lib/openat-die.c (openat_restore_fail): Add comment.
56018         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
56019         (save_cwd): Guarantee safe fd, but without use of open_safer.
56020         * tests/test-openat.c: New test.
56021         * modules/openat-tests (Files, Makefile.am): Distribute and build
56022         new file.
56024         relocatable-prog-wrapper: fix build
56025         * modules/relocatable-prog-wrapper (Files): Update name of
56026         canonicalize m4 file, broken on 2009-09-17.
56027         Reported by emad hajjar <aleppos@hotmail.com>.
56029 2009-09-19  Bruno Haible  <bruno@clisp.org>
56031         * lib/safe-alloc.h: Use the standard header with GPL copyright.
56032         * lib/safe-alloc.c: Likewise.
56033         Reported by Ian Beckwith <ianb@erislabs.net>.
56035 2009-09-18  Bruno Haible  <bruno@clisp.org>
56037         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
56038         Reported by <erobles@sensacd.com.mx>.
56040 2009-09-17  Eric Blake  <ebb9@byu.net>
56042         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
56043         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
56044         slashes when checking if last component is missing.
56045         * tests/test-canonicalize.c (main): Test this.
56047         canonicalize, canonicalize-lgpl: honor // if distinct from /
56048         * modules/canonicalize (Files): Add double-slash-root.m4.
56049         * modules/canonicalize-lgpl (Files): Likewise.
56050         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
56051         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
56052         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
56053         fallback definition.
56054         (canonicalize_filename_mode): Use it to protect //.
56055         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
56056         (__realpath): Likewise.
56057         * tests/test-canonicalize.c (main): Test this.
56058         * tests/test-canonicalize-lgpl.c (main): Likewise.
56059         * modules/canonicalize-tests (Depends-on): Add same-inode.
56060         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
56062         canonicalize-lgpl: fix glibc bug with trailing slash
56063         * m4/canonicalize-lgpl.m4: Move contents...
56064         * m4/canonicalize.m4: ...here.
56065         (gl_CANONICALIZE_LGPL): Factor realpath check...
56066         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
56067         glibc 2.3.5 bug, fixed 2005-04-27.
56068         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
56069         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
56070         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
56071         * modules/canonicalize-lgpl (Files): Manage file rename.
56072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
56073         * modules/stdlib (Makefile.am): Substitute witness.
56074         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
56075         is needed.
56076         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
56077         replacement is required.
56078         * lib/canonicalize.c (canonicalize_file_name): Likewise.
56079         * doc/glibc-functions/canonicalize_file_name.texi
56080         (canonicalize_file_name): Document this.
56081         * doc/posix-functions/realpath.texi (realpath): Likewise.
56083         canonicalize-lgpl: reject non-directory with trailing slash
56084         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
56085         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
56086         catches failures in glibc 2.3.5.
56087         * tests/test-canonicalize.c (main): Likewise.
56089         canonicalize-lgpl: use native realpath if it works
56090         * lib/canonicalize-lgpl.c (realpath): Guard with
56091         FUNC_REALPATH_WORKS.
56092         * lib/stdlib.in.h (realpath): Make declaration optional based on
56093         HAVE_REALPATH.
56094         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
56095         native realpath works.
56096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
56097         * modules/stdlib (Makefile.am): Substitute witness.
56099         canonicalize, canonicalize-lgpl: use <stdlib.h>
56100         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
56101         (Include): Mention <stdlib.h>.
56102         (configure.ac): Mention functions we provide.
56103         * modules/canonicalize (configure.ac): Likewise.
56104         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
56105         realpath if canonicalize_file_name is missing.
56106         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
56107         * modules/stdlib (Makefile.am): Substitute witnesses.
56108         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
56109         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
56110         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
56111         * NEWS: Document this.
56112         * doc/glibc-functions/canonicalize_file_name.texi
56113         (canonicalize_file_name): Likewise.
56114         * doc/posix-functions/realpath.texi (realpath): Likewise.
56115         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
56117         test-canonicalize: consolidate into single C program
56118         * tests/test-canonicalize.sh: Delete; move setup into...
56119         * tests/test-canonicalize.c (main): ...the program, making it
56120         easier to run in debugger.  Add some tests.
56121         * modules/canonicalize-tests (Files): Remove unused file.
56122         (Depends-on): Add progname.
56123         (configure.ac, Makefile.am): Simplify.
56125         test-canonicalize-lgpl: consolidate into single C program
56126         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
56127         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
56128         easier to run in debugger.  Add some tests.
56129         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
56130         (configure.ac, Makefile.am): Simplify.
56132         canonicalize: avoid resolvepath
56133         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
56134         unnecessary checks.
56135         * lib/canonicalize.c (includes): Simplify.
56136         (canonicalize_file_name): Drop resolvepath implementation.
56137         * modules/canonicalize (Depends-on): Drop filenamecat.
56139         canonicalize: don't lose errno
56140         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
56141         over calls to free.
56143         canonicalize: simplify errno handling
56144         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
56145         assignment.
56147         canonicalize, canonicalize-lgpl: update module dependencies
56148         * modules/canonicalize (Depends-on): Add extensions, lstat,
56149         pathmax, stdlib.
56150         (Files): Drop pathmax.h.
56151         (configure.ac): Adjust macro name.
56152         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
56153         lstat, stdlib, sys_stat.
56154         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
56155         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
56156         extensions.
56157         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
56158         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
56159         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
56160         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
56161         declaration, if available.
56162         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
56163         we can rely on the readlink module.
56164         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
56165         (includes): Use <unistd.h> unconditionally.
56167 2009-09-17  Eric Blake  <ebb9@byu.net>
56169         maint: make Include sections of modules consistent
56170         * modules/alloca: Use only header name; no need to list #include.
56171         * modules/alloca-opt: Likewise.
56172         * modules/arpa_inet: Likewise.
56173         * modules/canon-host: Likewise.
56174         * modules/configmake: Likewise.
56175         * modules/dirent: Likewise.
56176         * modules/eealloc: Likewise.
56177         * modules/environ: Likewise.
56178         * modules/fchdir: Likewise.
56179         * modules/fcntl: Likewise.
56180         * modules/fcntl-h: Likewise.
56181         * modules/gethrxtime: Likewise.
56182         * modules/gettime: Likewise.
56183         * modules/ignore-value: Likewise.
56184         * modules/inet_ntop: Likewise.
56185         * modules/inet_pton: Likewise.
56186         * modules/inttypes: Likewise.
56187         * modules/isnand-nolibm: Likewise.
56188         * modules/isnanf-nolibm: Likewise.
56189         * modules/mbchar: Likewise.
56190         * modules/mbfile: Likewise.
56191         * modules/mbiter: Likewise.
56192         * modules/mbuiter: Likewise.
56193         * modules/netdb: Likewise.
56194         * modules/netinet_in: Likewise.
56195         * modules/nproc: Likewise.
56196         * modules/pagealign_alloc: Likewise.
56197         * modules/poll: Likewise.
56198         * modules/printf-frexp: Likewise.
56199         * modules/pthread: Likewise.
56200         * modules/putenv: Likewise.
56201         * modules/random_r: Likewise.
56202         * modules/relocatable-prog: Likewise.
56203         * modules/search: Likewise.
56204         * modules/select: Likewise.
56205         * modules/selinux-h: Likewise.
56206         * modules/settime: Likewise.
56207         * modules/signal: Likewise.
56208         * modules/size_max: Likewise.
56209         * modules/socklen: Likewise.
56210         * modules/ssize_t: Likewise.
56211         * modules/stdarg: Likewise.
56212         * modules/stdbool: Likewise.
56213         * modules/stddef: Likewise.
56214         * modules/stdint: Likewise.
56215         * modules/stdio: Likewise.
56216         * modules/stdlib: Likewise.
56217         * modules/string: Likewise.
56218         * modules/strings: Likewise.
56219         * modules/sys_file: Likewise.
56220         * modules/sys_ioctl: Likewise.
56221         * modules/sys_select: Likewise.
56222         * modules/sys_socket: Likewise.
56223         * modules/sys_stat: Likewise.
56224         * modules/sys_time: Likewise.
56225         * modules/sys_times: Likewise.
56226         * modules/sys_utsname: Likewise.
56227         * modules/sys_wait: Likewise.
56228         * modules/sysexits: Likewise.
56229         * modules/time: Likewise.
56230         * modules/times: Likewise.
56231         * modules/tmpfile: Likewise.
56232         * modules/trim: Likewise.
56233         * modules/unistd: Likewise.
56234         * modules/wchar: Likewise.
56235         * modules/wctype: Likewise.
56237 2009-09-17  Bruno Haible  <bruno@clisp.org>
56239         Make getdate.y compile on QNX and NetBSD 5 / i386.
56240         * m4/getdate.m4 (gl_GETDATE): Conditionally define
56241         TIME_T_FITS_IN_LONG_INT.
56242         * lib/getdate.y (long_time_t): New type.
56243         (relative_time): Change type of 'seconds' field to long_time_t.
56244         (get_date): Update types of local variables. Check against overflow
56245         during conversion from long_time_t to time_t.
56246         Reported by Matt Kraai <kraai@ftbfs.org>
56247         and Hasso Tepper <hasso@netbsd.org>.
56249 2009-09-17  Bruno Haible  <bruno@clisp.org>
56251         * modules/COPYING: Update copyright years.
56252         * modules/README: Likeiwse.
56253         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
56254         Reported by Ian Beckwith <ianb@erislabs.net>.
56256 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
56258         * users.txt: Update references for gnuit package.
56260 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
56262         * m4/getdelim.m4: Fix typo in copyright line.
56264 2009-09-17  Bruno Haible  <bruno@clisp.org>
56266         * lib/atoll.c: Use the standard header with GPL copyright.
56267         * lib/argz.in.h: Likewise.
56268         * lib/glob.c: Likewise.
56269         * lib/glob-libc.h: Likewise.
56270         * lib/random_r.c: Likewise.
56271         * lib/siglist.h: Likewise.
56272         * lib/strsignal.c: Likewise.
56273         Reported by Ian Beckwith <ianb@erislabs.net>.
56275 2009-09-17  Eric Blake  <ebb9@byu.net>
56277         rmdir: ensure correct dependency order
56278         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
56280 2009-09-17  Bruno Haible  <bruno@clisp.org>
56282         Disable assertion that fails on NetBSD 5 / i386.
56283         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
56284         Reported by Sam Steingold <sds@gnu.org>
56285         and Hasso Tepper <hasso@netbsd.org>.
56287 2009-09-16  Eric Blake  <ebb9@byu.net>
56289         unlinkdir: port to mingw
56290         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
56291         on which no one can unlink a directory.
56293         stdlib: sort witness names
56294         * modules/stdlib (Makefile.am): Sort replacements.
56295         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56296         * lib/stdlib.in.h: Likewise.
56298         parse-duration-tests: avoid link failure
56299         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
56300         LIBINTL.
56301         Reported by Tom G. Christensen.
56303         openat-tests: ensure unlinkat behaves like rmdir
56304         * tests/test-rmdir.c (main): Factor guts...
56305         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
56306         * modules/rmdir-tests (Files): Ship new file.
56307         * modules/openat-tests: New test.
56308         * tests/test-unlinkat.c: Likewise.
56310         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
56311         * modules/rmdir-errno (Status, Notice): Now obsolete.
56313         rmdir: work around cygwin 1.5.x and mingw bugs
56314         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
56315         * lib/rmdir.c (rmdir): Work around it.
56316         * modules/rmdir (Status, Notice): No longer obsolete.
56317         (Files): Add dos.m4.
56318         (Depends-on): Add unistd.
56319         (configure.ac): Set witnesses.
56320         (License): Relax to LGPLv2+.
56321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
56322         * modules/unistd (Makefile.am): Substitute witnesses.
56323         * lib/unistd.in.h (rmdir): Declare replacement.
56324         * doc/posix-functions/rmdir.texi (rmdir): Document this.
56325         * modules/rmdir-tests: New tests.
56326         * tests/test-rmdir.c: Likewise.
56328 2009-09-15  Eric Blake  <ebb9@byu.net>
56330         fchdir: improve use of replacement functions
56331         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
56332         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
56333         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
56334         REPLACE_CLOSEDIR.
56335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
56336         * modules/sys_stat (Makefile.am): Substitute correct witness.
56337         * modules/dirent (Makefile.am): Likewise.
56338         * modules/unistd (Makefile.am): Likewise.
56339         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
56340         * lib/unistd.in.h (dup): Likewise.
56341         * lib/sys_stat.in.h (fstat): Likewise.
56343         maint: ignore gnulib-tool temp files
56344         * .gitignore: Ignore files created during gnulib-tool --test.
56346 2009-09-13  Jim Meyering  <meyering@redhat.com>
56348         posixtm: don't reject a time that specify "60" as the number of seconds
56349         * lib/posixtm.c (posixtime): The code to reject invalid dates
56350         would also reject a time specified with the .60 suffix.
56351         But POSIX allows that, in order to accommodate leap seconds.
56352         So don't reject it.
56353         (main): Adjust tests accordingly.
56354         * modules/posixtm (Depends-on): Add stpcpy.
56356 2009-09-11  Jim Meyering  <meyering@redhat.com>
56358         announce-gen: include [$release_type] in emitted Subject:
56359         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
56360         e.g., [stable] in the emitted Subject: line.
56362 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56364         Remove obsolete macros from several modules.
56365         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
56366         obsolete Autoconf macros with their modern counterparts.
56367         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
56368         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
56369         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
56370         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
56371         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
56372         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56373         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56374         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
56375         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
56376         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
56377         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
56378         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
56379         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
56380         * m4/sockets.m4 (gl_SOCKETS): Likewise.
56381         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
56382         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
56383         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
56384         * m4/time_r.m4 (gl_TIME_R): Likewise.
56385         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
56386         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
56387         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56389         Fix copyright header in build-aux scripts.
56390         * build-aux/git-version-gen: Fix copyright header to match GPLv3
56391         recommendation.
56392         * build-aux/ncftpput-ftp: Likewise.
56393         * build-aux/update-copyright: Likewise.
56395 2009-09-09  Eric Blake  <ebb9@byu.net>
56397         test-link: allow Linux choice of errno
56398         * tests/test-link.c (main): Relax test for alternate error.
56400         strndup: fix improper m4 caching
56401         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
56402         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
56403         (gl_PREREQ_STRNDUP): Delete.
56404         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
56405         * modules/string (Makefile.am): Substitute it.
56406         * lib/string.in.h (strndup): Modernize prototype.
56408         getcwd: port to mingw
56409         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
56410         different from the POSIX assumptions made throughout the getcwd
56411         module; fortunately, the mingw getcwd does not need replacement.
56412         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
56413         * modules/getcwd-tests: New test.
56414         * tests/test-getcwd.c: Likewise.
56416         link: fix platform bugs
56417         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
56418         * lib/link.c (link): Work around them.  Fix related mingw bug.
56419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
56420         * modules/unistd (Makefile.am): Substitute it.
56421         * lib/unistd.in.h (link): Declare replacement.
56422         * doc/posix-functions/link.texi (link): Document this.
56423         * modules/link (Depends-on): Add strdup-posix, sys_stat.
56425         test-link: consolidate into single C program, test more cases
56426         * tests/test-link.sh: Delete.
56427         * tests/test-link.c: Test more error conditions.  Exposes bugs on
56428         at least Cygwin and Solaris.
56429         * modules/link-tests (Files): Remove unused file.
56430         (Depends-on): Add errno, sys_stat.
56431         (Makefile.am): Simplify.
56433 2009-09-08  Bruno Haible  <bruno@clisp.org>
56435         Work around towlower, towupper bug on mingw.
56436         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
56437         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
56438         * doc/posix-functions/towlower.texi: Mention the mingw bug.
56439         * doc/posix-functions/towupper.texi: Likewise.
56440         Reported by Eric Blake.
56442 2009-09-08  Jim Meyering  <meyering@redhat.com>
56444         build: don't try to run autoheader if we don't use it
56445         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
56446         is not used in configure.ac.
56448 2009-09-08  Eric Blake  <ebb9@byu.net>
56450         euidaccess: fix compilation error
56451         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
56453         rawmemchr: relax license
56454         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
56455         okay.
56456         Reported by Jim Meyering.
56458         mkfifoat: new module
56459         * modules/mkfifoat: New file.
56460         * lib/mkfifoat.c: Likewise.
56461         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
56462         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
56463         * modules/sys_stat (Makefile.am): Use them.
56464         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
56465         * MODULES.html.sh (File system functions): Mention module.
56466         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
56467         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
56468         * modules/mkfifoat-tests: New test.
56469         * tests/test-mkfifoat.c: Likewise.
56471         strchrnul: relax license
56472         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
56473         okay.
56474         Reported by Jim Meyering.
56476 2009-09-08  Eric Blake  <ebb9@byu.net>
56478         fstatat: fix compilation on Solaris
56479         * lib/fstatat.c (includes): Add fcntl.h.
56480         Reported by Pádraig Brady.
56482 2009-09-07  Eric Blake  <ebb9@byu.net>
56484         rename: modernize replacement
56485         * modules/rename (Depends-on): Add stdio.
56486         (configure.ac): Declare witness.
56487         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
56488         stdio take care of replacement.
56489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56490         * modules/stdio (Makefile.am): Substitute them.
56491         * lib/stdio.in.h (rename): Declare replacement.
56492         * lib/rename.c (includes): Allow cross-compilation to non-windows
56493         machines.
56494         * doc/posix-functions/rename.texi (rename): Improve
56495         documentation.
56497         stdio: sort witness names
56498         * modules/stdio (Makefile.am): Sort replacements.
56499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56500         * lib/stdio.in.h: Likewise.
56502         getcwd: minor cleanups
56503         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
56504         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
56506         openat: provide more convenience names
56507         * modules/faccessat (configure.ac): Add C witness.
56508         * lib/unistd.in.h (readlinkat): Fix typo.
56509         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
56510         convenience wrappers.
56511         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
56512         wrappers in syntax checks.
56514 2009-09-06  Eric Blake  <ebb9@byu.net>
56516         doc: fix comments in recent patches
56517         * lib/faccessat.c: Mention correct function.
56518         * lib/fchmodat.c: Likewise.
56519         * lib/fchownat.c: Likewise.
56520         * lib/symlinkat.c: Likewise.
56521         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
56522         constants.
56524         faccessat, symlinkat: continue cleanup of previous patch
56525         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
56526         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
56527         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
56528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
56529         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
56530         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
56531         set.
56533 2009-09-06  Bruno Haible  <bruno@clisp.org>
56535         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
56536         (fstatat): Declare if GNULIB_FSTATAT is set.
56537         (mkdirat): Declare if GNULIB_MKDIRAT is set.
56538         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
56539         (unlinkat): Declare if GNULIB_UNLINKAT is set.
56540         * modules/fcntl-h (Files): Remove m4/openat.m4.
56541         * modules/sys_stat (Files): Remove m4/openat.m4.
56542         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
56543         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
56544         * modules/unistd (Files): Remove m4/openat.m4.
56545         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
56546         GNULIB_OPENAT.
56547         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
56548         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
56549         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
56550         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
56551         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
56552         gl_OPENAT_DEFAULTS.
56553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
56554         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
56555         Don't require gl_OPENAT_DEFAULTS.
56556         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
56557         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
56558         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
56559         (gl_OPENAT_DEFAULTS): Remove macro.
56561 2009-09-06  Bruno Haible  <bruno@clisp.org>
56563         * modules/openat (configure.ac): Remove unneeded witness.
56565 2009-09-06  Bruno Haible  <bruno@clisp.org>
56567         Set errno to ENOSYS when a function is entirely unsupported.
56568         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
56569         EOPNOTSUPP.
56570         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
56571         * modules/chown (Depends-on): Remove errno.
56573 2009-09-06  Bruno Haible  <bruno@clisp.org>
56575         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
56577 2009-09-06  Bruno Haible  <bruno@clisp.org>
56579         * lib/sys_stat.in.h: Fix preprocessor command indentation.
56581 2009-09-06  Ben Pfaff  <blp@gnu.org>
56582             Bruno Haible  <bruno@clisp.org>
56584         Work around a glibc bug in strtok_r.
56585         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
56586         Undefine if UNDEFINE_STRTOK_R is set.
56587         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
56588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56589         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
56590         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
56591         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
56592         UNDEFINE_STRTOK_R.
56593         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
56595 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
56597         exclude: minor fix
56598         * lib/exclude.c: Include wctype.h
56600 2009-09-06  Akim Demaille  <demaille@gostai.com>
56602         bootstrap: improve error message
56603         * build-aux/bootstrap (find_tool): Upon failure, report the list
56604         of candidates.
56605         Honor the initial value of the envvar.
56607 2009-09-05  Eric Blake  <ebb9@byu.net>
56609         symlinkat: new module
56610         * modules/symlinkat: New file.
56611         * lib/symlinkat.c: Likewise.
56612         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
56613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
56614         * modules/unistd (Makefile.am): Use them.
56615         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
56616         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
56617         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
56618         * MODULES.html.sh (File system functions): Mention module.
56619         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
56620         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
56621         * modules/symlinkat-tests: New test.
56622         * tests/test-symlinkat.c: Likewise.
56624         test-openat-safer: add more checks
56625         * tests/test-openat-safer.c (main): Check more code paths.
56627 2009-09-05  Jim Meyering  <meyering@redhat.com>
56629         syntax-check: detect unnecessary inclusion of openat.h
56630         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
56632 2009-09-05  Bruno Haible  <bruno@clisp.org>
56634         Support towlower, towupper.
56635         * doc/posix-functions/towlower.texi: Mention module wctype.
56636         * doc/posix-functions/towupper.texi: Likewise.
56637         * lib/wctype.in.h (towlower, towupper): New functions.
56638         * tests/test-wctype.c: Include stdio.h, stdlib.h.
56639         (ASSERT): New macro.
56640         (e): New variable.
56641         (main): Test also towlower, towupper. Test WEOF argument.
56642         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
56644 2009-09-05  Bruno Haible  <bruno@clisp.org>
56646         Fix conversion behaviour when the input is invalid.
56647         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
56648         mark occurring in first pass of indirect conversion.
56649         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
56650         input.
56651         Found by clang's static analyzer.
56653 2009-09-05  Bruno Haible  <bruno@clisp.org>
56655         * tests/test-striconveh.c (main): Test indirect conversion on platforms
56656         where direct conversion is possible.
56658 2009-09-04  Eric Blake  <ebb9@byu.net>
56660         openat: fail with ENOENT on empty name
56661         * lib/openat-proc.c (openat_proc_name): Special-case the empty
56662         buffer.
56664         link-follow: fix logic bug in prior patch
56665         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
56666         reversed sense of yes and no in prior patch.  Avoid confusing
56667         compilation failure with desired semantics.
56669         link-follow: accommodate mingw and cross-compilation
56670         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
56671         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
56672         cross-compilation results to -1, to make linkat easier to
56673         implement when cross-compiling.  Trivially support mingw.
56674         * modules/link-follow (configure.ac): Call new name.
56675         * NEWS: Mention this.
56677 2009-09-03  Eric Blake  <ebb9@byu.net>
56679         faccessat: compile replacement
56680         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
56681         needed.
56683         fts: fix compilation error
56684         * lib/fts.c (includes): Re-add "openat.h", for
56685         openat_needs_fchdir.
56687         faccessat: new module
56688         * modules/faccessat: New file.
56689         * lib/faccessat.c: Likewise.
56690         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
56691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
56692         * modules/unistd (Makefile.am): Use it.
56693         * lib/unistd.in.h (faccessat): Declare it.
56694         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
56695         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
56696         * MODULES.html.sh (File system functions): Mention it.
56697         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
56698         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
56700         euidaccess: prefer POSIX over non-standard implementation
56701         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
56702         * lib/euidaccess.c (euidaccess): Use it if available.
56704         openat: make template easier to use
56705         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
56706         AT_FUNC_F2 to be undefined.
56707         (VALIDATE_FLAG): New macro; use it to reject bad flags.
56708         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
56709         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
56710         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
56711         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
56712         Likewise.
56713         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
56714         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
56715         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
56716         Likewise.
56718         openat: declare in POSIX headers
56719         * NEWS: Mention this.
56720         * modules/openat (configure.ac): Declare witnesses.
56721         (Depends-on): Add fcntl-h, sys_stat, unistd.
56722         (Include): Mention correct headers.
56723         * modules/fcntl-h (Depends-on): Add link-warning.
56724         (Files): Add openat.m4.
56725         (Makefile.am): Substitute witnesses.
56726         * modules/sys_stat (Files, Makefile.am): Likewise.
56727         * modules/unistd (Files, Makefile.am): Likewise.
56728         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
56729         (gl_OPENAT_DEFAULTS): New macro.
56730         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
56731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
56732         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
56733         (SYS_STAT_H): Remove unused variable.
56734         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
56735         * lib/fcntl--.h (includes): Remove unneeded header.
56736         * lib/openat-safer.c (includes): Likewise.
56737         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
56738         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
56739         appropriate headers.
56740         (__OPENAT_PREFIX): Delete.
56741         * lib/fcntl.in.h (openat): Provide declaration.
56742         (AT_FDCWD): Fix Solaris bug.
56743         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
56744         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
56745         * lib/fchmodat.c (includes):  Adjust to find declaration.
56746         * lib/fchownat.c (includes): Likewise.
56747         * lib/mkdirat.c (includes): Likewise.
56748         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
56749         still visible.
56751 2009-09-02  Eric Blake  <ebb9@byu.net>
56753         errno: use consistently
56754         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
56755         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
56756         * lib/canonicalize.c (ELOOP): Likewise.
56757         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
56758         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
56759         * lib/lchown.c (EOPNOTSUPP): Likewise.
56760         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
56761         * lib/savewd.c (ESTALE): Likewise.
56762         * lib/settime.c (ENOSYS): Likewise.
56763         * lib/utimens.c (ENOSYS): Likewise.
56764         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
56765         * lib/chdir-safer.c (ELOOP): Likewise.
56766         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
56767         * modules/c-stack (Depends-on): Add errno.
56768         * modules/canonicalize (Depends-on): Likewise.
56769         * modules/chdir-safer (Depends-on): Likewise.
56770         * modules/fdopendir (Depends-on): Likewise.
56771         * modules/inet_ntop (Depends-on): Likewise.
56772         * modules/inet_pton (Depends-on): Likewise.
56773         * modules/lchown (Depends-on): Likewise.
56774         * modules/openat (Depends-on): Likewise.
56775         * modules/savewd (Depends-on): Likewise.
56776         * modules/settime (Depends-on): Likewise.
56777         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
56779         fts: avoid leaking fds
56780         * modules/fts (Depends-on): Add cloexec.
56781         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
56782         flag.
56784         fts: make directory fds more robust
56785         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
56786         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
56788         backupfile, chdir-long, fts, savedir: make safer
56789         * lib/backupfile.c (includes): Use "dirent--.h", since
56790         numbered_backup can write to stderr during readdir.
56791         * lib/savedir.c (includes): Likewise.
56792         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
56793         emulation can write to stderr on failure.
56794         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
56795         * lib/getcwd.c: Document why opendir_safer is unused.
56796         * lib/glob.c: Likewise.
56797         * lib/scandir.c: Likewise.
56798         * lib/openat-proc.c: Likewise, for open_safer.
56799         * modules/backupfile (Depends-on): Add dirent-safer.
56800         * modules/savedir (Depends-on): Likewise.
56801         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
56802         * modules/chdir-long (Depends-on): Add openat-safer.
56804         openat-safer: new module
56805         * modules/openat-safer: New file.
56806         * lib/openat-safer.c: Likewise.
56807         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
56808         * lib/fcntl-safer.h (openat_safer): Declare.
56809         * lib/fcntl--.h (openat): Override.
56810         * MODULES.html.sh (File descriptor based I/O): Mention it.
56811         * lib/openat.h: Add double-inclusion guards.
56812         * lib/openat.c (includes): Only include "fcntl-safer.h", not
56813         "fcntl--.h", so we can implement openat.
56814         * modules/openat-safer-tests: New test.
56815         * tests/test-openat-safer.c: New file.
56817         dirent-safer: new module
56818         * modules/dirent-safer: New file.
56819         * lib/dirent--.h: Likewise.
56820         * lib/dirent-safer.h: Likewise.
56821         * lib/opendir-safer.c: Likewise.
56822         * m4/dirent-safer.m4: Likewise.
56823         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
56824         * modules/dirent-safer-tests: New test.
56825         * tests/test-dirent-safer.c: New file.
56826         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
56828         fdopendir: optimize on mingw
56829         * lib/unistd.in.h (_gl_directory_name): New prototype.
56830         * lib/fchdir.c (_gl_directory_name): Implement it.
56831         (fchdir): Use it to simplify implementation.
56832         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
56833         fchdir, when available, to avoid calling [f]chdir().
56835         fdopendir: split into its own module
56836         * lib/openat.c (fdopendir): Move...
56837         * lib/fdopendir.c: ...into new file.
56838         * modules/fdopendir: New module.
56839         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
56840         * modules/openat (Depends-on): Add fdopendir.
56841         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
56842         fdopendir here.
56843         * modules/savedir (Depends-on): Only need fdopendir, not full
56844         openat.
56845         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
56846         * lib/openat.h (fdopendir): Drop prototype.
56847         * lib/dirent.in.h (fdopendir): Provide prototype.
56848         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
56849         * modules/dirent (Makefile.am): Substitute them.
56850         * MODULES.html.sh (File system functions): Mention it.
56851         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
56852         * modules/fdopendir-tests: New file.
56853         * tests/test-fdopendir.c: Likewise.
56855         fchdir: use more consistent macro convention
56856         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
56857         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
56858         REPLACE_FCHDIR, rather than relying on config.h macros.
56859         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
56860         inside a single make-time REPLACE_FCHDIR block, rather than using
56861         the config.h FCHDIR_REPLACEMENT.
56862         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
56863         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
56864         Manage fstat replacement.
56865         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
56866         REPLACE_FCHDIR.
56867         * modules/sys_stat (Files): Add m4/unistd_h.m4.
56868         (Makefile.am): Substitute REPLACE_FCHDIR.
56869         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
56870         FCHDIR_REPLACEMENT.
56871         * lib/dup-safer.c (dup_safer): Likewise.
56872         * lib/dup2.c (rpl_dup2): Likewise.
56873         * lib/dup3.c (rpl_dup3): Likewise.
56874         * lib/open.c (rpl_open): Likewise.
56876         fchdir: simplify error handling, and support dup3
56877         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
56878         stdbool, malloc-posix, realloc-posix.
56879         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
56880         (ensure_dirs_slot): Return false on allocation failure.
56881         (rpl_dup2): Delete.
56882         (_gl_register_dup): New function.
56883         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
56884         (_gl_register_fd): Close fd on allocation failure.
56885         * lib/fcntl.in.h (_gl_register_fd): Update signature.
56886         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
56887         prototype.
56888         (rpl_dup2_fchdir): Delete prototype.
56889         * lib/open.c (open): Update caller.
56890         * lib/dup2.c (dup2): Track fchdir metadata.
56891         * lib/dup3.c (dup3): Likewise.
56892         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
56893         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
56895 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56897         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
56898         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
56899         don't pass arguments to AC_OUTPUT.
56901 2009-09-02  Bruno Haible  <bruno@clisp.org>
56903         * modules/mkdtemp (License): Relicense under LGPLv2+.
56904         Reported by Paolo Bonzini.
56906 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56908         Replace uses of obsolete autoconf macros in Jim's modules.
56909         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
56910         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
56911         can evoke a warning from autoconf when run with -Wobsolete
56912         enabled.  They were declared obsolete for good reasons (see
56913         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
56914         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
56915         should not continue using the deprecated macros.
56916         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
56917         obsolete Autoconf macros with modern counterparts.
56918         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
56919         * m4/dos.m4 (gl_AC_DOS): Likewise.
56920         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
56921         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
56922         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
56923         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
56924         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
56925         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
56926         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
56927         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
56928         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
56929         Likewise.
56930         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
56931         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
56932         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
56933         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
56934         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
56935         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
56937 2009-09-01  Eric Blake  <ebb9@byu.net>
56939         fchdir: fix off-by-one bug in previous patch
56940         * lib/fchdir.c (rpl_fstat): Use correct bounds.
56941         (_gl_unregister_fd): Delete useless if.
56943 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
56945         maint.mk: sort the list of syntax-check rules
56946         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
56947         easier to get a sense of progress when the rules are run sequentially
56948         and take a long time.
56950 2009-09-01  Simon Josefsson  <simon@josefsson.org>
56952         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
56953         * modules/netinet_in: Likewise.
56954         * modules/sys_file: Likewise.
56955         * modules/sys_ioctl: Likewise.
56956         * modules/sys_select: Likewise.
56957         * modules/sys_socket: Likewise.
56958         * modules/sys_stat: Likewise.
56959         * modules/sys_time: Likewise.
56960         * modules/sys_times: Likewise.
56961         * modules/sys_utsname: Likewise.
56962         * modules/sys_wait: Likewise.
56964 2009-09-01  Jim Meyering  <meyering@redhat.com>
56966         fts: help ensure that return values are not ignored
56967         * lib/fts_.h (__GNUC_PREREQ): Define.
56968         (__attribute_warn_unused_result__): Define.
56969         (fts_children, fts_close, fts_open, fts_read): Declare with
56970         __attribute_warn_unused_result__.
56972         fts: fts_close now fails also when closing a dir file descriptor fails
56973         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
56974         and propagate to caller, along with errno.
56976         announce-gen: correct formatting in --help output
56977         * build-aux/announce-gen (usage): Move the one-line description in
56978         --help output "up", to where it belongs, just after Usage:.
56980 2009-08-31  Eric Blake  <ebb9@byu.net>
56982         fchdir: port to mingw
56983         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
56984         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
56985         opened, then use a substitute.
56986         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
56987         replacement.
56988         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
56989         (_gl_register_fd): No need to check stat if open already filters
56990         all directories.
56991         (fchdir): Fix error condition to match POSIX.
56992         * modules/fchdir (Depends-on): Add sys_stat.
56993         * doc/posix-functions/open.texi (open): Document the limitation.
56994         * modules/fchdir-tests: New file.
56995         * tests/test-fchdir.c: Likewise.
56997         canonicalize: allow cross-testing from cygwin to mingw
56998         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
56999         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
57000         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
57001         Likewise.
57002         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
57003         target does not support symlinks.
57004         * tests/test-canonicalize-lgpl.sh: Likewise.
57006         chown: avoid compilation warning on mingw
57007         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
57008         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
57009         mingw.
57010         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
57011         * modules/chown (Depends-on): Add errno.
57013 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
57015         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
57016         command.
57018 2009-08-31  Jim Meyering  <meyering@redhat.com>
57020         canonicalize: remove useless initialization
57021         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
57022         initialization of local, "end".
57024 2009-08-30  Bruno Haible  <bruno@clisp.org>
57026         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
57027         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
57028         ENOSYS.
57030 2009-08-30  Bruno Haible  <bruno@clisp.org>
57032         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
57033         /usr/xpg4/bin/tr when it exists.
57034         * tests/test-pipe-filter-gi1.sh: Likewise.
57036 2009-08-30  Bruno Haible  <bruno@clisp.org>
57038         Work around deficient /usr/bin/id program on Solaris.
57039         * tests/test-file-has-acl.sh (ID): New variable.
57040         * tests/test-set-mode-acl.sh (ID): Likewise.
57041         * tests/test-copy-acl.sh (ID): Likewise.
57042         * tests/test-copy-file.sh (ID): Likewise.
57044 2009-08-30  Bruno Haible  <bruno@clisp.org>
57046         New module 'xstriconveh'.
57047         * lib/xstriconveh.h: New file.
57048         * lib/xstriconveh.c: New file.
57049         * modules/xstriconveh: New file.
57051 2009-08-30  Bruno Haible  <bruno@clisp.org>
57053         Make it easier to use mem_cd_iconveh.
57054         * lib/striconveh.h (iconveh_t): New type.
57055         (iconveh_open, iconveh_close): New declarations.
57056         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
57057         with a single 'const iconveh_t *' argument.
57058         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
57059         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
57060         with a single 'const iconveh_t *' argument.
57061         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
57062         * tests/test-striconveh.c (main): Update.
57063         * NEWS: Mention the change.
57065 2009-08-30  Bruno Haible  <bruno@clisp.org>
57067         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
57068         problem.
57070 2009-08-30  Bruno Haible  <bruno@clisp.org>
57072         Work around iconv_open problem on Solaris.
57073         * lib/iconv_open-solaris.gperf: New file.
57074         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
57075         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
57076         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
57077         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
57078         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
57079         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
57081 2009-08-29  Jim Meyering  <meyering@redhat.com>
57083         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
57084         * top/maint.mk (cvs-check): Remove target; it was just an alias
57085         to the better-named vc-diff-check.
57086         (maintainer-distcheck): Remove rule.  It was used only from
57087         the (alpha/beta/major) target, and all of its commands but one
57088         were coreutils-specific.
57089         (vc-dist): Remove rule.
57090         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
57091         Run vc-diff-check, not vc-dist.
57092         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
57094 2009-08-27  Bruno Haible  <bruno@clisp.org>
57096         * tests/test-bitrotate.c (main): Remove test that uses a shift count
57097         of 0.
57099 2009-08-27  Bruno Haible  <bruno@clisp.org>
57101         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
57102         compilers.
57103         * doc/func.texi: Document the SunPRO C bug.
57105 2009-08-27  Bruno Haible  <bruno@clisp.org>
57107         Fix link error on Solaris.
57108         * tests/test-parse-duration.c (xstrdup): Remove function.
57110 2009-08-26  Pádraig Brady  <P@draigbrady.com>
57112         ignore-value: handle pointer types, too
57113         * lib/ignore-value.h (__attribute__): Remove definition.
57114         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
57115         of a more concise and more-often effective "(void) i" statement.
57116         (ignore_ptr): New function to suppress warnings from functions that
57117         return pointers, and to make it explicit that one function doesn't
57118         handle all cases.
57120 2009-08-25  Bruno Haible  <bruno@clisp.org>
57122         dup2: work around a Linux bug.
57123         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
57124         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
57125         * doc/posix-functions/dup2.texi: Mention the Linux bug.
57126         Reported by Simon Josefsson.
57128 2009-08-25  Jim Meyering  <meyering@redhat.com>
57130         libguestfs uses gnulib
57131         * users.txt: Add libguestfs.
57133 2009-08-24  Eric Blake  <ebb9@byu.net>
57135         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
57136         * lib/pipe2.c (includes): Add binary-io.h.
57137         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
57139 2009-08-24  Bruno Haible  <bruno@clisp.org>
57141         Tolerate declared but missing accept4 syscall.
57142         * lib/accept4.c (accept4): Invoke original accept4 function first, if
57143         available.
57144         * lib/sys_socket.in.h (accept4): If the function is already present,
57145         override it.
57146         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
57147         * modules/accept4 (Makefile.am): Compile accept4.c always.
57148         Reported by Paolo Bonzini and Eric Blake.
57150 2009-08-23  Bruno Haible  <bruno@clisp.org>
57152         New module 'accept4'.
57153         * lib/sys_socket.in.h (accept4): New declaration.
57154         * lib/accept4.c: New file.
57155         * m4/accept4.m4: New file.
57156         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
57157         GNULIB_ACCEPT4, HAVE_ACCEPT4.
57158         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
57159         HAVE_ACCEPT4.
57160         * modules/accept4: New file.
57161         * doc/glibc-functions/accept4.texi: Mention the new module.
57163 2009-08-24  Jim Meyering  <meyering@redhat.com>
57165         progname: also set global program_invocation_name, when possible
57166         Before this change, a libtool-enabled program that calls glibc's
57167         error function would report the program name as
57168         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
57169         * modules/progname (configure.ac): Check for a declaration of
57170         program_invocation_name.
57171         * lib/progname.c:  Include <errno.h>.
57172         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
57173         Set program_invocation_name.
57175 2009-08-23  Bruno Haible  <bruno@clisp.org>
57177         * lib/dup3.c: Include <string.h>.
57179 2009-08-23  Bruno Haible  <bruno@clisp.org>
57181         * lib/dup3.c (dup3): Test only once whether the system actually exists.
57182         * lib/pipe2.c (pipe2): Likewise.
57183         Suggested by Eric Blake.
57185 2009-08-23  Bruno Haible  <bruno@clisp.org>
57187         Tolerate declared but missing dup3 syscall.
57188         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
57189         * lib/unistd.in.h (dup3): If the function is already present,
57190         override it.
57191         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
57192         * modules/dup3 (Makefile.am): Compile dup3.c always.
57193         Reported by Paolo Bonzini.
57195 2009-08-23  Bruno Haible  <bruno@clisp.org>
57197         Tolerate declared but missing pipe2 syscall.
57198         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
57199         available.
57200         * lib/unistd.in.h (pipe2): If the function is already present,
57201         override it.
57202         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
57203         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
57204         Reported by Paolo Bonzini.
57206 2009-08-23  Bruno Haible  <bruno@clisp.org>
57208         * lib/pipe2.c (pipe2): Move #ifs inside function.
57210 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
57212         quotearg: document limitations of quote_these_too
57213         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
57214         those limitations are created.
57215         * lib/quotearg.h (set_char_quoting): Document that digits and
57216         letters that are special after backslash are not permitted.
57217         (quotearg_char): Cross-reference set_char_quoting documentation.
57219 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
57221         quotearg: implement custom_quoting_style
57222         * lib/quotearg.c: (struct quoting_options): Add left_quote and
57223         right_quote fields.
57224         (set_custom_quoting): New public function.
57225         (quotearg_buffer_restyled): Add left_quote and right_quote
57226         arguments, handle them very much like locale quoting, and update
57227         all uses.
57228         (quotearg_n_custom): New public function.
57229         (quotearg_n_custom_mem): New public function.
57230         (quotearg_custom): New public function.
57231         (quotearg_custom_mem): New public function.
57232         * lib/quotearg.h: Prototype and document new public functions.
57233         (enum quoting_style): For escape_quoting_style and
57234         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
57235         ignored even though they're otherwise like c_quoting_style.
57236         Add custom_quoting_style member and document with comparison to
57237         clocale_quoting_style.
57238         * tests/test-quotearg.c (custom_quotes): New array.
57239         (custom_results): New array.
57240         (main): Extend to test custom quoting.
57242 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
57244         quotearg: fix right quote escaping when it's in quote_these_too
57245         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
57246         quote, be sure to prepend only one backslash.
57247         * tests/test-quotearg.c (use_quote_double_quotes): New function.
57248         (main): Test it.
57250 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
57252         quotearg-tests: test escaping of embedded locale quotes
57253         * tests/test-quotearg.c (struct result_strings): Add member for
57254         new input.
57255         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
57256         (inputs): Add new input.
57257         (results_g): Add expected results.
57258         (flag_results): Likewise.
57259         (locale_results): Likewise.
57260         (compare_strings): Check those.
57262 2009-08-23  Bruno Haible  <bruno@clisp.org>
57264         Tests for module 'dup3'.
57265         * modules/dup3-tests: New file.
57266         * tests/test-dup3.c: New file.
57268         New module 'dup3'.
57269         * lib/unistd.in.h (dup3): New declaration.
57270         * lib/dup3.c: New file.
57271         * m4/dup3.m4: New file.
57272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
57273         HAVE_DUP3.
57274         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
57275         * modules/dup3: New file.
57276         * doc/glibc-functions/dup3.texi: Mention the new module.
57278 2009-08-23  Bruno Haible  <bruno@clisp.org>
57280         Tweak the dup2 test.
57281         * tests/test-dup2.c (main): Create the test file empty. Verify that an
57282         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
57283         the test file is still empty. Fix argument order of lseek.
57285 2009-08-23  Bruno Haible  <bruno@clisp.org>
57287         Avoid test link errors when the modules getopt-gnu, gettext are used.
57288         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
57289         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57291 2009-08-23  Bruno Haible  <bruno@clisp.org>
57293         Fix getdtablesize() on mingw.
57294         * lib/getdtablesize.c (getdtablesize): Implement differently.
57295         * lib/unistd.in.h (getdtablesize): Improve comment.
57297 2009-08-23  Bruno Haible  <bruno@clisp.org>
57299         New module 'mkostemp'.
57300         Based on Ulrich Drepper's 2007-08-10 change in glibc.
57301         * lib/stdlib.in.h (mksotemp): New declaration.
57302         * lib/mkostemp.c: New file, from glibc with modifications.
57303         * lib/tempname.h (GT_FILE): Remove outdated comment.
57304         (gen_tempname): Add flags argument.
57305         * lib/tempname.c (__GT_BIGFILE): Remove macro.
57306         (__GT_FILE): Map to 1.
57307         (small_open, large_open): Remove macros.
57308         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
57309         * lib/mkstemp.c (mkstemp): Update.
57310         * lib/mkdtemp.c (mkdtemp): Likewise.
57311         * m4/mkostemp.m4: New file.
57312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
57313         HAVE_MKOSTEMP.
57314         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
57315         HAVE_MKOSTEMP.
57316         * modules/mkostemp: New file, based on modules/mkstemp.
57317         * doc/glibc-functions/mkostemp.texi: Mention the new module.
57318         * NEWS: Mention the change.
57320 2009-08-23  Bruno Haible  <bruno@clisp.org>
57322         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
57323         Reported by Eric Blake.
57325 2009-08-23  Bruno Haible  <bruno@clisp.org>
57327         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
57328         Reported by Eric Blake.
57330 2009-08-23  Bruno Haible  <bruno@clisp.org>
57332         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
57333         * modules/pipe2 (Depends-on): Likewise.
57335 2009-08-23  Eric Blake  <ebb9@byu.net>
57337         fcntl-h: add O_TTY_INIT support
57338         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
57339         * tests/test-fcntl-h.c (o): Test it.
57340         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
57342         fcntl-h: rename from fcntl, in preparation for fcntl(2)
57343         * modules/fcntl: Move <fcntl.h> header replacement...
57344         * modules/fcntl-h: ...to new name, so as not to collide with
57345         like-named function.
57346         * tests/test-fcntl.c: Rename...
57347         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
57348         * modules/fcntl-tests: Rename...
57349         * modules/fcntl-h-tests: ...to this.  Update test file name.
57350         * modules/chdir-long (Depends-on): Update clients.
57351         * modules/chdir-safer (Depends-on): Likewise.
57352         * modules/fcntl-safer (Depends-on): Likewise.
57353         * modules/fts (Depends-on): Likewise.
57354         * modules/mkancesdirs (Depends-on): Likewise.
57355         * modules/mkdir-p (Depends-on): Likewise.
57356         * modules/open (Depends-on): Likewise.
57357         * modules/savewd (Depends-on): Likewise.
57358         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
57359         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
57361 2009-08-22  Bruno Haible  <bruno@clisp.org>
57363         * modules/binary-io (License): Relicense under LGPL.
57364         * modules/pipe2 (License): Likewise.
57366 2009-08-22  Bruno Haible  <bruno@clisp.org>
57368         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
57369         return value.
57370         * lib/pipe-filter-gi.c (filter_init): Likewise.
57371         Reported by Eric Blake.
57373 2009-08-22  Bruno Haible  <bruno@clisp.org>
57375         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
57376         * modules/pipe (Depends-on): Add pipe2.
57378 2009-08-22  Bruno Haible  <bruno@clisp.org>
57380         Tests for module 'pipe2'.
57381         * modules/pipe2-tests: New file.
57382         * tests/test-pipe2.c: New file.
57384         New module 'pipe2'.
57385         * lib/unistd.in.h (pipe2): New declaration.
57386         * lib/pipe2.c: New file.
57387         * m4/pipe2.m4: New file.
57388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
57389         HAVE_PIPE2.
57390         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
57391         * modules/pipe2: New file.
57392         * doc/glibc-functions/pipe2.texi: Mention the new module.
57394 2009-08-22  Bruno Haible  <bruno@clisp.org>
57396         Reference some new glibc functions.
57397         * doc/glibc-functions/accept4.texi: New file.
57398         * doc/glibc-functions/dup3.texi: New file.
57399         * doc/glibc-functions/mkostemp.texi: New file.
57400         * doc/glibc-functions/pipe2.texi: New file.
57401         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
57402         (Glibc sys/socket.h): Refer to accept4.
57403         (Glibc unistd.h): Refer to dup3, pipe2.
57404         Reported by Eric Blake.
57406 2009-08-22  Jim Meyering  <meyering@redhat.com>
57407             Bruno Haible  <bruno@clisp.org>
57409         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
57410         This makes it so packages using automake-1.11's silent-rules option
57411         can print e.g., a single "GEN    configmake.h" line, rather than
57412         the 30+ statements that perform the job.  If you want to see the
57413         actual commands, you can still run "make V=1".
57414         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
57415         so that make output is abbreviated when those variables are defined
57416         appropriately.
57417         * modules/argz: Likewise.
57418         * modules/arpa_inet: Likewise.
57419         * modules/byteswap: Likewise.
57420         * modules/configmake: Likewise.
57421         * modules/dirent: Likewise.
57422         * modules/errno: Likewise.
57423         * modules/fcntl: Likewise.
57424         * modules/float: Likewise.
57425         * modules/fnmatch: Likewise.
57426         * modules/getopt-posix: Likewise.
57427         * modules/glob: Likewise.
57428         * modules/iconv_open: Likewise.
57429         * modules/inttypes: Likewise.
57430         * modules/localcharset: Likewise.
57431         * modules/locale: Likewise.
57432         * modules/math: Likewise.
57433         * modules/netdb: Likewise.
57434         * modules/netinet_in: Likewise.
57435         * modules/poll: Likewise.
57436         * modules/posix_spawnp-tests: Likewise.
57437         * modules/sched: Likewise.
57438         * modules/search: Likewise.
57439         * modules/selinux-h: Likewise.
57440         * modules/signal: Likewise.
57441         * modules/spawn: Likewise.
57442         * modules/stdarg: Likewise.
57443         * modules/stdbool: Likewise.
57444         * modules/stddef: Likewise.
57445         * modules/stdint: Likewise.
57446         * modules/stdio: Likewise.
57447         * modules/stdlib: Likewise.
57448         * modules/string: Likewise.
57449         * modules/strings: Likewise.
57450         * modules/sys_file: Likewise.
57451         * modules/sys_ioctl: Likewise.
57452         * modules/sys_select: Likewise.
57453         * modules/sys_socket: Likewise.
57454         * modules/sys_stat: Likewise.
57455         * modules/sys_time: Likewise.
57456         * modules/sys_times: Likewise.
57457         * modules/sys_utsname: Likewise.
57458         * modules/sys_wait: Likewise.
57459         * modules/sysexits: Likewise.
57460         * modules/time: Likewise.
57461         * modules/unistd: Likewise.
57462         * modules/wchar: Likewise.
57463         * modules/wctype: Likewise.
57465 2009-08-22  Jim Meyering  <meyering@redhat.com>
57467         announce-gen: detect write failure
57468         * build-aux/announce-gen: Add Coda at end.
57469         Remove equivalent-but-more-verbose block at top.
57471 2009-08-19  Akim Demaille  <demaille@gostai.com>
57473         bootstrap: --help to stdout.
57474         * bootstrap (usage): Don't send --help to stderr.
57475         Use a here doc instead of a long string.
57477 2009-08-21  Eric Blake  <ebb9@byu.net>
57479         test-popen-safer: split from test-popen
57480         * tests/test-popen.c (main): Move...
57481         * tests/test-popen.h: ...into new file.
57482         * tests/test-popen-safer2.c: New file.
57483         * modules/popen-tests (Files): Add test-popen.h.
57484         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
57485         Suggested by Bruno Haible.
57487         test-fcntl-safer: split from test-open
57488         * tests/test-open.c (main): Move...
57489         * tests/test-open.h: ...into new file.
57490         * tests/test-fcntl-safer.c: New file.
57491         * modules/open-tests (Files): Add test-open.h.
57492         * modules/fcntl-safer-tests: New file.
57493         Suggested by Bruno Haible.
57495         test-fopen-safer: split from test-fopen
57496         * tests/test-fopen.c (main): Move...
57497         * tests/test-fopen.h: ...into new file.
57498         * tests/test-fopen-safer.c: New file.
57499         * modules/fopen-tests (Files): Add test-fopen.h.
57500         * modules/fopen-safer-tests: New file.
57501         Suggested by Bruno Haible.
57503 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
57505         popen-safer: test O_CLOEXEC at run-time.
57506         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
57508 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
57510         fcntl: move more flags to the header
57511         * lib/cloexec.c: Do not define FD_CLOEXEC here.
57512         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
57513         * lib/fcntl.in.h: Do both things here.
57515 2009-08-21  Jim Meyering  <meyering@redhat.com>
57517         consistently remove $@-t before redirecting to it
57518         * modules/argz: Remove $@-t and $@ before redirecting to the former.
57519         * modules/alloca-opt: Likewise.
57520         * modules/byteswap: Likewise.
57521         * modules/fnmatch: Likewise.
57522         * modules/getopt-posix: Likewise.
57523         * modules/glob: Likewise.
57524         * modules/poll: Likewise.
57525         * modules/posix_spawnp-tests: Likewise.
57526         * modules/sys_socket: Likewise.
57527         * modules/sysexits: Likewise.
57529 2009-08-21  Eric Blake  <ebb9@byu.net>
57531         popen: simplify access to original popen
57532         * lib/popen.c (rpl_popen): No need to worry about popen being a
57533         macro.
57534         Reported by Bruno Haible.
57536 2009-08-20  Eric Blake  <ebb9@byu.net>
57538         build: avoid some compiler warnings
57539         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
57540         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
57541         type.
57542         (new_exclude_segment, excluded_file_pattern_p)
57543         (excluded_file_name_p): Reduce scope.
57544         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
57545         old-style declaration.
57547 2009-08-20  Simon Josefsson  <simon@josefsson.org>
57549         * tests/test-exclude1.sh: Handle Windows EOL.
57550         * tests/test-exclude2.sh: Likewise.
57551         * tests/test-exclude3.sh: Likewise.
57552         * tests/test-exclude4.sh: Likewise.
57553         * tests/test-exclude5.sh: Likewise.
57554         * tests/test-exclude6.sh: Likewise.
57555         * tests/test-exclude7.sh: Likewise.
57557 2009-08-19  Akim Demaille  <demaille@gostai.com>
57559         bootstrap: find sha1sum when named gsha1sum.
57560         * bootstrap (find_tool): New.
57561         ($SHA1SUM): New.
57562         Use it.
57564 2009-08-20  Jim Meyering  <meyering@redhat.com>
57566         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
57567         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
57568         expression that converts "." in a file name to "\." in the resulting
57569         regexp.  Start with a dummy statement, so that prior shell variable
57570         definitions are expanded portably.  Reported by Simon Josefsson.
57572 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
57574         Fix polling for writeability of a screen buffer.
57575         * lib/poll.c: Distinguish input and screen buffers for the
57576         Win32 implementation.
57577         * lib/select.c: Likewise.
57579 2009-08-19  Eric Blake  <ebb9@byu.net>
57581         popen-safer: prevent popen from clobbering std descriptors
57582         * modules/popen-safer: New file.
57583         * lib/popen-safer.c: Likewise.
57584         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
57585         * lib/stdio--.h (popen): Provide override.
57586         * lib/stdio-safer.h (popen_safer): Provide declaration.
57587         * tests/test-popen.c (includes): Partially test this.
57588         * modules/popen-safer-tests: New file, for more tests.
57589         * tests/test-popen-safer.c: Likewise.
57590         * MODULES.html.sh (file stream based Input/Output): Mention it.
57592         tests: test some of the *-safer modules
57593         * modules/fopen-safer (Depends-on): Add fopen.
57594         * modules/fcntl-safer (Depends-on): Add fcntl.
57595         * modules/stdlib-safer (Depends-on): Add stdlib.
57596         (configure.ac): Set indicator.
57597         * modules/unistd-safer (configure.ac): Likewise.
57598         * modules/tmpfile-safer (configure.ac): Likewise.
57599         (Depends-on): Add tmpfile.
57600         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
57601         active.
57602         * tests/test-fopen.c (includes): Test safer versions when they are
57603         in use.
57604         * tests/test-open.c (includes): Likewise.
57606         popen: fix cygwin 1.5 bug when stdin closed
57607         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
57608         * modules/popen: New file.
57609         * modules/popen-tests: Likewise.
57610         * tests/test-popen.c: Likewise.
57611         * m4/popen.m4: Likewise.
57612         * lib/popen.c: Likewise.
57613         * lib/stdio.in.h (popen): New declaration.
57614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
57615         * modules/stdio (Makefile.am): Likewise.
57616         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
57618 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
57620         maint.mk: give full control over update-copyright exclusions
57621         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
57622         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
57623         (update-copyright): Don't force inclusion of top-level
57624         ChangeLog.  Don't force exclusion of all COPYING files, but make
57625         them the default exclusion instead.
57627 2009-08-16  Bruno Haible  <bruno@clisp.org>
57629         Fix test failures on Solaris 10.
57630         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
57631         tests when Solaris iconv() is used.
57632         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57633         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57634         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57635         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57636         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57638 2009-08-16  Bruno Haible  <bruno@clisp.org>
57640         Fix test failures on Solaris 10.
57641         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
57642         'tr' program and pass it as first argument.
57643         * tests/test-pipe-filter-gi1.sh: Likewise.
57644         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
57645         program as first argument.
57646         * tests/test-pipe-filter-gi1.c (main): Likewise.
57648 2009-08-16  Eric Blake  <ebb9@byu.net>
57650         fpurge: fix previous commits
57651         * modules/fpurge (Makefile.am): Make replacement conditional,
57652         partially reverting 2007-04-29 change; missed in previous
57653         attempt.
57654         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
57655         is missing.
57657 2009-08-16  Bruno Haible  <bruno@clisp.org>
57659         Clarify fpurge's effect on the file position.
57660         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
57661         * tests/test-fpurge.c (main): Make a second pass for checking the file
57662         position.
57664 2009-08-16  Bruno Haible  <bruno@clisp.org>
57666         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
57667         declaration of fpurge is missing.
57668         * tests/test-fpurge.c (main): Check that the file has not more contents
57669         than expected. Close the file before removing it.
57671 2009-08-15  Eric Blake  <ebb9@byu.net>
57673         fpurge: don't wrap working cygwin implementation
57674         * lib/fpurge.c (fpurge): Fix comment typo.
57675         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
57676         1.7 to avoid replacement.
57677         * tests/test-fpurge.c (main): Enhance test.
57679 2009-08-15  Eric Blake  <ebb9@byu.net>
57680         and Jim Meyering  <meyering@redhat.com>
57682         test-update-copyright: skip if perl is insufficient
57683         * tests/test-update-copyright.sh: Failure to run maintainer tool
57684         should not cause testsuite failure on cygwin 1.5.
57686 2009-08-14  Eric Blake  <ebb9@byu.net>
57688         doc: mention more functions added in cygwin 1.7.0
57689         * doc/posix-headers/limits.texi (limits.h): Update for recent
57690         cygwin additions.
57691         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
57692         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
57693         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
57694         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
57695         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
57697 2009-08-14  Eric Blake  <ebb9@byu.net>
57699         maint.mk: simplify update-copyright rule
57700         * top/maint.mk (update-copyright-local): Delete, and document how
57701         to do it in cfg.mk instead.
57702         (update-copyright-exclude-regexp): Delete, and document how to do
57703         it in .x-update-copyright instead.
57704         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
57705         exclude ChangeLog.
57707 2009-08-14  Bruno Haible  <bruno@clisp.org>
57709         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
57711 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
57713         maint.mk: support update-copyright-env
57714         * top/maint.mk (update-copyright-env): Define place-holder.
57715         (update-copyright): Expand $(update-copyright-env) before
57716         invoking update-copyright.
57718 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
57720         update-copyright: implement forced reformatting
57721         * build-aux/update-copyright: Implement and document
57722         UPDATE_COPYRIGHT_FORCE.
57723         * tests/test-update-copyright.sh: Test it.
57725 2009-08-14  Eric Blake  <ebb9@byu.net>
57726         and Bruno Haible  <bruno@clisp.org>
57728         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
57729         * tests/test-locale.c: Revert previous patch related to NULL.
57730         * tests/test-stdio.c: Likewise.
57731         * tests/test-stdlib.c: Likewise.
57732         * tests/test-string.c: Likewise.
57733         * tests/test-unistd.c: Likewise.
57734         * modules/time-tests (Depends-on): Add verify.
57735         * modules/wchar-tests (Depends-on): Likewise.
57736         * tests/test-time.c: Test for NULL compliance.
57737         * tests/test-wchar.c: Likewise.
57738         * modules/locale (Depends-on): Add stddef.
57739         * modules/stdio (Depends-on): Likewise.
57740         * modules/stdlib (Depends-on): Likewise.
57741         * modules/string (Depends-on): Likewise.
57742         * modules/time (Depends-on): Likewise.
57743         * modules/unistd (Depends-on): Likewise.
57744         * modules/wchar (Depends-on): Likewise.
57745         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
57746         * lib/stdlib.in.h (includes): Likewise.
57747         * lib/string.in.h (includes): Likewise.
57748         * lib/time.in.h (includes): Likewise.
57749         * lib/unistd.in.h (includes): Likewise.
57750         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
57751         replaced.
57752         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57753         * m4/stddef_h.m4: New file.
57754         * modules/stddef: Likewise.
57755         * lib/stddef.in.h: Likewise.
57756         * modules/stddef-tests: Likewise.
57757         * tests/test-stddef.c: Likewise.
57758         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
57759         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
57760         * doc/posix-headers/locale.texi (locale.h): Likewise.
57761         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
57762         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
57763         * doc/posix-headers/string.texi (string.h): Likewise.
57764         * doc/posix-headers/time.texi (time.h): Likewise.
57765         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
57766         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
57768 2009-08-14  Eric Blake  <ebb9@byu.net>
57770         doc: improve git diff of texinfo files
57771         * .gitattributes: Add rule for *.texi files, with hint on how to
57772         use it.
57773         Copied from m4, and based on a report by Bruno Haible.
57775 2009-08-14  Bruno Haible  <bruno@clisp.org>
57777         Disable multithread support by default on Cygwin 1.5.x for real.
57778         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
57780 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
57782         update-copyright: much ado about intervals
57783         * build-aux/update-copyright: Implement and document
57784         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
57785         of copyright year intervals.
57786         Also, document UPDATE_COPYRIGHT_YEAR.
57787         * tests/test-update-copyright.sh: Test it.
57789         update-copyright: convert 2-digit to 4-digit years
57790         * build-aux/update-copyright: Implement and document.
57791         * tests/test-update-copyright.sh: Update.
57793 2009-08-14  Jim Meyering  <meyering@redhat.com>
57795         test-exclude: avoid coreutils "make check" failure
57796         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
57797         just as in test-argmatch.c.
57799 2009-08-13  Eric Blake  <ebb9@byu.net>
57801         test-dup2: fix bad assumption
57802         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
57803         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
57805         test-version-etc: fix CRLF portability issue
57806         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
57807         recognize \r.
57808         * tests/test-argp-version-etc-1.sh: Likewise.
57810         getopt: update client modules
57811         * modules/argp (Depends-on): Use getopt-gnu.
57812         * modules/git-merge-changelog (Depends-on): Likewise.
57813         * modules/long-options (Depends-on): Likewise.
57814         * modules/xstrtol (Depends-on): Likewise.
57816 2009-08-13  Simon Josefsson  <simon@josefsson.org>
57818         * tests/test-version-etc.sh: Don't fail on different
57819         project/version.  Don't fail on CRLF differences.  Rewrite to use
57820         multiple -e instead of multiple sed forks, suggested by Eric Blake
57821         <ebb9@byu.net>.
57822         * tests/test-argp-version-etc-1.sh: Likewise.
57824 2009-08-13  Simon Josefsson  <simon@josefsson.org>
57826         * tests/test-version-etc.sh: Don't fail on different
57827         project/version.
57829 2009-08-12  Bruno Haible  <bruno@clisp.org>
57831         Tests for modules 'getopt-posix', 'getopt-gnu'.
57832         * modules/getopt-posix-tests: New file.
57833         * tests/test-getopt.c: New file.
57834         * tests/test-getopt.h: New file.
57835         * tests/test-getopt_long.h: New file.
57837         New modules 'getopt-posix', 'getopt-gnu'.
57838         * modules/getopt-gnu: New file, renamed from modules/getopt.
57839         * modules/getopt-posix: New file.
57840         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
57841         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
57842         (gl_GETOPT): Remove macro.
57843         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
57844         Disable the test against BSD systems that declare optreset. Test
57845         against mingw bug. Test against lack of support of optional arguments
57846         on many platforms.
57847         * doc/glibc-headers/getopt.texi: Update module name and list of
57848         relevant platforms.
57849         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
57850         'getopt-gnu' and more portability problems.
57851         * NEWS: Mention the changes.
57853 2009-08-12  Bruno Haible  <bruno@clisp.org>
57855         Ensure that optarg etc. get declared by <unistd.h>.
57856         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
57857         AC_USE_SYSTEM_EXTENSIONS.
57858         * modules/getopt (Depends-on): Add 'extensions'.
57860 2009-08-12  Bruno Haible  <bruno@clisp.org>
57862         Avoid test link errors.
57863         * modules/pipe-filter-ii-tests (Makefile.am): Define
57864         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
57865         * modules/pipe-filter-gi-tests (Makefile.am): Define
57866         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
57867         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57869 2009-08-12  Bruno Haible  <bruno@clisp.org>
57871         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
57872         gl_GETOPT_SUBSTITUTE before.
57873         (gl_GETOPT): Use it.
57874         * m4/argp.m4 (gl_ARGP): Update.
57875         Reported by Sergey Poznyakoff.
57877         * m4/getopt.m4: Reorder macros.
57878         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
57879         (gl_GETOPT_SUBSTITUTE): Remove macro.
57881 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57883         Minor improvement in gitlog-to-changelog
57885         * build-aux/gitlog-to-changelog: New option `--format' makes
57886         output format string configurable.
57888 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57890         Optimize exclude: use hash tables for non-wildcard patterns.
57892         * lib/exclude.c: Include hash.h and mbuiter.h
57893         (struct exclude_pattern, exclude_segment): New data types.
57894         (struct exclude): Rewrite.
57895         (fnmatch_pattern_has_wildcards): New function.
57896         (new_exclude_segment, free_exclude_segment): New functions.
57897         (excluded_file_pattern_p, excluded_file_name_p): New functions.
57898         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
57899         * lib/exclude.h (is_fnmatch_pattern): New prototype.
57900         * modules/exclude: Depend on hash and mbuiter.
57902         * modules/exclude-tests: New file.
57903         * tests/test-exclude.c: New file.
57904         * tests/test-exclude1.sh: New file.
57905         * tests/test-exclude2.sh: New file.
57906         * tests/test-exclude3.sh: New file.
57907         * tests/test-exclude4.sh: New file.
57908         * tests/test-exclude5.sh: New file.
57909         * tests/test-exclude6.sh: New file.
57910         * tests/test-exclude7.sh: New file.
57912 2009-08-12  Bruno Haible  <bruno@clisp.org>
57914         Ensure that getopt() gets declared by <unistd.h>.
57915         * lib/unistd.in.h: Conditionally include getopt.h.
57916         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
57917         Set GNULIB_UNISTD_H_GETOPT.
57918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57919         GNULIB_UNISTD_H_GETOPT.
57920         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
57922 2009-08-12  Bruno Haible  <bruno@clisp.org>
57924         Clarify logic.
57925         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
57926         gl_replace_getopt instead of GETOPT_H.
57928 2009-08-12  Bruno Haible  <bruno@clisp.org>
57930         * m4/getopt.m4: Add comments.
57932 2009-08-12  Bruno Haible  <bruno@clisp.org>
57934         Disable multithread support by default on Cygwin 1.5.x.
57935         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
57936         set gl_use_threads=no if not specified otherwise.
57938 2009-08-11  Bruno Haible  <bruno@clisp.org>
57940         Avoid compilation error on NetBSD 5.0.
57941         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
57942         * tests/test-stdio.c: Likewise.
57943         * tests/test-stdlib.c: Likewise.
57944         * tests/test-string.c: Likewise.
57945         * tests/test-unistd.c: Likewise.
57946         Reported by Greg Troxel <gdt@ir.bbn.com>
57947         at <https://savannah.gnu.org/support/?106973>.
57949 2009-08-11  Bruno Haible  <bruno@clisp.org>
57951         * modules/dup2-tests (Depends-on): Remove close.
57953         Undo 2009-07-19 commit.
57954         * modules/acl-tests (Depends-on): Remove close.
57955         * modules/binary-io-tests (Depends-on): Likewise.
57956         * modules/closein-tests (Depends-on): Likewise.
57957         * modules/flock-tests (Depends-on): Likewise.
57958         * modules/fsync-tests (Depends-on): Likewise.
57959         * modules/lseek-tests (Depends-on): Likewise.
57960         * modules/pipe-tests (Depends-on): Likewise.
57961         * modules/posix_spawn-tests (Depends-on): Likewise.
57962         * modules/posix_spawnp-tests (Depends-on): Likewise.
57963         * modules/stat-time-tests (Depends-on): Likewise.
57964         * modules/yesno-tests (Depends-on): Likewise.
57966 2009-08-10  Bruno Haible  <bruno@clisp.org>
57968         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
57970 2009-08-10  Bruno Haible  <bruno@clisp.org>
57972         Fix a gcc warning.
57973         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
57975 2009-08-10  Bruno Haible  <bruno@clisp.org>
57977         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
57978         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
57979         not only the first time.
57980         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
57981         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
57982         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
57983         is 1, not only the the first time.
57985 2009-08-10  Bruno Haible  <bruno@clisp.org>
57987         Make it possible to use module 'gethostname' without module 'close'.
57988         * lib/unistd.in.h (close): Evoke a link error only if
57989         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
57990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57991         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
57992         * modules/unistd (Makefile.am): Substitute
57993         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
57994         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
57995         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
57996         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
57997         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
57998         * modules/sys_ioctl (Makefile.am): Substitute
57999         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
58000         * modules/socket (configure.ac): On native Windows, set
58001         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
58002         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
58003         Reported by Sam Steingold <sds@gnu.org>.
58005 2009-08-10  Bruno Haible  <bruno@clisp.org>
58007         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
58008         * modules/ioctl (configure.ac): Likewise.
58010 2009-08-10  Bruno Haible  <bruno@clisp.org>
58012         Avoid collision between gnulib wrapper and libintl wrapper.
58013         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
58014         already defined in intl/printf.c.
58015         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
58016         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
58018 2009-08-09  Bruno Haible  <bruno@clisp.org>
58020         Make <sys/select.h> really self-contained, also on Solaris 10.
58021         * lib/sys_select.in.h: Include <string.h>.
58022         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
58023         Solaris 10 problem.
58024         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
58025         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
58026         Reported by Jim Meyering.
58028 2009-08-09  Bruno Haible  <bruno@clisp.org>
58030         Avoid warnings from 'aclocal' that are due to a use of macro name
58031         AM_XGETTEXT_OPTION that is not defined in automake.
58032         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
58033         automake.
58034         * modules/error (configure.ac): Likewise.
58035         * modules/propername (configure.ac): Likewise.
58036         * modules/vasprintf (configure.ac): Likewise.
58037         * modules/verror (configure.ac): Likewise.
58038         * modules/xprintf (configure.ac): Likewise.
58039         * modules/xvasprintf (configure.ac): Likewise.
58041 2009-08-08  Bruno Haible  <bruno@clisp.org>
58043         Avoid compilation error in C++ mode.
58044         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
58045         Reported by Sam Steingold <sds@gnu.org>.
58047 2009-08-08  Bruno Haible  <bruno@clisp.org>
58049         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
58050         for the various Unix platforms.
58051         * doc/posix-headers/limits.texi: Update platforms list regarding
58052         HOST_NAME_MAX.
58053         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58055 2009-08-07  Jim Meyering  <meyering@redhat.com>
58057         selinux-at: fix typo in a comment
58058         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
58059         Spotted by Paolo Bonzini.
58061         selinux-at: remove redundant m4 code, add documentation
58062         * modules/selinux-at (configure.ac): Remove redundant code.
58063         LIB_SELINUX is already set via the dependent module, selinux-h.
58064         (Include): Add quotes around selinux-at.h.
58065         * lib/selinux-at.h: Add documentation.
58066         Reported by Bruno Haible in
58067         http://marc.info/?l=gnulib-bug&m=124958988300749
58069 2009-08-07  Bruno Haible  <bruno@clisp.org>
58071         Avoid link error on MacOS X 10.3 and 10.4.
58072         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
58073         on non-ELF systems.
58074         * lib/argp-pv.c (argp_program_version): Likewise.
58075         Reported by Simon Josefsson.
58077 2009-08-07  Simon Josefsson  <simon@josefsson.org>
58079         * tests/test-version-etc.sh: Use $EXEEXT.
58081 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
58083         update-copyright: update documentation to point to maint.mk
58084         * build-aux/update-copyright: Here.
58086 2009-08-06  Jim Meyering  <meyering@redhat.com>
58088         maint.mk: support update-copyright-local
58089         * top/maint.mk (update-copyright-local): Define place-holder.
58090         (update-copyright): Depend on $(update-copyright-local).
58092 2009-08-06  Jim Meyering  <meyering@redhat.com>
58094         selinux-at: new module
58095         Initially written for coreutils, this module will soon be
58096         used by findutils, too.
58097         * MODULES.html.sh [Misc]: Add selinux-at.
58098         * lib/selinux-at.h: New file, from coreutils.
58099         * lib/selinux-at.c: Likewise.
58100         * modules/selinux-at: Likewise.
58101         (License): Change from LGPL to GPL, since it depends
58102         on the GPL'd openat module.
58104         doc: update README
58105         * README: Remove references to cogito.
58106         Remove cvs-repo-updating instructions from 2007.
58107         Don't imply that CVS is better if you have limited disk space.
58109 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
58111         update-copyright: support C-style comments
58112         * build-aux/update-copyright: Implement and document.
58113         * tests/test-update-copyright.sh: Test.
58115 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
58117         update-copyright: support omitted "(C)"
58118         * build-aux/update-copyright: Implement and document.  Also,
58119         allow variable whitespace before "(C)".
58120         * tests/test-update-copyright.sh: Test.
58122 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
58124         update-copyright: don't trip on non-FSF copyright statements
58125         * build-aux/update-copyright: Fix so that the first correctly
58126         formatted FSF copyright statement is recognized no matter what
58127         appears before it.  Update documentation.
58128         * tests/test-update-copyright.sh: Test that.
58130 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
58132         update-copyright: clean up code a little
58133         * build-aux/update-copyright: Append "_re" to the name of any
58134         variable holding a regular expression.
58135         Replace "old" and "new" with "stmt" in variable names.
58136         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
58137         handled correctly.
58138         Format code more consistently.
58140 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
58142         update-copyright-tests: improve portability
58143         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
58144         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
58146 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
58148         update-copyright: support @copyright{} and &copy;
58149         * build-aux/update-copyright: Implement and document.
58150         * tests/test-update-copyright.sh: Test.
58152 2009-08-04  Jim Meyering  <meyering@redhat.com>
58154         update-copyright-tests: correctly test EOL=\r\n handling
58155         * tests/test-update-copyright.sh: Put \r at the end of some lines
58156         for the dos-eol tests.  Based on a patch by Joel E. Denny.
58158         maint.mk: make update-copyright exclusion list more configurable
58159         * top/maint.mk (update-copyright): Default to excluding COPYING,
58160         but allow an override, in case someone does want to update that file.
58162         maint.mk: don't update copyright date in COPYING
58163         * top/maint.mk (update-copyright): Exclude COPYING.
58165         maint.mk: add a copyright-updating rule
58166         * top/maint.mk (update-copyright): New rule.
58167         Derived from coreutils/Makefile.am.
58169         update-copyright: rename some variables
58170         * build-aux/update-copyright: Rename a few variables for clarity.
58171         Tweak syntax.  List Joel E. Denny as coauthor.
58173 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
58175         update-copyright: fix bug for 2-digit last year and add tests
58176         * build-aux/update-copyright: Fix bug.
58177         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
58178         specified.
58179         * modules/update-copyright-tests: New
58180         * tests/test-update-copyright.sh: New.
58182 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
58184         update-copyright: handle leading tabs in line prefix
58185         * build-aux/update-copyright: Count leading tabs as 8 spaces
58186         when computing margin.  This helps with the formatting of
58187         ChangeLogs, for example.
58188         Fix documentation a little.
58190 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
58192         update-copyright: support EOL=\r\n
58193         * build-aux/update-copyright: Implement that.
58195 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
58197         update-copyright: automatically format copyright statements
58198         * build-aux/update-copyright: Implement that.
58199         Also, be a little more predictable and safer by always failing
58200         when the full copyright format is not perfectly recognized as an
58201         unbroken whole.  Discussed at
58202         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
58203         Rewrite documentation.
58205 2009-08-03  Bruno Haible  <bruno@clisp.org>
58207         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
58209 2009-08-02  Bruno Haible  <bruno@clisp.org>
58211         Tests for module 'uname'.
58212         * modules/uname-tests: New file.
58213         * tests/test-uname.c: New file.
58215         New module 'uname'.
58216         * lib/uname.c: New file.
58217         * m4/uname.m4: New file.
58218         * modules/uname: New file.
58219         * doc/posix-functions/uname.texi: Mention the new module.
58221 2009-08-02  Bruno Haible  <bruno@clisp.org>
58223         Tests for module 'sys_utsname'.
58224         * modules/sys_utsname-tests: New file.
58225         * tests/test-sys_utsname.c: New file.
58227         New module 'sys_utsname'.
58228         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
58229         * m4/sys_utsname_h.m4: New file.
58230         * modules/sys_utsname: New file.
58231         * doc/posix-headers/sys_utsname.texi: Mention the new module.
58233 2009-08-02  Bruno Haible  <bruno@clisp.org>
58235         Implicitly initialize the sockets library.
58236         * lib/gethostname.c: Include sockets.h.
58237         (rpl_gethostname): Invoke gl_sockets_startup.
58238         * lib/socket.c: Include sockets.h.
58239         (rpl_socket): Invoke gl_sockets_startup.
58240         * modules/gethostname (Depends-on): Add sockets.
58241         * modules/socket (Depends-on): Likewise.
58242         * tests/test-poll.c: Don't include sockets.h.
58243         (main): Don't invoke gl_sockets_startup.
58244         * tests/test-select.c: Don't include sockets.h.
58245         (main): Don't invoke gl_sockets_startup.
58247 2009-08-02  Bruno Haible  <bruno@clisp.org>
58249         Allow multiple calls to gl_sockets_startup.
58250         * lib/sockets.c (initialized_sockets_version): New variable.
58251         (gl_sockets_startup): Do nothing if already called for this or a higher
58252         version.
58253         (gl_sockets_cleanup): Reset initialized_sockets_version.
58255 2009-08-03  Simon Josefsson  <simon@josefsson.org>
58257         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
58258         different project/version.
58260 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
58261             Bruno Haible  <bruno@clisp.org>
58263         Tests for module 'pipe-filter-gi'.
58264         * modules/pipe-filter-gi-tests: New file.
58265         * tests/test-pipe-filter-gi1.sh: New file.
58266         * tests/test-pipe-filter-gi1.c: New file.
58267         * tests/test-pipe-filter-gi2.sh: New file.
58268         * tests/test-pipe-filter-gi2-main.c: New file.
58269         * tests/test-pipe-filter-gi2-child.c: New file.
58271         New module 'pipe-filter-gi'.
58272         * lib/pipe-filter-gi.c: New file.
58273         * modules/pipe-filter-gi: New file.
58275 2009-08-02  Bruno Haible  <bruno@clisp.org>
58276             Paolo Bonzini  <bonzini@gnu.org>
58278         Tests for module 'pipe-filter-ii'.
58279         * modules/pipe-filter-ii-tests: New file.
58280         * tests/test-pipe-filter-ii1.sh: New file.
58281         * tests/test-pipe-filter-ii1.c: New file.
58282         * tests/test-pipe-filter-ii2.sh: New file.
58283         * tests/test-pipe-filter-ii2-main.c: New file.
58284         * tests/test-pipe-filter-ii2-child.c: New file.
58286         New module 'pipe-filter-ii'.
58287         * lib/pipe-filter.h: New file.
58288         * lib/pipe-filter-ii.c: New file.
58289         * lib/pipe-filter-aux.h: New file.
58290         * modules/pipe-filter-ii: New file.
58292 2009-08-02  Simon Josefsson  <simon@josefsson.org>
58294         * lib/gc-libgcrypt.c: Change copyright to FSF.
58295         * lib/gc-gnulib.c: Likewise.
58297 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
58299         * lib/gethostname.c: Include limits.h.
58301 2009-08-02  Simon Josefsson  <simon@josefsson.org>
58302             Bruno Haible  <bruno@clisp.org>
58304         Ensure HOST_NAME_MAX as part of the gethostname module.
58305         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
58306         define also HOST_NAME_MAX.
58307         * tests/test-gethostname.c: Include <limits.h>.
58308         (main): Check also HOST_NAME_MAX.
58309         * doc/posix-headers/limits.texi: Document the mingw problem.
58311 2009-08-02  Bruno Haible  <bruno@clisp.org>
58313         * lib/gethostname.c (gethostname): Fix handling of large len argument.
58314         Add comments.
58316 2009-03-31  Simon Josefsson  <simon@josefsson.org>
58318         * lib/gethostname.c: Add Windows wrapper.
58319         * m4/gethostname.m4: Look for gethostname in -lws2_32.
58320         * modules/gethostname: Depend on sys_socket & errno, for also
58321         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
58322         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
58324 2009-07-31  Jim Meyering  <meyering@redhat.com>
58326         getloadavg: fix symbol name in comment
58327         * lib/getloadavg.c: Correct a typo I introduced when adding
58328         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
58329         Matt Kraai spotted the problem.
58331 2009-07-29  Matt Kraai  <mkraai@beckman.com>
58333         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
58334         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
58335         code also if ! defined N_NAME_POINTER.
58336         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
58337         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
58338         but the n_name member is a 12-byte array.
58340 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
58342         update-copyright: generalize comment handling
58343         * build-aux/update-copyright: Handle copyright statements
58344         within more comment styles.
58345         Document usage.
58346         Report any file with an external copyright holder or parse failure.
58348 2009-07-29  Jim Meyering  <meyering@redhat.com>
58350         mktime: correct setting of REPLACE_MKTIME
58351         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
58353         update-copyright: new module
58354         * modules/update-copyright: New file.
58355         * build-aux/update-copyright: New file.
58356         * MODULES.html.sh (maint+release support): Add update-copyright.
58358 2009-07-27  Bruno Haible  <bruno@clisp.org>
58360         Fix compilation error when <ctime> is used and mktime is replaced.
58361         * lib/time.in.h (mktime): New declaration.
58362         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
58363         REPLACE_MKTIME instead of defining mktime in config.h.
58364         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
58365         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
58366         Reported by Ross McFarland <rwmcfa1@neces.com>.
58368 2009-07-27  Bruno Haible  <bruno@clisp.org>
58370         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
58371         Reported by Matt Kraai <mkraai@beckman.com>.
58373 2009-07-25  Jim Meyering  <meyering@redhat.com>
58375         maint.mk: avoid warnings about missing files
58376         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
58377         diagnostic when .prev-version does not exist.
58378         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
58379         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
58380         nonexistent cfg.mk.
58381         Suggestions from Simon Josefsson.
58383 2009-07-25  Bruno Haible  <bruno@clisp.org>
58385         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
58386         defined as macros. Needed on QNX 6.4.1.
58387         Reported by Matt Kraai <mkraai@beckman.com>.
58389 2009-07-23  Jim Meyering  <meyering@redhat.com>
58391         maint.mk: invoke "make dist" with a working value of XZ_OPT
58392         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
58394 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
58396         Make fseeko.c compile on QNX.
58397         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
58399 2009-07-22  Peter Simons  <simons@cryp.to>
58401         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
58402         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
58403         * lib/md4.h: Likewise.
58404         * lib/md5.h: Likewise.
58405         * lib/sha1.h: Likewise.
58406         * lib/sha256.h: Likewise.
58407         * lib/sha512.h: Likewise.
58409         tests-sha1: don't assign literal string to 'char *' variable
58410         * tests/test-sha1.c (main): Declare locals with "const" to match
58411         attributes of the right hand side.
58413 2009-07-21  Eric Blake  <ebb9@byu.net>
58415         dup2: fix more mingw problems
58416         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
58417         fd to itself.
58418         * doc/posix-functions/dup2.texi (dup2): Document the bug.
58419         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
58420         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
58421         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
58422         care of mingw bugs.
58424 2009-07-21  Jim Meyering  <meyering@redhat.com>
58426         vc-list-files: avoid failure when /bin/sh is dash
58427         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
58428         On some Debian based systems, /bin/sh is a symlink to dash, and running
58429         this command would omit the "/" following each 'tests' prefix:
58430           dash -x build-aux/vc-list-files -C . tests
58431         That is because bash and dash work differently:
58432           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
58433           bash ok
58434           dash odd
58436 2009-07-21  Eric Blake  <ebb9@byu.net>
58438         dup2-tests: test previous patch
58439         * modules/dup2-tests: New file.
58440         * tests/test-dup2.c: Likewise.
58441         * tests/test-open.c (main): Avoid unspecified behavior.
58442         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
58443         test.
58445         dup2: work around mingw and cygwin 1.5 bug
58446         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
58447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
58448         * modules/unistd (Makefile.am): Substitute it.
58449         * lib/unistd.in.h (dup2): Declare the replacement.
58450         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
58451         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
58452         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
58453         * modules/execute (Depends-on): Add dup2.
58454         * modules/fseterr (Depends-on): Likewise.
58455         * modules/pipe (Depends-on): Likewise.
58456         * modules/posix_spawn-internal (Depends-on): Likewise.
58458 2009-07-21  Bruno Haible  <bruno@clisp.org>
58460         * modules/.gitattributes: New file.
58462 2009-07-20  Bruno Haible  <bruno@clisp.org>
58464         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
58465         (main): Use it.
58467 2009-07-20  Eric Blake  <ebb9@byu.net>
58469         test-pipe: make a bit more robust.
58470         * tests/test-pipe.c (myerr): Allow error messages regardless of
58471         what we do to stderr.
58472         (test_pipe): Rearrange to avoid deadlock.
58473         (child_main): Try a larger read, to ensure we avoided deadlock.
58474         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
58475         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
58476         if misused.
58478 2009-07-19  Jim Meyering  <meyering@redhat.com>
58480         fts: avoid false-positive cycle-detection
58481         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
58482         for each new command line argument.
58484 2009-07-19  Bruno Haible  <bruno@clisp.org>
58486         Fix build error on mingw with the modules sys_select and unistd.
58487         * modules/acl-tests (Depends-on): Add close.
58488         * modules/binary-io-tests (Depends-on): Likewise.
58489         * modules/closein-tests (Depends-on): Likewise.
58490         * modules/flock-tests (Depends-on): Likewise.
58491         * modules/fsync-tests (Depends-on): Likewise.
58492         * modules/lseek-tests (Depends-on): Likewise.
58493         * modules/pipe-tests (Depends-on): Likewise.
58494         * modules/posix_spawn-tests (Depends-on): Likewise.
58495         * modules/posix_spawnp-tests (Depends-on): Likewise.
58496         * modules/stat-time-tests (Depends-on): Likewise.
58497         * modules/yesno-tests (Depends-on): Likewise.
58499 2009-07-19  Bruno Haible  <bruno@clisp.org>
58501         Unify conditionals.
58502         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
58503         macros, not at the compiler macros.
58504         * lib/pipe.c: Likewise.
58505         * lib/execute.c: Likewise.
58506         * lib/spawni.c: Likewise.
58508 2009-07-19  Bruno Haible  <bruno@clisp.org>
58510         Fix handling of closed stdin/stdout/stderr on mingw.
58511         * lib/w32spawn.h: Include unistd.h.
58512         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
58513         file descriptor with O_NOINHERIT flag.
58514         (fd_safer_noinherit): New function, based on fd-safer.c.
58515         (dup_safer_noinherit): New function, based on dup-safer.c.
58516         (undup_safer_noinherit): New function.
58517         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
58518         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
58519         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
58520         instead of fd_safer.
58521         * tests/test-pipe.c: Include <windows.h>.
58522         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
58523         result.
58525         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
58526         from main.
58527         (test_pipe): Pass an extra argument for disambiguation.
58528         (main): Invoke parent_main or child_main.
58530         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
58531         consistently.
58533 2009-07-18  Eric Blake  <ebb9@byu.net>
58535         test-pipe: fix mingw build
58536         * tests/test-pipe.c (main): Avoid fcntl on mingw.
58538 2009-07-18  Bruno Haible  <bruno@clisp.org>
58540         * modules/pipe-tests (Makefile.am): Fix typo.
58542 2009-07-18  Eric Blake  <ebb9@byu.net>
58544         error: fix mingw build
58545         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
58546         Reported by Bruno Haible.
58548         error: avoid undefined use of stdout
58549         * lib/error.c (error, error_at_line): Check that fd 1 is open
58550         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
58551         is handling faults and the close_stdout module wants to report the
58552         detection of closed stdout as an error.
58554 2009-07-17  Eric Blake  <ebb9@byu.net>
58556         pipe: be robust in face of closed fds
58557         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
58558         should cause child to misbehave.
58559         * modules/pipe-tests: New module.
58560         * tests/test-pipe.c: New file.
58561         * tests/test-pipe.sh: New file.
58562         Reported by Akim Demaille.
58564 2009-07-14  Bruno Haible  <bruno@clisp.org>
58566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
58567         Reported by anonymous kc.
58569 2009-07-07  Jim Meyering  <meyering@redhat.com>
58571         maint.mk: don't look for translatable strings in *.m4 or *.mk
58572         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
58573         when searching for translatable strings.
58575 2009-07-05  Jim Meyering  <meyering@redhat.com>
58577         remove superfluous parentheses in STREQ definition
58578         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
58579         * lib/getugroups.c (STREQ): Likewise.
58580         * lib/fnmatch.c (STREQ): Likewise.
58581         Spotted by Bruno Haible.
58583 2009-07-04  Jim Meyering  <meyering@redhat.com>
58585         argv-iter: new module
58586         * MODULES.html.sh: Add argv-iter.
58587         * lib/argv-iter.c, lib/argv-iter.h: New files.
58588         * modules/argv-iter: New file.
58589         * modules/argv-iter-tests: New file.
58590         * tests/test-argv-iter.c: Test it.
58592 2009-07-04  Bruno Haible  <bruno@clisp.org>
58594         Fix assertion.
58595         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
58596         contains more exact copies of a given entry than file2, leave the extra
58597         copies unpaired rather than aborting.
58598         Reported by Eric Blake.
58600 2009-07-02  Bruno Haible  <bruno@clisp.org>
58602         Speedup git-merge-changelog for git cherry-pick.
58603         * lib/git-merge-changelog.c (struct entries_mapping): New type.
58604         (entries_mapping_get): New function, extracted from compute_mapping.
58605         (entries_mapping_reverse_get): New function.
58606         (compute_mapping): Add a 'full' argument. Return the result in a
58607         'struct entries_mapping'.
58608         (main): Update. Access the mappings through entries_mapping_get.
58609         Reported by Eric Blake.
58611 2009-07-02  Bruno Haible  <bruno@clisp.org>
58613         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
58614         best_i.
58616 2009-07-02  Bruno Haible  <bruno@clisp.org>
58618         Speed up approximate search for matching ChangeLog entries.
58619         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
58620         argument. Call fstrcmp_bounded instead of fstrcmp.
58621         (compute_mapping, try_split_merged_entry, main): Update callers.
58623 2009-07-02  Bruno Haible  <bruno@clisp.org>
58625         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
58627 2009-06-30  Bruno Haible  <bruno@clisp.org>
58629         Reduce the number of uc_is_cased calls.
58630         * lib/unicase.h (casing_suffix_context_t): Add
58631         'first_char_except_ignorable' field.
58632         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
58633         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
58634         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
58635         Update initializer.
58636         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
58637         case-ignorable characters.
58638         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
58639         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
58640         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
58641         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
58642         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
58644 2009-06-30  Bruno Haible  <bruno@clisp.org>
58646         Tests for module 'unicase/ignorable'.
58647         * modules/unicase/ignorable-tests: New file.
58648         * tests/unicase/test-ignorable.c: New file, generated by
58649         gen-uni-tables.
58651         Tests for module 'unicase/cased'.
58652         * modules/unicase/cased-tests: New file.
58653         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
58654         * tests/unicase/test-predicate-part1.h: New file, derived from
58655         tests/unictype/test-predicate-part1.h.
58656         * tests/unicase/test-predicate-part2.h: New file, same as
58657         tests/unictype/test-predicate-part2.h.
58659         Fix evaluation of "Before C" condition of FINAL_SIGMA.
58660         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
58661         (output_casing_properties): New function.
58662         (main): Call it.
58663         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
58664         * lib/unicase/cased.c: Include unictype/bitmap.h.
58665         (uc_is_cased): Define through a bitmap lookup.
58666         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
58667         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
58668         (uc_is_case_ignorable): Define through a bitmap lookup.
58669         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
58670         lib/unictype/bitmap.h.
58671         (Depends-on): Add inline. Clean up.
58672         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
58673         lib/unictype/bitmap.h.
58674         (Depends-on): Add inline. Clean up.
58675         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
58676         recognition.
58677         * tests/unicase/test-u16-tolower.c (main): Likewise.
58678         * tests/unicase/test-u32-tolower.c (main): Likewise.
58680 2009-06-30  Bruno Haible  <bruno@clisp.org>
58682         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
58683         * lib/unicase/u16-casemap.c: Likewise.
58684         * lib/unicase/u32-casemap.c: Likewise.
58686 2009-06-29  Bruno Haible  <bruno@clisp.org>
58688         Define u32_casefold as a wrapper around u32_ct_casefold.
58689         * lib/unicase/u32-casefold.c: Update.
58690         * modules/unicase/u32-casefold (Depends-on): Add
58691         unicase/u32-ct-casefold, unicase/empty-prefix-context,
58692         unicase/empty-suffix-context. Clean up.
58694         Define u16_casefold as a wrapper around u16_ct_casefold.
58695         * lib/unicase/u16-casefold.c: Update.
58696         * modules/unicase/u16-casefold (Depends-on): Add
58697         unicase/u16-ct-casefold, unicase/empty-prefix-context,
58698         unicase/empty-suffix-context. Clean up.
58700         Define u8_casefold as a wrapper around u8_ct_casefold.
58701         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
58702         * lib/unicase/u8-casefold.c: Update.
58703         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
58704         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
58706         Define u32_totitle as a wrapper around u32_ct_totitle.
58707         * lib/unicase/u32-totitle.c: Update.
58708         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
58709         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
58711         Define u16_totitle as a wrapper around u16_ct_totitle.
58712         * lib/unicase/u16-totitle.c: Update.
58713         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
58714         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
58716         Define u8_totitle as a wrapper around u8_ct_totitle.
58717         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
58718         functions.
58719         (FUNC): Delegate to U_CT_TOTITLE.
58720         * lib/unicase/u8-totitle.c: Update.
58721         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
58722         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
58724         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
58725         invocation.
58726         * modules/unicase/u32-tolower (Depends-on): Add
58727         unicase/empty-prefix-context, unicase/empty-suffix-context.
58729         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
58730         invocation.
58731         * modules/unicase/u16-tolower (Depends-on): Add
58732         unicase/empty-prefix-context, unicase/empty-suffix-context.
58734         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
58735         * modules/unicase/u8-tolower (Depends-on): Add
58736         unicase/empty-prefix-context, unicase/empty-suffix-context.
58738         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
58739         invocation.
58740         * modules/unicase/u32-toupper (Depends-on): Add
58741         unicase/empty-prefix-context, unicase/empty-suffix-context.
58743         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
58744         invocation.
58745         * modules/unicase/u16-toupper (Depends-on): Add
58746         unicase/empty-prefix-context, unicase/empty-suffix-context.
58748         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
58749         * modules/unicase/u8-toupper (Depends-on): Add
58750         unicase/empty-prefix-context, unicase/empty-suffix-context.
58752         New module 'unicase/u32-ct-casefold'.
58753         * lib/unicase/u32-ct-casefold.c: New file.
58754         * modules/unicase/u32-ct-casefold: New file.
58756         New module 'unicase/u16-ct-casefold'.
58757         * lib/unicase/u16-ct-casefold.c: New file.
58758         * modules/unicase/u16-ct-casefold: New file.
58760         New module 'unicase/u8-ct-casefold'.
58761         * lib/unicase/u8-ct-casefold.c: New file.
58762         * lib/unicase/u-ct-casefold.h: New file, derived from
58763         lib/unicase/u-casefold.h.
58764         * modules/unicase/u8-ct-casefold: New file.
58766         New module 'unicase/u32-ct-totitle'.
58767         * lib/unicase/u32-ct-totitle.c: New file.
58768         * modules/unicase/u32-ct-totitle: New file.
58770         New module 'unicase/u16-ct-totitle'.
58771         * lib/unicase/u16-ct-totitle.c: New file.
58772         * modules/unicase/u16-ct-totitle: New file.
58774         New module 'unicase/u8-ct-totitle'.
58775         * lib/unicase/u8-ct-totitle.c: New file.
58776         * lib/unicase/u-ct-totitle.h: New file, derived from
58777         lib/unicase/u-totitle.h.
58778         * modules/unicase/u8-ct-totitle: New file.
58780         New module 'unicase/u32-ct-tolower'.
58781         * lib/unicase/u32-ct-tolower.c: New file.
58782         * modules/unicase/u32-ct-tolower: New file.
58784         New module 'unicase/u16-ct-tolower'.
58785         * lib/unicase/u16-ct-tolower.c: New file.
58786         * modules/unicase/u16-ct-tolower: New file.
58788         New module 'unicase/u8-ct-tolower'.
58789         * lib/unicase/u8-ct-tolower.c: New file.
58790         * modules/unicase/u8-ct-tolower: New file.
58792         New module 'unicase/u32-ct-toupper'.
58793         * lib/unicase/u32-ct-toupper.c: New file.
58794         * modules/unicase/u32-ct-toupper: New file.
58796         New module 'unicase/u16-ct-toupper'.
58797         * lib/unicase/u16-ct-toupper.c: New file.
58798         * modules/unicase/u16-ct-toupper: New file.
58800         New module 'unicase/u8-ct-toupper'.
58801         * lib/unicase/u8-ct-toupper.c: New file.
58802         * modules/unicase/u8-ct-toupper: New file.
58804         Add context arguments to u*_casemap functions.
58805         * lib/unicase/unicasemap.h: Include unicase.h.
58806         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
58807         suffix_context arguments.
58808         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
58809         functions.
58810         (FUNC): Add prefix_context and suffix_context arguments. Use
58811         uc_is_cased and uc_is_case_ignorable.
58812         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
58813         * lib/unicase/u16-casemap.c: Likewise.
58814         * lib/unicase/u32-casemap.c: Likewise.
58815         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
58816         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
58817         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
58818         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
58819         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
58820         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
58822         New module 'unicase/u32-suffix-context'.
58823         * lib/unicase/u32-suffix-context.c: New file.
58824         * modules/unicase/u32-suffix-context: New file.
58826         New module 'unicase/u16-suffix-context'.
58827         * lib/unicase/u16-suffix-context.c: New file.
58828         * modules/unicase/u16-suffix-context: New file.
58830         New module 'unicase/u8-suffix-context'.
58831         * lib/unicase/u8-suffix-context.c: New file.
58832         * lib/unicase/u-suffix-context.h: New file.
58833         * modules/unicase/u8-suffix-context: New file.
58835         New module 'unicase/empty-suffix-context'.
58836         * lib/unicase/empty-suffix-context.c: New file.
58837         * modules/unicase/empty-suffix-context: New file.
58839         New module 'unicase/u32-prefix-context'.
58840         * lib/unicase/u32-prefix-context.c: New file.
58841         * modules/unicase/u32-prefix-context: New file.
58843         New module 'unicase/u16-prefix-context'.
58844         * lib/unicase/u16-prefix-context.c: New file.
58845         * modules/unicase/u16-prefix-context: New file.
58847         New module 'unicase/u8-prefix-context'.
58848         * lib/unicase/u8-prefix-context.c: New file.
58849         * lib/unicase/u-prefix-context.h: New file.
58850         * lib/unicase/context.h: New file.
58851         * modules/unicase/u8-prefix-context: New file.
58853         New module 'unicase/empty-prefix-context'.
58854         * lib/unicase/empty-prefix-context.c: New file.
58855         * modules/unicase/empty-prefix-context: New file.
58857         New module 'unicase/ignorable'.
58858         * lib/unicase/ignorable.c: New file.
58859         * modules/unicase/ignorable: New file.
58861         New module 'unicase/cased'.
58862         * lib/unicase/caseprop.h: New file.
58863         * lib/unicase/cased.c: New file.
58864         * modules/unicase/cased: New file.
58866         New functions for case mapping of substrings.
58867         * lib/unicase.h (casing_prefix_context_t): New type.
58868         (unicase_empty_prefix_context): New variable.
58869         (u8_casing_prefix_context, u16_casing_prefix_context,
58870         u32_casing_prefix_context, u8_casing_prefixes_context,
58871         u16_casing_prefixes_context, u32_casing_prefixes_context): New
58872         declarations.
58873         (casing_suffix_context_t): New type.
58874         (unicase_empty_suffix_context): New variable.
58875         (u8_casing_suffix_context, u16_casing_suffix_context,
58876         u32_casing_suffix_context, u8_casing_suffixes_context,
58877         u16_casing_suffixes_context, u32_casing_suffixes_context,
58878         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
58879         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
58880         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
58881         declarations.
58883 2009-06-28  Jim Meyering  <meyering@redhat.com>
58885         boostrap: indent only with spaces
58886         * build-aux/bootstrap: Indent only with spaces, never TABs.
58888         bootstrap: split long lines
58889         * build-aux/bootstrap: Keep line length < 80.
58891         bootstrap: sync from coreutils
58892         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
58893         just as autoreconf does.  Verify a list of prerequisite
58894         package-name,version-number pairs if defined in bootstrap.conf.
58895         Refer to README-prereq, if prerequisites are not satisfied.
58897 2009-06-27  Eric Blake  <ebb9@byu.net>
58899         tests: add test for bogus NULL definition
58900         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
58901         * tests/test-stdlib.c: Likewise.
58902         * tests/test-string.c: Likewise.
58903         * tests/test-locale.c: Likewise.
58904         * tests/test-unistd.c: Likewise.
58905         * modules/stdio-tests (Depends-on): Add verify.
58906         * modules/stdlib-tests (Depends-on): Likewise.
58907         * modules/string-tests (Depends-on): Likewise.
58908         * modules/locale-tests (Depends-on): Likewise.
58909         * modules/unistd-tests (Depends-on): Likewise.
58911 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
58913         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
58914         self-explaining comment.
58915         * m4/selinux-selinux-h: Update serial.
58916         (gl_LIBSELINUX): New macro, adding a warning for missing development
58917         packages to code extracted from...
58918         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
58919         Add warning for missing development packages here, too.
58921 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
58923         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
58925 2009-06-25  Eric Blake  <ebb9@byu.net>
58927         version-etc: fix regression
58928         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
58929         gcc.
58930         (version_etc): Use it, to catch bugs with trailing NULL.
58931         * lib/version-etc.c (version_etc_arn): Delete unused argument.
58932         (version_etc_va): Fix logic bug.
58933         * modules/version-etc-tests: Add test.
58934         * tests/test-version-etc.c: New file.
58935         * tests/test-version-etc.sh: Likewise.
58937 2009-06-25  Sam Steingold  <sds@gnu.org>
58939         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
58940         mbtowc declaration.
58942 2009-06-25  Eric Blake  <ebb9@byu.net>
58944         fpurge: migrate into <stdio.h>
58945         * lib/fpurge.h: Delete...
58946         * lib/stdio.in.h (fpurge): ...and declare here, instead.
58947         * lib/fpurge.c (fpurge): Change declaring header.
58948         * modules/fpurge (Files): Drop deleted file.
58949         (Depends-on): Add stdio.
58950         (configure.ac): Set witness.
58951         * modules/stdio (Makefile.am): Support fpurge macros.
58952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58953         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
58954         * lib/fflush.c: Update client.
58955         * tests/test-fpurge.c: Likewise.
58956         * NEWS: Mention the change.
58958 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58960         * lib/argp-version-etc.c (program_authors): Add const
58961         qualifier.
58962         * lib/version-etc.c: Fix typos in the comments.
58963         * modules/argp-version-etc: Depends on version-etc.
58965 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58967         argp-version-etc: new module.
58969         * lib/argp-version-etc.c: New file.
58970         * lib/argp-version-etc.h: New file.
58971         * modules/argp-version-etc: New file.
58972         * modules/argp-version-etc-tests: New file.
58973         * tests/test-argp-version-etc.c: New test.
58974         * tests/test-argp-version-etc-1.sh: New test.
58976 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
58978         Provide additional interfaces and documentation for version-etc
58979         module.
58981         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
58982         interfaces.
58983         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
58984         prototypes.
58986 2009-06-24  Bruno Haible  <bruno@clisp.org>
58988         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
58989         HAVE_LIB${NAME} macro.
58990         Reported by Sam Steingold <sds@gnu.org>.
58992 2009-06-23  Simon Josefsson  <simon@josefsson.org>
58994         * modules/hash-tests (test_hash_LDADD): Link to libintl when
58995         needed.
58997 2009-06-21  Bruno Haible  <bruno@clisp.org>
58999         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
59000         work.
59001         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
59002         together with LIB${NAME}, LTLIB${NAME}.
59003         Reported by Sam Steingold <sds@gnu.org>.
59005 2009-06-20  Jim Meyering  <meyering@redhat.com>
59007         tests: make sc_require_test_exit_idiom more generic
59008         * top/maint.mk (Exit_witness_file): New overridable variable.
59009         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
59010         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
59012 2009-06-19  Jim Meyering  <meyering@redhat.com>
59014         hash: reverse order of src/dst parameters in an internal interface
59015         * lib/hash.c (transfer_entries): Reverse order of parameters to
59016         put DST before SRC.  Adjust callers.
59018         tests: test-hash: avoid wholesale duplication
59019         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
59020         Instead, use a loop and add a single conditional.
59022         tests: test-hash: allow seed selection via a command line argument
59023         * tests/test-hash.c (get_seed): New function.
59024         (main): Use it.
59026 2009-06-19  Eric Blake  <ebb9@byu.net>
59028         hash: avoid memory leak on allocation failure
59029         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
59030         failure.  Factor repeated algorithm...
59031         (transfer_entries): ...into new helper routine.
59032         (hash_delete): React to hash_rehash return value.
59034         hash: reduce memory pressure in hash_rehash no-op case
59035         * lib/hash.c (next_prime): Avoid overflow.
59036         (hash_initialize): Factor bucket size computation...
59037         (compute_bucket_size): ...into new helper function.
59038         (hash_rehash): Use new function and open coding to reduce memory
59039         pressure, and avoid a memory leak in USE_OBSTACK code.
59040         Reported by Jim Meyering.
59042 2009-06-18  Eric Blake  <ebb9@byu.net>
59044         hash: make rotation more obvious
59045         * modules/hash (Depends-on): Add bitrotate and stdint.
59046         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
59047         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
59048         (SIZE_MAX): Rely on headers for definition.
59049         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
59050         (raw_hasher): Use rotr_sz.
59051         Suggested by Jim Meyering.
59053         hash: fix memory leak in last patch
59054         * lib/hash.c (hash_rehash): Avoid memory leak.
59056         hash: avoid no-op rehashing
59057         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
59059         hash: provide default callback functions
59060         * lib/hash.c (raw_hasher, raw_comparator): New functions.
59061         (hash_initialize): Use them as defaults.
59062         * tests/test-hash.c (main): Test this.
59064         hash: minor optimization
59065         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
59066         when possible.
59067         (hash_initialize): Document this promise.
59068         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
59069         * tests/test-hash.c (hash_compare_strings): Test this.
59071 2009-06-18  Bruno Haible  <bruno@clisp.org>
59073         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
59074         going to be replaced anyway.
59076 2009-06-18  Bruno Haible  <bruno@clisp.org>
59078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
59079         in one place.
59080         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
59081         be replaced anyway.
59083 2009-06-18  Eric Blake  <ebb9@byu.net>
59085         hash: check for resize before insertion
59086         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
59087         threshold before insertion, so that a pathological hash_rehash
59088         that fills every bucket can still trigger another rehash.
59090 2009-06-18  Jim Meyering  <meyering@redhat.com>
59092         hash-tests: add a loop around the small tests
59093         * tests/test-hash.c (main): Repeat small tests with selected
59094         small initial table sizes.
59096 2009-06-17  Eric Blake  <ebb9@byu.net>
59098         hash: minor cleanups
59099         * lib/hash.h (hash_entry): Make opaque, by moving...
59100         * lib/hash.c (hash_entry): ...here.
59101         (hash_insert): Clarify restrictions on what can be inserted.
59102         (hash_get_next): Clarify when it is safe to remove an element
59103         during traversal.
59104         (check_tuning): Skip verification when tuning is known safe.
59105         (hash_initialize): Clarify restrictions on tuning.
59107 2009-06-17  Jim Meyering  <jim@meyering.net>
59108         and Eric Blake  <ebb9@byu.net>
59110         hash-tests: new module
59111         * modules/hash-tests: New file.
59112         * tests/test-hash.c: New file.
59114 2009-06-17  Eric Blake  <ebb9@byu.net>
59116         strstr-simple: document new module
59117         * MODULES.html.sh: Document new module.
59119         strstr, strcasestr: replace on platforms with broken memchr
59120         * modules/strstr: Split into...
59121         * modules/strstr-simple: ...new module that does not care about
59122         performance, but does care about glibc bug.
59123         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
59124         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
59125         if platform memchr is broken, per Debian bug 521737.
59126         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
59127         memchr.
59128         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
59129         * doc/posix-functions/strstr.texi (strstr): Document the fix.
59130         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59131         * modules/mountlist (Depends-on): Add strstr-simple.
59132         * modules/gen-uni-tables (Depends-on): Likewise.
59133         * modules/argz (Depends-on): Add strstr.
59135 2009-06-17  Bruno Haible  <bruno@clisp.org>
59137         * modules/posix_spawn-internal (Depends-on): Add errno.
59139 2009-06-17  Bruno Haible  <bruno@clisp.org>
59141         Define missing ESTALE on Interix 3.5.
59142         * lib/errno.in.h (ESTALE): Assign a value if missing.
59143         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
59144         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
59145         missing.
59146         * doc/posix-headers/errno.texi: Mention the Interix bug.
59147         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
59149 2009-06-15  Eric Blake  <ebb9@byu.net>
59151         memchr, memchr2: add valgrind exception
59152         * lib/memchr.valgrind: New file.
59153         * lib/memchr2.valgrind: New file.
59154         * modules/memchr (Files): Distribute valgrind file.
59155         * modules/memchr2 (Files): Likewise.
59157         docs: memchr is no longer obsolete
59158         * MODULES.html.sh: Move memchr from obsolete to string.h section.
59159         * lib/string.in.h (memchr): Simplify logic.
59161 2009-06-14  Jim Meyering  <meyering@redhat.com>
59163         link-follow: fix the "checking..." message to not mention trailing slash
59164         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
59165         never considered trailing slashes.
59167 2009-06-14  Bruno Haible  <bruno@clisp.org>
59169         * m4/memchr.m4: Mention also the bug on IA-64.
59170         * doc/posix-functions/memchr.texi: Likewise.
59172 2009-06-12  Eric Blake  <ebb9@byu.net>
59174         memchr: detect broken x86_64 and alpha implementations
59175         * modules/memchr-tests (Depends-on): Move mmap detection...
59176         * modules/memchr (Depends-on): ...here.
59177         (configure.ac): Set indicator.
59178         * lib/string.in.h (memchr): Declare replacement.
59179         * modules/string (Makefile.am): Trigger replacement.
59180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59181         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
59182         bugs.
59183         * doc/posix-functions/memchr.texi (memchr): Document the bug.
59184         * modules/getpagesize (License): Relax license.
59186 2009-06-11  Bruno Haible  <bruno@clisp.org>
59188         * lib/idpriv.h: Add more references.
59190 2009-06-08  Bruno Haible  <bruno@clisp.org>
59192         Tests for module 'idpriv-droptemp'.
59193         * modules/idpriv-droptemp-tests: New file.
59194         * tests/test-idpriv-droptemp.sh: New file.
59195         * tests/test-idpriv-droptemp.su.sh: New file.
59196         * tests/test-idpriv-droptemp.c: New file.
59198         New module 'idpriv-droptemp'.
59199         * lib/idpriv-droptemp.c: New file.
59200         * modules/idpriv-droptemp: New file.
59202 2009-06-08  Bruno Haible  <bruno@clisp.org>
59204         Tests for module 'idpriv-drop'.
59205         * modules/idpriv-drop-tests: New file.
59206         * tests/test-idpriv-drop.sh: New file.
59207         * tests/test-idpriv-drop.su.sh: New file.
59208         * tests/test-idpriv-drop.c: New file.
59210         New module 'idpriv-drop'.
59211         * lib/idpriv.h: New file.
59212         * lib-idpriv-drop.c: New file.
59213         * m4/idpriv.m4: New file.
59214         * modules/idpriv-drop: New file.
59216 2009-06-08  Bruno Haible  <bruno@clisp.org>
59218         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
59219         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59220         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59221         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59222         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59223         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59224         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59226 2009-06-08  Eric Blake  <ebb9@byu.net>
59228         test-strstr: use memory fence, when possible
59229         * tests/test-strstr.c (main): Use memory fence, in order to be
59230         more likely to trigger Debian bug 521737.
59231         * modules/strstr-tests (Files): Pull in additional files.
59233         memchr: no longer obsolete, for wider field testing
59234         * modules/memchr (Status, Notice): Delete, this module is no
59235         longer obsolete.
59236         * modules/vasnprintf (Depends-on): Add memchr.
59238 2009-06-07  Jim Meyering  <meyering@redhat.com>
59240         hash: declare some functions with the warn_unused_result attribute
59241         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
59243 2009-06-07  Bruno Haible  <bruno@clisp.org>
59245         * tests/test-alignof.c: Don't test int64_t if it does not exist.
59246         Reported by Eric Blake.
59248 2009-06-06  Eric Blake  <ebb9@byu.net>
59250         test-alignof: fix typo with long double
59251         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
59252         compiler error.
59254 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
59256         Escape non-texinfo { and }s.
59257         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
59258         markup error.
59260 2009-06-04  Jim Meyering  <meyering@redhat.com>
59262         gitlog-to-changelog: don't infloop on an empty commit log
59263         * build-aux/gitlog-to-changelog: Warn about an empty log message.
59264         Reported by Boris Petersen <transacid@centerim.org>.
59266 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
59268         version-etc: extend for packagers
59269         Add three new configure options, intended for packagers:
59270           --with-packager="packager name"
59271           --with-packager-version="packager-specific version"
59272           --with-packager-bug-reports="packager bug reporting"
59273         An example with coreutils:
59274           $ ./configure \
59275             --with-packager=Gentoo \
59276             --with-packager-bug-report=http://bugs.gentoo.org/ \
59277             --with-packager-version="patchset 1.6"
59278           $ ./src/ls --version | head -n2
59279           ls (GNU coreutils) 7.1-dirty
59280           Packaged by Gentoo (patchset 1.6)
59281         Note that the bug reporting info via --help doesn't show up because
59282         coreutils uses its own custom emit_bug_reporting_address() implementation
59283         in src/system.h.  If it didn't, it'd look like:
59284           $ ./src/ls --help | tail -n4
59285           Report bugs to <bug-coreutils@gnu.org>.
59286           Report Gentoo bugs to <http://bugs.gentoo.org/>.
59287           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
59288           General help using GNU software: <http://www.gnu.org/gethelp/>.
59289         * lib/version-etc.c: Print new information, if provided.
59290         * m4/version-etc.m4: New file.
59291         * modules/version-etc (Files): Add m4/version-etc.m4.
59292         (configure.ac): Add gl_VERSION_ETC.
59294 2009-05-31  Bruno Haible  <bruno@clisp.org>
59296         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
59297         and 'int64_t'.
59298         * modules/alignof-tests (Dependencies): Add stdint.
59299         Reported by Eric Blake.
59301 2009-05-31  Bruno Haible  <bruno@clisp.org>
59303         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
59304         restriction due to compiler bugs.
59305         Reported by Eric Blake.
59307 2009-05-31  Simon Josefsson  <simon@josefsson.org>
59308             Bruno Haible  <bruno@clisp.org>
59310         Fix test-alignof failure.
59311         * lib/alignof.h (alignof_slot): New macro.
59312         (alignof_type): New macro, with the same semantics as the previous
59313         'alignof'.
59314         (alignof): Alias to alignof_slot.
59315         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
59316         check that the results are usable as constant expressions.
59318 2009-05-31  Bruno Haible  <bruno@clisp.org>
59320         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
59321         * tests/test-memchr.c (main): Check that memchr does not read past the
59322         first occurrence of the byte.
59323         * tests/test-strstr.c (main): Update comment.
59324         Suggested by Eric Blake.
59326 2009-05-30  Bruno Haible  <bruno@clisp.org>
59328         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
59329         detail how to use dumpbin.
59330         Reported by David Byron <dbyron@dbyron.com>.
59332 2009-06-02  Simon Josefsson  <simon@josefsson.org>
59334         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
59336 2009-06-02  Simon Josefsson  <simon@josefsson.org>
59338         * m4/manywarnings.m4: Add GCC 4.4 warnings.
59340 2009-05-28  Bruno Haible  <bruno@clisp.org>
59342         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
59343         build-aux/ files.
59345 2009-05-28  Simon Josefsson  <simon@josefsson.org>
59347         * gnulib-tool (func_import): Transform license on build-aux/ files too.
59349 2009-05-27  Simon Josefsson  <simon@josefsson.org>
59351         * gnulib-tool (sed_transform_main_lib_file)
59352         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
59353         regexps.
59355 2009-05-26  Simon Josefsson  <simon@josefsson.org>
59357         * tests/test-strstr.c: Add another self-test.
59358         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
59359         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
59361 2009-05-23  Bruno Haible  <bruno@clisp.org>
59363         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
59364         change.
59366 2009-05-21  Bruno Haible  <bruno@clisp.org>
59368         Simplify use of mode_t varargs.
59369         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
59370         uses 'mode_t' or 'int'.
59371         * lib/openat.c (openat): Likewise.
59372         * lib/open-safer.c (open_safer): Likewise.
59373         * m4/mode_t.m4: New file.
59374         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
59375         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
59376         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
59377         * modules/open (Files): Add m4/mode_t.m4.
59378         * modules/openat (Files): Likewise.
59379         * modules/fcntl-safer (Files): Likewise.
59380         Suggested by Eric Blake.
59382 2009-05-21  Pádraig Brady  <P@draigbrady.com>
59384         * doc/glibc-functions/fallocate.texi: New file.
59385         * doc/gnulib.texi: Include it.
59387 2009-05-21  Eric Blake  <ebb9@byu.net>
59388             Bruno Haible  <bruno@clisp.org>
59390         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
59391         invocations.
59392         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59394 2009-05-21  Eric Blake  <ebb9@byu.net>
59395             Bruno Haible  <bruno@clisp.org>
59397         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
59398         include_next. Fix of 2008-11-20 commit.
59399         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
59400         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
59401         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
59402         NEXT_MATH_H.
59403         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
59404         instead of NEXT_MATH_H.
59406 2009-05-21  Bruno Haible  <bruno@clisp.org>
59408         Avoid redefinition warnings for SIZE_MAX.
59409         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
59410         Reported by Simon Josefsson.
59412 2009-05-21  Bruno Haible  <bruno@clisp.org>
59414         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
59415         AC_CACHE_VAL.
59417 2009-05-20  Bruno Haible  <bruno@clisp.org>
59419         Make zeroptr.h work on mingw.
59420         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
59421         mprotect.
59422         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
59423         * modules/memchr2-tests (configure.ac): Likewise.
59424         * modules/memcmp-tests (configure.ac): Likewise.
59425         * modules/memmem-tests (configure.ac): Likewise.
59426         * modules/memrchr-tests (configure.ac): Likewise.
59427         Reported by Simon Josefsson.
59429 2009-05-20  Simon Josefsson  <simon@josefsson.org>
59431         * tests/test-glob.c: Include string.h for strcmp prototype.
59433 2009-05-20  Simon Josefsson  <simon@josefsson.org>
59435         * modules/getdelim (Depends-on): Add explicit stdint, although it
59436         was implicitly already pulled in via realloc-posix.
59437         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
59439 2009-05-20  Simon Josefsson  <simon@josefsson.org>
59441         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
59442         G. Christensen" <tgc@jupiterrise.com>.
59443         * m4/sys_socket_h.m4: Check for sa_family_t.
59444         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
59445         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
59446         * tests/test-sys_socket.c: Check that sa_family_t works.
59448 2009-05-18  Eric Blake  <ebb9@byu.net>
59450         maint.mk: allow gnulib_dir in VPATH build
59451         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
59453 2009-05-15  Jim Meyering  <meyering@redhat.com>
59455         maint.mk: Give gnulib_dir a default definition.
59456         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
59457         Thus, most packages no longer need to specify this variable in cfg.mk
59459 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
59461         rename.m4: fix typos that would make non-mingw cross-configure fail
59462         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
59464 2009-05-13  Eric Blake  <ebb9@byu.net>
59466         mmap-anon: avoid out-of-order autoconf expansion
59467         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
59468         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
59469         * modules/memchr-tests (Depends-on): Add extensions.
59470         * modules/memchr2-tests (Depends-on): Add extensions.
59471         * modules/memcmp-tests (Depends-on): Add extensions.
59472         * modules/memmem-tests (Depends-on): Add extensions.
59473         * modules/memrchr-tests (Depends-on): Add extensions.
59475 2009-05-13  Bruno Haible  <bruno@clisp.org>
59477         Make some tests ISO C 99 compliant.
59478         * tests/zerosize-ptr.h: New file.
59479         * tests/test-memchr.c: Include zerosize-ptr.h.
59480         (main): Use a zero-size object pointer instead of NULL.
59481         * tests/test-memchr2.c: Include zerosize-ptr.h.
59482         (main): Use a zero-size object pointer instead of NULL.
59483         * tests/test-memcmp.c: Include zerosize-ptr.h.
59484         (main): Use a zero-size object pointer instead of NULL.
59485         * tests/test-memmem.c: Include zerosize-ptr.h.
59486         (main): Use a zero-size object pointer instead of NULL.
59487         * tests/test-memrchr.c: Include zerosize-ptr.h.
59488         (main): Use a zero-size object pointer instead of NULL.
59489         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
59490         m4/mmap-anon.m4.
59491         (Depends-on): Add getpagesize.
59492         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
59493         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
59494         m4/mmap-anon.m4.
59495         (Depends-on): Add getpagesize.
59496         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
59497         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
59498         m4/mmap-anon.m4.
59499         (Depends-on): Add getpagesize.
59500         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
59501         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
59502         m4/mmap-anon.m4.
59503         (Depends-on): Add getpagesize.
59504         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
59505         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
59506         m4/mmap-anon.m4.
59507         (Depends-on): Add getpagesize.
59508         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
59510 2009-05-12  Bruno Haible  <bruno@clisp.org>
59512         Tests for module 'alignof'.
59513         * modules/alignof-tests: New file.
59514         * tests/test-alignof.c: New file.
59516 2009-05-12  Bruno Haible  <bruno@clisp.org>
59518         Fix alignof macro.
59519         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
59520         vendor compilers that are always correct.
59522 2009-05-12  Bruno Haible  <bruno@clisp.org>
59524         Make the MAP_ANONYMOUS detection work on HP-UX 11.
59525         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
59526         not whether its fully works.
59528 2009-05-12  Bruno Haible  <bruno@clisp.org>
59530         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
59532 2009-05-12  Jim Meyering  <meyering@redhat.com>
59534         * top/maint.mk: Adjust backslash alignment.
59536 2009-05-11  Simon Josefsson  <simon@josefsson.org>
59538         * top/maint.mk: Make $(srcdir)/build-aux configurable.
59540 2009-05-11  Eric Blake  <ebb9@byu.net>
59542         argp: avoid undefined behavior
59543         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
59544         macros.
59546 2009-05-08  Simon Josefsson  <simon@josefsson.org>
59548         * tests/test-vc-list-files-git.sh: Do git config of user.email and
59549         user.name to prevent git commit from complaining.
59551 2009-05-10  Bruno Haible  <bruno@clisp.org>
59553         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
59554         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
59555         it rewrites every file name only once.
59556         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
59558 2009-05-08  Bruno Haible  <bruno@clisp.org>
59560         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
59561         instead of 'max'.
59563 2009-05-08  Simon Josefsson  <simon@josefsson.org>
59565         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
59566         sockaddr_storage test.
59568 2009-05-07  Simon Josefsson  <simon@josefsson.org>
59570         * modules/sys_socket (Makefile.am): Substitute
59571         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
59572         * m4/sys_socket_h.m4: Check for sockaddr_storage.
59573         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
59574         * tests/test-sys_socket.c: Check sockaddr_storage.
59576 2009-05-08  Bruno Haible  <bruno@clisp.org>
59578         New module 'alignof'.
59579         * lib/alignof.h: New file.
59580         * modules/alignof: New file.
59582 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
59583             Bruno Haible  <bruno@clisp.org>
59585         Fix test-file-has-acl on FreeBSD.
59586         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
59587         mask is implicitly added.
59588         * tests/test-file-has-acl.c: Include <signal.h>.
59589         (main): Terminate the test after 5 seconds.
59590         * modules/acl-tests (configure.ac): Check for alarm function.
59592 2009-05-04  Bruno Haible  <bruno@clisp.org>
59594         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
59595         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
59596         * modules/errno (configure.ac): Drop AC_REQUIRE.
59597         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
59598         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
59600 2009-05-04  Simon Josefsson  <simon@josefsson.org>
59602         * modules/glob-tests: New module.
59603         * tests/test-glob.c: Add.
59605 2009-05-04  Simon Josefsson  <simon@josefsson.org>
59607         * modules/fnmatch-tests: New module.
59608         * tests/test-fnmatch.c: Add.
59610 2009-05-04  Eric Blake  <ebb9@byu.net>
59612         maint: make the new no-submodule-changes rule VPATH-safe
59613         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
59615 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
59616             Bruno Haible  <bruno@clisp.org>
59618         acl: Fix infinite loop on FreeBSD.
59619         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
59620         of return value from acl_get_entry.
59621         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
59622         Likewise.
59624 2009-05-03  Bruno Haible  <bruno@clisp.org>
59626         * lib/acl-internal.h (acl_entries): Clarify return value.
59627         * lib/acl_entries.c (acl_entries): Likewise.
59629 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
59631         Bug fix in acl module.
59632         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
59634 2009-05-03  Bruno Haible  <bruno@clisp.org>
59636         Create gperf-generated file in the source dir, not in the build dir.
59637         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
59638         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
59639         * modules/unicase/locale-language (unicase/locale-languages.h):
59640         Likewise.
59641         * modules/unicase/special-casing (unicase/special-casing-table.h):
59642         Likewise.
59643         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
59644         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
59645         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
59646         Reported by Ralf Wildenhues.
59648 2009-05-03  Bruno Haible  <bruno@clisp.org>
59650         * modules/fnmatch (Description, configure.ac): Taken from
59651         fnmatch-posix.
59652         * modules/fnmatch-posix: Turn into a symbolic reference to the
59653         'fnmatch' module, and deprecate.
59654         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
59656 2009-05-03  Bruno Haible  <bruno@clisp.org>
59658         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
59659         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
59660         Reported by Ralf Wildenhues.
59662 2009-05-04  Simon Josefsson  <simon@josefsson.org>
59664         * m4/fnmatch.m4: Fix fnmatch re-define.
59666 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
59668         priv-set: new module and tests; adapt write-any-file
59669         * lib/priv-set.c: New file.
59670         * lib/priv-set.h: New file.
59671         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
59672         * lib/write-any-file.c: Simplify by using priv-set module.
59673         * m4/priv-set.m4: New file.
59674         * modules/priv-set: New file.
59675         * modules/unlinkdir: Add dependency on priv-set module.
59676         * modules/write-any-file: Likewise.
59678         Tests for module 'priv-set'.
59679         * modules/priv-set-tests: New file.
59680         * tests/test-priv-set.c: New file.
59682 2009-05-03  Jim Meyering  <meyering@redhat.com>
59683             Bruno Haible  <bruno@clisp.org>
59685         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
59686         use the converted UTF-8 variant of the name instead.
59688 2009-05-03  Jim Meyering  <meyering@redhat.com>
59690         tests: tighten some getdate tests
59691         * tests/test-getdate.c (main): Tighten tests: require equality,
59692         not just greater than.  Set TZ envvar to UTC0.
59694 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
59696         getdate: correctly interpret "next monday" when run on a Monday
59697         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
59698         that e.g., "next tues" (when run on a tuesday) results in a date
59699         that is one week in the future, and not today's date.
59700         I.e., add a week when the wday is the same as the current one.
59701         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
59702         and earlier by Martin Bernreuther and Jan Minář.
59703         * tests/test-getdate.c (main): Check that "next DAY" is always in
59704         the future and that "last DAY" is always in the past.
59706 2009-05-02  Jim Meyering  <meyering@redhat.com>
59708         build: ensure that a release build fails when a submodule is unclean
59709         * top/maint.mk (no-submodule-changes): New rule.
59710         (alpha beta major): Depend on it.
59712 2009-05-02  Bruno Haible  <bruno@clisp.org>
59714         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
59715         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
59716         shell variable gl_fnmatch_required to detect which variant is
59717         requested.
59718         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
59719         gl_FUNC_FNMATCH_POSIX.
59720         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
59721         exclude fnmatch-posix.
59723 2009-05-02  Bruno Haible  <bruno@clisp.org>
59725         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
59726         * modules/mbsrtowcs (License): Change to LGPLv2+.
59727         * modules/strnlen1 (License): Likewise.
59728         Reported by Simon Josefsson.
59730 2009-05-02  Bruno Haible  <bruno@clisp.org>
59732         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
59733         "cross".
59734         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
59735         gnulib-tool was called with option --source-base=lib.
59737 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59739         Use automake *-local hooks without commands, for extensibility.
59740         * modules/localcharset (Makefile.am): Rename install-exec-local
59741         rule to install-exec-localcharset, and make it a prerequisite of
59742         install-exec-local.  Likewise, rename the uninstall-local rule to
59743         uninstall-localcharset, and make it a prerequisite of the former.
59745 2009-05-01  Bruno Haible  <bruno@clisp.org>
59747         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
59748         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
59749         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
59750         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
59751         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
59752         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
59753         m4/locale-zh.m4, m4/codeset.m4.
59755         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
59756         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
59757         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
59758         m4/locale-zh.m4.
59760         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
59761         REPLACE_WCRTOMB if mbstate_t must be replaced.
59762         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
59763         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
59765 2009-05-01  Bruno Haible  <bruno@clisp.org>
59767         Avoid compiler warnings when redefining macros defined by <libintl.h>.
59768         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
59769         dngettext, dcngettext, textdomain, bindtextdomain,
59770         bind_textdomain_codeset): Undefine before redefining.
59772 2009-04-30  Bruno Haible  <bruno@clisp.org>
59774         Fix bug introduced on 2009-04-25.
59775         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
59776         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
59777         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
59778         is defined.
59779         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
59780         is defined.
59781         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
59782         is defined.
59783         Reported by Elbert_Pol <elbert.pol@gmail.com>.
59785 2009-04-28  Bruno Haible  <bruno@clisp.org>
59787         Comment tweaks.
59788         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
59789         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
59790         * lib/unicase.h (u*_casexfrm): Likewise.
59791         Reported by Paolo Bonzini.
59793 2009-04-28  Bruno Haible  <bruno@clisp.org>
59795         Fix a compilation error.
59796         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
59797         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
59798         Reported by Jim Meyering.
59800 2009-04-27  Bruno Haible  <bruno@clisp.org>
59802         New module 'libunistring'.
59803         * modules/libunistring: New file.
59804         * m4/libunistring.m4: New file.
59805         * MODULES.html.sh (Unicode string functions): Add it.
59807 2009-04-27  Eric Blake  <ebb9@byu.net>
59809         maint.mk: allow package-specific header to provide <config.h>
59810         * top/maint.mk (sc_require_config_h): New variable.
59811         (sc_require_config_h, sc_require_config_h_first): Use it.
59813 2009-04-27  Simon Josefsson  <simon@josefsson.org>
59815         * top/maint.mk (sc_avoid_if_before_free): Except
59816         useless-if-before-free script.
59818 2009-04-27  Eric Blake  <ebb9@byu.net>
59820         maintainer-makefile: depend on all required helper scripts
59821         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
59822         useless-if-before-free.
59823         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
59824         version, rather than assuming gnulib checkout is available.
59825         Reported by Simen Josefsson.
59827 2009-04-26  Bruno Haible  <bruno@clisp.org>
59829         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
59830         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
59831         "../" or "..".
59833 2009-04-26  Bruno Haible  <bruno@clisp.org>
59835         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
59836         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
59837         AC_LIB_HAVE_LINKFLAGS.
59839 2009-04-26  Bruno Haible  <bruno@clisp.org>
59841         Simplify calling convention of u*_conv_from_encoding.
59842         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
59843         u32_conv_from_encoding): Expect a resultbuf argument and return the
59844         result directly as a pointer.
59845         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
59846         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
59847         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
59848         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
59849         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
59850         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
59851         Update.
59852         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
59853         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
59854         * lib/vasnprintf.c (VASNPRINTF): Update.
59855         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
59856         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
59857         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
59858         * NEWS: Mention the change.
59860 2009-04-26  Bruno Haible  <bruno@clisp.org>
59862         Simplify calling convention of u*_conv_to_encoding.
59863         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59864         u32_conv_to_encoding): Expect a resultbuf argument and return the
59865         result directly as a pointer.
59866         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
59867         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
59868         freeing scaled_offsets if mem_iconveha failed.
59869         * lib/unicase/u-casexfrm.h (FUNC): Update.
59870         * lib/uninorm/u-normxfrm.h (FUNC): Update.
59871         * lib/vasnprintf.c (VASNPRINTF): Update.
59872         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
59873         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
59874         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
59875         * NEWS: Mention the change.
59877 2009-04-26  Bruno Haible  <bruno@clisp.org>
59879         Avoid test failures on AIX and OSF/1.
59880         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
59881         malloc(0).
59882         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
59883         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
59884         Likewise.
59885         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
59886         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
59887         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
59888         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
59889         * doc/posix-functions/malloc.texi: Document the portability problem
59890         related to malloc(0).
59892 2009-04-26  Bruno Haible  <bruno@clisp.org>
59894         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
59895         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
59896         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
59898 2009-04-25  Bruno Haible  <bruno@clisp.org>
59900         Avoid link error when creating a namespace clean library.
59901         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
59902         as macro with arguments if already defined as an alias.
59903         * lib/signbitf.c (gl_signbitf): Don't undefine.
59904         * lib/signbitd.c (gl_signbitd): Don't undefine.
59905         * lib/signbitl.c (gl_signbitl): Don't undefine.
59907 2009-04-25  Jim Meyering  <meyering@redhat.com>
59909         vc-list-files: fix another quoting bug
59910         * build-aux/vc-list-files: Avoid sed backslash expansion
59911         of pathological directory names.
59913 2009-04-25  Eric Blake  <ebb9@byu.net>
59915         vc-list-files: fix shell quoting error
59916         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
59917         timestamp.
59919 2009-04-25  Jim Meyering  <meyering@redhat.com>
59921         vc-list-files: restore lost functionality with subdir argument
59922         * build-aux/vc-list-files: When given a non-"." sub-directory
59923         argument, substitute the $dir/ prefix back onto each resulting name.
59924         Otherwise, coreutils' root_tests check would fail.
59926 2009-04-24  Eric Blake  <ebb9@byu.net>
59928         vc-list-files: ignore git symlinks
59929         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
59930         than ls-files, to ignore git symlinks.
59932         maint.mk: import improvements from m4
59933         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
59934         (move_if_change): Delete unused macro.
59935         (news-date-check, vc-diff-check): Support VPATH builds.
59936         (announcement): Likewise.  Split --bootstrap-tools list...
59937         (boostrap-tools): ...into separate list, which can be overridden
59938         in cfg.mk.
59939         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
59940         requiring dependency on useless-if-before-free module.
59941         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
59942         Support VPATH builds.
59944 2009-04-24  Jim Meyering  <meyering@redhat.com>
59946         maint.mk: remove coreutils-specific rules and variables
59947         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
59948         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
59949         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
59951         maint.mk: remove obsolete rule
59952         * top/maint.mk (rel-check): Remove rule.
59953         (WGET, WGETFLAGS): Remove now-unused variables.
59955 2009-04-24  Simon Josefsson  <simon@josefsson.org>
59957         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
59958         consistency.
59960         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
59961         '$(PATH_SEPARATOR)' instead of ':'.
59963 2009-04-24  Simon Josefsson  <simon@josefsson.org>
59965         * lib/getopt1.c (main): Use 'const' for static array.
59967 2009-04-24  Simon Josefsson  <simon@josefsson.org>
59969         * top/maint.mk: Sync with coreutils.
59970         * NEWS: Explain incompatibilities.
59972 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59973             Bruno Haible  <bruno@clisp.org>
59975         Fix cross-compilation results.
59976         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
59977         statement, as third argument of AC_TRY_RUN.
59978         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
59979         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
59980         Likewise.
59981         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
59982         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
59983         Likewise.
59984         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
59985         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
59986         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
59988 2009-04-20  Bruno Haible  <bruno@clisp.org>
59990         Avoid test failure on mingw.
59991         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
59993 2009-04-20  Bruno Haible  <bruno@clisp.org>
59995         Avoid compilation error on mingw.
59996         * modules/localename-tests (Depends-on): Add locale.
59998 2009-04-19  Bruno Haible  <bruno@clisp.org>
60000         Support for building a shared library on Windows platforms.
60001         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
60002         (main): Test the presence of UNINORM_NFC here.
60003         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
60004         (main): Test the presence of UNINORM_NFD here.
60005         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
60006         (main): Test the presence of UNINORM_NFKC here.
60007         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
60008         (main): Test the presence of UNINORM_NFKD here.
60010 2009-04-19  Bruno Haible  <bruno@clisp.org>
60012         Avoid a compiler warning.
60013         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
60014         Change type of variable 'sequence'.
60016 2009-04-19  Bruno Haible  <bruno@clisp.org>
60018         * modules/configmake (Makefile.am): When the contents of configmake.h
60019         does not change, arrange to preserve its modification time.
60021 2009-04-17  Simon Josefsson  <simon@josefsson.org>
60023         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
60024         gettext domain.
60026 2009-04-16  Jim Meyering  <meyering@redhat.com>
60028         useless-if-before-free: improve conversion code
60029         * build-aux/useless-if-before-free: Adjust code-in-comment to match
60030         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
60032 2009-04-14  Bruno Haible  <bruno@clisp.org>
60034         * modules/fcntl (Depends-on): Add extensions.
60035         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
60037 2009-04-12  Ben Pfaff  <blp@gnu.org>
60039         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
60040         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
60042 2009-03-20  Ben Pfaff  <blp@gnu.org>
60044         Make rename replace existing destinations on Windows.
60045         * m4/rename.m4: Add test for Mingw.
60046         * lib/rename.c: Add rename replacement that uses MoveFileEx with
60047         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
60048         * doc/posix-functions/rename.texi: Document.
60050 2009-04-10  Bruno Haible  <bruno@clisp.org>
60052         New include file "iconveh.h".
60053         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
60054         * lib/striconveh.h: Include it.
60055         (enum iconv_ilseq_handler): Remove definition.
60056         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
60057         striconveh.h.
60058         * lib/striconveha.c: Include striconveh.h.
60059         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
60060         * modules/striconveh (Files): Add lib/iconveh.h.
60061         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
60062         lib/striconveh.h.
60064 2009-04-10  Bruno Haible  <bruno@clisp.org>
60066         * lib/uniconv.h: Update comment.
60068 2009-04-10  Bruno Haible  <bruno@clisp.org>
60070         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
60071         always.
60072         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
60073         * lib/unistr/u16-mbtouc-aux.c: Likewise.
60074         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
60075         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
60076         "unistring-notinline.h", so that the function gets defined always.
60077         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
60078         * lib/unistr/u8-uctomb.c: Likewise.
60079         * lib/unistr/u16-mbtouc.c: Likewise.
60080         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
60081         * lib/unistr/u16-uctomb.c: Likewise.
60082         * lib/unistr/u32-mbtouc.c: Likewise.
60083         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
60084         * lib/unistr/u32-uctomb.c: Likewise.
60086 2009-04-10  Bruno Haible  <bruno@clisp.org>
60088         Mark 'utime' obsolete.
60089         * modules/utime (Status, Notice): New sections.
60090         Suggested by Jim Meyering.
60092         Fix cross-compile guess for utime test.
60093         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
60094         autoconf.
60095         * doc/posix-functions/utime.texi: Give more precisions.
60096         Reported by Jan <ipif@ymail.com>.
60098 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
60100         filevercmp: correct today's change
60101         * lib/filevercmp.c: Also handle coreutils' test inputs.
60102         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
60104         Fix regression in 'filevercmp' module. Thanks Sven Joachim
60105         for reporting it.
60106         * lib/filevercmp.c: Special handle for "", "." and "..".
60107         * tests/test-filevercmp.c: Enlarge the set suite.
60109 2009-04-07  Jim Meyering  <meyering@redhat.com>
60111         useless-if-before-free: show how to remove braced useless free, too
60112         * build-aux/useless-if-before-free: still only in a comment, though.
60114 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
60116         maint.mk: import changes to syntax-check macros from coreutils
60117         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
60118         Use them in the relevant macros.
60120 2009-04-06  Bruno Haible  <bruno@clisp.org>
60122         Fix unportable use of bit-fields.
60123         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
60124         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
60125         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
60127 2009-04-06  Bruno Haible  <bruno@clisp.org>
60129         Avoid test failures on AIX and OSF/1.
60130         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
60131         that malloc(0) = NULL.
60132         * tests/unicase/test-u8-tolower.c (check): Likewise.
60133         * tests/unicase/test-u8-totitle.c (check): Likewise.
60134         * tests/unicase/test-u8-toupper.c (check): Likewise.
60135         * tests/unicase/test-u16-casefold.c (check): Likewise.
60136         * tests/unicase/test-u16-tolower.c (check): Likewise.
60137         * tests/unicase/test-u16-totitle.c (check): Likewise.
60138         * tests/unicase/test-u16-toupper.c (check): Likewise.
60139         * tests/unicase/test-u32-casefold.c (check): Likewise.
60140         * tests/unicase/test-u32-tolower.c (check): Likewise.
60141         * tests/unicase/test-u32-totitle.c (check): Likewise.
60142         * tests/unicase/test-u32-toupper.c (check): Likewise.
60143         * tests/uninorm/test-u8-nfc.c (check): Likewise.
60144         * tests/uninorm/test-u8-nfd.c (check): Likewise.
60145         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
60146         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
60147         * tests/uninorm/test-u16-nfc.c (check): Likewise.
60148         * tests/uninorm/test-u16-nfd.c (check): Likewise.
60149         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
60150         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
60151         * tests/uninorm/test-u32-nfc.c (check): Likewise.
60152         * tests/uninorm/test-u32-nfd.c (check): Likewise.
60153         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
60154         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
60156 2009-04-05  Bruno Haible  <bruno@clisp.org>
60158         Work around an autoconf limitation.
60159         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
60160         comment line if it would be longer than 3 KB.
60162 2009-04-05  Bruno Haible  <bruno@clisp.org>
60164         Avoid test failure with libiconv-1.13.
60165         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
60166         of the expected test results.
60168 2009-04-05  Bruno Haible  <bruno@clisp.org>
60170         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
60171         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
60172         that it should be installed.
60174 2009-04-05  Bruno Haible  <bruno@clisp.org>
60176         * gnulib-tool: New option --copy-file.
60177         (func_usage): Document it.
60178         (func_dest_tmpfilename): Moved out of func_import.
60179         (func_add_file, func_update_file): New functions, extracted from
60180         func_import.
60181         (func_import): Update.
60183 2009-04-05  Karl Berry  <karl@gnu.org>
60185         * README: prominently mention gnulib-tool.
60186         Rearrange sections so getting the code is near the top.
60188 2009-04-05  Bruno Haible  <bruno@clisp.org>
60190         * lib/unicase.h: Mention u*_cmp2.
60191         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
60192         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
60193         * lib/unicase/ulc-casecmp.c: Likewise.
60194         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
60195         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
60196         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
60197         unistr/u8-cmp.
60198         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
60199         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
60200         unistr/u16-cmp.
60201         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
60202         unistr/u32-cmp.
60204         * lib/uninorm.h: Mention u*_cmp2.
60205         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
60206         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
60207         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
60208         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
60209         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
60210         unistr/u8-cmp.
60211         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
60212         unistr/u16-cmp.
60213         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
60214         unistr/u32-cmp.
60216         New module 'unistr/u32-cmp2'.
60217         * lib/unistr/u32-cmp2.c: New file.
60218         * modules/unistr/u32-cmp2: New file.
60220         New module 'unistr/u16-cmp2'.
60221         * lib/unistr/u16-cmp2.c: New file.
60222         * modules/unistr/u16-cmp2: New file.
60224         New module 'unistr/u8-cmp2'.
60225         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
60226         * lib/unistr/u8-cmp2.c: New file.
60227         * lib/unistr/u-cmp2.h: New file.
60228         * modules/unistr/u8-cmp2: New file.
60230 2009-04-05  Bruno Haible  <bruno@clisp.org>
60232         * lib/unictype.h (uc_property_is_valid): New macro.
60233         * tests/unictype/test-pr_byname.c (main): Use it.
60235         * lib/unistr.h: Doc fixes.
60236         * lib/uniconv.h: Doc fixes.
60237         * lib/unictype.h: Doc fixes.
60239 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
60241         Port coreutils 7.2 to Solaris 8.
60243         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
60244         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
60245         for Solaris 8.  This is a bit of a hack, as it means it's the
60246         caller's responsibility to add -lnsl if needed, but most likely it
60247         won't be needed since only getaddrinfo uses this and getaddrinfo
60248         isn't needed on Solaris 8.
60250         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
60251         problem to Solaris 8 encountered with coreutils 7.2, which
60252         resulted in a message "fnmatch.c:292: warning: passing argument 4
60253         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
60254         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
60256 2009-04-03  Simon Josefsson  <simon@josefsson.org>
60258         * m4/ld-version-script.m4: Add FIXME comment.
60260 2009-04-02  Simon Josefsson  <simon@josefsson.org>
60262         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
60263         SOVERSION variable.
60265 2009-04-02  Bruno Haible  <bruno@clisp.org>
60267         * Makefile (info, html, dvi, pdf): Combine the rules.
60268         Suggested by Jim Meyering.
60270 2009-04-01  Bruno Haible  <bruno@clisp.org>
60272         * Makefile (info, html, dvi, pdf): New targets.
60273         Reported by Reuben Thomas <rrt@sc3d.org>.
60275 2009-04-01  Bruno Haible  <bruno@clisp.org>
60277         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
60278         can be put into PATH.
60279         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
60281 2009-04-01  Bruno Haible  <bruno@clisp.org>
60283         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
60285 2009-04-01  Bruno Haible  <bruno@clisp.org>
60287         Rename module 'visibility'.
60288         * modules/lib-symbol-visibility: Renamed from modules/visibility.
60289         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
60290         * doc/gnulib.texi: Update.
60291         * MODULES.html.sh (Misc): Update.
60292         * NEWS: Mention the change.
60294 2009-04-01  Simon Josefsson  <simon@josefsson.org>
60296         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
60297         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
60298         Eric Blake <ebb9@byu.net> for review.
60299         * MODULES.html.sh: Add lib-msvc-compat.
60300         * doc/gnulib.texi: Link to new section.
60301         * m4/ld-output-def.m4: New file.
60302         * doc/ld-output-def.texi: New file.
60304 2009-04-01  Simon Josefsson  <simon@josefsson.org>
60306         Rename ld-version-script to lib-symbol-versions.  Suggested by
60307         Bruno Haible <bruno@clisp.org>.
60308         * modules/ld-version-script: Renamed to lib-symbol-versions.
60309         * doc/ld-version-script.texi: Fix module name.
60310         * MODULES.html.sh: Add lib-symbol-versions.
60312 2009-03-31  Simon Josefsson  <simon@josefsson.org>
60314         * modules/u64-tests: New file.
60315         * tests/test-u64.c: New file.
60317 2009-03-04  Simon Josefsson  <simon@josefsson.org>
60319         * MODULES.html.sh: Mention u64.
60320         * modules/u64: New module.
60321         * modules/crypto/sha512: Depend on u64 module instead of providing
60322         u64.h.
60324 2009-03-27  Eric Blake  <ebb9@byu.net>
60326         test-strerror: make debugging EAI_SYSTEM easier
60327         * modules/getaddrinfo-tests (Depends-on): Add strerror.
60328         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
60329         failure was EAI_SYSTEM.
60331 2009-03-25  Bruno Haible  <bruno@clisp.org>
60333         Fix a problem with --enable-relocatable on Solaris 7.
60334         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
60335         since 2008-02-24.
60337 2009-03-25  Eric Blake  <ebb9@byu.net>
60339         test-sockets: avoid gcc warning
60340         * tests/test-sockets.c (main): Silence compiler warning.
60342 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
60344         New modules nproc, pthread, contributed by Glen Lenker.
60346         * MODULES.html.sh: Add pthread, nproc.
60347         * lib/nproc.c: New file.
60348         * lib/nproc.h: New file.
60349         * lib/pthread.in.h: New file.
60350         * m4/pthread.m4: New file.
60351         * modules/nproc: New file.
60352         * modules/pthread: New file.
60354 2009-03-24  Simon Josefsson  <simon@josefsson.org>
60356         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
60357         New variable.
60359 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
60361         filevercmp: handle simple~ and numbered.~3~ backup suffixes
60362         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
60363         * tests/test-filevercmp.c: Add tests for backup suffixes.
60365 2009-03-24  Simon Josefsson  <simon@josefsson.org>
60367         * modules/stdlib (Depends-on): Add stdint, needed when defining
60368         struct random_data on, for example, HP-UX 10.20.  Reported by
60369         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
60371 2009-03-24  Simon Josefsson  <simon@josefsson.org>
60373         * lib/readline.c (readline): Call fflush on stdout after printing
60374         prompt.
60376 2009-03-20  Bruno Haible  <bruno@clisp.org>
60378         Remove dependency from 'close' module to -lws2_32 on native Windows.
60379         * lib/close-hook.h: New file.
60380         * lib/close-hook.c: New file.
60381         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
60382         w32sock.h.
60383         (_gl_close_fd_maybe_socket): Remove function.
60384         (rpl_close): Invoke execute_all_close_hooks instead of
60385         _gl_close_fd_maybe_socket.
60386         * lib/sockets.c: Include close-hook.h, w32sock.h.
60387         (close_fd_maybe_socket): New function, essentially from lib/close.c.
60388         (close_sockets_hook): New variable.
60389         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
60390         (gl_sockets_cleanup): Unregister it.
60391         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
60392         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
60393         * modules/close-hook: New file.
60394         * modules/close (Files): Remove lib/w32sock.h.
60395         (Depends-on): Add close-hook.
60396         (Link): Remove section.
60397         * modules/sockets (Files): Add lib/w32sock.h.
60398         (Depends-on): Add close-hook.
60399         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
60400         invocation.
60401         * NEWS: Mention that LIB_CLOSE is gone.
60403 2009-03-23  Eric Blake  <ebb9@byu.net>
60405         signal-tests: test previous patch
60406         * tests/test-signal.c: New file.
60407         * modules/signal-tests: Likewise.
60409         signal.h: always support 'volatile sig_atomic_t'
60410         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
60411         (gl_SIGNAL_H_DEFAULTS): Add a default.
60412         * modules/signal (Makefile.am): Substitute if needed.
60413         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
60414         users can blindly add volatile.
60415         * doc/posix-headers/signal.texi (signal.h): Document it.
60416         Reported by Matthew Woehlke.
60418 2009-03-23  Jim Meyering  <meyering@redhat.com>
60420         pathmax: PATH_MAX: use pathconf only when available
60421         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
60422         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
60423         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
60424         This avoids a link failure in a PSP cross-compilation environment
60425         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
60427         * lib/vasnprintf.c (divide): Fix typo in comment.
60429 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60431         * gnulib-tool (func_filter_filelist): Fix comment.
60433 2009-03-20  Bruno Haible  <bruno@clisp.org>
60435         Make sockets.h self-contained.
60436         * lib/sockets.c: Include sockets.h first.
60437         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
60439 2009-03-19  Eric Blake  <ebb9@byu.net>
60441         doc: mention more functions added in cygwin 1.7.0
60442         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
60443         addition.
60444         * doc/posix-functions/log2f.texi: Likewise.
60446 2009-03-19  Jim Meyering  <meyering@redhat.com>
60448         fsusage: avoid syntax error due to statement-before-declaration
60449         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
60450         after all declarations.  Reported by Matthew Woehlke in
60451         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
60453 2009-03-18  Eric Blake  <ebb9@byu.net>
60455         build-aux/compile: sync from automake
60456         * build-aux/compile: New file, from automake.
60457         * config/srclist.txt: Mention build-aux/compile.
60459 2009-03-17  Bruno Haible  <bruno@clisp.org>
60461         * lib/git-merge-changelog.c: Fix typo in comment.
60462         Reported by Reuben Thomas <rrt@sc3d.org>.
60464 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
60466         * m4/regex.m4: update and improve help for
60467         --without-included-regex.
60469 2009-03-17  Simon Josefsson  <simon@josefsson.org>
60471         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
60472         failure on missing include files.
60474 2009-03-17  Eric Blake  <ebb9@byu.net>
60476         doc: mention more functions added in cygwin 1.7.0
60477         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
60478         addition.
60479         * doc/posix-functions/fwscanf.texi: Likewise.
60480         * doc/posix-functions/swprintf.texi: Likewise.
60481         * doc/posix-functions/swscanf.texi: Likewise.
60482         * doc/posix-functions/vfwprintf.texi: Likewise.
60483         * doc/posix-functions/vfwscanf.texi: Likewise.
60484         * doc/posix-functions/vswprintf.texi: Likewise.
60485         * doc/posix-functions/vswscanf.texi: Likewise.
60486         * doc/posix-functions/vwprintf.texi: Likewise.
60487         * doc/posix-functions/vwscanf.texi: Likewise.
60488         * doc/posix-functions/wcscasecmp.texi: Likewise.
60489         * doc/posix-functions/wcsdup.texi: Likewise.
60490         * doc/posix-functions/wcsftime.texi: Likewise.
60491         * doc/posix-functions/wcsncasecmp.texi: Likewise.
60492         * doc/posix-functions/wprintf.texi: Likewise.
60493         * doc/posix-functions/wscanf.texi: Likewise.
60494         * doc/glibc-functions/gethostbyname2.texi: Likewise.
60496 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60498         maint.mk: really add $(AM_MAKEFLAGS)
60499         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
60500         was inadvertently omitted in the last commit.
60501         Spotted by Bruno Haible.
60503         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
60504         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
60505         $(AM_MAKEFLAGS)' rather than plain `make'.
60507         gnulib-tool: execute $MAKE not make
60508         * gnulib-tool: Default $MAKE to 'make'.
60509         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
60510         than make.  Initialize $MAKE in the do-autobuild script.
60512         gnulib-tool: use $MAKE not make in generated files
60513         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
60514         make, in generated files.  Initialize $MAKE in the do-autobuild
60515         script.
60517         * top/GNUmakefile (_have-git-version-gen): Fix typo.
60519         GNUmakefile: disable parallelism only for multiple, recursive targets
60520         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
60521         additions in the Makefile.
60522         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
60523         by Automake.
60524         (.NOTPARALLEL): Only disable parallel builds if multiple targets
60525         are listed on the command line and at least one of them is
60526         listed in $(ALL_RECURSIVE_TARGETS).
60528 2009-03-14  Bruno Haible  <bruno@clisp.org>
60530         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
60531         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
60532         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
60533         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
60534         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
60535         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
60536         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
60537         unistr/u8-uctomb.
60538         * modules/unistr/u8-strchr (Depends-on): Likewise.
60539         * modules/unistr/u8-strrchr (Depends-on): Likewise.
60540         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
60541         unistr/u16-uctomb.
60542         * modules/unistr/u16-strchr (Depends-on): Likewise.
60543         * modules/unistr/u16-strrchr (Depends-on): Likewise.
60545 2009-03-12  Bruno Haible  <bruno@clisp.org>
60547         Work around select() bug on Interix 3.5.
60548         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
60549         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
60550         * m4/select.m4: New file.
60551         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
60552         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
60553         * modules/select (Files): Add m4/select.m4.
60554         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
60555         * modules/nanosleep (Depends-on): Add select.
60556         * modules/poll (Depends-on): Likewise.
60557         * doc/posix-functions/select.texi: Mention the Interix bug.
60558         Reported by Markus Duft <mduft@gentoo.org>.
60560         * lib/select.c: Renamed from lib/winsock-select.c.
60561         * modules/select (Files): Add lib/select.c, remove
60562         lib/winsock-select.c.
60563         (configure.ac): Update.
60565 2009-03-12  Jim Meyering  <meyering@redhat.com>
60567         avoid gcc warnings about unused macro definitions
60568         * lib/readtokens.c (STREQ): Remove unused definition.
60569         * lib/xmalloc.c (SIZE_MAX): Likewise.
60570         * lib/openat-die.c (N_): Likewise.
60571         * lib/mountlist.c (SIZE_MAX): Remove definition.
60572         Instead, include <stdint.h>.
60573         * lib/readutmp.c: Likewise.
60574         * modules/readutmp (Depends-on): Add stdint.
60575         * modules/mountlist (Depends-on): Add stdint.
60576         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
60578 2009-03-10  Bruno Haible  <bruno@clisp.org>
60580         Tests for module 'mbmemcasecoll'.
60581         * modules/mbmemcasecoll-tests: New file.
60582         * tests/test-mbmemcasecoll1.sh: New file.
60583         * tests/test-mbmemcasecoll2.sh: New file.
60584         * tests/test-mbmemcasecoll3.sh: New file.
60585         * tests/test-mbmemcasecoll.c: New file.
60587         New module 'mbmemcasecoll'.
60588         * lib/mbmemcasecoll.h: New file.
60589         * lib/mbmemcasecoll.c: New file.
60590         * modules/mbmemcasecoll: New file.
60592         * tests/test-mbmemcasecmp.h: New file, extracted from
60593         tests/test-mbmemcasecmp.c.
60594         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
60595         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
60596         (main): Update.
60597         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
60599 2009-03-09  Bruno Haible  <bruno@clisp.org>
60601         Tests for module 'mbmemcasecmp'.
60602         * modules/mbmemcasecmp-tests: New file.
60603         * tests/test-mbmemcasecmp1.sh: New file.
60604         * tests/test-mbmemcasecmp2.sh: New file.
60605         * tests/test-mbmemcasecmp3.sh: New file.
60606         * tests/test-mbmemcasecmp.c: New file.
60608         New module 'mbmemcasecmp'.
60609         * lib/mbmemcasecmp.h: New file.
60610         * lib/mbmemcasecmp.c: New file.
60611         * modules/mbmemcasecmp: New file.
60613 2009-03-09  Bruno Haible  <bruno@clisp.org>
60615         Tests for module 'unicase/ulc-casecoll'.
60616         * modules/unicase/ulc-casecoll-tests: New file.
60617         * tests/unicase/test-ulc-casecoll1.sh: New file.
60618         * tests/unicase/test-ulc-casecoll2.sh: New file.
60619         * tests/unicase/test-ulc-casecoll.c: New file.
60621         New module 'unicase/ulc-casecoll'.
60622         * lib/unicase.h (ulc_casecoll): New declaration.
60623         * lib/unicase/ulc-casecoll.c: New file.
60624         * modules/unicase/ulc-casecoll: New file.
60626         New module 'unicase/ulc-casexfrm'.
60627         * lib/unicase.h (ulc_casexfrm): New declaration.
60628         * lib/unicase/ulc-casexfrm.c: New file.
60629         * modules/unicase/ulc-casexfrm: New file.
60631 2009-03-09  Bruno Haible  <bruno@clisp.org>
60633         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
60634         invocations.
60636         * m4/mbscasecmp.m4: Remove file.
60637         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
60638         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
60640         * m4/mbscasestr.m4: Remove file.
60641         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
60642         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
60644         * m4/mbschr.m4: Remove file.
60645         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
60646         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
60648         * m4/mbscspn.m4: Remove file.
60649         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
60650         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
60652         * m4/mbslen.m4: Remove file.
60653         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
60654         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
60656         * m4/mbsncasecmp.m4: Remove file.
60657         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
60658         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
60660         * m4/mbsnlen.m4: Remove file.
60661         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
60662         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
60664         * m4/mbspbrk.m4: Remove file.
60665         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
60666         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
60668         * m4/mbspcasecmp.m4: Remove file.
60669         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
60670         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
60672         * m4/mbsrchr.m4: Remove file.
60673         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
60674         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
60676         * m4/mbssep.m4: Remove file.
60677         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
60678         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
60680         * m4/mbsspn.m4: Remove file.
60681         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
60682         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
60684         * m4/mbsstr.m4: Remove file.
60685         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
60686         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
60688         * m4/mbstok_r.m4: Remove file.
60689         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
60690         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
60692         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
60694         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
60695         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
60697         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
60699 2009-03-08  Bruno Haible  <bruno@clisp.org>
60701         Tests for module 'unicase/ulc-casecmp'.
60702         * modules/unicase/ulc-casecmp-tests: New file.
60703         * tests/unicase/test-ulc-casecmp1.sh: New file.
60704         * tests/unicase/test-ulc-casecmp2.sh: New file.
60705         * tests/unicase/test-ulc-casecmp.c: New file.
60707         New module 'unicase/ulc-casecmp'.
60708         * lib/unicase.h (ulc_casecmp): New declaration.
60709         * lib/unicase/ulc-casecmp.c: New file.
60710         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
60711         'const SRC_UNIT *'.
60712         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
60713         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
60714         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
60715         * modules/unicase/ulc-casecmp: New file.
60717         Tests for module 'unicase/u32-is-cased'.
60718         * modules/unicase/u32-is-cased-tests: New file.
60719         * tests/unicase/test-u32-is-cased.c: New file.
60721         Tests for module 'unicase/u16-is-cased'.
60722         * modules/unicase/u16-is-cased-tests: New file.
60723         * tests/unicase/test-u16-is-cased.c: New file.
60725         Tests for module 'unicase/u8-is-cased'.
60726         * modules/unicase/u8-is-cased-tests: New file.
60727         * tests/unicase/test-u8-is-cased.c: New file.
60728         * tests/unicase/test-is-cased.h: New file.
60730         New module 'unicase/u32-is-cased'.
60731         * lib/unicase/u32-is-cased.c: New file.
60732         * modules/unicase/u32-is-cased: New file.
60734         New module 'unicase/u16-is-cased'.
60735         * lib/unicase/u16-is-cased.c: New file.
60736         * modules/unicase/u16-is-cased: New file.
60738         New module 'unicase/u8-is-cased'.
60739         * lib/unicase/u8-is-cased.c: New file.
60740         * lib/unicase/u-is-cased.h: New file.
60741         * modules/unicase/u8-is-cased: New file.
60743         Tests for module 'unicase/u32-is-casefolded'.
60744         * modules/unicase/u32-is-casefolded-tests: New file.
60745         * tests/unicase/test-u32-is-casefolded.c: New file.
60747         Tests for module 'unicase/u16-is-casefolded'.
60748         * modules/unicase/u16-is-casefolded-tests: New file.
60749         * tests/unicase/test-u16-is-casefolded.c: New file.
60751         Tests for module 'unicase/u8-is-casefolded'.
60752         * modules/unicase/u8-is-casefolded-tests: New file.
60753         * tests/unicase/test-u8-is-casefolded.c: New file.
60754         * tests/unicase/test-is-casefolded.h: New file.
60756         New module 'unicase/u32-is-casefolded'.
60757         * lib/unicase/u32-is-casefolded.c: New file.
60758         * modules/unicase/u32-is-casefolded: New file.
60760         New module 'unicase/u16-is-casefolded'.
60761         * lib/unicase/u16-is-casefolded.c: New file.
60762         * modules/unicase/u16-is-casefolded: New file.
60764         New module 'unicase/u8-is-casefolded'.
60765         * lib/unicase/u8-is-casefolded.c: New file.
60766         * modules/unicase/u8-is-casefolded: New file.
60768         Tests for module 'unicase/u32-is-titlecase'.
60769         * modules/unicase/u32-is-titlecase-tests: New file.
60770         * tests/unicase/test-u32-is-titlecase.c: New file.
60772         Tests for module 'unicase/u16-is-titlecase'.
60773         * modules/unicase/u16-is-titlecase-tests: New file.
60774         * tests/unicase/test-u16-is-titlecase.c: New file.
60776         Tests for module 'unicase/u8-is-titlecase'.
60777         * modules/unicase/u8-is-titlecase-tests: New file.
60778         * tests/unicase/test-u8-is-titlecase.c: New file.
60779         * tests/unicase/test-is-titlecase.h: New file.
60781         New module 'unicase/u32-is-titlecase'.
60782         * lib/unicase/u32-is-titlecase.c: New file.
60783         * modules/unicase/u32-is-titlecase: New file.
60785         New module 'unicase/u16-is-titlecase'.
60786         * lib/unicase/u16-is-titlecase.c: New file.
60787         * modules/unicase/u16-is-titlecase: New file.
60789         New module 'unicase/u8-is-titlecase'.
60790         * lib/unicase/u8-is-titlecase.c: New file.
60791         * modules/unicase/u8-is-titlecase: New file.
60793         Tests for module 'unicase/u32-is-lowercase'.
60794         * modules/unicase/u32-is-lowercase-tests: New file.
60795         * tests/unicase/test-u32-is-lowercase.c: New file.
60797         Tests for module 'unicase/u16-is-lowercase'.
60798         * modules/unicase/u16-is-lowercase-tests: New file.
60799         * tests/unicase/test-u16-is-lowercase.c: New file.
60801         Tests for module 'unicase/u8-is-lowercase'.
60802         * modules/unicase/u8-is-lowercase-tests: New file.
60803         * tests/unicase/test-u8-is-lowercase.c: New file.
60804         * tests/unicase/test-is-lowercase.h: New file.
60806         New module 'unicase/u32-is-lowercase'.
60807         * lib/unicase/u32-is-lowercase.c: New file.
60808         * modules/unicase/u32-is-lowercase: New file.
60810         New module 'unicase/u16-is-lowercase'.
60811         * lib/unicase/u16-is-lowercase.c: New file.
60812         * modules/unicase/u16-is-lowercase: New file.
60814         New module 'unicase/u8-is-lowercase'.
60815         * lib/unicase/u8-is-lowercase.c: New file.
60816         * modules/unicase/u8-is-lowercase: New file.
60818         Tests for module 'unicase/u32-is-uppercase'.
60819         * modules/unicase/u32-is-uppercase-tests: New file.
60820         * tests/unicase/test-u32-is-uppercase.c: New file.
60822         Tests for module 'unicase/u16-is-uppercase'.
60823         * modules/unicase/u16-is-uppercase-tests: New file.
60824         * tests/unicase/test-u16-is-uppercase.c: New file.
60826         Tests for module 'unicase/u8-is-uppercase'.
60827         * modules/unicase/u8-is-uppercase-tests: New file.
60828         * tests/unicase/test-u8-is-uppercase.c: New file.
60829         * tests/unicase/test-is-uppercase.h: New file.
60831         New module 'unicase/u32-is-uppercase'.
60832         * lib/unicase/u32-is-uppercase.c: New file.
60833         * modules/unicase/u32-is-uppercase: New file.
60835         New module 'unicase/u16-is-uppercase'.
60836         * lib/unicase/u16-is-uppercase.c: New file.
60837         * modules/unicase/u16-is-uppercase: New file.
60839         New module 'unicase/u8-is-uppercase'.
60840         * lib/unicase/u8-is-uppercase.c: New file.
60841         * modules/unicase/u8-is-uppercase: New file.
60843         New module 'unicase/u32-is-invariant'.
60844         * lib/unicase/u32-is-invariant.c: New file.
60845         * modules/unicase/u32-is-invariant: New file.
60847         New module 'unicase/u16-is-invariant'.
60848         * lib/unicase/u16-is-invariant.c: New file.
60849         * modules/unicase/u16-is-invariant: New file.
60851         New module 'unicase/u8-is-invariant'.
60852         * lib/unicase/u8-is-invariant.c: New file.
60853         * lib/unicase/invariant.h: New file.
60854         * lib/unicase/u-is-invariant.h: New file.
60855         * modules/unicase/u8-is-invariant: New file.
60857         Tests for module 'unicase/u32-casecoll'.
60858         * modules/unicase/u32-casecoll-tests: New file.
60859         * tests/unicase/test-u32-casecoll.c: New file.
60861         Tests for module 'unicase/u16-casecoll'.
60862         * modules/unicase/u16-casecoll-tests: New file.
60863         * tests/unicase/test-u16-casecoll.c: New file.
60865         Tests for module 'unicase/u8-casecoll'.
60866         * modules/unicase/u8-casecoll-tests: New file.
60867         * tests/unicase/test-u8-casecoll.c: New file.
60869         New module 'unicase/u32-casecoll'.
60870         * lib/unicase/u32-casecoll.c: New file.
60871         * modules/unicase/u32-casecoll: New file.
60873         New module 'unicase/u16-casecoll'.
60874         * lib/unicase/u16-casecoll.c: New file.
60875         * modules/unicase/u16-casecoll: New file.
60877         New module 'unicase/u8-casecoll'.
60878         * lib/unicase/u8-casecoll.c: New file.
60879         * lib/unicase/u-casecoll.h: New file.
60880         * modules/unicase/u8-casecoll: New file.
60882         New module 'unicase/u32-casexfrm'.
60883         * lib/unicase/u32-casexfrm.c: New file.
60884         * modules/unicase/u32-casexfrm: New file.
60886         New module 'unicase/u16-casexfrm'.
60887         * lib/unicase/u16-casexfrm.c: New file.
60888         * modules/unicase/u16-casexfrm: New file.
60890         New module 'unicase/u8-casexfrm'.
60891         * lib/unicase/u8-casexfrm.c: New file.
60892         * lib/unicase/u-casexfrm.h: New file.
60893         * modules/unicase/u8-casexfrm: New file.
60895         Tests for module 'unicase/u32-casecmp'.
60896         * modules/unicase/u32-casecmp-tests: New file.
60897         * tests/unicase/test-u32-casecmp.c: New file.
60899         Tests for module 'unicase/u16-casecmp'.
60900         * modules/unicase/u16-casecmp-tests: New file.
60901         * tests/unicase/test-u16-casecmp.c: New file.
60903         Tests for module 'unicase/u8-casecmp'.
60904         * modules/unicase/u8-casecmp-tests: New file.
60905         * tests/unicase/test-u8-casecmp.c: New file.
60906         * tests/unicase/test-casecmp.h: New file.
60908         New module 'unicase/u32-casecmp'.
60909         * lib/unicase/u32-casecmp.c: New file.
60910         * modules/unicase/u32-casecmp: New file.
60912         New module 'unicase/u16-casecmp'.
60913         * lib/unicase/u16-casecmp.c: New file.
60914         * modules/unicase/u16-casecmp: New file.
60916         New module 'unicase/u8-casecmp'.
60917         * lib/unicase/u8-casecmp.c: New file.
60918         * lib/unicase/u-casecmp.h: New file.
60919         * modules/unicase/u8-casecmp: New file.
60921         Tests for module 'unicase/u32-casefold'.
60922         * modules/unicase/u32-casefold-tests: New file.
60923         * tests/unicase/test-u32-casefold.c: New file.
60925         Tests for module 'unicase/u16-casefold'.
60926         * modules/unicase/u16-casefold-tests: New file.
60927         * tests/unicase/test-u16-casefold.c: New file.
60929         Tests for module 'unicase/u8-casefold'.
60930         * modules/unicase/u8-casefold-tests: New file.
60931         * tests/unicase/test-u8-casefold.c: New file.
60933         New module 'unicase/u32-casefold'.
60934         * lib/unicase/u32-casefold.c: New file.
60935         * modules/unicase/u32-casefold: New file.
60937         New module 'unicase/u16-casefold'.
60938         * lib/unicase/u16-casefold.c: New file.
60939         * modules/unicase/u16-casefold: New file.
60941         New module 'unicase/u8-casefold'.
60942         * lib/unicase/u8-casefold.c: New file.
60943         * lib/unicase/u-casefold.h: New file.
60944         * modules/unicase/u8-casefold: New file.
60946         New module 'unicase/tocasefold'.
60947         * lib/unicase/casefold.h: New file.
60948         * lib/unicase/tocasefold.c: New file.
60949         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
60950         * modules/unicase/tocasefold: New file.
60952         Tests for module 'unicase/u32-totitle'.
60953         * modules/unicase/u32-totitle-tests: New file.
60954         * tests/unicase/test-u32-totitle.c: New file.
60956         Tests for module 'unicase/u16-totitle'.
60957         * modules/unicase/u16-totitle-tests: New file.
60958         * tests/unicase/test-u16-totitle.c: New file.
60960         Tests for module 'unicase/u8-totitle'.
60961         * modules/unicase/u8-totitle-tests: New file.
60962         * tests/unicase/test-u8-totitle.c: New file.
60964         New module 'unicase/u32-totitle'.
60965         * lib/unicase/u32-totitle.c: New file.
60966         * modules/unicase/u32-totitle: New file.
60968         New module 'unicase/u16-totitle'.
60969         * lib/unicase/u16-totitle.c: New file.
60970         * modules/unicase/u16-totitle: New file.
60972         New module 'unicase/u8-totitle'.
60973         * lib/unicase/u8-totitle.c: New file.
60974         * lib/unicase/u-totitle.h: New file.
60975         * modules/unicase/u8-totitle: New file.
60977         Tests for module 'unicase/u32-tolower'.
60978         * modules/unicase/u32-tolower-tests: New file.
60979         * tests/unicase/test-u32-tolower.c: New file.
60981         Tests for module 'unicase/u16-tolower'.
60982         * modules/unicase/u16-tolower-tests: New file.
60983         * tests/unicase/test-u16-tolower.c: New file.
60985         Tests for module 'unicase/u8-tolower'.
60986         * modules/unicase/u8-tolower-tests: New file.
60987         * tests/unicase/test-u8-tolower.c: New file.
60989         New module 'unicase/u32-tolower'.
60990         * lib/unicase/u32-tolower.c: New file.
60991         * modules/unicase/u32-tolower: New file.
60993         New module 'unicase/u16-tolower'.
60994         * lib/unicase/u16-tolower.c: New file.
60995         * modules/unicase/u16-tolower: New file.
60997         New module 'unicase/u8-tolower'.
60998         * lib/unicase/u8-tolower.c: New file.
60999         * modules/unicase/u8-tolower: New file.
61001         Tests for module 'unicase/u32-toupper'.
61002         * modules/unicase/u32-toupper-tests: New file.
61003         * tests/unicase/test-u32-toupper.c: New file.
61005         Tests for module 'unicase/u16-toupper'.
61006         * modules/unicase/u16-toupper-tests: New file.
61007         * tests/unicase/test-u16-toupper.c: New file.
61009         Tests for module 'unicase/u8-toupper'.
61010         * modules/unicase/u8-toupper-tests: New file.
61011         * tests/unicase/test-u8-toupper.c: New file.
61013         New module 'unicase/u32-toupper'.
61014         * lib/unicase/u32-toupper.c: New file.
61015         * modules/unicase/u32-toupper: New file.
61017         New module 'unicase/u16-toupper'.
61018         * lib/unicase/u16-toupper.c: New file.
61019         * modules/unicase/u16-toupper: New file.
61021         New module 'unicase/u8-toupper'.
61022         * lib/unicase/u8-toupper.c: New file.
61023         * modules/unicase/u8-toupper: New file.
61025         New module 'unicase/u32-casemap'.
61026         * lib/unicase/u32-casemap.c: New file.
61027         * modules/unicase/u32-casemap: New file.
61029         New module 'unicase/u16-casemap'.
61030         * lib/unicase/u16-casemap.c: New file.
61031         * modules/unicase/u16-casemap: New file.
61033         New module 'unicase/u8-casemap'.
61034         * lib/unicase/unicasemap.h: New file.
61035         * lib/unicase/u8-casemap.c: New file.
61036         * lib/unicase/u-casemap.h: New file.
61037         * modules/unicase/u8-casemap: New file.
61039         New module 'unicase/special-casing'.
61040         * lib/unicase/special-casing.h: New file.
61041         * lib/unicase/special-casing.c: New file.
61042         * lib/unicase/special-casing-table.gperf: New file, generated by
61043         gen-uni-tables.c.
61044         * modules/unicase/special-casing: New file.
61046         Tests for module 'unicase/locale-language'.
61047         * modules/unicase/locale-language-tests: New file.
61048         * tests/unicase/test-locale-language.sh: New file.
61049         * tests/unicase/test-locale-language.c: New file.
61051         New module 'unicase/locale-language'.
61052         * lib/unicase/locale-language.c: New file.
61053         * lib/unicase/locale-languages.gperf: New file.
61054         * modules/unicase/locale-language: New file.
61056         Generate more tables for case conversion and case folding.
61057         * lib/gen-uni-tables.c (SCC_*): New enum items.
61058         (struct special_casing_rule): New type.
61059         (casing_rules, num_casing_rules, allocated_casing_rules): New
61060         variables.
61061         (add_casing_rule, fill_casing_rules): New functions.
61062         (struct casefold_rule): New type.
61063         (casefolding_rules, num_casefolding_rules,
61064         allocated_casefolding_rules): New variables.
61065         (fill_casefolding_rules): New function.
61066         (unicode_casefold): New variable.
61067         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
61068         sort_casing_rules, output_casing_rules): New functions.
61069         (main): Accept to more arguments: SpecialCasing.txt and
61070         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
61071         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
61072         Output mapping for casefolding.
61074         * lib/unicase.h: Include stdbool.h, uninorm.h.
61075         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
61076         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
61077         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
61078         arguments.
61079         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
61080         resultp arguments.
61081         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
61082         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
61083         resultp arguments.
61084         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
61085         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
61086         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
61087         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
61088         declarations.
61089         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
61091 2009-03-08  Bruno Haible  <bruno@clisp.org>
61093         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
61094         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
61095         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
61096         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
61098 2009-03-07  Bruno Haible  <bruno@clisp.org>
61100         Adjust u*_normcmp, u*_normcoll API.
61101         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
61102         u16_normcoll, u32_normcoll): Change failure conventions.
61103         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
61104         errno and return -1.
61105         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
61107 2009-03-07  Bruno Haible  <bruno@clisp.org>
61109         Tests for module 'uninorm/u32-normcoll'.
61110         * modules/uninorm/u32-normcoll-tests: New file.
61111         * tests/uninorm/test-u32-normcoll.c: New file.
61113         Tests for module 'uninorm/u16-normcoll'.
61114         * modules/uninorm/u16-normcoll-tests: New file.
61115         * tests/uninorm/test-u16-normcoll.c: New file.
61117         Tests for module 'uninorm/u8-normcoll'.
61118         * modules/uninorm/u8-normcoll-tests: New file.
61119         * tests/uninorm/test-u8-normcoll.c: New file.
61121 2009-03-07  Bruno Haible  <bruno@clisp.org>
61123         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
61124         tests/uninorm/test-u32-normcmp.c.
61125         * tests/uninorm/test-u32-normcmp.c: Include it.
61126         (test_nonascii): New function, extracted from main. Add some more
61127         tests.
61128         (main): Invoke test_ascii and test_nonascii.
61129         * modules/uninorm/u32-normcmp-tests (Files): Add
61130         tests/uninorm/test-u32-normcmp.h.
61131         (Depends-on): Remove uninorm/u32-normcmp.
61133         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
61134         tests/uninorm/test-u16-normcmp.c.
61135         * tests/uninorm/test-u16-normcmp.c: Include it.
61136         (test_nonascii): New function, extracted from main. Add some more
61137         tests.
61138         (main): Invoke test_ascii and test_nonascii.
61139         * modules/uninorm/u16-normcmp-tests (Files): Add
61140         tests/uninorm/test-u16-normcmp.h.
61141         (Depends-on): Remove uninorm/u16-normcmp.
61143         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
61144         tests/uninorm/test-u8-normcmp.c.
61145         * tests/uninorm/test-u8-normcmp.c: Include it.
61146         (test_nonascii): New function, extracted from main. Add some more
61147         tests.
61148         (main): Invoke test_ascii and test_nonascii.
61149         * modules/uninorm/u8-normcmp-tests (Files): Add
61150         tests/uninorm/test-u8-normcmp.h.
61151         (Depends-on): Remove uninorm/u8-normcmp.
61153 2009-03-07  Bruno Haible  <bruno@clisp.org>
61155         New module 'uninorm/u32-normcoll'.
61156         * lib/uninorm/u32-normcoll.c: New file.
61157         * modules/uninorm/u32-normcoll: New file.
61159         New module 'uninorm/u16-normcoll'.
61160         * lib/uninorm/u16-normcoll.c: New file.
61161         * modules/uninorm/u16-normcoll: New file.
61163         New module 'uninorm/u8-normcoll'.
61164         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
61165         declarations.
61166         * lib/uninorm/u8-normcoll.c: New file.
61167         * lib/uninorm/u-normcoll.h: New file.
61168         * modules/uninorm/u8-normcoll: New file.
61170         New module 'uninorm/u32-normxfrm'.
61171         * lib/uninorm/u32-normxfrm.c: New file.
61172         * modules/uninorm/u32-normxfrm: New file.
61174         New module 'uninorm/u16-normxfrm'.
61175         * lib/uninorm/u16-normxfrm.c: New file.
61176         * modules/uninorm/u16-normxfrm: New file.
61178         New module 'uninorm/u8-normxfrm'.
61179         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
61180         declarations.
61181         * lib/uninorm/u8-normxfrm.c: New file.
61182         * lib/uninorm/u-normxfrm.h: New file.
61183         * modules/uninorm/u8-normxfrm: New file.
61185 2009-03-07  Bruno Haible  <bruno@clisp.org>
61187         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
61188         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
61189         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
61191 2009-03-07  Bruno Haible  <bruno@clisp.org>
61193         New module 'memxfrm'.
61194         * lib/memxfrm.h: New file.
61195         * lib/memxfrm.c: New file.
61196         * modules/memxfrm: New file.
61198 2009-03-07  Bruno Haible  <bruno@clisp.org>
61200         New module 'memcmp2'.
61201         * lib/memcmp2.h: New file.
61202         * lib/memcmp2.c: New file.
61203         * modules/memcmp2: New file.
61205 2009-03-07  Bruno Haible  <bruno@clisp.org>
61207         Tests for module 'uninorm/decomposing-form'.
61208         * modules/uninorm/decomposing-form-tests: New file.
61209         * tests/uninorm/test-decomposing-form.c: New file.
61211         New module 'uninorm/decomposing-form'.
61212         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
61213         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
61214         Add 'decomposing_variant' field.
61215         * lib/uninorm/decomposing-form.c: New file.
61216         * lib/uninorm/nfc.c (uninorm_nfc): Update.
61217         * lib/uninorm/nfd.c (uninorm_nfd): Update.
61218         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
61219         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
61220         * modules/uninorm/decomposing-form: New file.
61221         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
61222         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
61224 2009-03-07  Bruno Haible  <bruno@clisp.org>
61226         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
61227         strings.
61229 2009-03-06  Bruno Haible  <bruno@clisp.org>
61231         Tests for module 'uninorm/u32-normcmp'.
61232         * tests/uninorm/test-u32-normcmp.c: New file.
61233         * modules/uninorm/u32-normcmp-tests: New file.
61235         Tests for module 'uninorm/u16-normcmp'.
61236         * tests/uninorm/test-u16-normcmp.c: New file.
61237         * modules/uninorm/u16-normcmp-tests: New file.
61239         Tests for module 'uninorm/u8-normcmp'.
61240         * tests/uninorm/test-u8-normcmp.c: New file.
61241         * modules/uninorm/u8-normcmp-tests: New file.
61243         New module 'uninorm/u32-normcmp'.
61244         * lib/uninorm/u32-normcmp.c: New file.
61245         * modules/uninorm/u32-normcmp: New file.
61247         New module 'uninorm/u16-normcmp'.
61248         * lib/uninorm/u16-normcmp.c: New file.
61249         * modules/uninorm/u16-normcmp: New file.
61251         New module 'uninorm/u8-normcmp'.
61252         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
61253         declarations.
61254         * lib/uninorm/u8-normcmp.c: New file.
61255         * lib/uninorm/u-normcmp.h: New file.
61256         * modules/uninorm/u8-normcmp: New file.
61258 2009-03-06  Bruno Haible  <bruno@clisp.org>
61260         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
61261         Reported by Eric Blake.
61263 2009-03-06  Eric Blake  <ebb9@byu.net>
61264             Bruno Haible  <bruno@clisp.org>
61266         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
61267         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
61268         condition.
61269         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
61270         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
61271         condition.
61272         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
61274 2009-03-06  Eric Blake  <ebb9@byu.net>
61276         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
61277         to avoid compiler warnings.
61278         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
61280 2009-03-05  Bruno Haible  <bruno@clisp.org>
61282         * tests/test-ftell.c (main): Disable test beyond end of file on
61283         FreeMiNT.
61284         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
61286 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
61288         * lib/filevercmp.c: Move hidden files up in ordering.
61289         * tests/test-filevercmp.c: Add tests for hidden files.
61291 2009-03-04  Bruno Haible  <bruno@clisp.org>
61293         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
61294         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
61295         AM_CFLAGS.
61296         Reported by Simon Josefsson.
61298 2009-03-03  Bruno Haible  <bruno@clisp.org>
61300         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
61301         Reported by Simon Josefsson.
61303         * doc/ld-version-script.texi: Update node reference.
61305 2009-03-03  Bruno Haible  <bruno@clisp.org>
61307         * modules/visibility (License): Change to 'unlimited'.
61308         Suggested by Simon Josefsson.
61310 2009-03-03  Jim Meyering  <meyering@redhat.com>
61312         unlinkdir: cannot_unlink_dir may modify process state
61313         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
61314         it's neither thread-safe nor appropriate for use in a library.
61316 2009-03-03  Eric Blake  <ebb9@byu.net>
61318         test-closein: silence test under Darwin
61319         * tests/test-closein.sh: Ignore stderr from cat, since we don't
61320         care if it dies from EPIPE or EBADF.
61322 2009-03-03  Bruno Haible  <bruno@clisp.org>
61324         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
61325         earlier.
61326         * doc/visibility.texi: Fix @node and @section.
61328 2009-03-03  Simon Josefsson  <simon@josefsson.org>
61330         * doc/gnulib.texi: Link to sections for ld version script and
61331         visibility.
61332         * doc/visibility.texi: Add @node and @section.
61333         * modules/ld-version-script: New module.
61334         * m4/ld-version-script.m4: New file.
61335         * doc/ld-version-script.texi: New file.
61337 2009-03-02  David Lutterkort  <lutter@redhat.com>
61339         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
61340         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61342 2009-03-02  Bruno Haible  <bruno@clisp.org>
61344         * doc/visibility.texi: Mention libtool's -export-symbols option.
61346 2009-03-02  Jim Meyering  <meyering@redhat.com>
61348         announce-gen: new option: --no-print-checksums
61349         * build-aux/announce-gen (usage): Describe it.
61350         (print_checksums): Print a newline here, not in the [*] footnote.
61351         (main): Honor it.
61353 2009-03-01  Bruno Haible  <bruno@clisp.org>
61355         Use socklen_t in the native Windows replacements prototypes.
61356         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
61357         instead of 'int'.
61358         * lib/getsockopt.c (rpl_getsockopt): Likewise.
61359         * lib/setsockopt.c (rpl_setsockopt): Likewise.
61360         * modules/getsockopt (Depends-on): Add socklen.
61361         * modules/setsockopt (Depends-on): Add socklen.
61363 2009-03-01  Bruno Haible  <bruno@clisp.org>
61365         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
61366         least 4.2.
61368 2009-03-01  Eric Blake  <ebb9@byu.net>
61369             Bruno Haible  <bruno@clisp.org>
61371         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
61372         error messages.
61373         * lib/wait-process.c (wait_subprocess): Omit error message about
61374         deadly signal sent to the child of termsigp != NULL.
61376 2009-03-01  Eric Blake  <ebb9@byu.net>
61378         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
61380 2009-03-01  Bruno Haible  <bruno@clisp.org>
61382         Avoid a gcc warning.
61383         * tests/test-sched.c (b): Make global.
61384         Reported by Eric Blake.
61386 2009-01-19  Martin Lambers  <marlam@marlam.de>
61388         Provide POSIX semantics for socket timeout options on W32.
61389         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
61390         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
61391         * modules/setsockopt: Depend on sys_time module for struct timeval.
61392         * modules/getsockopt: Depend on sys_time module for struct timeval.
61394 2009-03-01  Simon Josefsson  <simon@josefsson.org>
61396         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
61397         __USE_GNU, for consistency with netdb.in.h.
61398         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
61400 2009-03-01  Bruno Haible  <bruno@clisp.org>
61402         More support for FreeMiNT.
61403         * lib/fseeko.c (rpl_fseeko): Complete last commit.
61404         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
61406 2009-03-01  Bruno Haible  <bruno@clisp.org>
61408         More support for FreeMiNT.
61409         * lib/fpurge.c (fpurge): Correct last commit.
61410         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
61412 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61414         Fix unportable awk script in vc-list-files.
61415         * build-aux/vc-list-files: In the replacement awk script, use
61416         substr with a second argument of 1, not zero.
61417         Report by Simon Josefsson.
61419 2009-02-28  Bruno Haible  <bruno@clisp.org>
61421         More support for FreeMiNT.
61422         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
61423         to FreeMiNT today.
61424         * lib/fwriting.c (fwriting): Likewise.
61425         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
61427 2009-02-28  Bruno Haible  <bruno@clisp.org>
61429         * tests/test-freadseek.c (main): Disable test beyond end of file on
61430         FreeMiNT.
61431         * tests/test-ftello.c (main): Likewise.
61432         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
61434 2009-02-28  Bruno Haible  <bruno@clisp.org>
61436         Add tentative support for FreeMiNT.
61437         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
61438         * lib/fpurge.c (fpurge): Likewise.
61439         * lib/freadable.c (freadable): Likewise.
61440         * lib/freading.c (freading): Likewise.
61441         * lib/freadptr.c (freadptr): Likewise.
61442         * lib/freadseek.c (freadptrinc): Likewise.
61443         * lib/fseeko.c (rpl_fseeko): Likewise.
61444         * lib/fseterr.c (fseterr): Likewise.
61445         * lib/fwritable.c (fwritable): Likewise.
61446         * lib/fwriting.c (fwriting): Likewise.
61447         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
61448         Hourihane.
61449         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
61451 2009-02-28  Bruno Haible  <bruno@clisp.org>
61453         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
61454         SIGCHLD.
61455         Reported by Jim Meyering.
61457 2009-02-28  Bruno Haible  <bruno@clisp.org>
61459         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
61460         Mention the results of these tests on various platforms.
61461         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
61462         order.
61463         * doc/posix-functions/printf.texi: Likewise.
61464         * doc/posix-functions/snprintf.texi: Likewise.
61465         * doc/posix-functions/sprintf.texi: Likewise.
61466         * doc/posix-functions/vfprintf.texi: Likewise.
61467         * doc/posix-functions/vprintf.texi: Likewise.
61468         * doc/posix-functions/vsnprintf.texi: Likewise.
61469         * doc/posix-functions/vsprintf.texi: Likewise.
61470         * doc/glibc-functions/obstack_printf.texi: Likewise.
61471         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
61473 2009-02-28  Bruno Haible  <bruno@clisp.org>
61475         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
61476         Reported by Loïc Minier <lool@dooz.org>.
61478 2009-02-27  Bruno Haible  <bruno@clisp.org>
61480         * gnulib-tool (func_import): Make the sed expression used to create the
61481         sed script for updating the .gitignore file POSIX compliant.
61482         Reported by Eric Blake.
61484 2009-02-27  Bruno Haible  <bruno@clisp.org>
61486         * gnulib-tool (sed): Don't alias as "sed --posix".
61487         Reported by Eric Blake.
61489 2009-02-27  Bruno Haible  <bruno@clisp.org>
61491         Avoid test link errors.
61492         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
61493         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
61494         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
61495         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
61496         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61498 2009-02-27  Bruno Haible  <bruno@clisp.org>
61500         Avoid spurious "(cached)" in configure output.
61501         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
61502         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
61503         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61504         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61505         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61506         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
61507         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61508         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
61509         Reported by Eric Blake.
61511 2009-02-27  Eric Blake  <ebb9@byu.net>
61513         printf: fix regression in previous patch
61514         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
61516 2009-02-27  Bruno Haible  <bruno@clisp.org>
61518         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
61519         value.
61520         * lib/stdint.in.h: Likewise.
61521         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
61523 2009-02-27  Eric Blake  <ebb9@byu.net>
61525         doc: mention more functions added in cygwin 1.7.0
61526         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
61527         addition.
61528         * doc/posix-functions/open_wmemstream.texi: Likewise.
61529         * doc/posix-functions/wcsnlen.texi: Likewise.
61530         * doc/posix-functions/wcsnrtombs.texi: Likewise.
61531         * doc/posix-functions/wcstod.texi: Likewise.
61532         * doc/posix-functions/wcstof.texi: Likewise.
61533         * doc/posix-functions/wcstoimax.texi: Likewise.
61534         * doc/posix-functions/wcstok.texi: Likewise.
61535         * doc/posix-functions/wcstoumax.texi: Likewise.
61537         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
61538         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
61539         * doc/posix-functions/fprintf.texi: Update.
61540         * doc/posix-functions/printf.texi: Update.
61541         * doc/posix-functions/snprintf.texi: Update.
61542         * doc/posix-functions/sprintf.texi: Update.
61543         * doc/posix-functions/vfprintf.texi: Update.
61544         * doc/posix-functions/vprintf.texi: Update.
61545         * doc/posix-functions/vsnprintf.texi: Update.
61546         * doc/posix-functions/vsprintf.texi: Update.
61547         * doc/glibc-functions/obstack_printf.texi: Update.
61548         * doc/glibc-functions/obstack_vprintf.texi: Update.
61550 2009-02-26  Eric Blake  <ebb9@byu.net>
61552         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
61553         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
61554         compilation bug by using runtime conversion.
61555         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
61556         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
61557         * modules/ceill-tests (Files): Use nan.h.
61558         * modules/floorl-tests (Files): Likewise.
61559         * modules/frexpl-tests (Files): Likewise.
61560         * modules/isnanl-tests (Files): Likewise.
61561         * modules/ldexpl-tests (Files): Likewise.
61562         * modules/roundl-tests (Files): Likewise.
61563         * modules/truncl-tests (Files): Likewise.
61564         * tests/test-ceill.c (main): Use a working NaN.
61565         * tests/test-floorl.c (main): Likewise.
61566         * tests/test-frexpl.c (main): Likewise.
61567         * tests/test-isnan.c (test_long_double): Likewise.
61568         * tests/test-isnanl.h (main): Likewise.
61569         * tests/test-ldexpl.h (main): Likewise.
61570         * tests/test-roundl.h (main): Likewise.
61571         * tests/test-truncl.h (main): Likewise.
61572         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
61574 2009-02-26  Eric Blake  <ebb9@byu.net>
61575             Bruno Haible  <bruno@clisp.org>
61577         Work around a *printf bug with %ls on Solaris.
61578         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
61579         precision is specified, sprintf stops converting the wide string
61580         argument when the number of bytes that have been produced by this
61581         conversion equals or exceeds the precision.
61582         * doc/posix-functions/fprintf.texi: Update.
61583         * doc/posix-functions/printf.texi: Update.
61584         * doc/posix-functions/snprintf.texi: Update.
61585         * doc/posix-functions/sprintf.texi: Update.
61586         * doc/posix-functions/vfprintf.texi: Update.
61587         * doc/posix-functions/vprintf.texi: Update.
61588         * doc/posix-functions/vsnprintf.texi: Update.
61589         * doc/posix-functions/vsprintf.texi: Update.
61590         * doc/glibc-functions/obstack_printf.texi: Update.
61591         * doc/glibc-functions/obstack_vprintf.texi: Update.
61593 2009-02-26  Eric Blake  <ebb9@byu.net>
61595         stdlib: favor compiler check of random.h
61596         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
61597         to avoid an ObjC random.h installed by Swarm.
61599 2009-02-26  Bruno Haible  <bruno@clisp.org>
61601         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
61602         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
61603         Reported by Gary V. Vaughan <gary@gnu.org>.
61605 2009-02-26  Bruno Haible  <bruno@clisp.org>
61607         Fix *printf behaviour regarding the %ls directive.
61608         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
61609         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
61610         NEED_PRINTF_DIRECTIVE_LS.
61611         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
61612         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61613         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61614         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
61615         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
61616         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
61617         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
61618         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61619         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61620         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61621         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61622         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
61623         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61624         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61625         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61626         * doc/posix-functions/fprintf.texi: Update.
61627         * doc/posix-functions/printf.texi: Update.
61628         * doc/posix-functions/snprintf.texi: Update.
61629         * doc/posix-functions/sprintf.texi: Update.
61630         * doc/posix-functions/vfprintf.texi: Update.
61631         * doc/posix-functions/vprintf.texi: Update.
61632         * doc/posix-functions/vsnprintf.texi: Update.
61633         * doc/posix-functions/vsprintf.texi: Update.
61634         * doc/glibc-functions/obstack_printf.texi: Update.
61635         * doc/glibc-functions/obstack_vprintf.texi: Update.
61636         Reported by Eric Blake.
61638 2009-02-25  Bruno Haible  <bruno@clisp.org>
61640         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
61641         with known value.
61642         Reported by Gary V. Vaughan <gary@gnu.org>.
61644 2009-02-25  Bruno Haible  <bruno@clisp.org>
61646         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
61647         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
61648         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
61649         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
61650         Reported by Gary V. Vaughan <gary@gnu.org>.
61652 2009-02-25  Bruno Haible  <bruno@clisp.org>
61654         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
61655         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
61656         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
61657         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
61658         Reported by Gary V. Vaughan <gary@gnu.org>.
61660 2009-02-25  Eric Blake  <ebb9@byu.net>
61662         tests: skip fseek/ftell tests if ungetc is broken
61663         * m4/ungetc.m4: New file.
61664         * modules/fseek-tests: Split test, so ungetc dependency is
61665         separate from rest of test.
61666         * modules/fseeko-tests: Likewise.
61667         * modules/ftell-tests: Likewise.
61668         * modules/ftello-tests: Likewise.
61669         * tests/test-fseek.c (main): Isolate ungetc dependency.
61670         * tests/test-fseeko.c (main): Likewise.
61671         * tests/test-ftell.c (main): Likewise.
61672         * tests/test-ftello.c (main): Likewise.
61673         * tests/test-fseek2.sh: New file.
61674         * tests/test-fseeko2.sh: Likewise.
61675         * tests/test-ftell2.sh: Likewise.
61676         * tests/test-ftello2.sh: Likewise.
61678 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
61680         test-getaddrinfo: fix usage of skip return code 77
61681         * tests/test-gettaddrinfo.c: Return skip code 77 only
61682         for first occurrence of skip (4x77 is not 77)
61684 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
61686         strtod: avoid C99 decl-after-statement
61687         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
61689 2009-02-24  Eric Blake  <ebb9@byu.net>
61691         strtod: detect HP-UX 11.31 bug
61692         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
61693         Reported by Gary V. Vaughan.
61695 2009-02-23  Bruno Haible  <bruno@clisp.org>
61697         Fix invalid read past end of memory block.
61698         * lib/vasnprintf.c (DCHAR_SET): Define.
61699         (local_wcslen): Define only when needed.
61700         (local_strnlen, local_wcsnlen): New functions.
61701         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
61702         directives that involve a conversion ourselves.
61703         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
61704         wcsnlen, mbrtowc, wcrtomb.
61705         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
61706         * tests/test-vasprintf-posix.c (test_function): Likewise.
61707         * tests/test-snprintf-posix.h (test_function): Likewise.
61708         * tests/test-sprintf-posix.h (test_function): Likewise.
61709         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61711 2009-02-22  Bruno Haible  <bruno@clisp.org>
61713         Implement new clarified decomposition of Hangul syllables.
61714         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
61715         of type LTV, return only a pairwise decomposition.
61716         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
61717         Likewise.
61718         * tests/uninorm/test-decomposition.c (main): Updated expected result.
61719         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
61720         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
61722 2009-02-22  Bruno Haible  <bruno@clisp.org>
61724         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
61725         zero-length results and shrink excess allocated memory.
61726         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
61727         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
61728         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
61729         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
61730         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
61731         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
61732         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
61733         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
61734         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
61735         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
61736         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
61737         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
61739 2009-02-21  Bruno Haible  <bruno@clisp.org>
61741         * doc/gnulib.texi: Include safe-alloc.texi earlier.
61742         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
61743         spaces after a period. Put a space between a macro name and its
61744         argument list. Trivial rewordings.
61745         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
61746         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
61747         (main): Return 0 explicitly.
61749 2009-02-21  Bruno Haible  <bruno@clisp.org>
61751         Tests for module 'uninorm/filter'.
61752         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
61753         * modules/uninorm/filter-tests: New file.
61755         New module 'uninorm/filter'.
61756         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
61757         uninorm_filter_flush, uninorm_filter_free): New declarations.
61758         * lib/uninorm/uninorm-filter.c: New file.
61759         * modules/uninorm/filter: New file.
61761 2009-02-21  Bruno Haible  <bruno@clisp.org>
61763         Tests for module 'uninorm/nfkc'.
61764         * tests/uninorm/test-nfkc.c: New file.
61765         * tests/uninorm/test-u8-nfkc.c: New file.
61766         * tests/uninorm/test-u16-nfkc.c: New file.
61767         * tests/uninorm/test-u32-nfkc.c: New file.
61768         * tests/uninorm/test-u32-nfkc-big.sh: New file.
61769         * tests/uninorm/test-u32-nfkc-big.c: New file.
61770         * modules/uninorm/nfkc-tests: New file.
61772         New module 'uninorm/nfkc'.
61773         * lib/uninorm/nfkc.c: New file.
61774         * modules/uninorm/nfkc: New file.
61776         Tests for module 'uninorm/nfkd'.
61777         * tests/uninorm/test-nfkd.c: New file.
61778         * tests/uninorm/test-u8-nfkd.c: New file.
61779         * tests/uninorm/test-u16-nfkd.c: New file.
61780         * tests/uninorm/test-u32-nfkd.c: New file.
61781         * tests/uninorm/test-u32-nfkd-big.sh: New file.
61782         * tests/uninorm/test-u32-nfkd-big.c: New file.
61783         * modules/uninorm/nfkd-tests: New file.
61785         New module 'uninorm/nfkd'.
61786         * lib/uninorm/nfkd.c: New file.
61787         * modules/uninorm/nfkd: New file.
61789         Tests for module 'uninorm/nfc'.
61790         * tests/uninorm/test-nfc.c: New file.
61791         * tests/uninorm/test-u8-nfc.c: New file.
61792         * tests/uninorm/test-u16-nfc.c: New file.
61793         * tests/uninorm/test-u32-nfc.c: New file.
61794         * tests/uninorm/test-u32-nfc-big.sh: New file.
61795         * tests/uninorm/test-u32-nfc-big.c: New file.
61796         * modules/uninorm/nfc-tests: New file.
61798         New module 'uninorm/nfc'.
61799         * lib/uninorm/nfc.c: New file.
61800         * modules/uninorm/nfc: New file.
61802         Tests for module 'uninorm/nfd'.
61803         * tests/uninorm/test-nfd.c: New file.
61804         * tests/uninorm/test-u8-nfd.c: New file.
61805         * tests/uninorm/test-u16-nfd.c: New file.
61806         * tests/uninorm/test-u32-nfd.c: New file.
61807         * tests/uninorm/test-u32-nfd-big.sh: New file.
61808         * tests/uninorm/test-u32-nfd-big.c: New file.
61809         * tests/uninorm/test-u32-normalize-big.h: New file.
61810         * tests/uninorm/test-u32-normalize-big.c: New file.
61811         * tests/uninorm/NormalizationTest.txt: New file, created from
61812         Unicode 5.1.0 NormalizationTest.txt.
61813         * modules/uninorm/nfd-tests: New file.
61815         New module 'uninorm/nfd'.
61816         * lib/uninorm/nfd.c: New file.
61817         * modules/uninorm/nfd: New file.
61819         New module 'uninorm/u32-normalize'.
61820         * lib/uninorm/u32-normalize.c: New file.
61821         * modules/uninorm/u32-normalize: New file.
61823         New module 'uninorm/u16-normalize'.
61824         * lib/uninorm/u16-normalize.c: New file.
61825         * modules/uninorm/u16-normalize: New file.
61827         New module 'uninorm/u8-normalize'.
61828         * lib/uninorm/u8-normalize.c: New file.
61829         * lib/uninorm/normalize-internal.h: New file.
61830         * lib/uninorm/u-normalize-internal.h: New file.
61831         * modules/uninorm/u8-normalize: New file.
61833         New module 'uninorm/decompose-internal'.
61834         * lib/uninorm/decompose-internal.c: New file.
61835         * modules/uninorm/decompose-internal: New file.
61837         Tests for module 'uninorm/composition'.
61838         * tests/uninorm/test-composition.c: New file.
61839         * modules/uninorm/composition-tests: New file.
61841         New module 'uninorm/composition'.
61842         * lib/uninorm/composition.c: New file.
61843         * lib/uninorm/composition-table.gperf: New file, generated by
61844         gen-uni-tables.
61845         * modules/uninorm/composition: New file.
61847         Tests for module 'uninorm/compat-decomposition'.
61848         * tests/uninorm/test-compat-decomposition.c: New file.
61849         * modules/uninorm/compat-decomposition-tests: New file.
61851         New module 'uninorm/compat-decomposition'.
61852         * lib/uninorm/decompose-internal.h: New file.
61853         * lib/uninorm/compat-decomposition.c: New file.
61854         * modules/uninorm/compat-decomposition: New file.
61856         Tests for module 'uninorm/canonical-decomposition'.
61857         * tests/uninorm/test-canonical-decomposition.c: New file.
61858         * modules/uninorm/canonical-decomposition-tests: New file.
61860         New module 'uninorm/canonical-decomposition'.
61861         * lib/uninorm/canonical-decomposition.c: New file.
61862         * modules/uninorm/canonical-decomposition: New file.
61864         Tests for module 'uninorm/decomposition'.
61865         * tests/uninorm/test-decomposition.c: New file.
61866         * modules/uninorm/decomposition-tests: New file.
61868         New module 'uninorm/decomposition'.
61869         * lib/uninorm/decomposition.c: New file.
61870         * modules/uninorm/decomposition: New file.
61872         New module 'uninorm/decomposition-table'.
61873         * lib/uninorm/decomposition-table.h: New file.
61874         * lib/uninorm/decomposition-table.c: New file.
61875         * lib/uninorm/decomposition-table1.h: New file, generated by
61876         gen-uni-tables.
61877         * lib/uninorm/decomposition-table2.h: New file, generated by
61878         gen-uni-tables.
61879         * modules/uninorm/decomposition-table: New file.
61881         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
61882         (UC_DECOMP_*): New enumeration items.
61883         (get_decomposition): New function.
61884         (struct decomp_table): New type.
61885         (output_decomposition, output_decomposition_tables): New functions.
61886         (unicode_composition_exclusions): New variable.
61887         (fill_composition_exclusions, debug_output_composition_tables): New
61888         functions.
61889         (main): Accept one more argument. Invoke fill_composition_exclusions.
61890         Output decomposition and composition tables.
61892         New module 'uninorm/base'.
61893         * lib/uninorm.h: New file.
61894         * lib/unictype.h: Update comment.
61895         * modules/uninorm/base: New file.
61897 2009-02-21  David Lutterkort  <lutter@redhat.com>
61899         Tests for module 'safe-alloc'.
61900         * tests/test-safe-alloc.c: New file.
61901         * modules/safe-alloc-tests: New file.
61903         New module 'safe-alloc'.
61904         * lib/safe-alloc.h: New file.
61905         * lib/safe-alloc.c: New file.
61906         * m4/safe-alloc.m4: New file.
61907         * modules/safe-alloc: New file.
61908         * doc/safe-alloc.texi: New file.
61909         * doc/gnulib.texi: Include it.
61910         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
61911         safe-alloc.
61913 2009-02-18  Bruno Haible  <bruno@clisp.org>
61915         Fix link error on non-glibc systems.
61916         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
61917         variable.
61918         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61920 2009-02-18  Jim Meyering  <meyering@redhat.com>
61922         fts: avoid used-uninitialized error due to recent change
61923         * lib/fts.c (fts_read): Guard uses of the new member,
61924         parent->fts_n_dirs_remaining, since it's not relevant for
61925         the parent of a directory specified on the command-line.
61927 2009-02-17  James Youngman  <jay@gnu.org>
61928             Bruno Haible  <bruno@clisp.org>
61930         * m4/include_next.m4: Reformulate comment.
61932 2009-02-16  Jim Meyering  <meyering@redhat.com>
61934         fts: add #if guards so that the fts_lgpl module still builds
61935         * lib/fts.c: Guard just-added hash-table-using parts with
61936         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
61937         Reported by Simon Josefsson.
61939 2009-02-15  Bruno Haible  <bruno@clisp.org>
61941         * modules/array-mergesort-tests: New file.
61942         * tests/test-array-mergesort.c: New file.
61944         New module 'array-mergesort'.
61945         * modules/array-mergesort: New file.
61946         * lib/array-mergesort.h: New file.
61948 2009-02-15  Bruno Haible  <bruno@clisp.org>
61950         Fix 2009-02-07 commit.
61951         * lib/gen-uni-tables.c (output_predicate, output_category,
61952         output_combclass, output_bidi_category, output_decimal_digit,
61953         output_digit, output_numeric, output_mirror, output_scripts,
61954         output_ident_category, output_simple_mapping): Fix format directives.
61955         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
61957 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
61959         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
61960         fixes are available from IBM.
61962 2009-02-13  Jim Meyering  <meyering@redhat.com>
61964         fts: arrange not to stat non-directories in more cases
61965         This makes GNU find (when it doesn't need to stat each file)
61966         *much* more efficient at traversing reiserfs file systems.
61967         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
61968         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
61969         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
61970         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
61971         (leaf_optimization_applies): New function.
61972         (LCO_hash, LCO_compare): New helper functions.
61973         (link_count_optimize_ok): New function.
61974         (fts_stat): Initialize new member (if dir).
61975         (fts_read): Decrement parent's fts_n_dirs_remaining count if
61976         we've just stat'ed a directory.  Skip the stat call when possible.
61977         ---
61978         Note this AFS-related exchange:
61979         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
61980         and note find's pioctl call in find/fstype.c.
61981         But that is necessary only if you want to enable the
61982         optimization for AFS, and for now, I don't.
61984         fts: move a function definition "up" (no semantic change)
61985         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
61986         "up" to precede upcoming use of a related function.
61988 2009-02-11  Jim Meyering  <meyering@redhat.com>
61990         fts: correct internal computation of nlinks (optimization-related)
61991         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
61992         whether the current entry is a directory, so don't test it.
61994 2009-02-10  Bruno Haible  <bruno@clisp.org>
61996         Tests for module 'uniwbrk/ulc-wordbreaks'.
61997         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
61998         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
61999         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
62001         Tests for module 'uniwbrk/u32-wordbreaks'.
62002         * modules/uniwbrk/u32-wordbreaks-tests: New file.
62003         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
62005         Tests for module 'uniwbrk/u16-wordbreaks'.
62006         * modules/uniwbrk/u16-wordbreaks-tests: New file.
62007         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
62009         Tests for module 'uniwbrk/u8-wordbreaks'.
62010         * modules/uniwbrk/u8-wordbreaks-tests: New file.
62011         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
62013 2009-02-10  Bruno Haible  <bruno@clisp.org>
62015         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
62016         property.
62017         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
62018         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
62019         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
62021 2009-02-10  Simon Josefsson  <simon@josefsson.org>
62023         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
62024         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
62026 2009-02-10  Bruno Haible  <bruno@clisp.org>
62028         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
62029         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
62030         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
62031         * lib/unilbrk/u8-possible-linebreaks.c: Update.
62032         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
62033         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
62035 2009-02-09  Simon Josefsson  <simon@josefsson.org>
62037         * lib/sockets.h (gl_fd_to_handle): New function.
62039         * tests/test-sockets.c: Call gl_fd_to_handle.
62041 2009-02-09  Bruno Haible  <bruno@clisp.org>
62043         * doc/havelib.texi: Document the conventions on bi-arch systems.
62045 2009-02-08  Bruno Haible  <bruno@clisp.org>
62047         Document the AC_LIB_LINKFLAGS macro.
62048         * doc/havelib.texi: New file, mostly written on 2005-05-24.
62049         * doc/gnulib.texi: Include it.
62051 2009-02-08  Bruno Haible  <bruno@clisp.org>
62053         Fix wrong order of sections, compared to TOC.
62054         * doc/gnulib.texi: Include relocatable-maint.texi after the
62055         "Regular expressions" node, not before.
62057 2009-02-08  Bruno Haible  <bruno@clisp.org>
62059         Tests for module 'unicase/totitle'.
62060         * modules/unicase/totitle-tests: New file.
62062         Tests for module 'unicase/tolower'.
62063         * modules/unicase/tolower-tests: New file.
62065         Tests for module 'unicase/toupper'.
62066         * modules/unicase/toupper-tests: New file.
62067         * tests/unicase/test-mapping-part1.h: New file.
62068         * tests/unicase/test-mapping-part2.h: New file.
62070         New module 'unicase/totitle'.
62071         * modules/unicase/totitle: New file.
62072         * lib/unicase/totitle.c: New file.
62074         New module 'unicase/tolower'.
62075         * modules/unicase/tolower: New file.
62076         * lib/unicase/tolower.c: New file.
62078         New module 'unicase/toupper'.
62079         * modules/unicase/toupper: New file.
62080         * lib/unicase/toupper.c: New file.
62081         * lib/unicase/simple-mapping.h: New file.
62083         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
62084         (mapping_table): New structure.
62085         (output_simple_mapping): New function.
62086         (main): Invoke output_simple_mapping_test and output_simple_mapping.
62087         * modules/gen-uni-tables (Description): Update.
62088         * lib/unicase/toupper.h: New file, automatically generated by
62089         gen-uni-tables.
62090         * lib/unicase/tolower.h: New file, automatically generated by
62091         gen-uni-tables.
62092         * lib/unicase/totitle.h: New file, automatically generated by
62093         gen-uni-tables.
62094         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
62095         gen-uni-tables.
62096         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
62097         gen-uni-tables.
62098         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
62099         gen-uni-tables.
62101         New module 'unicase/base'.
62102         * modules/unicase/base: New file.
62103         * lib/unicase.h: New file.
62105 2009-02-08  Bruno Haible  <bruno@clisp.org>
62107         New module 'uniwbrk/ulc-wordbreaks'.
62108         * modules/uniwbrk/ulc-wordbreaks: New file.
62109         * lib/uniwbrk/ulc-wordbreaks.c: New file.
62111         New module 'uniwbrk/u32-wordbreaks'.
62112         * modules/uniwbrk/u32-wordbreaks: New file.
62113         * lib/uniwbrk/u32-wordbreaks.c: New file.
62115         New module 'uniwbrk/u16-wordbreaks'.
62116         * modules/uniwbrk/u16-wordbreaks: New file.
62117         * lib/uniwbrk/u16-wordbreaks.c: New file.
62119         New module 'uniwbrk/u8-wordbreaks'.
62120         * modules/uniwbrk/u8-wordbreaks: New file.
62121         * lib/uniwbrk/u8-wordbreaks.c: New file.
62122         * lib/uniwbrk/u-wordbreaks.h: New file.
62124         New module 'uniwbrk/table'.
62125         * modules/uniwbrk/table: New file.
62126         * lib/uniwbrk/wbrktable.h: New file.
62127         * lib/uniwbrk/wbrktable.c: New file.
62129         New module 'uniwbrk/wordbreak-property'.
62130         * modules/uniwbrk/wordbreak-property: New file.
62131         * lib/uniwbrk/wordbreak-property.c: New file.
62133         * lib/gen-uni-tables.c (WBP_*): New enum items.
62134         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
62135         (unicode_org_wbp): New variable.
62136         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
62137         New functions.
62138         (wbp_table): New structure.
62139         (output_wbp, output_wbrk_tables): New functions.
62140         (main): Accept additional argument. Invoke fill_org_wbp,
62141         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
62142         output_wbrk_tables.
62143         * modules/gen-uni-tables (Description): Update.
62144         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
62145         gen-uni-tables.
62147         New module 'uniwbrk/base'.
62148         * modules/uniwbrk/base: New file.
62149         * lib/uniwbrk.h: New file.
62151 2009-02-08  Bruno Haible  <bruno@clisp.org>
62153         Update to Unicode 5.1.0.
62154         * lib/gen-uni-tables.c (is_property_alphabetic): Include
62155         U+2185..U+2188.
62156         (is_property_default_ignorable_code_point): Don't include characters
62157         of category Cc or Cs and not-a-characters.
62158         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
62159         U+0D79, U+109E, U+109F, U+A60C.
62160         * lib/unictype/bidi_of.h: Regenerated.
62161         * lib/unictype/blocks.h: Regenerated.
62162         * lib/unictype/categ_C.h: Regenerated.
62163         * lib/unictype/categ_Cf.h: Regenerated.
62164         * lib/unictype/categ_Cn.h: Regenerated.
62165         * lib/unictype/categ_L.h: Regenerated.
62166         * lib/unictype/categ_Ll.h: Regenerated.
62167         * lib/unictype/categ_Lm.h: Regenerated.
62168         * lib/unictype/categ_Lo.h: Regenerated.
62169         * lib/unictype/categ_Lu.h: Regenerated.
62170         * lib/unictype/categ_M.h: Regenerated.
62171         * lib/unictype/categ_Mc.h: Regenerated.
62172         * lib/unictype/categ_Me.h: Regenerated.
62173         * lib/unictype/categ_Mn.h: Regenerated.
62174         * lib/unictype/categ_N.h: Regenerated.
62175         * lib/unictype/categ_Nd.h: Regenerated.
62176         * lib/unictype/categ_Nl.h: Regenerated.
62177         * lib/unictype/categ_No.h: Regenerated.
62178         * lib/unictype/categ_P.h: Regenerated.
62179         * lib/unictype/categ_Pd.h: Regenerated.
62180         * lib/unictype/categ_Pe.h: Regenerated.
62181         * lib/unictype/categ_Pf.h: Regenerated.
62182         * lib/unictype/categ_Pi.h: Regenerated.
62183         * lib/unictype/categ_Po.h: Regenerated.
62184         * lib/unictype/categ_Ps.h: Regenerated.
62185         * lib/unictype/categ_S.h: Regenerated.
62186         * lib/unictype/categ_Sk.h: Regenerated.
62187         * lib/unictype/categ_Sm.h: Regenerated.
62188         * lib/unictype/categ_So.h: Regenerated.
62189         * lib/unictype/categ_of.h: Regenerated.
62190         * lib/unictype/combining.h: Regenerated.
62191         * lib/unictype/ctype_alnum.h: Regenerated.
62192         * lib/unictype/ctype_alpha.h: Regenerated.
62193         * lib/unictype/ctype_graph.h: Regenerated.
62194         * lib/unictype/ctype_lower.h: Regenerated.
62195         * lib/unictype/ctype_print.h: Regenerated.
62196         * lib/unictype/ctype_punct.h: Regenerated.
62197         * lib/unictype/ctype_upper.h: Regenerated.
62198         * lib/unictype/decdigit.h: Regenerated.
62199         * lib/unictype/digit.h: Regenerated.
62200         * lib/unictype/mirror.h: Regenerated.
62201         * lib/unictype/numeric.h: Regenerated.
62202         * lib/unictype/pr_alphabetic.h: Regenerated.
62203         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
62204         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
62205         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
62206         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
62207         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
62208         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
62209         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
62210         * lib/unictype/pr_combining.h: Regenerated.
62211         * lib/unictype/pr_dash.h: Regenerated.
62212         * lib/unictype/pr_decimal_digit.h: Regenerated.
62213         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
62214         * lib/unictype/pr_deprecated.h: Regenerated.
62215         * lib/unictype/pr_diacritic.h: Regenerated.
62216         * lib/unictype/pr_extender.h: Regenerated.
62217         * lib/unictype/pr_format_control.h: Regenerated.
62218         * lib/unictype/pr_grapheme_base.h: Regenerated.
62219         * lib/unictype/pr_grapheme_extend.h: Regenerated.
62220         * lib/unictype/pr_grapheme_link.h: Regenerated.
62221         * lib/unictype/pr_id_continue.h: Regenerated.
62222         * lib/unictype/pr_id_start.h: Regenerated.
62223         * lib/unictype/pr_ideographic.h: Regenerated.
62224         * lib/unictype/pr_ignorable_control.h: Regenerated.
62225         * lib/unictype/pr_lowercase.h: Regenerated.
62226         * lib/unictype/pr_math.h: Regenerated.
62227         * lib/unictype/pr_numeric.h: Regenerated.
62228         * lib/unictype/pr_other_alphabetic.h: Regenerated.
62229         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
62230         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
62231         * lib/unictype/pr_other_id_continue.h: Regenerated.
62232         * lib/unictype/pr_other_lowercase.h: Regenerated.
62233         * lib/unictype/pr_other_math.h: Regenerated.
62234         * lib/unictype/pr_punctuation.h: Regenerated.
62235         * lib/unictype/pr_sentence_terminal.h: Regenerated.
62236         * lib/unictype/pr_soft_dotted.h: Regenerated.
62237         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
62238         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
62239         * lib/unictype/pr_unified_ideograph.h: Regenerated.
62240         * lib/unictype/pr_uppercase.h: Regenerated.
62241         * lib/unictype/pr_xid_continue.h: Regenerated.
62242         * lib/unictype/pr_xid_start.h: Regenerated.
62243         * lib/unictype/pr_zero_width.h: Regenerated.
62244         * lib/unictype/scripts.h: Regenerated.
62245         * lib/unictype/scripts_byname.gperf: Regenerated.
62246         * lib/unictype/sy_java_ident.h: Regenerated.
62247         * lib/unilbrk/lbrkprop1.h: Regenerated.
62248         * lib/unilbrk/lbrkprop2.h: Regenerated.
62249         * tests/unictype/test-categ_C.c: Regenerated.
62250         * tests/unictype/test-categ_Cf.c: Regenerated.
62251         * tests/unictype/test-categ_Cn.c: Regenerated.
62252         * tests/unictype/test-categ_L.c: Regenerated.
62253         * tests/unictype/test-categ_Ll.c: Regenerated.
62254         * tests/unictype/test-categ_Lm.c: Regenerated.
62255         * tests/unictype/test-categ_Lo.c: Regenerated.
62256         * tests/unictype/test-categ_Lu.c: Regenerated.
62257         * tests/unictype/test-categ_M.c: Regenerated.
62258         * tests/unictype/test-categ_Mc.c: Regenerated.
62259         * tests/unictype/test-categ_Me.c: Regenerated.
62260         * tests/unictype/test-categ_Mn.c: Regenerated.
62261         * tests/unictype/test-categ_N.c: Regenerated.
62262         * tests/unictype/test-categ_Nd.c: Regenerated.
62263         * tests/unictype/test-categ_Nl.c: Regenerated.
62264         * tests/unictype/test-categ_No.c: Regenerated.
62265         * tests/unictype/test-categ_P.c: Regenerated.
62266         * tests/unictype/test-categ_Pd.c: Regenerated.
62267         * tests/unictype/test-categ_Pe.c: Regenerated.
62268         * tests/unictype/test-categ_Pf.c: Regenerated.
62269         * tests/unictype/test-categ_Pi.c: Regenerated.
62270         * tests/unictype/test-categ_Po.c: Regenerated.
62271         * tests/unictype/test-categ_Ps.c: Regenerated.
62272         * tests/unictype/test-categ_S.c: Regenerated.
62273         * tests/unictype/test-categ_Sk.c: Regenerated.
62274         * tests/unictype/test-categ_Sm.c: Regenerated.
62275         * tests/unictype/test-categ_So.c: Regenerated.
62276         * tests/unictype/test-ctype_alnum.c: Regenerated.
62277         * tests/unictype/test-ctype_alpha.c: Regenerated.
62278         * tests/unictype/test-ctype_graph.c: Regenerated.
62279         * tests/unictype/test-ctype_lower.c: Regenerated.
62280         * tests/unictype/test-ctype_print.c: Regenerated.
62281         * tests/unictype/test-ctype_punct.c: Regenerated.
62282         * tests/unictype/test-ctype_upper.c: Regenerated.
62283         * tests/unictype/test-decdigit.h: Regenerated.
62284         * tests/unictype/test-digit.h: Regenerated.
62285         * tests/unictype/test-numeric.h: Regenerated.
62286         * tests/unictype/test-pr_alphabetic.c: Regenerated.
62287         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
62288         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
62289         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
62290         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
62291         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
62292         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
62293         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
62294         * tests/unictype/test-pr_combining.c: Regenerated.
62295         * tests/unictype/test-pr_dash.c: Regenerated.
62296         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
62297         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
62298         * tests/unictype/test-pr_deprecated.c: Regenerated.
62299         * tests/unictype/test-pr_diacritic.c: Regenerated.
62300         * tests/unictype/test-pr_extender.c: Regenerated.
62301         * tests/unictype/test-pr_format_control.c: Regenerated.
62302         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
62303         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
62304         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
62305         * tests/unictype/test-pr_id_continue.c: Regenerated.
62306         * tests/unictype/test-pr_id_start.c: Regenerated.
62307         * tests/unictype/test-pr_ideographic.c: Regenerated.
62308         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
62309         * tests/unictype/test-pr_lowercase.c: Regenerated.
62310         * tests/unictype/test-pr_math.c: Regenerated.
62311         * tests/unictype/test-pr_numeric.c: Regenerated.
62312         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
62313         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
62314         Regenerated.
62315         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
62316         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
62317         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
62318         * tests/unictype/test-pr_other_math.c: Regenerated.
62319         * tests/unictype/test-pr_punctuation.c: Regenerated.
62320         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
62321         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
62322         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
62323         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
62324         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
62325         * tests/unictype/test-pr_uppercase.c: Regenerated.
62326         * tests/unictype/test-pr_xid_continue.c: Regenerated.
62327         * tests/unictype/test-pr_xid_start.c: Regenerated.
62328         * tests/unictype/test-pr_zero_width.c: Regenerated.
62330         Update to Unicode 5.1.0.
62331         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
62332         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
62333         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
62334         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
62335         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
62336         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
62337         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
62338         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
62339         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
62340         (nonspacing_table_ind): Update.
62341         * tests/uniwidth/test-uc_width2.sh: Update expected result.
62343         Update to Unicode 5.1.0.
62344         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
62345         code transform.
62346         * lib/uniname/uniname.c (unicode_character_name,
62347         unicode_name_character): Add the range 0x1Fxxx to the code transform.
62348         * lib/uniname/uninames.h: Regenerated.
62349         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
62351 2009-02-07  Bruno Haible  <bruno@clisp.org>
62353         Merge gen-ctype and gen-lbrk into a single program.
62354         * lib/gen-uni-tables.c: New file, incorporating
62355         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
62356         Add directory prefixes to the names of the generated files.
62357         * lib/unictype/gen-ctype.c: Remove file.
62358         * lib/unilbrk/gen-lbrk.c: Remove file.
62359         * modules/gen-uni-tables: New file.
62360         * modules/unictype/gen-ctype: Remove file.
62361         * modules/unilbrk/gen-lbrk: Remove file.
62363 2009-02-07  Bruno Haible  <bruno@clisp.org>
62365         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
62367         New module 'unistr/u32-strcoll'.
62368         * modules/unistr/u32-strcoll: New file.
62369         * lib/unistr/u32-strcoll.c: New file.
62371         New module 'unistr/u16-strcoll'.
62372         * modules/unistr/u16-strcoll: New file.
62373         * lib/unistr/u16-strcoll.c: New file.
62375         New module 'unistr/u8-strcoll'.
62376         * modules/unistr/u8-strcoll: New file.
62377         * lib/unistr/u8-strcoll.c: New file.
62378         * lib/unistr/u-strcoll.h: New file.
62380 2009-02-07  Bruno Haible  <bruno@clisp.org>
62382         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
62383         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
62384         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
62385         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
62386         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
62387         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
62389 2009-02-07  Bruno Haible  <bruno@clisp.org>
62391         Make 64-bit clean.
62392         * lib/unictype/gen-ctype.c (output_predicate, output_category,
62393         output_combclass, output_bidi_category, output_decimal_digit,
62394         output_digit, output_numeric, output_mirror, output_scripts,
62395         output_ident_category): Use proper width specifier in format strings.
62397 2009-02-07  Bruno Haible  <bruno@clisp.org>
62399         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
62400         failure behaviour.
62402 2009-02-07  Jim Meyering  <meyering@redhat.com>
62404         regex: avoid compilation failure with upcoming gcc-4.4
62405         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
62406         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
62407         "... error: integer overflow in preprocessor expression".
62409 2009-02-05  Ben Pfaff  <blp@gnu.org>
62411         Fix link errors on Windows when close module is used.
62412         * modules/close: Add $(LIB_CLOSE) to Link section.
62413         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
62414         $(LIB_CLOSE) on Windows.
62416 2009-02-05  Jim Meyering  <meyering@redhat.com>
62418         still avoid unused-parameter warnings, but do it cleanly
62419         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
62420         (get_fs_usage): Cast to void instead.
62421         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
62422         (dev_from_mount_options, read_file_system_list): Cast to void.
62423         Prompted by Bruno Haible.
62425 2009-02-04  Jim Meyering  <meyering@redhat.com>
62427         fsusage.c: correct copyright year
62428         * lib/fsusage.c: Reflect year in which the change is pushed into
62430         avoid misc. warnings
62431         * lib/fsusage.c (UNUSED_PARAM): Define.
62432         (get_fs_usage): Mark parameter "disk" as unused.
62433         * lib/getugroups.c (getgrent): Use "void" in prototype.
62434         * lib/mountlist.c: Mark unused parameters.
62435         (read_file_system_list): Declare a local with "const".
62436         * lib/nanosleep.c (getnow): Declare static.
62437         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
62439         dirfd: set errno upon failure
62440         * lib/dirfd.c: Include <errno.h>.
62441         Set errno to ENOTSUP when returning -1.
62442         * modules/dirfd (Depends-on): Add errno.
62443         Suggested by John Kodis <kodis@comcast.net>.
62445 2009-02-01  Bruno Haible  <bruno@clisp.org>
62447         Don't assume sizeof (long) >= sizeof (void *).
62448         * lib/memcmp.c: Include stdint.h.
62449         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
62450         srcp2 to 'const byte *'.
62451         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
62452         types to uintptr_t.
62453         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
62454         * modules/memcmp (Depends-on): Add stdint.
62455         Reported by Ozkan Sezer <sezeroz@gmail.com>.
62457 2009-01-30  Eric Blake  <ebb9@byu.net>
62459         fix more require-before-expand issues
62460         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
62461         expand, AC_PROG_AWK.
62462         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
62464 2009-01-28  Eric Blake  <ebb9@byu.net>
62466         version-etc: use consistent URL formatting
62467         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
62468         Improve formatting.  Use fputs for string without %.
62470 2009-01-28  Jim Meyering  <meyering@redhat.com>
62472         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
62473         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
62474         "underquoted definition of NAME" from autoconf-2.59.
62476 2009-01-28  Bruno Haible  <bruno@clisp.org>
62478         * doc/gnulib.texi: Add "Obsolete modules" to index.
62480 2009-01-28  Jim Meyering  <meyering@redhat.com>
62482         useless-if-before-free: recognize more variants
62483         * build-aux/useless-if-before-free: Also recognize e.g.,
62484         if (NULL != p) free (p);
62486 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
62488         test-getaddrinfo: skip (don't fail) this test when there's no network
62489         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
62490         on the presumption that it means you lack network access.
62492 2009-01-26  Jim Meyering  <meyering@redhat.com>
62494         fflush: avoid warnings on modern systems
62495         * lib/fflush.c (rpl_fflush): Move declarations of locals,
62496         pos and result, into scopes where they're used.
62498 2009-01-26  Eric Blake  <ebb9@byu.net>
62500         Silence warning reintroduced by recent extensions patch.
62501         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
62502         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
62503         autoconf.
62505         Backport improved autoconf semantics of AC_DEFUN_ONCE.
62506         * m4/00gnulib.m4: New file.
62507         * gnulib-tool (func_get_filelist): Always use it.
62508         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
62509         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
62511 2009-01-25  Bruno Haible  <bruno@clisp.org>
62513         Make test-quotearg work on MacOS X and AIX.
62514         * tests/test-quotearg.sh: New file.
62515         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
62516         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
62517         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
62518         include <libintl.h>.
62519         (fake_locale): Remove variable.
62520         (gettext, dgettext, dcgettext): Remove functions.
62521         (main): Instead of setting a fake locale, set a real locale. Call
62522         textdomain and bindtextdomain.
62523         * modules/quotearg-tests (Files): Add the new files.
62524         (Depends-on): Add gettext, setenv, unsetenv.
62525         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62526         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
62527         Augment TESTS_ENVIRONMENT.
62529 2009-01-25  Bruno Haible  <bruno@clisp.org>
62531         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
62532         fr_FR.ISO8859-1 locale on MacOS X.
62533         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
62534         ja_JP.eucJP locale on MacOS X.
62535         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
62536         zh_CN.GB18030 locale on MacOS X.
62538 2009-01-25  Bruno Haible  <bruno@clisp.org>
62540         Avoid link errors on MacOS X 10.3.
62541         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
62542         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
62544 2009-01-25  Bruno Haible  <bruno@clisp.org>
62546         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
62547         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
62548         * modules/pipe (Files): Remove m4/posix_spawn.m4.
62549         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
62550         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
62551         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
62552         posix_spawnattr_init, posix_spawnattr_setsigmask,
62553         posix_spawnattr_setflags, posix_spawnattr_destroy.
62555         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
62556         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
62557         * modules/execute (Files): Remove m4/posix_spawn.m4.
62558         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
62559         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
62560         posix_spawnattr_init, posix_spawnattr_setsigmask,
62561         posix_spawnattr_setflags, posix_spawnattr_destroy.
62563 2009-01-25  Bruno Haible  <bruno@clisp.org>
62565         * lib/glthread/threadlib.c: Include <stdlib.h>.
62567 2009-01-25  Bruno Haible  <bruno@clisp.org>
62569         * lib/glthread/threadlib.c (dummy): New declaration.
62571 2009-01-25  Bruno Haible  <bruno@clisp.org>
62573         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
62574         multibyte characters also for the GB18030 encoding. Don't crash when
62575         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
62577 2009-01-25  Bruno Haible  <bruno@clisp.org>
62579         Avoid redefining 'struct random_data' on OSF/1 5.1.
62580         * lib/stdlib.in.h: Include <random.h> if it exists.
62581         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
62582         HAVE_RANDOM_H. Include <random.h> when testing whether
62583         'struct random_data' exists.
62584         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
62586 2009-01-25  Bruno Haible  <bruno@clisp.org>
62588         Don't install charset.alias on MacOS X >= 10.3.
62589         * lib/localcharset.c (DARWIN7): New macro.
62590         (get_charset_aliases): Hardcode the result for Darwin7.
62591         * modules/localcharset (install-exec-local): Don't install
62592         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
62594 2009-01-25  Bruno Haible  <bruno@clisp.org>
62596         Don't install charset.alias on mingw and Cygwin.
62597         * modules/localcharset (install-exec-local): Don't install
62598         charset.alias on mingw and Cygwin, if the file does not yet exist.
62599         The result for these platforms is hardcoded in localcharset.c.
62601 2009-01-25  Bruno Haible  <bruno@clisp.org>
62603         Make it possible again to use AC_GNU_SOURCE together with gnulib.
62604         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
62605         before requiring AC_USE_SYSTEM_EXTENSIONS.
62607 2009-01-25  Jim Meyering  <meyering@redhat.com>
62609         c-strtod: avoid warnings
62610         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
62611         "assignment discards qualifiers from pointer target type" warnings.
62613 2009-01-24  Bruno Haible  <bruno@clisp.org>
62615         Add support for non-UTF-8 locales on MacOS X.
62616         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
62617         canonical encodings. For Darwin 7 and newer, don't map traditional
62618         encodings to UTF-8.
62619         Reported by Vincent Lefevre <vincent@vinc17.org>
62620         at <http://savannah.gnu.org/bugs/?25235>.
62622 2009-01-24  Bruno Haible  <bruno@clisp.org>
62624         * doc/gnulib.texi (Obsolete modules): New section.
62625         Reported by Mike Frysinger <vapier@gentoo.org>.
62627 2009-01-24  Bruno Haible  <bruno@clisp.org>
62629         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
62630         (%.dvi): New rule.
62632 2009-01-24  Bruno Haible  <bruno@clisp.org>
62634         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
62635         Reported by Eric Blake.
62637 2009-01-24  Bruno Haible  <bruno@clisp.org>
62639         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
62640         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
62641         Reported by Gary V. Vaughan <gary@gnu.org>.
62643 2009-01-24  Bruno Haible  <bruno@clisp.org>
62645         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
62647 2009-01-23  Bruno Haible  <bruno@clisp.org>
62649         Make c-strtod, c-strtold usable in libraries.
62650         * lib/c-strtod.c: Include string.h instead of xalloc.h.
62651         (C_STRTOD): Call strdup instead of xstrdup.
62652         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
62653         * modules/c-strtold (Depends-on): Likewise.
62654         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
62655         * NEWS: Mention the change.
62656         Reported by Michael Gold <mgold@ncf.ca>.
62658 2009-01-23  Jim Meyering  <meyering@redhat.com>
62660         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
62661         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
62662         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
62664 2009-01-23  Simon Josefsson  <simon@josefsson.org>
62666         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
62667         GNU CoreUtils.
62668         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
62669         * modules/version-etc (Description): Update.
62671 2009-01-22  Bruno Haible  <bruno@clisp.org>
62673         Cache the C locale object.
62674         * lib/c-strtod.c (c_locale_cache): New variable.
62675         (c_locale): New function.
62676         (C_STRTOD): Use it, and don't call freelocale.
62677         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
62678         Suggested by Paolo Bonzini.
62680 2009-01-21  Bruno Haible  <bruno@clisp.org>
62682         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
62683         conditions other than overflow.
62685 2009-01-21  Bruno Haible  <bruno@clisp.org>
62687         * lib/c-strtod.c: Include errno.h.
62688         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
62689         value from STRTOD_L and STRTOD.
62691 2009-01-21  Bruno Haible  <bruno@clisp.org>
62692         and Jim Meyering  <meyering@redhat.com>
62694         nanosleep: skip configure test (fail it) for apple universal builds
62695         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
62696         universal builds, assume that nanosleep does not work.
62697         * modules/nanosleep (Depends-on): Add multiarch.
62699         mktime: skip configure test (fail it) for apple universal builds
62700         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
62701         universal builds, assume that mktime does not work.
62702         * modules/mktime (Depends-on): Add multiarch.
62704 2009-01-21  Eric Blake  <ebb9@byu.net>
62706         multiarch: avoid expand-before-require warning
62707         * modules/multiarch (configure.ac): Require, rather than expand,
62708         gl_MULTIARCH.
62709         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
62710         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
62711         enforce that all clients require it.  Partial reversion of
62712         2008-12-29 patch.
62714         error: avoid expand-before-require warning
62715         * modules/errno (configure.ac): Require, rather than expand,
62716         gl_HEADER_ERRNO_H.
62717         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
62718         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
62719         enforce that all clients require it.
62721         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
62722         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
62723         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
62724         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
62726 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
62728         Revert:
62729         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
62731         regex: do not depend on obsolete modules.
62732         * modules/regex: Remove memcmp and memmove.
62734 2009-01-20  Bruno Haible  <bruno@clisp.org>
62736         Make the 'link' module link on Windows NT 4.
62737         * lib/link.c (_WIN32_WINNT): Don't define.
62738         (CreateHardLinkFuncType): New type.
62739         (CreateHardLinkFunc, initialized): New variables.
62740         (initialize): New function.
62741         (link): Invoke CreateHardLink indirectly through the function pointer.
62743 2009-01-20  Bruno Haible  <bruno@clisp.org>
62745         Fix compilation failure on mingw.
62746         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
62748 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
62750         * doc/c-strtod.texi: Mention a couple of restrictions.
62752 2009-01-20  Jim Meyering  <meyering@redhat.com>
62754         gettimeofday: move more declarations out of functions
62755         * lib/gettimeofday.c: Move extern declarations of tzset and
62756         gmtime out of containing functions.  Prompted by Bruno Haible.
62758 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
62760         regex: do not depend on obsolete modules.
62761         * modules/regex: Remove memcmp and memmove.
62763 2009-01-19  Bruno Haible  <bruno@clisp.org>
62765         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
62766         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
62767         gl_BIGENDIAN, not AC_C_BIGENDIAN.
62768         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
62769         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
62771 2009-01-19  Bruno Haible  <bruno@clisp.org>
62773         * tests/test-link.c: Include <errno.h>.
62774         (main): Exit with code 77 when a hard link cannot be created due to
62775         the file system.
62776         * tests/test-link.sh: Skip test when a hard link cannot be created due
62777         to the file system.
62778         Suggested by Eric Blake.
62780 2009-01-19  Martin Lambers  <marlam@marlam.de>
62782         * modules/link-tests: New file.
62783         * tests/test-link.sh: New file.
62784         * tests/test-link.c: New file.
62786 2009-01-19  Eric Blake  <ebb9@byu.net>
62788         doc: mention another function added in cygwin 1.7.0
62789         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
62790         Another new function in cygwin 1.7.
62792 2009-01-19  Bruno Haible  <bruno@clisp.org>
62794         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
62795         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
62796         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
62797         gl_BIGENDIAN, not AC_C_BIGENDIAN.
62798         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
62799         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
62800         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
62801         * m4/md4.m4 (gl_MD4): Likewise.
62802         * m4/md5.m4 (gl_MD5): Likewise.
62803         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
62804         * m4/sha1.m4 (gl_SHA1): Likewise.
62805         * m4/sha256.m4 (gl_SHA256): Likewise.
62806         * m4/sha512.m4 (gl_SHA512): Likewise.
62808 2009-01-19  Bruno Haible  <bruno@clisp.org>
62810         * modules/uniname/uniname-tests (Depends-on): Add progname.
62811         * tests/uniname/test-uninames.c: Include progname.h.
62812         (main): Call set_program_name.
62814         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
62815         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
62816         (main): Call set_program_name.
62818         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
62819         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
62820         (main): Call set_program_name.
62822         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
62823         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
62824         (main): Call set_program_name.
62826         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
62827         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
62828         (main): Call set_program_name.
62830         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
62831         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
62832         (main): Call set_program_name.
62834         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
62835         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
62836         (main): Call set_program_name.
62838         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
62839         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
62840         (main): Call set_program_name.
62842         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
62843         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
62844         (main): Call set_program_name.
62846 2009-01-19  Eric Blake  <ebb9@byu.net>
62848         test-unistd: test previous patch
62849         * tests/test-unistd.c: Test *_FILENO macros.
62851         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
62852         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
62853         Guarantee a definition.
62854         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
62855         * modules/unistd-safer (Depends-on): Add dependency on unistd.
62856         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
62857         * lib/dup-safer.c (STDERR_FILENO): Likewise.
62858         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
62859         Likewise.
62860         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
62861         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
62862         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
62863         Likewise.
62864         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
62865         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
62866         (STDERR_FILENO): Likewise.
62867         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
62868         (STDERR_FILENO): Likewise.
62869         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
62870         (STDERR_FILENO): Likewise.
62871         Reported by Elbert Pol.
62873 2009-01-19  Eric Blake  <ebb9@byu.net>
62875         doc: mention more functions added in cygwin 1.7.0
62876         * doc/posix-functions/abort.texi (abort): Update wording related
62877         to cygwin.
62878         * doc/posix-functions/daylight.texi (daylight): Likewise.
62879         * doc/posix-functions/optarg.texi (optarg): Likewise.
62880         * doc/posix-functions/optarg.texi (opterr): Likewise.
62881         * doc/posix-functions/optarg.texi (optind): Likewise.
62882         * doc/posix-functions/optarg.texi (optopt): Likewise.
62883         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
62884         worked in 1.5.x, and was withdrawn in 1.7.
62885         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
62886         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
62887         cygwin versions.
62888         * doc/posix-functions/perror.texi (perror): Likewise.
62889         * doc/posix-functions/printf.texi (printf): Likewise.
62890         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
62891         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
62892         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
62893         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
62894         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
62895         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
62896         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
62897         Likewise.
62898         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
62899         Likewise.
62900         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
62901         this function.
62902         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
62903         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
62904         Likewise.
62905         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
62906         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
62907         * doc/posix-functions/confstr.texi (confstr): Likewise.
62908         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
62909         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
62910         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
62911         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
62912         * doc/posix-functions/fputws.texi (fputws): Likewise.
62913         * doc/posix-functions/fwide.texi (fwide): Likewise.
62914         * doc/posix-functions/getwc.texi (getwc): Likewise.
62915         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
62916         * doc/posix-functions/putwc.texi (putwc): Likewise.
62917         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
62918         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
62919         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
62920         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
62921         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
62922         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
62923         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
62924         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
62925         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
62926         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
62927         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
62929 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
62931         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
62932         * lib/ioctl.c: Include <sys/ioctl.h>.
62934 2009-01-19  Simon Josefsson  <simon@josefsson.org>
62936         * modules/getdate-tests (Depends-on): Add progname.
62937         * tests/test-getdate.c: Use progname module, to avoid link errors
62938         on non-glibc systems.
62940 2009-01-18  Simon Josefsson  <simon@josefsson.org>
62942         * modules/filenamecat-tests (Depends-on): Add progname.
62943         * modules/fstrcmp-tests (Depends-on): Likewise.
62945         * tests/test-filenamecat.c: Use progname module, to avoid link
62946         errors on non-glibc systems.
62947         * tests/test-fstrcmp.c: Likewise.
62949 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
62951         gettimeofday: avoid warning: nested extern declaration of 'localtime'
62952         * lib/gettimeofday.c: Move extern declaration out of function.
62954 2009-01-18  Bruno Haible  <bruno@clisp.org>
62956         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
62957         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
62958         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
62960 2009-01-18  Bruno Haible  <bruno@clisp.org>
62962         * lib/strftime.c (MEMPCPY): Remove unused macro.
62963         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
62965 2009-01-18  Martin Lambers  <marlam@marlam.de>
62967         New module 'link'.
62968         * lib/unistd.in.h (link): New declaration.
62969         * lib/link.c: New file.
62970         * m4/link.m4: New file.
62971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
62972         HAVE_LINK.
62973         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
62974         * modules/link: New file.
62975         * doc/posix-functions/link.texi: Mention the new module.
62977 2009-01-18  Bruno Haible  <bruno@clisp.org>
62979         * tests/test-avltree_list.c (main): Call set_program_name.
62980         * tests/test-avltree_oset.c (main): Likewise.
62981         * tests/test-obstack-printf.c: Include progname.h.
62982         (main): Call set_program_name.
62983         * tests/test-quotearg.c: Include progname.h.
62984         (main): Call set_program_name.
62985         * tests/test-xmemdup0.c: Include progname.h.
62986         (main): Call set_program_name.
62988 2009-01-18  Bruno Haible  <bruno@clisp.org>
62990         New module 'alphasort'.
62991         * lib/dirent.in.h (alphasort): New declaration.
62992         * lib/alphasort.c: New file, from glibc with modifications.
62993         * m4/alphasort.m4: New file.
62994         * modules/alphasort: New file.
62995         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
62996         HAVE_ALPHASORT.
62997         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
62998         HAVE_ALPHASORT.
62999         * doc/posix-functions/alphasort.texi: Mention the new module and the
63000         portability problems.
63002 2009-01-18  Bruno Haible  <bruno@clisp.org>
63004         New module 'scandir'.
63005         * lib/dirent.in.h (scandir): New declaration.
63006         * lib/scandir.c: New file, from glibc with modifications.
63007         * m4/scandir.m4: New file.
63008         * modules/scandir: New file.
63009         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
63010         HAVE_SCANDIR.
63011         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
63012         HAVE_SCANDIR.
63013         * doc/posix-functions/scandir.texi: Mention the new module and the
63014         portability problems.
63016 2009-01-17  Bruno Haible  <bruno@clisp.org>
63018         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
63019         Update documentation.
63020         (func_remove_suffix): Escape all dots in the suffix. Update
63021         documentation.
63022         (func_filter_filelist): Update documentation.
63023         Reported by Ralf Wildenhues.
63025 2009-01-17  Bruno Haible  <bruno@clisp.org>
63027         * modules/dprintf-posix-tests: New file.
63028         * tests/test-dprintf-posix.sh: New file.
63029         * tests/test-dprintf-posix.c: New file.
63031         New modules 'dprintf', 'dprintf-posix'.
63032         * lib/stdio.in.h (dprintf): New declaration.
63033         * lib/dprintf.c: New file.
63034         * m4/dprintf.m4: New file.
63035         * m4/dprintf-posix.m4: New file.
63036         * modules/dprintf: New file.
63037         * modules/dprintf-posix: New file.
63038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
63039         HAVE_DPRINTF, REPLACE_DPRINTF.
63040         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
63041         HAVE_DPRINTF, REPLACE_DPRINTF.
63042         * doc/posix-functions/dprintf.texi: Mention the new modules.
63044 2009-01-17  Bruno Haible  <bruno@clisp.org>
63046         * modules/vdprintf-posix-tests: New file.
63047         * tests/test-vdprintf-posix.sh: New file.
63048         * tests/test-vdprintf-posix.c: New file.
63050         New modules 'vdprintf', 'vdprintf-posix'.
63051         * lib/stdio.in.h (vdprintf): New declaration.
63052         * lib/vdprintf.c: New file.
63053         * m4/vdprintf.m4: New file.
63054         * m4/vdprintf-posix.m4: New file.
63055         * modules/vdprintf: New file.
63056         * modules/vdprintf-posix: New file.
63057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
63058         HAVE_VDPRINTF, REPLACE_VDPRINTF.
63059         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
63060         HAVE_VDPRINTF, REPLACE_VDPRINTF.
63061         * doc/posix-functions/vdprintf.texi: Mention the new modules.
63063 2009-01-17  Bruno Haible  <bruno@clisp.org>
63065         Fix replacement of fopen on mingw.
63066         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
63067         mingw.
63069 2009-01-17  Bruno Haible  <bruno@clisp.org>
63071         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
63072         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
63074 2009-01-17  Bruno Haible  <bruno@clisp.org>
63076         Avoid test-fflush2.sh failure on mingw.
63077         * tests/test-fflush2.c: Include binary-io.h.
63078         (main): Put standard input into binary mode.
63079         * modules/fflush-tests (Depends-on): Add binary-io.
63081 2009-01-17  Bruno Haible  <bruno@clisp.org>
63083         * lib/wchar.in.h: In another particular situation, include only the
63084         system's <wchar.h> file.
63085         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
63086         Reported by Albert Chin-A-Young <china@thewrittenword.com>
63087         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
63089 2009-01-17  Bruno Haible  <bruno@clisp.org>
63091         Support for stripping executables in --enable-relocatable.
63092         * build-aux/install-reloc: Expect one more argument, or an environment
63093         variable RELOC_STRIP_PROG. If set, strip the destination program and
63094         its wrapper.
63095         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
63096         RELOC_STRIP_PROG.
63097         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
63098         to set RELOCATABLE_STRIP.
63099         * NEWS: Mention the new Makefile requirement.
63101 2009-01-17  Bruno Haible  <bruno@clisp.org>
63103         * build-aux/install-reloc: Remove debugging information left over by
63104         C compiler on MacOS X.
63106 2009-01-17  Bruno Haible  <bruno@clisp.org>
63108         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
63109         * lib/progreloc.c (find_executable): Fix type of pointer passed to
63110         _NSGetExecutablePath.
63112 2009-01-16  Jim Meyering  <meyering@redhat.com>
63114         strerror: avoid warnings about discarding "const"
63115         * lib/strerror.c (rpl_strerror): Instead of returning a const
63116         string from each and every "case", use a variable, and add a single
63117         cast after the switch.
63119 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
63121         * lib/arpa_inet.in.h: Add extern "C" block for C++.
63123 2009-01-16  Bruno Haible  <bruno@clisp.org>
63125         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
63126         array initializer syntax that also works in C++ mode.
63127         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63129 2009-01-16  Jim Meyering  <meyering@redhat.com>
63131         poll: suppress a warning
63132         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
63133         to ignore "...unsigned expression < 0 is always false" warnings.
63135 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
63137         poll: remove declarations of unused variables
63138         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
63139         sockbuf and optlen.
63141 2009-01-15  Bruno Haible  <bruno@clisp.org>
63143         Make fflush-after-ungetc POSIX compliant on BSD systems.
63144         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
63145         (clear_ungetc_buffer): Implement also for other systems.
63146         (rpl_fflush): On glibc systems, invoke
63147         clear_ungetc_buffer_preserving_position. Otherwise, invoke
63148         clear_ungetc_buffer after fetching the stream's position, not before.
63150 2009-01-15  Bruno Haible  <bruno@clisp.org>
63152         Make fflush-after-ungetc POSIX compliant on glibc systems.
63153         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
63154         after ungetc.
63155         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
63156         (rpl_fflush): On glibc systems, simply call the system's fflush
63157         function after clearing the ungetc buffer.
63158         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
63159         Instead, lseek only to the end of file, then use the system's fseeko
63160         for the rest. On glibc systems, reset the EOF indicator bit.
63162 2009-01-15  Jim Meyering  <meyering@redhat.com>
63164         openmp.m4: revert quote-adding change, for portability to older autoconf
63165         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
63166         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
63167         Simon Josefsson noticed the problem when using autoconf-2.61.
63169 2009-01-15  Bruno Haible  <bruno@clisp.org>
63171         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
63172         * tests/test-fflush2.c (ASSERT): Always fail.
63173         (main): Add two tests for fflush() after ungetc(), taking into account
63174         the Austin Group's clarification.
63175         Suggested by Eric Blake.
63177 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
63179         mktime.m4: remove K&R-style function prototypes
63180         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
63181         for the Sun C++ compiler.
63183 2009-01-14  Bruno Haible  <bruno@clisp.org>
63185         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
63186         while including <wchar.h>.
63187         * lib/wchar.in.h: In two particular situations on HP-UX, include only
63188         the system's <wchar.h> file.
63189         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63191 2009-01-14  Bruno Haible  <bruno@clisp.org>
63193         * m4/csharp.m4: Don't mention gettext on the serial number line.
63194         * m4/csharpexec.m4: Likewise.
63195         * m4/eaccess.m4: Likewise.
63196         * m4/javaexec.m4: Likewise.
63197         * m4/sig_atomic_t.m4: Likewise.
63198         * m4/tmpdir.m4: Likewise.
63199         * m4/intldir.m4: Bump gettext version.
63200         * m4/lib-ld.m4: Likewise.
63202 2009-01-14  Bruno Haible  <bruno@clisp.org>
63204         * lib/progname.c (set_program_name): Add more comments.
63205         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
63207 2009-01-14  Simon Josefsson  <simon@josefsson.org>
63209         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
63210         were sys/stat.h does not define it.
63212 2009-01-14  Jim Meyering  <meyering@redhat.com>
63214         many *.m4 files: improve m4 quoting
63215         99% of this change was performed by running the following commands:
63216         git ls-files | grep '\.m4$' | xargs perl -pi \
63217           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
63218           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
63219           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
63220           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
63221         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
63222         The remainder were to add Copyright dates, increment serial numbers,
63223         undo some changes in comments, exclude m4/intl.m4, and add quotes
63224         around the "1" in ",1" where the unusual spacing prohibited the
63225         above regexps from doing the job.  For more details, see
63226         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
63227         * m4/acl.m4: Modified.
63228         * m4/afs.m4: Likewise.
63229         * m4/alloca.m4: Likewise.
63230         * m4/argp.m4: Likewise.
63231         * m4/argz.m4: Likewise.
63232         * m4/atexit.m4: Likewise.
63233         * m4/bison-i18n.m4: Likewise.
63234         * m4/bison.m4: Likewise.
63235         * m4/byteswap.m4: Likewise.
63236         * m4/c-stack.m4: Likewise.
63237         * m4/c-strtod.m4: Likewise.
63238         * m4/calloc.m4: Likewise.
63239         * m4/canonicalize-lgpl.m4: Likewise.
63240         * m4/chown.m4: Likewise.
63241         * m4/clock_time.m4: Likewise.
63242         * m4/codeset.m4: Likewise.
63243         * m4/copy-file.m4: Likewise.
63244         * m4/csharp.m4: Likewise.
63245         * m4/csharpcomp.m4: Likewise.
63246         * m4/csharpexec.m4: Likewise.
63247         * m4/d-ino.m4: Likewise.
63248         * m4/d-type.m4: Likewise.
63249         * m4/dirfd.m4: Likewise.
63250         * m4/double-slash-root.m4: Likewise.
63251         * m4/eaccess.m4: Likewise.
63252         * m4/eealloc.m4: Likewise.
63253         * m4/environ.m4: Likewise.
63254         * m4/errno_h.m4: Likewise.
63255         * m4/euidaccess.m4: Likewise.
63256         * m4/execute.m4: Likewise.
63257         * m4/fatal-signal.m4: Likewise.
63258         * m4/fchdir.m4: Likewise.
63259         * m4/fcntl_h.m4: Likewise.
63260         * m4/fileblocks.m4: Likewise.
63261         * m4/filenamecat.m4: Likewise.
63262         * m4/findprog.m4: Likewise.
63263         * m4/flexmember.m4: Likewise.
63264         * m4/fnmatch.m4: Likewise.
63265         * m4/fopen.m4: Likewise.
63266         * m4/fpending.m4: Likewise.
63267         * m4/fprintf-posix.m4: Likewise.
63268         * m4/free.m4: Likewise.
63269         * m4/frexp.m4: Likewise.
63270         * m4/frexpl.m4: Likewise.
63271         * m4/fsusage.m4: Likewise.
63272         * m4/ftruncate.m4: Likewise.
63273         * m4/gc-camellia.m4: Likewise.
63274         * m4/gc-random.m4: Likewise.
63275         * m4/gc.m4: Likewise.
63276         * m4/getaddrinfo.m4: Likewise.
63277         * m4/getcwd-abort-bug.m4: Likewise.
63278         * m4/getcwd-path-max.m4: Likewise.
63279         * m4/getdate.m4: Likewise.
63280         * m4/getdomainname.m4: Likewise.
63281         * m4/getgroups.m4: Likewise.
63282         * m4/gethostname.m4: Likewise.
63283         * m4/gethrxtime.m4: Likewise.
63284         * m4/getline.m4: Likewise.
63285         * m4/getloadavg.m4: Likewise.
63286         * m4/getndelim2.m4: Likewise.
63287         * m4/getpass.m4: Likewise.
63288         * m4/gettext.m4: Likewise.
63289         * m4/gettime.m4: Likewise.
63290         * m4/gettimeofday.m4: Likewise.
63291         * m4/gnulib-common.m4: Likewise.
63292         * m4/group-member.m4: Likewise.
63293         * m4/host-os.m4: Likewise.
63294         * m4/iconv.m4: Likewise.
63295         * m4/iconv_open.m4: Likewise.
63296         * m4/inet_ntop.m4: Likewise.
63297         * m4/inet_pton.m4: Likewise.
63298         * m4/inline.m4: Likewise.
63299         * m4/intldir.m4: Likewise.
63300         * m4/intlmacosx.m4: Likewise.
63301         * m4/intmax.m4: Likewise.
63302         * m4/intmax_t.m4: Likewise.
63303         * m4/inttypes.m4: Likewise.
63304         * m4/inttypes_h.m4: Likewise.
63305         * m4/inttypes-pri.m4: Likewise.
63306         * m4/isapipe.m4: Likewise.
63307         * m4/isnand.m4: Likewise.
63308         * m4/isnanf.m4: Likewise.
63309         * m4/isnanl.m4: Likewise.
63310         * m4/javacomp.m4: Likewise.
63311         * m4/javaexec.m4: Likewise.
63312         * m4/jm-winsz1.m4: Likewise.
63313         * m4/jm-winsz2.m4: Likewise.
63314         * m4/lchown.m4: Likewise.
63315         * m4/lcmessage.m4: Likewise.
63316         * m4/ldexpl.m4: Likewise.
63317         * m4/lib-ld.m4: Likewise.
63318         * m4/lib-link.m4: Likewise.
63319         * m4/libsigsegv.m4: Likewise.
63320         * m4/link-follow.m4: Likewise.
63321         * m4/localcharset.m4: Likewise.
63322         * m4/locale-fr.m4: Likewise.
63323         * m4/locale-ja.m4: Likewise.
63324         * m4/locale-tr.m4: Likewise.
63325         * m4/locale-zh.m4: Likewise.
63326         * m4/lock.m4: Likewise.
63327         * m4/longlong.m4: Likewise.
63328         * m4/ls-mntd-fs.m4: Likewise.
63329         * m4/lstat.m4: Likewise.
63330         * m4/malloc.m4: Likewise.
63331         * m4/mathl.m4: Likewise.
63332         * m4/mbrtowc.m4: Likewise.
63333         * m4/mbstate_t.m4: Likewise.
63334         * m4/mbswidth.m4: Likewise.
63335         * m4/memchr.m4: Likewise.
63336         * m4/memcmp.m4: Likewise.
63337         * m4/memcpy.m4: Likewise.
63338         * m4/memmem.m4: Likewise.
63339         * m4/memmove.m4: Likewise.
63340         * m4/mempcpy.m4: Likewise.
63341         * m4/memrchr.m4: Likewise.
63342         * m4/memset.m4: Likewise.
63343         * m4/minmax.m4: Likewise.
63344         * m4/mkdir-slash.m4: Likewise.
63345         * m4/mkdtemp.m4: Likewise.
63346         * m4/mktime.m4: Likewise.
63347         * m4/mmap-anon.m4: Likewise.
63348         * m4/mountlist.m4: Likewise.
63349         * m4/nanosleep.m4: Likewise.
63350         * m4/nls.m4: Likewise.
63351         * m4/nocrash.m4: Likewise.
63352         * m4/open.m4: Likewise.
63353         * m4/openat.m4: Likewise.
63354         * m4/openmp.m4: Likewise.
63355         * m4/pathmax.m4: Likewise.
63356         * m4/perl.m4: Likewise.
63357         * m4/physmem.m4: Likewise.
63358         * m4/pipe.m4: Likewise.
63359         * m4/po.m4: Likewise.
63360         * m4/poll.m4: Likewise.
63361         * m4/posixtm.m4: Likewise.
63362         * m4/posixver.m4: Likewise.
63363         * m4/printf-frexp.m4: Likewise.
63364         * m4/printf-frexpl.m4: Likewise.
63365         * m4/printf-posix.m4: Likewise.
63366         * m4/printf-posix-rpl.m4: Likewise.
63367         * m4/printf.m4: Likewise.
63368         * m4/progtest.m4: Likewise.
63369         * m4/putenv.m4: Likewise.
63370         * m4/readline.m4: Likewise.
63371         * m4/readlink.m4: Likewise.
63372         * m4/readutmp.m4: Likewise.
63373         * m4/realloc.m4: Likewise.
63374         * m4/regex.m4: Likewise.
63375         * m4/relocatable.m4: Likewise.
63376         * m4/relocatable-lib.m4: Likewise.
63377         * m4/rename-dest-slash.m4: Likewise.
63378         * m4/rename.m4: Likewise.
63379         * m4/rmdir-errno.m4: Likewise.
63380         * m4/rmdir.m4: Likewise.
63381         * m4/roundf.m4: Likewise.
63382         * m4/roundl.m4: Likewise.
63383         * m4/rpmatch.m4: Likewise.
63384         * m4/save-cwd.m4: Likewise.
63385         * m4/selinux-selinux-h.m4: Likewise.
63386         * m4/setenv.m4: Likewise.
63387         * m4/settime.m4: Likewise.
63388         * m4/sig2str.m4: Likewise.
63389         * m4/sig_atomic_t.m4: Likewise.
63390         * m4/signalblocking.m4: Likewise.
63391         * m4/signbit.m4: Likewise.
63392         * m4/sigpipe.m4: Likewise.
63393         * m4/sockets.m4: Likewise.
63394         * m4/sockpfaf.m4: Likewise.
63395         * m4/st_dm_mode.m4: Likewise.
63396         * m4/stat-time.m4: Likewise.
63397         * m4/stdbool.m4: Likewise.
63398         * m4/stdint.m4: Likewise.
63399         * m4/stdint_h.m4: Likewise.
63400         * m4/stpcpy.m4: Likewise.
63401         * m4/stpncpy.m4: Likewise.
63402         * m4/strcase.m4: Likewise.
63403         * m4/strchrnul.m4: Likewise.
63404         * m4/strcspn.m4: Likewise.
63405         * m4/strdup.m4: Likewise.
63406         * m4/strftime.m4: Likewise.
63407         * m4/strndup.m4: Likewise.
63408         * m4/strnlen.m4: Likewise.
63409         * m4/strpbrk.m4: Likewise.
63410         * m4/strptime.m4: Likewise.
63411         * m4/strsep.m4: Likewise.
63412         * m4/strtod.m4: Likewise.
63413         * m4/strtoimax.m4: Likewise.
63414         * m4/strtok_r.m4: Likewise.
63415         * m4/strtol.m4: Likewise.
63416         * m4/strtoll.m4: Likewise.
63417         * m4/strtoul.m4: Likewise.
63418         * m4/strtoull.m4: Likewise.
63419         * m4/strtoumax.m4: Likewise.
63420         * m4/strverscmp.m4: Likewise.
63421         * m4/threadlib.m4: Likewise.
63422         * m4/timegm.m4: Likewise.
63423         * m4/tm_gmtoff.m4: Likewise.
63424         * m4/tmpdir.m4: Likewise.
63425         * m4/tmpfile.m4: Likewise.
63426         * m4/tzset.m4: Likewise.
63427         * m4/uintmax_t.m4: Likewise.
63428         * m4/unlinkdir.m4: Likewise.
63429         * m4/unlocked-io.m4: Likewise.
63430         * m4/uptime.m4: Likewise.
63431         * m4/userspec.m4: Likewise.
63432         * m4/utimbuf.m4: Likewise.
63433         * m4/utime.m4: Likewise.
63434         * m4/utimes-null.m4: Likewise.
63435         * m4/utimes.m4: Likewise.
63436         * m4/vararrays.m4: Likewise.
63437         * m4/vasnprintf.m4: Likewise.
63438         * m4/vfprintf-posix.m4: Likewise.
63439         * m4/vprintf-posix.m4: Likewise.
63440         * m4/wait-process.m4: Likewise.
63441         * m4/wchar_t.m4: Likewise.
63442         * m4/wint_t.m4: Likewise.
63443         * m4/write-any-file.m4: Likewise.
63444         * m4/yield.m4: Likewise.
63446 2009-01-13  Bruno Haible  <bruno@clisp.org>
63448         Avoid test-copy-file.sh failures when ACL support insufficient.
63449         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
63450         TESTS_ENVIRONMENT.
63451         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
63452         Reported by Jim Meyering.
63454 2009-01-13  Bruno Haible  <bruno@clisp.org>
63456         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
63457         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
63458         * modules/unistdio/u8-printf-parse (Files): Likewise.
63459         * modules/unistdio/u32-printf-parse (Files): Likewise.
63460         * modules/unistdio/ulc-printf-parse (Files): Likewise.
63462 2009-01-13  Simon Josefsson  <simon@josefsson.org>
63464         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
63465         and m4/inttypes_h.m4 too.
63467 2009-01-12  Eric Blake  <ebb9@byu.net>
63469         tests: IRIX 6.2 cc can't compile -0.0 into .data
63470         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
63471         rather than at compile-time.
63472         * tests/test-floorl.c (minus_zero): Likewise.
63473         * tests/test-frexpl.c (minus_zero): Likewise.
63474         * tests/test-isnan.c (minus_zerol): Likewise.
63475         * tests/test-isnanl.h (minus_zero): Likewise.
63476         * tests/test-ldexpl.c (minus_zero): Likewise.
63477         * tests/test-roundl.c (minus_zero): Likewise.
63478         * tests/test-signbit.c (minus_zerol): Likewise.
63479         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
63480         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
63481         * tests/test-truncl.c (minus_zero): Likewise.
63482         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
63483         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
63484         Reported by Tom G. Christensen and Nelson H. F. Beebe.
63486 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
63488         regex: fix glibc bug 9697
63489         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
63490         handling.
63492 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
63494         regex: fix glibc bug 697
63495         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
63496         being NULL also if there are no backreferences.
63498 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
63500         regex: merge glibc changes
63501         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
63502         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
63503         re_string_skip_chars, re_string_reconstruct): Likewise.
63504         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
63506 2009-01-07  Jim Meyering  <meyering@redhat.com>
63508         poll: filter through cppi
63509         * lib/poll.c: Indent cpp directives to reflect nesting.
63511 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
63513         poll: don't return uninitialized
63514         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
63516 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
63518         avoid compile failure on AIX 6.1
63519         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
63520         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
63522 2009-01-04  Jim Meyering  <meyering@redhat.com>
63524         remove duplicate inclusion of <stdio.h>
63525         * tests/test-fprintf-posix.c: Likewise.
63526         * tests/test-printf-posix.c: Likewise.
63527         * tests/test-snprintf-posix.c: Likewise.
63528         * tests/test-sprintf-posix.c: Likewise.
63529         * tests/test-vasprintf-posix.c: Likewise.
63530         * tests/test-vfprintf-posix.c: Likewise.
63531         * tests/test-vprintf-posix.c: Likewise.
63532         * tests/test-vsnprintf-posix.c: Likewise.
63533         * tests/test-vsprintf-posix.c: Likewise.
63535 2009-01-03  Jim Meyering  <meyering@redhat.com>
63537         gnulib-tool: fix sed-based filtering
63538         * gnulib-tool (func_filter_filelist): Remove extra backslash
63539         in sed_fff_filter definition.
63541 2009-01-02  Jim Meyering  <meyering@redhat.com>
63543         strftime: avoid compilation failure on Solaris 2.6
63544         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
63545         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
63546         Don't #define mbrlen or mbsinit, since now they're guaranteed to
63547         be available.  Reported by Tom G. Christensen.  Details in
63548         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
63550 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63551             Bruno Haible  <bruno@clisp.org>
63553         Speed up gnulib-tool by doing more string processing through shell
63554         built-ins.
63555         * gnulib-tool (fast_func_append): New variable.
63556         (func_remove_prefix, func_remove_suffix): New functions.
63557         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
63558         (func_filter_filelist): New function.
63559         (func_get_dependencies): Use func_remove_suffix instead of sed.
63560         (func_get_automake_snippet): Use func_filter_filelist instead of a
63561         subshell and sed invocation.
63563 2009-01-01  Bruno Haible  <bruno@clisp.org>
63565         Fix a security bug.
63566         * gnulib-tool (func_import, import, update): Don't allow the characters
63567         '"', '$', '`', '\' in macro arguments that become part of commands that
63568         are evaluated.
63570 2009-01-01  Bruno Haible  <bruno@clisp.org>
63572         * gnulib-tool (func_reset_sigpipe): Add more comments.
63574 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63576         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
63577         func_emit_tests_Makefile_am, func_import): Abort loops early if we
63578         already know the answer.
63580 2009-01-01  Jim Meyering  <meyering@redhat.com>
63582         * lib/version-etc.c (version_etc_va): Update copyright year.
63584 2008-12-30  Bruno Haible  <bruno@clisp.org>
63586         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
63587         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
63588         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
63590 2008-12-29  Eric Blake  <ebb9@byu.net>
63592         multiarch: avoid autoconf AC_REQUIRE bug
63593         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
63594         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
63595         2.63 and older.
63596         Reported by Bruno Haible, and analyzed in
63597         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
63599 2008-12-29  Bruno Haible  <bruno@clisp.org>
63601         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
63602         files in subdirectories correctly.
63603         Reported by Ralf Wildenhues.
63605 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63607         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
63608         rather than 'join FILE -', for Solaris join.
63610 2008-12-29  Bruno Haible  <bruno@clisp.org>
63612         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
63613         quoting.
63614         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63615         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
63616         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
63617         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
63618         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
63619         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
63620         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
63621         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
63622         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63623         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
63624         * m4/nls.m4 (AM_NLS): Likewise.
63625         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
63626         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
63627         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
63628         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
63629         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
63630         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
63631         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
63632         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
63633         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
63634         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
63635         * m4/xsize.m4 (gl_XSIZE): Likewise.
63636         Suggested by Jim Meyering.
63638 2008-11-17  Bruce Korb  <bkorb@gnu.org>
63640         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
63641         * lib/parse-duration.c: use a switch instead of cascading if's.
63643 2008-12-29  Eric Blake  <ebb9@byu.net>
63645         wchar.h: supply WEOF on Irix 5.3
63646         * lib/wchar.in.h (wint_t): Also supply WEOF.
63647         * lib/wctype.in.h (wint_t): Likewise.
63648         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
63649         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
63650         Reported by Tom G. Christensen.
63652 2008-12-26  Bruno Haible  <bruno@clisp.org>
63654         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
63655         i486, i586, i686.
63657 2008-12-26  Bruno Haible  <bruno@clisp.org>
63659         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
63661 2008-12-26  Bruno Haible  <bruno@clisp.org>
63663         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
63664         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
63665         not __STDC_CONSTANT_MACROS.
63666         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
63668 2008-12-25  Bruno Haible  <bruno@clisp.org>
63670         Add support for universal builds to vasnprintf.
63671         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
63672         universal builds, guess no.
63673         * modules/vasnprintf-posix (Depends-on): Add multiarch.
63674         * modules/vasprintf-posix (Depends-on): Likewise.
63675         * modules/fprintf-posix (Depends-on): Likewise.
63676         * modules/vfprintf-posix (Depends-on): Likewise.
63677         * modules/snprintf-posix (Depends-on): Likewise.
63678         * modules/vsnprintf-posix (Depends-on): Likewise.
63679         * modules/sprintf-posix (Depends-on): Likewise.
63680         * modules/vsprintf-posix (Depends-on): Likewise.
63681         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63682         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63683         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63684         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63685         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63686         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63687         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63689         Add support for universal builds to <inttypes.h>.
63690         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
63691         _SCNu64_PREFIX): In Apple
63692         universal builds, define directly, using _LP64.
63693         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
63694         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
63695         * modules/inttypes (Depends-on): Add multiarch.
63696         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
63698         Add support for universal builds to <stdint.h>.
63699         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
63700         universal builds, define directly, using _LP64.
63701         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
63702         Apple universal builds, don't test for the size and suffix of ptrdiff_t
63703         and size_t.
63704         * modules/stdint (Depends-on): Add multiarch.
63705         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
63707         New module 'multiarch'.
63708         * modules/multiarch: New file.
63709         * m4/multiarch.m4: New file.
63711 2008-12-25  Bruno Haible  <bruno@clisp.org>
63713         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
63715 2008-12-25  Bruno Haible  <bruno@clisp.org>
63717         * modules/btowc (License): Relicense under LGPLv2+.
63718         * modules/mbsinit (License): Likewise.
63719         * modules/mbrtowc (License): Likewise.
63720         * modules/wcrtomb (License): Likewise.
63721         * modules/streq (License): Likewise.
63722         Reported by David Lutterkort <lutter@redhat.com>.
63724 2008-12-23  Bruno Haible  <bruno@clisp.org>
63726         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
63728 2008-12-23  Bruno Haible  <bruno@clisp.org>
63730         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
63731         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
63732         GETADDRINFO_LIB, not in LIBS.
63733         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
63734         * modules/canon-host (Link): Likewise.
63735         * NEWS: Mention the change.
63736         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
63737         GETADDRINFO_LIB.
63739 2008-12-22  Bruno Haible  <bruno@clisp.org>
63741         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
63742         * doc/posix-functions/iswalpha_l.texi: Likewise.
63743         * doc/posix-functions/iswblank_l.texi: Likewise.
63744         * doc/posix-functions/iswcntrl_l.texi: Likewise.
63745         * doc/posix-functions/iswctype_l.texi: Likewise.
63746         * doc/posix-functions/iswdigit_l.texi: Likewise.
63747         * doc/posix-functions/iswgraph_l.texi: Likewise.
63748         * doc/posix-functions/iswlower_l.texi: Likewise.
63749         * doc/posix-functions/iswprint_l.texi: Likewise.
63750         * doc/posix-functions/iswpunct_l.texi: Likewise.
63751         * doc/posix-functions/iswspace_l.texi: Likewise.
63752         * doc/posix-functions/iswupper_l.texi: Likewise.
63753         * doc/posix-functions/iswxdigit_l.texi: Likewise.
63754         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
63755         * doc/posix-functions/open_wmemstream.texi: Likewise.
63756         * doc/posix-functions/swscanf.texi: Likewise.
63757         * doc/posix-functions/towctrans_l.texi: Likewise.
63758         * doc/posix-functions/towlower.texi: Likewise.
63759         * doc/posix-functions/towlower_l.texi: Likewise.
63760         * doc/posix-functions/towupper.texi: Likewise.
63761         * doc/posix-functions/towupper_l.texi: Likewise.
63762         * doc/posix-functions/vfwprintf.texi: Likewise.
63763         * doc/posix-functions/vfwscanf.texi: Likewise.
63764         * doc/posix-functions/vswscanf.texi: Likewise.
63765         * doc/posix-functions/vwprintf.texi: Likewise.
63766         * doc/posix-functions/vwscanf.texi: Likewise.
63767         * doc/posix-functions/wcpcpy.texi: Likewise.
63768         * doc/posix-functions/wcpncpy.texi: Likewise.
63769         * doc/posix-functions/wcscasecmp.texi: Likewise.
63770         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
63771         * doc/posix-functions/wcscoll_l.texi: Likewise.
63772         * doc/posix-functions/wcsdup.texi: Likewise.
63773         * doc/posix-functions/wcsncasecmp.texi: Likewise.
63774         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
63775         * doc/posix-functions/wcsnlen.texi: Likewise.
63776         * doc/posix-functions/wcsnrtombs.texi: Likewise.
63777         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
63778         * doc/posix-functions/wctrans_l.texi: Likewise.
63779         * doc/posix-functions/wctype_l.texi: Likewise.
63780         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
63781         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
63782         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
63783         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
63784         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
63785         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
63786         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
63787         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
63788         * doc/glibc-functions/wcschrnul.texi: Likewise.
63789         * doc/glibc-functions/wcsftime_l.texi: Likewise.
63790         * doc/glibc-functions/wcstod_l.texi: Likewise.
63791         * doc/glibc-functions/wcstof_l.texi: Likewise.
63792         * doc/glibc-functions/wcstol_l.texi: Likewise.
63793         * doc/glibc-functions/wcstold_l.texi: Likewise.
63794         * doc/glibc-functions/wcstoll_l.texi: Likewise.
63795         * doc/glibc-functions/wcstoq.texi: Likewise.
63796         * doc/glibc-functions/wcstoul_l.texi: Likewise.
63797         * doc/glibc-functions/wcstoull_l.texi: Likewise.
63798         * doc/glibc-functions/wcstouq.texi: Likewise.
63799         * doc/glibc-functions/wmempcpy.texi: Likewise.
63801 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
63802             Eric Blake  <ebb9@byu.net>
63803             Paolo Bonzini  <bonzini@gnu.org>
63804             Bruno Haible  <bruno@clisp.org>
63806         Make c-stack work on Haiku.
63807         * lib/c-stack.c (SA_ONSTACK): Define fallback.
63808         (c_stack_action): Use SA_ONSTACK flag.
63810 2008-12-22  Bruno Haible  <bruno@clisp.org>
63812         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
63814 2008-12-22  Bruno Haible  <bruno@clisp.org>
63816         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
63817         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
63818         being overridden.
63819         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
63820         New macros.
63821         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
63822         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
63823         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
63824         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
63826 2008-12-22  Bruno Haible  <bruno@clisp.org>
63828         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
63829         from test code.
63831 2008-12-22  Eric Blake  <ebb9@byu.net>
63833         Avoid gcc warnings on cygwin.
63834         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
63835         Avoid unused variable.
63836         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
63837         Likewise.
63839 2008-12-22  Bruno Haible  <bruno@clisp.org>
63841         Remove HAVE_MBRTOWC conditionals.
63842         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
63843         (mbscasecmp): Assume mbrtowc function.
63844         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
63845         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
63846         * lib/mbschr.c: Include mbuiter.h unconditionally.
63847         (mbschr): Assume mbrtowc function.
63848         * lib/mbscspn.c: Include mbuiter.h unconditionally.
63849         (mbscspn): Assume mbrtowc function.
63850         * lib/mbslen.c: Include mbuiter.h unconditionally.
63851         (mbslen): Assume mbrtowc function.
63852         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
63853         (mbsncasecmp): Assume mbrtowc function.
63854         * lib/mbsnlen.c: Include mbiter.h unconditionally.
63855         (mbsnlen): Assume mbrtowc function.
63856         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
63857         (mbspbrk): Assume mbrtowc function.
63858         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
63859         (mbspcasecmp): Assume mbrtowc function.
63860         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
63861         (mbsrchr): Assume mbrtowc function.
63862         * lib/mbssep.c: Include mbuiter.h unconditionally.
63863         (mbssep): Assume mbrtowc function.
63864         * lib/mbsspn.c: Include mbuiter.h unconditionally.
63865         (mbsspn): Assume mbrtowc function.
63866         * lib/mbsstr.c: Include mbuiter.h unconditionally.
63867         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
63868         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
63869         (mbstok_r): Assume mbrtowc function.
63870         * lib/propername.c: Include mbuiter.h unconditionally.
63871         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
63872         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
63873         (trim2): Assume mbrtowc function.
63874         * lib/mbswidth.c (mbsinit): Remove fallback definition.
63875         (mbsnwidth): Assume mbrtowc function.
63876         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
63877         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
63878         fallback definitions.
63879         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
63881 2008-12-22  Bruno Haible  <bruno@clisp.org>
63883         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
63885 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
63887         * modules/regex: Request emulations for the mb*/wc* functions we need.
63888         * m4/regex.m4: Don't look for those functions here.
63889         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
63891 2008-12-22  Bruno Haible  <bruno@clisp.org>
63893         * modules/fnmatch (Depends-on): Remove duplicated dependency.
63895 2008-12-21  Bruno Haible  <bruno@clisp.org>
63897         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
63898         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
63899         (Include): Remove conditionalization.
63900         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
63901         (Include): Remove conditionalization.
63902         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
63903         (Include): Remove conditionalization.
63904         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
63905         * m4/mbfile.m4 (gl_MBFILE): Likewise.
63906         * NEWS: Mention the change.
63907         Reported by Alan Hourihane <alanh@fairlite.co.uk>
63908         via Sergey Poznyakoff <gray@gnu.org.ua>.
63910 2008-12-21  Bruno Haible  <bruno@clisp.org>
63912         * MODULES.html.sh (Extended multibyte and wide character utilities
63913         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
63914         wcrtomb, wcsrtombs.
63915         (Support for systems lacking POSIX:2008): Add accept, bind, close,
63916         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
63917         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
63918         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
63920 2008-12-21  Bruno Haible  <bruno@clisp.org>
63922         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
63924 2008-12-21  Bruno Haible  <bruno@clisp.org>
63926         * modules/wcsnrtombs-tests: New file.
63927         * tests/test-wcsnrtombs1.sh: New file.
63928         * tests/test-wcsnrtombs2.sh: New file.
63929         * tests/test-wcsnrtombs3.sh: New file.
63930         * tests/test-wcsnrtombs4.sh: New file.
63931         * tests/test-wcsnrtombs.c: New file.
63933         New module 'wcsnrtombs'.
63934         * lib/wchar.in.h (wcsnrtombs): New declaration.
63935         * lib/wcsnrtombs.c: New file.
63936         * lib/wcsrtombs-state.c: New file.
63937         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
63938         (internal_state): Remove variable.
63939         * m4/wcsnrtombs.m4: New file.
63940         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
63941         compilation units.
63942         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
63943         HAVE_WCSNRTOMBS.
63944         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
63945         HAVE_WCSNRTOMBS.
63946         * modules/wcsnrtombs: New file.
63947         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
63948         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
63950 2008-12-21  Bruno Haible  <bruno@clisp.org>
63952         * modules/wcsrtombs-tests: New file.
63953         * tests/test-wcsrtombs1.sh: New file.
63954         * tests/test-wcsrtombs2.sh: New file.
63955         * tests/test-wcsrtombs3.sh: New file.
63956         * tests/test-wcsrtombs4.sh: New file.
63957         * tests/test-wcsrtombs.c: New file.
63959         New module 'wcsrtombs'.
63960         * lib/wchar.in.h (wcsrtombs): New declaration.
63961         * lib/wcsrtombs.c: New file.
63962         * m4/wcsrtombs.m4: New file.
63963         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
63964         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
63965         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
63966         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
63967         * modules/wcsrtombs: New file.
63968         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
63969         bugs.
63971 2008-12-21  Bruno Haible  <bruno@clisp.org>
63973         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
63974         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
63975         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
63976         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
63977         if not correct.
63978         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
63979         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
63980         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
63981         m4/locale-zh.m4, m4/codeset.m4.
63982         * doc/posix-functions/wcrtomb.texi: Document the bug.
63984 2008-12-21  Bruno Haible  <bruno@clisp.org>
63986         Work around a btowc() bug on IRIX 6.5.
63987         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
63988         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
63989         REPLACE_WTOBC if not.
63990         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
63991         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
63992         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
63994 2008-12-21  Bruno Haible  <bruno@clisp.org>
63996         * modules/wcrtomb-tests: New file.
63997         * tests/test-wcrtomb.sh: New file.
63998         * tests/test-wcrtomb.c: New file.
64000         New module 'wcrtomb'.
64001         * lib/wchar.in.h (wcrtomb): New declaration.
64002         * lib/wcrtomb.c: New file.
64003         * m4/wcrtomb.m4: New file.
64004         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
64005         HAVE_WCRTOMB.
64006         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
64007         HAVE_WCRTOMB.
64008         * modules/wcrtomb: New file.
64009         * doc/posix-functions/wcrtomb.texi: Mention the new module.
64011 2008-12-21  Bruno Haible  <bruno@clisp.org>
64013         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
64014         * modules/mbsrtowcs (Files): Likewise.
64015         * modules/wctob (Files): Likewise.
64016         * modules/c-strcase-tests (Files): Likewise.
64017         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
64018         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
64019         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
64020         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
64021         * modules/vasnprintf-posix-tests (Files): Likewise.
64023 2008-12-21  William Pursell  <bill.pursell@gmail.com>
64025         gitlog-to-changelog: pass all command-line arguments to git-log
64026         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
64027         it is sometimes convenient to filter the commits in various ways.
64028         gitlog-to-changelog only allows --since to specify a start date,
64029         but git-log itself supports many other filtering mechanisms.
64030         At the moment, I want to filter by branch name.  Rather than
64031         adding a --branch option to gitlog-to-changelog, it seems more
64032         flexible to simply pass all options directly to git-log and let
64033         git do the work.  Notice that this effectively makes --since a
64034         redundant option for gitlog-to-changelog, but removing it would
64035         require current usage to change since calls would then require
64036         an additional '--'.
64038 2008-12-21  Bruno Haible  <bruno@clisp.org>
64040         * modules/mbsnrtowcs-tests: New file.
64041         * tests/test-mbsnrtowcs1.sh: New file.
64042         * tests/test-mbsnrtowcs2.sh: New file.
64043         * tests/test-mbsnrtowcs3.sh: New file.
64044         * tests/test-mbsnrtowcs4.sh: New file.
64045         * tests/test-mbsnrtowcs.c: New file.
64047         New module 'mbsnrtowcs'.
64048         * lib/wchar.in.h (mbsnrtowcs): New declaration.
64049         * lib/mbsnrtowcs.c: New file.
64050         * lib/mbsrtowcs-state.c: New file.
64051         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
64052         (internal_state): Remove variable.
64053         * m4/mbsnrtowcs.m4: New file.
64054         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
64055         compilation units.
64056         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
64057         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
64058         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
64059         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
64060         * modules/mbsnrtowcs: New file.
64061         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
64062         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
64063         portability problem.
64065 2008-12-21  Bruno Haible  <bruno@clisp.org>
64067         Work around mbsrtowcs bug.
64068         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
64069         (gl_FUNC_MBSRTOWCS): Invoke it.
64070         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
64071         m4/locale-zh.m4.
64072         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
64074 2008-12-21  Bruno Haible  <bruno@clisp.org>
64076         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
64078 2008-12-21  Bruno Haible  <bruno@clisp.org>
64080         Update doc for AIX.
64081         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
64082         16-bit wchar_t type.
64083         * doc/posix-functions/btowc.texi: Likewise.
64084         * doc/posix-functions/fgetwc.texi: Likewise.
64085         * doc/posix-functions/fgetws.texi: Likewise.
64086         * doc/posix-functions/fputwc.texi: Likewise.
64087         * doc/posix-functions/fputws.texi: Likewise.
64088         * doc/posix-functions/fwide.texi: Likewise.
64089         * doc/posix-functions/fwprintf.texi: Likewise.
64090         * doc/posix-functions/fwscanf.texi: Likewise.
64091         * doc/posix-functions/getwchar.texi: Likewise.
64092         * doc/posix-functions/getwc.texi: Likewise.
64093         * doc/posix-functions/iswalnum.texi: Likewise.
64094         * doc/posix-functions/iswalpha.texi: Likewise.
64095         * doc/posix-functions/iswblank.texi: Likewise.
64096         * doc/posix-functions/iswcntrl.texi: Likewise.
64097         * doc/posix-functions/iswctype.texi: Likewise.
64098         * doc/posix-functions/iswdigit.texi: Likewise.
64099         * doc/posix-functions/iswgraph.texi: Likewise.
64100         * doc/posix-functions/iswlower.texi: Likewise.
64101         * doc/posix-functions/iswprint.texi: Likewise.
64102         * doc/posix-functions/iswpunct.texi: Likewise.
64103         * doc/posix-functions/iswspace.texi: Likewise.
64104         * doc/posix-functions/iswupper.texi: Likewise.
64105         * doc/posix-functions/iswxdigit.texi: Likewise.
64106         * doc/posix-functions/mbrtowc.texi: Likewise.
64107         * doc/posix-functions/mbsrtowcs.texi: Likewise.
64108         * doc/posix-functions/mbstowcs.texi: Likewise.
64109         * doc/posix-functions/mbtowc.texi: Likewise.
64110         * doc/posix-functions/putwchar.texi: Likewise.
64111         * doc/posix-functions/putwc.texi: Likewise.
64112         * doc/posix-functions/swprintf.texi: Likewise.
64113         * doc/posix-functions/tolower.texi: Likewise.
64114         * doc/posix-functions/toupper.texi: Likewise.
64115         * doc/posix-functions/towctrans.texi: Likewise.
64116         * doc/posix-functions/ungetwc.texi: Likewise.
64117         * doc/posix-functions/vswprintf.texi: Likewise.
64118         * doc/posix-functions/wcrtomb.texi: Likewise.
64119         * doc/posix-functions/wcscat.texi: Likewise.
64120         * doc/posix-functions/wcschr.texi: Likewise.
64121         * doc/posix-functions/wcscmp.texi: Likewise.
64122         * doc/posix-functions/wcscoll.texi: Likewise.
64123         * doc/posix-functions/wcscpy.texi: Likewise.
64124         * doc/posix-functions/wcscspn.texi: Likewise.
64125         * doc/posix-functions/wcsftime.texi: Likewise.
64126         * doc/posix-functions/wcslen.texi: Likewise.
64127         * doc/posix-functions/wcsncat.texi: Likewise.
64128         * doc/posix-functions/wcsncmp.texi: Likewise.
64129         * doc/posix-functions/wcsncpy.texi: Likewise.
64130         * doc/posix-functions/wcspbrk.texi: Likewise.
64131         * doc/posix-functions/wcsrchr.texi: Likewise.
64132         * doc/posix-functions/wcsrtombs.texi: Likewise.
64133         * doc/posix-functions/wcsspn.texi: Likewise.
64134         * doc/posix-functions/wcsstr.texi: Likewise.
64135         * doc/posix-functions/wcstod.texi: Likewise.
64136         * doc/posix-functions/wcstof.texi: Likewise.
64137         * doc/posix-functions/wcstoimax.texi: Likewise.
64138         * doc/posix-functions/wcstok.texi: Likewise.
64139         * doc/posix-functions/wcstold.texi: Likewise.
64140         * doc/posix-functions/wcstoll.texi: Likewise.
64141         * doc/posix-functions/wcstol.texi: Likewise.
64142         * doc/posix-functions/wcstombs.texi: Likewise.
64143         * doc/posix-functions/wcstoull.texi: Likewise.
64144         * doc/posix-functions/wcstoul.texi: Likewise.
64145         * doc/posix-functions/wcstoumax.texi: Likewise.
64146         * doc/posix-functions/wcswidth.texi: Likewise.
64147         * doc/posix-functions/wcsxfrm.texi: Likewise.
64148         * doc/posix-functions/wctob.texi: Likewise.
64149         * doc/posix-functions/wctomb.texi: Likewise.
64150         * doc/posix-functions/wctrans.texi: Likewise.
64151         * doc/posix-functions/wctype.texi: Likewise.
64152         * doc/posix-functions/wcwidth.texi: Likewise.
64153         * doc/posix-functions/wmemchr.texi: Likewise.
64154         * doc/posix-functions/wmemcmp.texi: Likewise.
64155         * doc/posix-functions/wmemcpy.texi: Likewise.
64156         * doc/posix-functions/wmemmove.texi: Likewise.
64157         * doc/posix-functions/wmemset.texi: Likewise.
64158         * doc/posix-functions/wprintf.texi: Likewise.
64159         * doc/posix-functions/wscanf.texi: Likewise.
64161 2008-12-21  Bruno Haible  <bruno@clisp.org>
64163         Update doc for HP-UX 11.11.
64164         * doc/posix-functions/btowc.texi: Clarify that the function is missing
64165         in HP-UX version 11.00, not in all versions of HP-UX 11.
64166         * doc/posix-functions/fwide.texi: Likewise.
64167         * doc/posix-functions/fwprintf.texi: Likewise.
64168         * doc/posix-functions/fwscanf.texi: Likewise.
64169         * doc/posix-functions/inet_ntop.texi: Likewise.
64170         * doc/posix-functions/inet_pton.texi: Likewise.
64171         * doc/posix-functions/mbrlen.texi: Likewise.
64172         * doc/posix-functions/mbrtowc.texi: Likewise.
64173         * doc/posix-functions/mbsinit.texi: Likewise.
64174         * doc/posix-functions/mbsrtowcs.texi: Likewise.
64175         * doc/posix-functions/swprintf.texi: Likewise.
64176         * doc/posix-functions/swscanf.texi: Likewise.
64177         * doc/posix-functions/towctrans.texi: Likewise.
64178         * doc/posix-functions/vfwprintf.texi: Likewise.
64179         * doc/posix-functions/vswprintf.texi: Likewise.
64180         * doc/posix-functions/vwprintf.texi: Likewise.
64181         * doc/posix-functions/wcrtomb.texi: Likewise.
64182         * doc/posix-functions/wcsrtombs.texi: Likewise.
64183         * doc/posix-functions/wcsstr.texi: Likewise.
64184         * doc/posix-functions/wctob.texi: Likewise.
64185         * doc/posix-functions/wctrans.texi: Likewise.
64186         * doc/posix-functions/wmemchr.texi: Likewise.
64187         * doc/posix-functions/wmemcmp.texi: Likewise.
64188         * doc/posix-functions/wmemcpy.texi: Likewise.
64189         * doc/posix-functions/wmemmove.texi: Likewise.
64190         * doc/posix-functions/wmemset.texi: Likewise.
64191         * doc/posix-functions/wprintf.texi: Likewise.
64192         * doc/posix-functions/wscanf.texi: Likewise.
64194 2008-12-21  Bruno Haible  <bruno@clisp.org>
64196         Work around a portability problem.
64197         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
64198         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
64200 2008-12-20  Bruno Haible  <bruno@clisp.org>
64202         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
64203         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
64204         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
64205         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
64206         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
64208         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
64209         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
64210         set.
64211         (GNULIB_defined_mbstate_t): New macro.
64212         (mbsinit): Redefine if REPLACE_MBSINIT is set.
64213         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
64214         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
64215         reuses the system's mbrtowc function but works around the bugs.
64216         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
64217         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
64218         macros.
64219         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
64220         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
64221         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
64222         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
64223         REPLACE_MBSINIT if mbsinit needs to be overridden.
64224         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
64225         REPLACE_MBSINIT, REPLACE_MBRTOWC.
64226         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
64227         REPLACE_MBSINIT, REPLACE_MBRTOWC.
64228         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
64229         m4/locale-zh.m4.
64230         (Depends): Add mbsinit.
64231         * modules/mbsinit (Depends): Add mbrtowc.
64232         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
64234 2008-12-20  Bruno Haible  <bruno@clisp.org>
64236         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
64237         so that there are no conversion errors on AIX.
64238         * tests/test-mbsrtowcs.c (main): LIkewise.
64240 2008-12-20  Bruno Haible  <bruno@clisp.org>
64242         Work around wctob bug on Solaris <= 9.
64243         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
64244         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
64245         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
64246         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
64247         * modules/wctob (Files): Add m4/locale-fr.m4.
64248         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
64250 2008-12-20  Bruno Haible  <bruno@clisp.org>
64252         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
64253         /dev/null.
64254         * tests/test-select-in.sh: Likewise.
64255         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64257 2008-12-20  Bruno Haible  <bruno@clisp.org>
64259         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
64260         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
64261         Cygwin 1.5.x.
64263 2008-12-20  Bruno Haible  <bruno@clisp.org>
64265         Ensure mbstate_t is defined on HP-UX 11.11.
64266         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
64267         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
64268         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
64269         AC_USE_SYSTEM_EXTENSIONS.
64270         * modules/fnmatch (Depends-on): Add extensions.
64271         * modules/mbrlen (Depends-on): Likewise.
64272         * modules/mbrtowc (Depends-on): Likewise.
64273         * modules/mbsinit (Depends-on): Likewise.
64274         * modules/mbsrtowcs (Depends-on): Likewise.
64275         * modules/mbswidth (Depends-on): Likewise.
64276         * modules/quotearg (Depends-on): Likewise.
64277         * modules/strftime (Depends-on): Likewise.
64279 2008-12-20  Bruno Haible  <bruno@clisp.org>
64281         Ensure wctob is declared on IRIX 6.5.
64282         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
64283         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
64284         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
64285         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
64286         of HAVE_WCTOB.
64287         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
64288         HAVE_WCTOB.
64289         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
64291 2008-12-19  Bruno Haible  <bruno@clisp.org>
64293         * modules/mbsrtowcs-tests: New file.
64294         * tests/test-mbsrtowcs1.sh: New file.
64295         * tests/test-mbsrtowcs2.sh: New file.
64296         * tests/test-mbsrtowcs3.sh: New file.
64297         * tests/test-mbsrtowcs4.sh: New file.
64298         * tests/test-mbsrtowcs.c: New file.
64300         New module 'mbsrtowcs'.
64301         * lib/wchar.in.h (mbsrtowcs): New declaration.
64302         * lib/mbsrtowcs.c: New file.
64303         * m4/mbsrtowcs.m4: New file.
64304         * modules/mbsrtowcs: New file.
64305         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
64306         HAVE_MBSRTOWCS.
64307         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
64308         HAVE_MBSRTOWCS.
64309         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
64311 2008-12-19  Bruno Haible  <bruno@clisp.org>
64313         New module 'mbrlen'.
64314         * lib/wchar.in.h (mbrlen): New declaration.
64315         * lib/mbrlen.c: New file.
64316         * m4/mbrlen.m4: New file.
64317         * modules/mbrlen: New file.
64318         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
64319         HAVE_MBRLEN.
64320         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
64321         HAVE_MBRLEN.
64322         * doc/posix-functions/mbrlen.texi: Document the new module.
64324 2008-12-19  Bruno Haible  <bruno@clisp.org>
64326         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
64327         * modules/mbrtowc (Depends-on): Add verify.
64328         Suggested by Paul Eggert.
64330 2008-12-18  Bruno Haible  <bruno@clisp.org>
64332         * modules/mbsinit-tests: New file.
64333         * tests/test-mbsinit.sh: New file.
64334         * tests/test-mbsinit.c: New file.
64336 2008-12-18  Bruno Haible  <bruno@clisp.org>
64338         * modules/mbrtowc-tests: New file.
64339         * tests/test-mbrtowc1.sh: New file.
64340         * tests/test-mbrtowc2.sh: New file.
64341         * tests/test-mbrtowc3.sh: New file.
64342         * tests/test-mbrtowc4.sh: New file.
64343         * tests/test-mbrtowc.c: New file.
64345         New module 'mbrtowc'.
64346         * lib/wchar.in.h (mbstate_t): Override when the system does not have
64347         mbsinit and mbrtowc.
64348         (mbrtowc): New declaration.
64349         * lib/mbrtowc.c: New file.
64350         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
64351         * modules/mbrtowc: New file.
64352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
64353         HAVE_MBRTOWC.
64354         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
64355         HAVE_MBRTOWC.
64356         * doc/posix-functions/mbrtowc.texi: Document the new module.
64358 2008-12-18  Bruno Haible  <bruno@clisp.org>
64360         New module 'wctob'.
64361         * lib/wchar.in.h (wctob): New declaration.
64362         * lib/wctob.c: New file.
64363         * m4/wctob.m4: New file.
64364         * modules/wctob: New file.
64365         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
64366         HAVE_WCTOB.
64367         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
64368         * doc/posix-functions/wctob.texi: Document the new module.
64370 2008-12-18  Bruno Haible  <bruno@clisp.org>
64372         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
64373         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
64375 2008-12-18  Simon Josefsson  <simon@josefsson.org>
64377         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
64378         G. Christensen" <tgc@jupiterrise.com>.
64380         * lib/flock.c: Need to include errno.h.  Reported by "Tom
64381         G. Christensen" <tgc@jupiterrise.com>.
64383         * lib/flock.c: Need to include string.h.  Reported by "Tom
64384         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
64385         <ebb9@byu.net>.
64387 2008-12-18  Bruno Haible  <bruno@clisp.org>
64389         * m4/locale-ja.m4: New file, from GNU gettext.
64391 2008-12-17  Bruno Haible  <bruno@clisp.org>
64393         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
64394         Suggested by Eric Blake.
64396 2008-12-17  Bruno Haible  <bruno@clisp.org>
64398         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
64400 2008-12-17  Bruno Haible  <bruno@clisp.org>
64402         * lib/mbsinit.c: Include verify.h. Verify an assumption.
64403         * modules/mbsinit (Depends-on): Add verify.
64404         Suggested by Paul Eggert.
64406 2008-12-17  Bruno Haible  <bruno@clisp.org>
64408         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
64409         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
64410         gl_FUNC_MBRTOWC.
64411         * m4/mbiter.m4 (gl_MBITER): LIkewise.
64412         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
64413         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
64414         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
64415         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
64416         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
64417         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
64418         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
64419         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
64420         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
64421         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
64422         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
64423         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
64424         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
64425         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
64426         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64427         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
64428         * modules/trim (configure.ac): Likewise.
64430 2008-12-17  Bruno Haible  <bruno@clisp.org>
64432         * modules/btowc-tests: New file.
64433         * tests/test-btowc1.sh: New file.
64434         * tests/test-btowc2.sh: New file.
64435         * tests/test-btowc.c: New file.
64437         New module 'btowc'.
64438         * lib/wchar.in.h (btowc): New declaration.
64439         * lib/btowc.c: New file.
64440         * m4/btowc.m4: New file.
64441         * modules/btowc: New file.
64442         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
64443         HAVE_BTOWC.
64444         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
64445         * doc/posix-functions/btowc.texi: Document the new module.
64447 2008-12-17  Bruno Haible  <bruno@clisp.org>
64449         New module 'mbsinit'.
64450         * lib/wchar.in.h (mbsinit): New declaration.
64451         * lib/mbsinit.c: New file.
64452         * m4/mbsinit.m4: New file.
64453         * modules/mbsinit: New file.
64454         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
64455         HAVE_MBSINIT.
64456         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
64457         HAVE_MBSINIT.
64458         * doc/posix-functions/mbsinit.texi: Document the new module.
64460 2008-12-16  Bruno Haible  <bruno@clisp.org>
64462         * lib/unistd.in.h: Add comment.
64463         * tests/test-environ.c: Don't include <stdlib.h>.
64465 2008-12-16  Bruno Haible  <bruno@clisp.org>
64467         * lib/parse-duration.h (parse_duration): Document return value
64468         convention.
64469         * lib/parse-duration.c: Include specification header first. Add
64470         comments.
64471         (_): Remove macro.
64472         (parse_year_month_day, parse_hour_minute_second): Move side effects
64473         outside of strchr call.
64474         (parse_non_iso8601): Move side effects outside of isspace call.
64475         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
64476         call.
64478 2008-12-16  Bruno Haible  <bruno@clisp.org>
64480         * tests/test-parse-duration.sh: Produce no output when the test
64481         succeeds.
64483 2008-12-16  Bruno Haible  <bruno@clisp.org>
64485         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
64486         expressions.
64488 2008-12-15  Bruno Haible  <bruno@clisp.org>
64490         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
64491         * doc/glibc-functions/flistxattr.texi: Likewise.
64492         * doc/glibc-functions/fopencookie.texi: Likewise.
64493         * doc/glibc-functions/fremovexattr.texi: Likewise.
64494         * doc/glibc-functions/fsetxattr.texi: Likewise.
64495         * doc/glibc-functions/getxattr.texi: Likewise.
64496         * doc/glibc-functions/lgetxattr.texi: Likewise.
64497         * doc/glibc-functions/listxattr.texi: Likewise.
64498         * doc/glibc-functions/llistxattr.texi: Likewise.
64499         * doc/glibc-functions/lremovexattr.texi: Likewise.
64500         * doc/glibc-functions/lsetxattr.texi: Likewise.
64501         * doc/glibc-functions/removexattr.texi: Likewise.
64502         * doc/glibc-functions/setxattr.texi: Likewise.
64503         * doc/posix-functions/open_memstream.texi: Likewise.
64505 2008-12-15  Eric Blake  <ebb9@byu.net>
64507         Update doc for cygwin 1.7.
64508         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
64509         functions.
64510         * doc/posix-functions/fchmodat.texi: Likewise.
64511         * doc/posix-functions/fchownat.texi: Likewise.
64512         * doc/posix-functions/fdopendir.texi: Likewise.
64513         * doc/posix-functions/fmemopen.texi: Likewise.
64514         * doc/posix-functions/freeaddrinfo.texi: Likewise.
64515         * doc/posix-functions/fstatat.texi: Likewise.
64516         * doc/posix-functions/futimens.texi: Likewise.
64517         * doc/posix-functions/gai_strerror.texi: Likewise.
64518         * doc/posix-functions/getaddrinfo.texi: Likewise.
64519         * doc/posix-functions/getnameinfo.texi: Likewise.
64520         * doc/posix-functions/if_freenameindex.texi: Likewise.
64521         * doc/posix-functions/if_indextoname.texi: Likewise.
64522         * doc/posix-functions/if_nameindex.texi: Likewise.
64523         * doc/posix-functions/if_nametoindex.texi: Likewise.
64524         * doc/posix-functions/insque.texi: Likewise.
64525         * doc/posix-functions/linkat.texi: Likewise.
64526         * doc/posix-functions/llrint.texi: Likewise.
64527         * doc/posix-functions/llrintf.texi: Likewise.
64528         * doc/posix-functions/llrintl.texi: Likewise.
64529         * doc/posix-functions/lockf.texi: Likewise.
64530         * doc/posix-functions/lrintl.texi: Likewise.
64531         * doc/posix-functions/mkdirat.texi: Likewise.
64532         * doc/posix-functions/mkfifoat.texi: Likewise.
64533         * doc/posix-functions/mknodat.texi: Likewise.
64534         * doc/posix-functions/mq_close.texi: Likewise.
64535         * doc/posix-functions/mq_getattr.texi: Likewise.
64536         * doc/posix-functions/mq_notify.texi: Likewise.
64537         * doc/posix-functions/mq_open.texi: Likewise.
64538         * doc/posix-functions/mq_receive.texi: Likewise.
64539         * doc/posix-functions/mq_send.texi: Likewise.
64540         * doc/posix-functions/mq_setattr.texi: Likewise.
64541         * doc/posix-functions/mq_timedreceive.texi: Likewise.
64542         * doc/posix-functions/mq_timedsend.texi: Likewise.
64543         * doc/posix-functions/mq_unlink.texi: Likewise.
64544         * doc/posix-functions/open_memstream.texi: Likewise.
64545         * doc/posix-functions/openat.texi: Likewise.
64546         * doc/posix-functions/posix_fadvise.texi: Likewise.
64547         * doc/posix-functions/posix_fallocate.texi: Likewise.
64548         * doc/posix-functions/posix_madvise.texi: Likewise.
64549         * doc/posix-functions/posix_memalign.texi: Likewise.
64550         * doc/posix-functions/posix_openpt.texi: Likewise.
64551         * doc/posix-functions/readlinkat.texi: Likewise.
64552         * doc/posix-functions/remque.texi: Likewise.
64553         * doc/posix-functions/renameat.texi: Likewise.
64554         * doc/posix-functions/rintl.texi: Likewise.
64555         * doc/posix-functions/sem_unlink.texi: Likewise.
64556         * doc/posix-functions/shm_open.texi: Likewise.
64557         * doc/posix-functions/shm_unlink.texi: Likewise.
64558         * doc/posix-functions/signgam.texi: Likewise.
64559         * doc/posix-functions/sigset.texi: Likewise.
64560         * doc/posix-functions/stpcpy.texi: Likewise.
64561         * doc/posix-functions/stpncpy.texi: Likewise.
64562         * doc/posix-functions/strerror.texi: Likewise.
64563         * doc/posix-functions/strtod.texi: Likewise.
64564         * doc/posix-functions/symlinkat.texi: Likewise.
64565         * doc/posix-functions/unlinkat.texi: Likewise.
64566         * doc/posix-functions/utimensat.texi: Likewise.
64567         * doc/glibc-functions/bindresvport.texi: Likewise.
64568         * doc/glibc-functions/dn_expand.texi: Likewise.
64569         * doc/glibc-functions/exp10.texi: Likewise.
64570         * doc/glibc-functions/exp10f.texi: Likewise.
64571         * doc/glibc-functions/fgetxattr.texi: Likewise.
64572         * doc/glibc-functions/flistxattr.texi: Likewise.
64573         * doc/glibc-functions/fopencookie.texi: Likewise.
64574         * doc/glibc-functions/freeifaddrs.texi: Likewise.
64575         * doc/glibc-functions/fremovexattr.texi: Likewise.
64576         * doc/glibc-functions/fsetxattr.texi: Likewise.
64577         * doc/glibc-functions/getifaddrs.texi: Likewise.
64578         * doc/glibc-functions/getxattr.texi: Likewise.
64579         * doc/glibc-functions/lgetxattr.texi: Likewise.
64580         * doc/glibc-functions/listxattr.texi: Likewise.
64581         * doc/glibc-functions/llistxattr.texi: Likewise.
64582         * doc/glibc-functions/lremovexattr.texi: Likewise.
64583         * doc/glibc-functions/lsetxattr.texi: Likewise.
64584         * doc/glibc-functions/pow10.texi: Likewise.
64585         * doc/glibc-functions/pow10f.texi: Likewise.
64586         * doc/glibc-functions/rcmd_af.texi: Likewise.
64587         * doc/glibc-functions/removexattr.texi: Likewise.
64588         * doc/glibc-functions/res_init.texi: Likewise.
64589         * doc/glibc-functions/res_mkquery.texi: Likewise.
64590         * doc/glibc-functions/res_query.texi: Likewise.
64591         * doc/glibc-functions/res_querydomain.texi: Likewise.
64592         * doc/glibc-functions/res_send.texi: Likewise.
64593         * doc/glibc-functions/rresvport_af.texi: Likewise.
64594         * doc/glibc-functions/setxattr.texi: Likewise.
64595         * doc/glibc-functions/strcasestr.texi: Likewise.
64597 2008-12-15  Bruno Haible  <bruno@clisp.org>
64599         Fix compilation error on OSF/1 4.0.
64600         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
64601         <sys/time.h>, simply delegate to the system header.
64602         Reported by Daniel Richard G. <oss@teragram.com>.
64604 2008-12-15  Bruno Haible  <bruno@clisp.org>
64606         * doc/posix-functions/openat.texi: Mention the 'openat' module.
64607         * doc/posix-functions/fchmodat.texi: Likewise.
64608         * doc/posix-functions/fchownat.texi: Likewise.
64609         * doc/posix-functions/fdopendir.texi: Likewise.
64610         * doc/posix-functions/fstatat.texi: Likewise.
64611         * doc/posix-functions/mkdirat.texi: Likewise.
64612         * doc/posix-functions/unlinkat.texi: Likewise.
64614 2008-12-14  Bruno Haible  <bruno@clisp.org>
64616         Update doc for POSIX:2008.
64617         * doc/posix-functions/faccessat.texi: New file.
64618         * doc/posix-functions/fchmodat.texi: New file.
64619         * doc/posix-functions/fchownat.texi: New file.
64620         * doc/posix-functions/fdopendir.texi: New file.
64621         * doc/posix-functions/fstatat.texi: New file.
64622         * doc/posix-functions/futimens.texi: New file.
64623         * doc/posix-functions/linkat.texi: New file.
64624         * doc/posix-functions/mkdirat.texi: New file.
64625         * doc/posix-functions/mkfifoat.texi: New file.
64626         * doc/posix-functions/mknodat.texi: New file.
64627         * doc/posix-functions/open_wmemstream.texi: New file.
64628         * doc/posix-functions/openat.texi: New file.
64629         * doc/posix-functions/psiginfo.texi: New file.
64630         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
64631         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
64632         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
64633         * doc/posix-functions/readlinkat.texi: New file.
64634         * doc/posix-functions/renameat.texi: New file.
64635         * doc/posix-functions/strerror_l.texi: New file.
64636         * doc/posix-functions/symlinkat.texi: New file.
64637         * doc/posix-functions/unlinkat.texi: New file.
64638         * doc/posix-functions/utimensat.texi: New file.
64639         * doc/gnulib.texi (Function Substitutes): Add these subsections.
64641 2008-12-14  Bruno Haible  <bruno@clisp.org>
64643         Update doc for POSIX:2008.
64644         * doc/posix-functions/alphasort.texi: Renamed from
64645         doc/glibc-functions/alphasort.texi.
64646         * doc/posix-functions/dirfd.texi: Renamed from
64647         doc/glibc-functions/dirfd.texi.
64648         * doc/posix-functions/dprintf.texi: Renamed from
64649         doc/glibc-functions/dprintf.texi.
64650         * doc/posix-functions/duplocale.texi: Renamed from
64651         doc/glibc-functions/duplocale.texi.
64652         * doc/posix-functions/fexecve.texi: Renamed from
64653         doc/glibc-functions/fexecve.texi.
64654         * doc/posix-functions/fmemopen.texi: Renamed from
64655         doc/glibc-functions/fmemopen.texi.
64656         * doc/posix-functions/freelocale.texi: Renamed from
64657         doc/glibc-functions/freelocale.texi.
64658         * doc/posix-functions/getdate_err.texi: Renamed from
64659         doc/glibc-functions/getdate_err.texi.
64660         * doc/posix-functions/isalnum_l.texi: Renamed from
64661         doc/glibc-functions/isalnum_l.texi.
64662         * doc/posix-functions/isalpha_l.texi: Renamed from
64663         doc/glibc-functions/isalpha_l.texi.
64664         * doc/posix-functions/isblank_l.texi: Renamed from
64665         doc/glibc-functions/isblank_l.texi.
64666         * doc/posix-functions/iscntrl_l.texi: Renamed from
64667         doc/glibc-functions/iscntrl_l.texi.
64668         * doc/posix-functions/isdigit_l.texi: Renamed from
64669         doc/glibc-functions/isdigit_l.texi.
64670         * doc/posix-functions/isgraph_l.texi: Renamed from
64671         doc/glibc-functions/isgraph_l.texi.
64672         * doc/posix-functions/islower_l.texi: Renamed from
64673         doc/glibc-functions/islower_l.texi.
64674         * doc/posix-functions/isprint_l.texi: Renamed from
64675         doc/glibc-functions/isprint_l.texi.
64676         * doc/posix-functions/ispunct_l.texi: Renamed from
64677         doc/glibc-functions/ispunct_l.texi.
64678         * doc/posix-functions/isspace_l.texi: Renamed from
64679         doc/glibc-functions/isspace_l.texi.
64680         * doc/posix-functions/isupper_l.texi: Renamed from
64681         doc/glibc-functions/isupper_l.texi.
64682         * doc/posix-functions/iswalnum_l.texi: Renamed from
64683         doc/glibc-functions/iswalnum_l.texi.
64684         * doc/posix-functions/iswalpha_l.texi: Renamed from
64685         doc/glibc-functions/iswalpha_l.texi.
64686         * doc/posix-functions/iswblank_l.texi: Renamed from
64687         doc/glibc-functions/iswblank_l.texi.
64688         * doc/posix-functions/iswcntrl_l.texi: Renamed from
64689         doc/glibc-functions/iswcntrl_l.texi.
64690         * doc/posix-functions/iswctype_l.texi: Renamed from
64691         doc/glibc-functions/iswctype_l.texi.
64692         * doc/posix-functions/iswdigit_l.texi: Renamed from
64693         doc/glibc-functions/iswdigit_l.texi.
64694         * doc/posix-functions/iswgraph_l.texi: Renamed from
64695         doc/glibc-functions/iswgraph_l.texi.
64696         * doc/posix-functions/iswlower_l.texi: Renamed from
64697         doc/glibc-functions/iswlower_l.texi.
64698         * doc/posix-functions/iswprint_l.texi: Renamed from
64699         doc/glibc-functions/iswprint_l.texi.
64700         * doc/posix-functions/iswpunct_l.texi: Renamed from
64701         doc/glibc-functions/iswpunct_l.texi.
64702         * doc/posix-functions/iswspace_l.texi: Renamed from
64703         doc/glibc-functions/iswspace_l.texi.
64704         * doc/posix-functions/iswupper_l.texi: Renamed from
64705         doc/glibc-functions/iswupper_l.texi.
64706         * doc/posix-functions/iswxdigit_l.texi: Renamed from
64707         doc/glibc-functions/iswxdigit_l.texi.
64708         * doc/posix-functions/isxdigit_l.texi: Renamed from
64709         doc/glibc-functions/isxdigit_l.texi.
64710         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
64711         doc/glibc-functions/mbsnrtowcs.texi.
64712         * doc/posix-functions/mkdtemp.texi: Renamed from
64713         doc/glibc-functions/mkdtemp.texi.
64714         * doc/posix-functions/newlocale.texi: Renamed from
64715         doc/glibc-functions/newlocale.texi.
64716         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
64717         doc/glibc-functions/nl_langinfo_l.texi.
64718         * doc/posix-functions/open_memstream.texi: Renamed from
64719         doc/glibc-functions/open_memstream.texi.
64720         * doc/posix-functions/opterr.texi: Renamed from
64721         doc/glibc-functions/opterr.texi.
64722         * doc/posix-functions/optind.texi: Renamed from
64723         doc/glibc-functions/optind.texi.
64724         * doc/posix-functions/optopt.texi: Renamed from
64725         doc/glibc-functions/optopt.texi.
64726         * doc/posix-functions/psignal.texi: Renamed from
64727         doc/glibc-functions/psignal.texi.
64728         * doc/posix-functions/scandir.texi: Renamed from
64729         doc/glibc-functions/scandir.texi.
64730         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
64731         doc/glibc-functions/sched_get_priority_min.texi.
64732         * doc/posix-functions/signgam.texi: Renamed from
64733         doc/glibc-functions/signgam.texi.
64734         * doc/posix-functions/stpcpy.texi: Renamed from
64735         doc/glibc-functions/stpcpy.texi.
64736         * doc/posix-functions/stpncpy.texi: Renamed from
64737         doc/glibc-functions/stpncpy.texi.
64738         * doc/posix-functions/strcasecmp_l.texi: Renamed from
64739         doc/glibc-functions/strcasecmp_l.texi.
64740         * doc/posix-functions/strcoll_l.texi: Renamed from
64741         doc/glibc-functions/strcoll_l.texi.
64742         * doc/posix-functions/strfmon_l.texi: Renamed from
64743         doc/glibc-functions/strfmon_l.texi.
64744         * doc/posix-functions/strftime_l.texi: Renamed from
64745         doc/glibc-functions/strftime_l.texi.
64746         * doc/posix-functions/strncasecmp_l.texi: Renamed from
64747         doc/glibc-functions/strncasecmp_l.texi.
64748         * doc/posix-functions/strndup.texi: Renamed from
64749         doc/glibc-functions/strndup.texi.
64750         * doc/posix-functions/strnlen.texi: Renamed from
64751         doc/glibc-functions/strnlen.texi.
64752         * doc/posix-functions/strsignal.texi: Renamed from
64753         doc/glibc-functions/strsignal.texi.
64754         * doc/posix-functions/strxfrm_l.texi: Renamed from
64755         doc/glibc-functions/strxfrm_l.texi.
64756         * doc/posix-functions/timer_gettime.texi: Renamed from
64757         doc/glibc-functions/timer_gettime.texi.
64758         * doc/posix-functions/tolower_l.texi: Renamed from
64759         doc/glibc-functions/tolower_l.texi.
64760         * doc/posix-functions/toupper_l.texi: Renamed from
64761         doc/glibc-functions/toupper_l.texi.
64762         * doc/posix-functions/towctrans_l.texi: Renamed from
64763         doc/glibc-functions/towctrans_l.texi.
64764         * doc/posix-functions/towlower_l.texi: Renamed from
64765         doc/glibc-functions/towlower_l.texi.
64766         * doc/posix-functions/towupper_l.texi: Renamed from
64767         doc/glibc-functions/towupper_l.texi.
64768         * doc/posix-functions/uselocale.texi: Renamed from
64769         doc/glibc-functions/uselocale.texi.
64770         * doc/posix-functions/vdprintf.texi: Renamed from
64771         doc/glibc-functions/vdprintf.texi.
64772         * doc/posix-functions/wcpcpy.texi:
64773         Renamed from doc/glibc-functions/wcpcpy.texi.
64774         * doc/posix-functions/wcpncpy.texi: Renamed from
64775         doc/glibc-functions/wcpncpy.texi.
64776         * doc/posix-functions/wcscasecmp.texi: Renamed from
64777         doc/glibc-functions/wcscasecmp.texi.
64778         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
64779         doc/glibc-functions/wcscasecmp_l.texi.
64780         * doc/posix-functions/wcscoll_l.texi: Renamed from
64781         doc/glibc-functions/wcscoll_l.texi.
64782         * doc/posix-functions/wcsdup.texi: Renamed from
64783         doc/glibc-functions/wcsdup.texi.
64784         * doc/posix-functions/wcsncasecmp.texi: Renamed from
64785         doc/glibc-functions/wcsncasecmp.texi.
64786         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
64787         doc/glibc-functions/wcsncasecmp_l.texi.
64788         * doc/posix-functions/wcsnlen.texi: Renamed from
64789         doc/glibc-functions/wcsnlen.texi.
64790         * doc/posix-functions/wcsnrtombs.texi: Renamed from
64791         doc/glibc-functions/wcsnrtombs.texi.
64792         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
64793         doc/glibc-functions/wcsxfrm_l.texi.
64794         * doc/posix-functions/wctrans_l.texi: Renamed from
64795         doc/glibc-functions/wctrans_l.texi.
64796         * doc/posix-functions/wctype_l.texi: Renamed from
64797         doc/glibc-functions/wctype_l.texi.
64798         * doc/gnulib.texi (Function Substitutes): Add these subsections.
64799         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
64800         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
64801         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
64802         these subsections.
64803         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
64804         Remove sections.
64806 2008-12-14  Bruno Haible  <bruno@clisp.org>
64808         Update doc for POSIX:2008.
64809         * doc/posix-functions/*.texi: Update URL of POSIX specification.
64811 2008-12-14  Bruno Haible  <bruno@clisp.org>
64813         Update doc for POSIX:2008.
64814         * doc/pastposix-functions/bcmp.texi: Renamed from
64815         doc/posix-functions/bcmp.texi.
64816         * doc/pastposix-functions/bcopy.texi: Renamed from
64817         doc/posix-functions/bcopy.texi.
64818         * doc/pastposix-functions/bsd_signal.texi: Renamed from
64819         doc/posix-functions/bsd_signal.texi.
64820         * doc/pastposix-functions/bzero.texi: Renamed from
64821         doc/posix-functions/bzero.texi.
64822         * doc/pastposix-functions/ecvt.texi: Renamed from
64823         doc/posix-functions/ecvt.texi.
64824         * doc/pastposix-functions/fcvt.texi: Renamed from
64825         doc/posix-functions/fcvt.texi.
64826         * doc/pastposix-functions/ftime.texi: Renamed from
64827         doc/posix-functions/ftime.texi.
64828         * doc/pastposix-functions/gcvt.texi: Renamed from
64829         doc/posix-functions/gcvt.texi.
64830         * doc/pastposix-functions/getcontext.texi: Renamed from
64831         doc/posix-functions/getcontext.texi.
64832         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
64833         doc/posix-functions/gethostbyaddr.texi.
64834         * doc/pastposix-functions/gethostbyname.texi: Renamed from
64835         doc/posix-functions/gethostbyname.texi.
64836         * doc/pastposix-functions/getwd.texi: Renamed from
64837         doc/posix-functions/getwd.texi.
64838         * doc/pastposix-functions/h_errno.texi: Renamed from
64839         doc/posix-functions/h_errno.texi.
64840         * doc/pastposix-functions/index.texi: Renamed from
64841         doc/posix-functions/index.texi.
64842         * doc/pastposix-functions/makecontext.texi: Renamed from
64843         doc/posix-functions/makecontext.texi.
64844         * doc/pastposix-functions/mktemp.texi: Renamed from
64845         doc/posix-functions/mktemp.texi.
64846         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
64847         doc/posix-functions/pthread_attr_getstackaddr.texi.
64848         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
64849         doc/posix-functions/pthread_attr_setstackaddr.texi.
64850         * doc/pastposix-functions/rindex.texi: Renamed from
64851         doc/posix-functions/rindex.texi.
64852         * doc/pastposix-functions/scalb.texi: Renamed from
64853         doc/posix-functions/scalb.texi.
64854         * doc/pastposix-functions/setcontext.texi: Renamed from
64855         doc/posix-functions/setcontext.texi.
64856         * doc/pastposix-functions/swapcontext.texi: Renamed from
64857         doc/posix-functions/swapcontext.texi.
64858         * doc/pastposix-functions/ualarm.texi: Renamed from
64859         doc/posix-functions/ualarm.texi.
64860         * doc/pastposix-functions/usleep.texi: Renamed from
64861         doc/posix-functions/usleep.texi.
64862         * doc/pastposix-functions/vfork.texi: Renamed from
64863         doc/posix-functions/vfork.texi.
64864         * doc/pastposix-functions/wcswcs.texi: Renamed from
64865         doc/posix-functions/wcswcs.texi.
64866         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
64867         (Function Substitutes): Update.
64869 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64871         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
64872         m4/strerror.m4.
64874 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64875             Bruno Haible  <bruno@clisp.org>
64877         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
64879 2008-12-13  Bruno Haible  <bruno@clisp.org>
64881         * modules/strtoull (Depends-on): Remove unistd.
64883 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64885         * modules/strtoull (Depends-on): Add stdlib.
64887 2008-12-11  Simon Josefsson  <simon@josefsson.org>
64889         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
64891 2008-12-10  Jim Meyering  <meyering@redhat.com>
64893         gl_ASSERT: don't say assertions are disabled when they're not
64894         * m4/assert.m4 (gl_ASSERT): Do not make configure report
64895         "checking whether to enable assertions... no", when they are in
64896         fact enabled.  This is solely a bug in the output of configure.
64897         In spite of saying "no", NDEBUG was not defined in that case.
64898         Also, as noted by Eric Blake, leave assertions enabled upon
64899         --enable-assert=INVALID.
64901 2008-12-10  Bruno Haible  <bruno@clisp.org>
64903         Change MODULES.html to refer to POSIX:2008 where possible.
64904         * MODULES.html.sh (POSIX2008_URL): New variable.
64905         (posix_headers): Remove sys/timeb, ucontext.
64906         (posix2001_headers): New variable.
64907         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
64908         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
64909         index, makecontext, mktemp, pthread_attr_getstackaddr,
64910         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
64911         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
64912         (posix2001_functions): New variable.
64913         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
64914         otherwise.
64916 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64918         add missing include to parse-duration.c
64919         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
64920         * modules/parse-duration (Depends-on): Add xalloc.
64922         fix sed script reading maint.mk
64923         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
64924         (syntax-check-rules): Use it.
64926 2008-12-09  Bruno Haible  <bruno@clisp.org>
64928         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
64929         MacOS X 10.4/PowerPC.
64930         Reported by Simon Josefsson.
64932 2008-12-08  Jim Meyering  <meyering@redhat.com>
64934         work around mingw's lack of some S_IF definitions
64935         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
64936         Reported by Simon Josefsson.
64938 2008-12-08  Bruno Haible  <bruno@clisp.org>
64940         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
64941         applied to variables. Needed on MacOS X 10.4/PowerPC.
64942         Reported by Simon Josefsson.
64944 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
64945         and Eric Blake  <ebb9@byu.net>
64947         assert: honor --enable-assert
64948         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
64949         order to honor --enable-assert, rather than treating it as a
64950         synonym for --disable-assert.
64952 2008-12-08  Jim Meyering  <meyering@redhat.com>
64954         * lib/posixtm.c: Remove now-useless declaration of mktime.
64956         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
64958 2008-12-07  Bruno Haible  <bruno@clisp.org>
64960         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
64961         test_once): Mark functions as static.
64962         * tests/test-tls.c (test_tls): Likewise.
64964 2008-12-07  Bruno Haible  <bruno@clisp.org>
64966         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
64967         iconv_register_autodetect.
64969 2008-12-07  Jim Meyering  <meyering@redhat.com>
64971         posixtm.c: avoid a warning
64972         * lib/posixtm.c (posixtime): Don't initialize tm0.
64973         It's no longer needed to placate gcc4's -Wuninitialized,
64974         and the attempt to placate would elicit a new warning.
64976         unicodeio.c: mark unused parameters
64977         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
64978         (fallback_failure_callback): Likewise.
64980 2008-12-07  Bruno Haible  <bruno@clisp.org>
64982         * gnulib-tool (func_create_testdir): When building the tests
64983         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
64984         Reported by Simon Josefsson.
64986 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64988         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
64990 2008-12-06  Bruno Haible  <bruno@clisp.org>
64992         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
64993         Suggested by Eric Blake.
64995 2008-12-06  Bruno Haible  <bruno@clisp.org>
64997         Fix a c-stack test failure on MacOS X.
64998         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
64999         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
65000         handler for SIGBUS as well.
65001         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
65002         install a signal handler for SIGBUS as well.
65003         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
65005 2008-12-06  Bruno Haible  <bruno@clisp.org>
65007         Advocacy documentation.
65008         * doc/gnulib-intro.texi (Benefits): New section.
65009         * doc/gnulib.texi: Update.
65011 2008-12-06  Bruno Haible  <bruno@clisp.org>
65013         Document the 'manywarnings' module.
65014         * doc/manywarnings.texi: New file.
65015         * doc/gnulib.texi: Include it.
65017 2008-12-05  Eric Blake  <ebb9@byu.net>
65019         tests: silence some gcc warnings
65020         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
65021         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
65022         type mismatches.
65024 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65025             Bruno Haible  <bruno@clisp.org>
65027         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
65029 2008-11-29  Jim Meyering  <meyering@redhat.com>
65031         unicodeio.c: mark unused parameters
65032         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
65033         (fallback_failure_callback): Likewise.
65035         fts: fix a thinko
65036         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
65037         (set_stat_type): Return S_IF*-valued "type" directly.
65038         Prompted by James Youngman's spotting a related bug.
65039         Confirmed by further testing through find.
65041         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
65042         * lib/fts.c (D_TYPE): Define.
65043         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
65044         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
65045         (s_ifmt_shift_bits): New function.
65046         (set_stat_type): New function.
65047         (fts_build): When not calling fts_stat, call set_stat_type
65048         to propagate dirent.d_type info to fts_read caller.
65049         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
65050         fts_statp->st_mode type information may be valid.
65052 2008-11-28  Simon Josefsson  <simon@josefsson.org>
65054         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
65055         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
65056         <sds@gnu.org>.
65058 2008-11-20  Bruno Haible  <bruno@clisp.org>
65060         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
65061         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
65062         INCLUDE_NEXT.
65063         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
65064         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
65065         * modules/math (Makefile.am): Substitute
65066         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
65067         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65069 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
65070             Bruno Haible  <bruno@clisp.org>
65072         * lib/stdint.in.h: Define all type macros so that their expansion is
65073         a single typedef'ed token. Fixes a compilation failure in Boost which
65074         does "using ::int8_t;".
65076 2008-11-18  Simon Josefsson  <simon@josefsson.org>
65078         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
65079         gl_MANYWARN_ALL_GCC.
65080         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
65081         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
65082         * modules/manywarnings: New file.
65083         * MODULES.html.sh: Mention manywarnings module.
65085 2008-11-18  Bruno Haible  <bruno@clisp.org>
65087         * doc/gnulib-tool.texi (Unit tests): New section.
65089 2008-11-18  Simon Josefsson  <simon@josefsson.org>
65091         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
65092         paths like 'lib/po/foo.po'.
65094 2008-11-17  Simon Josefsson  <simon@josefsson.org>
65096         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
65097         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
65099 2008-11-17  Simon Josefsson  <simon@josefsson.org>
65101         * m4/warnings.m4: Use CPPFLAGS to really check whether the
65102         parameter works.
65104 2008-11-17  Simon Josefsson  <simon@josefsson.org>
65106         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
65108 2008-11-17  Bruce Korb  <bkorb@gnu.org>
65110         * modules/parse-duration-tests: New file.
65111         * tests/test-parse-duration.sh: New file.
65112         * tests/test-parse-duration.c: New file.
65114         New module 'parse-duration'.
65115         * lib/parse-duration.h: New file.
65116         * lib/parse-duration.c: New file.
65117         * modules/parse-duration: New file.
65119 2008-11-17  Bruno Haible  <bruno@clisp.org>
65121         * tests/test-select-out.sh: Comment out the first pipe test.
65122         Reported by Simon Josefsson.
65124 2008-11-17  Bruno Haible  <bruno@clisp.org>
65126         * modules/getaddrinfo (Depends-on): Add servent, hostent.
65127         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
65128         gl_HOSTENT.
65130 2008-11-17  Bruno Haible  <bruno@clisp.org>
65132         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
65133         -lnetwork and -lnet. Needed for Haiku and BeOS.
65135 2008-11-16  Bruno Haible  <bruno@clisp.org>
65137         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
65139 2008-11-16  Bruno Haible  <bruno@clisp.org>
65141         Avoid test failure on Haiku.
65142         * tests/test-fsync.c: Include <errno.h>.
65143         (main): Don't require that fsync (0) fails.
65145 2008-11-15  Bruno Haible  <bruno@clisp.org>
65147         New module 'hostent'.
65148         * modules/hostent: New file.
65149         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
65151 2008-11-15  Bruno Haible  <bruno@clisp.org>
65153         New module 'servent'.
65154         * modules/servent: New file.
65155         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
65157 2008-11-15  Bruno Haible  <bruno@clisp.org>
65159         Avoid generating same test program with two different rules.
65160         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
65161         test-frexp to test-frexp-nolibm.
65162         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
65163         test-frexpl to test-frexpl-nolibm.
65165 2008-11-15  Bruno Haible  <bruno@clisp.org>
65167         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
65168         $(FREXPL_LIBM).
65170 2008-11-15  Bruno Haible  <bruno@clisp.org>
65172         * lib/netdb.in.h: Activate the definitions also when the system's
65173         <netdb.h> has 'struct addrinfo'.
65174         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
65175         EAI_OVERFLOW or AI_NUMERICSERV.
65176         * doc/posix-headers/netdb.texi: Document the problem.
65178 2008-11-15  Bruno Haible  <bruno@clisp.org>
65180         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
65182         Make the 'sched' module work on platforms where <sched.h> exists but
65183         is incomplete (such as Haiku).
65184         * lib/sched.in.h; Include the system's <sched.h> if it exists.
65185         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
65186         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
65187         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
65188         HAVE_STRUCT_SCHED_PARAM.
65189         * modules/sched (Depends-on): Add include_next.
65190         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
65191         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
65192         * doc/posix-headers/sched.texi: Document the issue.
65194 2008-11-13  Jim Meyering  <meyering@redhat.com>
65196         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
65197         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
65198         test would fail due to the difference in the Report bugs to ...
65199         line.  The expected address is empty, "<>", while the actual
65200         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
65202 2008-11-12  Bruno Haible  <bruno@clisp.org>
65204         lstat: don't compile lstat.c on systems lacking lstat
65205         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
65206         which don't have lstat; this is handled by lib/sys_stat.in.h already.
65207         Reported by Daniel P. Berrange via Jim Meyering.
65209 2008-11-12  Jim Meyering  <meyering@redhat.com>
65211         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
65213 2008-11-12  Simon Josefsson  <simon@josefsson.org>
65215         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
65216         instead.
65218 2008-11-12  Bruno Haible  <bruno@clisp.org>
65220         * lib/unicodeio.c: Include unistr.h.
65221         (utf8_wctomb): Remove function.
65222         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
65224 2008-11-12  Simon Josefsson  <simon@josefsson.org>
65226         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
65227         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
65228         <bruno@clisp.org>.
65229         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
65231 2008-11-12  Simon Josefsson  <simon@josefsson.org>
65233         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
65234         * doc/gnulib.texi: Add section for warnings.
65236 2008-11-11  Bruno Haible  <bruno@clisp.org>
65238         * lib/sockets.h: Add a comment.
65240 2008-11-11  Karl Berry  <karl@gnu.org>
65242         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
65244 2008-11-11  Eric Blake  <ebb9@byu.net>
65246         fdl.texi: avoid git symlinks
65247         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
65249 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
65251         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
65253 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
65255         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
65256         (gl_WARN_ADD): Substitute $2 if literal.
65258 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
65260         * m4/warning.m4: Remove.
65262 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
65264         * m4/warnings.m4: Almost complete rewrite. :-)
65266 2008-11-10  Simon Josefsson  <simon@josefsson.org>
65268         * modules/warnings: New module.
65269         * m4/warnings.m4: New file.
65270         * MODULES.html.sh: Mention warnings module.
65271         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
65272         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65274 2008-11-10  Eric Blake  <ebb9@byu.net>
65276         fdl.texi: make a symlink to the latest version
65277         * doc/standards.texi: Revert today's earlier change.
65278         * doc/fdl-1.2.texi: Rename from old fdl.texi...
65279         * doc/fdl.texi: ...and replace this with a symlink to the newer
65280         fdl-1.3.texi.
65282 2008-11-10  Bruno Haible  <bruno@clisp.org>
65284         * tests/test-select-fd.c (main): Accept the result file name as fourth
65285         argument.
65286         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
65287         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
65289 2008-11-10  Bruno Haible  <bruno@clisp.org>
65291         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
65292         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
65293         as autoconf-substituted macros.
65294         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
65295         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
65296         gl_NETDB_H_DEFAULTS. Set these variables.
65297         * modules/netdb (Makefile.am): Substitute these variables.
65299 2008-11-10  Eric Blake  <ebb9@byu.net>
65301         standards.texi: include correct file for FDL 1.3
65302         * doc/standards.texi (GNU Free Documentation License): Change
65303         include file to pull in FDL 1.3, not 1.2.
65305         fdl.texi: revert accidental change to license
65306         * doc/fdl.texi: This is FDL 1.2, not 1.3.
65308 2008-11-10  Bruno Haible  <bruno@clisp.org>
65310         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
65311         cross-compiling guesses also when the native compile gives no result.
65313 2008-11-10  Bruno Haible  <bruno@clisp.org>
65315         * lib/spawni.c (__spawni): Force variable into the stack.
65317 2008-11-10  Bruno Haible  <bruno@clisp.org>
65319         Add support for Haiku.
65320         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
65321         glibc and BeOS, but also on Haiku.
65322         * lib/fpurge.c (fpurge): Likewise.
65323         * lib/freadable.c (freadable): Likewise.
65324         * lib/freadahead.c (freadahead): Likewise.
65325         * lib/freading.c (freading): Likewise.
65326         * lib/freadptr.c (freadptr): Likewise.
65327         * lib/freadseek.c (freadptrinc): Likewise.
65328         * lib/fseeko.c (rpl_fseeko): Likewise.
65329         * lib/fseterr.c (fseterr): Likewise.
65330         * lib/fwritable.c (fwritable): Likewise.
65331         * lib/fwriting.c (fwriting): Likewise.
65332         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
65334 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
65336         * lib/config.charset: Treat Haiku like BeOS.
65338 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
65340         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
65341         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
65343 2008-11-08  Bruno Haible  <bruno@clisp.org>
65345         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
65346         AC_CACHE_CHECK.
65348 2008-11-08  Bruno Haible  <bruno@clisp.org>
65350         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
65352 2008-11-08  Bruno Haible  <bruno@clisp.org>
65354         * tests/test-select-fd.c: New file.
65355         * tests/test-select-in.sh: New file.
65356         * tests/test-select-out.sh: New file.
65357         * tests/test-select-stdin.c: New file.
65358         * modules/select-tests (Files): Add the new files.
65359         (Depends-on): Add gettimeofday.
65360         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
65361         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
65362         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
65364 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
65365             Bruno Haible  <bruno@clisp.org>
65367         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
65369 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
65371         * build-aux/pmccabe2html: Added support for C++ source files.
65373 2008-11-05  Ben Pfaff  <blp@gnu.org>
65375         Fix lib/close.c build on Windows.
65376         * modules/close (Files): Add lib/w32sock.h.
65378 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
65380         Accept Bison's NEWS format.
65381         * build-aux/announce-gen (print_news_deltas): Tweak
65382         $re_prefix.
65384 2008-11-04  Bruno Haible  <bruno@clisp.org>
65386         * modules/random_r (Maintainer): Add glibc.
65388 2008-11-04  Simon Josefsson  <simon@josefsson.org>
65390         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
65391         by karl@freefriends.org (Karl Berry).
65392         * doc/alloca.texi: Likewise.
65393         * doc/c-ctype.texi: Likewise.
65394         * doc/c-strcase.texi: Likewise.
65395         * doc/c-strcaseeq.texi: Likewise.
65396         * doc/c-strcasestr.texi: Likewise.
65397         * doc/c-strstr.texi: Likewise.
65398         * doc/c-strtod.texi: Likewise.
65399         * doc/c-strtold.texi: Likewise.
65400         * doc/ctime.texi: Likewise.
65401         * doc/error.texi: Likewise.
65402         * doc/fdl.texi: Likewise.
65403         * doc/gcd.texi: Likewise.
65404         * doc/getdate.texi: Likewise.
65405         * doc/gnulib-intro.texi: Likewise.
65406         * doc/gnulib-tool.texi: Likewise.
65407         * doc/gnulib.texi: Likewise.
65408         * doc/inet_ntoa.texi: Likewise.
65409         * doc/maintain.texi: Likewise.
65410         * doc/make-stds.texi: Likewise.
65411         * doc/quote.texi: Likewise.
65412         * doc/regexprops-generic.texi: Likewise.
65413         * doc/standards.texi: Likewise.
65414         * doc/verify.texi: Likewise.
65415         * doc/visibility.texi: Likewise.
65416         * doc/gnulib.texi (GNU Free Documentation License): Include
65417         fdl-1.3.texi instead of fdl.texi.
65419 2008-11-04  Simon Josefsson  <simon@josefsson.org>
65421         * doc/fdl-1.3.texi: New file, from
65422         <http://www.gnu.org/licenses/fdl-1.3.texi>.
65423         * modules/fdl-1.3: Add.
65424         * MODULES.html.sh: Add fdl-1.3.
65426 2008-11-03  Bruno Haible  <bruno@clisp.org>
65428         Make determination of absolute name of header file work with AIX xlc.
65429         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
65430         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
65431         preprocessing.
65432         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
65433         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
65435 2008-11-03  Simon Josefsson  <simon@josefsson.org>
65437         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
65438         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
65439         <ludo@gnu.org>.
65441 2008-11-02  Bruno Haible  <bruno@clisp.org>
65443         Mark 'strpbrk' obsolete.
65444         * modules/strpbrk (Status, Notice): New sections.
65445         * modules/strtok_r (Depends-on): Add strpbrk.
65447 2008-11-02  Bruno Haible  <bruno@clisp.org>
65449         Mark 'strdup' obsolete.
65450         * modules/strdup (Status, Notice): New sections.
65451         * modules/findprog (Depends-on): Add strdup.
65452         * modules/getaddrinfo (Depends-on): Likewise.
65453         * modules/localename (Depends-on): Likewise.
65454         * modules/relocatable-lib (Depends-on): Likewise.
65455         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
65456         * modules/relocatable-prog (Depends-on): Likewise.
65457         * modules/trim (Depends-on): Likewise.
65458         * modules/unictype/gen-ctype (Depends-on): Likewise.
65459         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
65461 2008-11-02  Bruno Haible  <bruno@clisp.org>
65463         Mark 'strcspn' obsolete.
65464         * modules/strcspn (Status, Notice): New sections.
65466 2008-11-02  Bruno Haible  <bruno@clisp.org>
65468         Mark 'rmdir' obsolete.
65469         * modules/rmdir (Status, Notice): New sections.
65470         * modules/clean-temp (Depends-on): Add rmdir.
65471         * modules/openat (Depends-on): Likewise.
65473 2008-11-02  Bruno Haible  <bruno@clisp.org>
65475         Mark 'raise' obsolete.
65476         * modules/raise (Status, Notice): New sections.
65477         (Include): Specify <signal.h>.
65478         * modules/stdio (Depends-on): Add raise.
65479         * modules/write (Depends-on): Likewise.
65481 2008-11-02  Bruno Haible  <bruno@clisp.org>
65483         Mark 'memset' obsolete.
65484         * modules/memset (Status, Notice): New sections.
65486 2008-11-02  Bruno Haible  <bruno@clisp.org>
65488         Mark 'memmove' obsolete.
65489         * modules/memmove (Status, Notice): New sections.
65490         * modules/argp (Depends-on): Add memmove.
65491         * modules/argz (Depends-on): Likewise.
65492         * modules/canonicalize (Depends-on): Likewise.
65493         * modules/canonicalize-lgpl (Depends-on): Likewise.
65494         * modules/fts (Depends-on): Likewise.
65495         * modules/getcwd (Depends-on): Likewise.
65496         * modules/human (Depends-on): Likewise.
65497         * modules/regex (Depends-on): Likewise.
65498         * modules/striconveh (Depends-on): Likewise.
65499         * modules/trim (Depends-on): Likewise.
65500         * modules/unistr/u8-move (Depends-on): Likewise.
65501         * modules/unistr/u16-move (Depends-on): Likewise.
65502         * modules/unistr/u32-move (Depends-on): Likewise.
65504 2008-11-02  Bruno Haible  <bruno@clisp.org>
65506         Mark 'memcpy' obsolete.
65507         * modules/memcpy (Status, Notice): New sections.
65509 2008-11-02  Bruno Haible  <bruno@clisp.org>
65511         Mark 'memcmp' obsolete.
65512         * modules/memcmp (Status, Notice): New sections.
65513         * modules/argmatch (Depends-on): Add memchr.
65514         * modules/backupfile (Depends-on): Likewise.
65515         * modules/c-strcasestr (Depends-on): Likewise.
65516         * modules/crypto/des (Depends-on): Likewise.
65517         * modules/csharpcomp (Depends-on): Likewise.
65518         * modules/fnmatch (Depends-on): Likewise.
65519         * modules/git-merge-changelog (Depends-on): Likewise.
65520         * modules/isnand (Depends-on): Likewise.
65521         * modules/isnand-nolibm (Depends-on): Likewise.
65522         * modules/isnanf (Depends-on): Likewise.
65523         * modules/isnanf-nolibm (Depends-on): Likewise.
65524         * modules/isnanl (Depends-on): Likewise.
65525         * modules/isnanl-nolibm (Depends-on): Likewise.
65526         * modules/mbchar (Depends-on): Likewise.
65527         * modules/memcoll (Depends-on): Likewise.
65528         * modules/quotearg (Depends-on): Likewise.
65529         * modules/regex (Depends-on): Likewise.
65530         * modules/relocatable-prog (Depends-on): Likewise.
65531         * modules/same (Depends-on): Likewise.
65532         * modules/signbit (Depends-on): Likewise.
65533         * modules/strcasestr-simple (Depends-on): Likewise.
65534         * modules/unictype/gen-ctype (Depends-on): Likewise.
65535         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
65536         * modules/uniname/uniname (Depends-on): Likewise.
65537         * modules/unistr/u8-cmp (Depends-on): Likewise.
65539 2008-11-02  Bruno Haible  <bruno@clisp.org>
65541         Mark 'memchr' obsolete.
65542         * modules/memchr (Status, Notice): New sections.
65543         * modules/argp (Depends-on): Add memchr.
65544         * modules/base64 (Depends-on): Likewise.
65545         * modules/c-strcasestr (Depends-on): Likewise.
65546         * modules/chdir-long (Depends-on): Likewise.
65547         * modules/fnmatch (Depends-on): Likewise.
65548         * modules/getsubopt (Depends-on): Likewise.
65549         * modules/git-merge-changelog (Depends-on): Likewise.
65550         * modules/glob (Depends-on): Likewise.
65551         * modules/strcasestr-simple (Depends-on): Likewise.
65552         * modules/strnlen (Depends-on): Likewise.
65554 2008-11-02  Bruno Haible  <bruno@clisp.org>
65556         Mark 'atexit' obsolete.
65557         * modules/atexit (Status, Notice): New sections.
65558         * modules/chdir-long (Depends-on): Add atexit.
65559         * modules/wait-process (Depends-on): Likewise.
65561 2008-11-02  Bruno Haible  <bruno@clisp.org>
65563         * gnulib-tool: New option --with-obsolete.
65564         (func_usage): Document it.
65565         (func_modules_transitive_closure): Drop obsolete dependencies if
65566         incobsolete is not true.
65567         (func_import): Read and save the incobsolete variable to the cache.
65569 2008-11-02  Bruno Haible  <bruno@clisp.org>
65571         * modules/TEMPLATE-EXTENDED: New field 'Status'.
65572         * gnulib-tool: New option --extract-status.
65573         (func_usage): Document it.
65574         (sed_extract_prog): Recognize it.
65575         (func_get_status): New function.
65577 2008-10-30  Simon Josefsson  <simon@josefsson.org>
65579         * modules/sockets (License): Change from LGPL to LGPLv2+.
65581 2008-10-28  Simon Josefsson  <simon@josefsson.org>
65583         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
65585 2008-10-28  Simon Josefsson  <simon@josefsson.org>
65587         * MODULES.html.sh (Support for systems lacking POSIX:2001):
65588         Mention times and sys_times.
65589         * modules/sys_times, modules/sys_times-tests: New modules.
65590         * modules/times, modules/times-tests: Likewise
65591         * m4/sys_times_h.m4: New file.
65592         * lib/sys_times.in.h: Likewise
65593         * lib/times.c: Likewise.
65594         * tests/test-sys_times.c: Likewise.
65595         * tests/test-times.c: Likewise.
65596         * doc/posix-headers/sys_times.texi: Update.
65597         * doc/posix-functions/times.texi: Update.
65599 2008-10-28  Jim Meyering  <meyering@redhat.com>
65601         * modules/tempname (Depends-on): Add lstat.
65603         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
65605 2008-10-28  Simon Josefsson  <simon@josefsson.org>
65607         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
65608         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
65609         using idiom used elsewhere in gnulib.
65611 2008-10-27  Jim Meyering  <meyering@redhat.com>
65613         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
65615 2008-10-27  Simon Josefsson  <simon@josefsson.org>
65617         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
65618         TESTS_ENVIRONMENT, for shell scripts that needs to call built
65619         programs.
65620         * tests/test-argp-2.sh: Use $EXEEXT when needed.
65622 2008-10-27  Simon Josefsson  <simon@josefsson.org>
65624         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
65626 2008-10-27  Bruno Haible  <bruno@clisp.org>
65628         * tests/test-lstat.c: Include <stdio.h>.
65630 2008-10-27  Simon Josefsson  <simon@josefsson.org>
65632         * modules/lstat-tests: New module.
65633         * tests/test-lstat.c: New file.
65635 2008-10-26  Jim Meyering  <meyering@redhat.com>
65637         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
65639 2008-10-26  Simon Josefsson  <simon@josefsson.org>
65640             Bruno Haible  <bruno@clisp.org>
65642         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
65643         * modules/configmake (Include): Add a note that the include must come
65644         after all system headers.
65645         * lib/javaversion.c: Include configmake.h after all other includes.
65647 2008-10-26  Bruno Haible  <bruno@clisp.org>
65649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
65650         HAVE_STRUCT_RANDOM_DATA to 1.
65651         (gl_STDLIB_H): Simplify.
65653 2008-10-26  Simon Josefsson  <simon@josefsson.org>
65655         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
65656         substitute HAVE_STRUCT_RANDOM_DATA.
65657         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
65658         random_data.
65659         * modules/stdlib (Makefile.am): Substitute
65660         HAVE_STRUCT_RANDOM_DATA.
65662 2008-10-26  Simon Josefsson  <simon@josefsson.org>
65664         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
65665         * doc/gnulib-intro.texi (Copyright): Likewise.
65667 2008-10-26  Simon Josefsson  <simon@josefsson.org>
65669         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
65670         findings.
65672 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
65673             Bruno Haible  <bruno@clisp.org>
65675         * lib/unistd.in.h: Include <winsock2.h>.
65676         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
65677         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
65678         Provide dummy declarations.
65679         (gethostname): Override.
65680         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
65681         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
65682         gl_PREREQ_SYS_H_WINSOCK2.
65683         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
65684         * doc/posix-functions/gethostname.texi: More details.
65686 2008-10-25  Bruno Haible  <bruno@clisp.org>
65688         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
65689         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
65690         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
65692         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
65693         here ...
65694         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
65695         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
65696         gl_UNISTD_H_DEFAULTS.
65698 2008-10-25  Eric Blake  <ebb9@byu.net>
65700         signbit: avoid spurious compiler failure
65701         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
65702         declarations inside function.
65704 2008-10-24  Simon Josefsson  <simon@josefsson.org>
65705             Bruno Haible  <bruno@clisp.org>
65707         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
65708         * modules/random_r (Depends-on): Add stdint.
65710 2008-10-24  Bruno Haible  <bruno@clisp.org>
65712         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
65713         Eggert.
65714         * modules/strerror (License): Likewise.
65716 2008-10-24  Jim Meyering  <meyering@redhat.com>
65718         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
65719         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
65721 2008-10-24  Eric Blake  <ebb9@byu.net>
65723         getgroups: fix compilation when getgroups is available
65724         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
65725         but with <config.h> override of getgroups disabled.
65727 2008-10-24  Simon Josefsson  <simon@josefsson.org>
65729         * doc/gnulib.texi (Header files): Add note about C++ problems.
65730         Explained by Bruno Haible <bruno@clisp.org>.
65732 2008-10-23  Bruno Haible  <bruno@clisp.org>
65734         Define a dummy SA_NODEFER macro on Interix.
65735         * lib/signal.in.h (SA_NODEFER): Define fallback.
65736         Reported by Aleksey Cheusov <cheusov@tut.by> via
65737         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
65739 2008-10-23  Bruno Haible  <bruno@clisp.org>
65741         * modules/freadahead (License): Change to LGPLv2+.
65742         Suggested by Simon Josefsson.
65744 2008-10-23  Jim Meyering  <meyering@redhat.com>
65746         random_r: new module
65747         * modules/random_r: New file.
65748         * m4/random_r.m4: New file.
65749         * lib/random_r.c: New file, from glibc.
65750         * modules/random_r-tests: New file.
65751         * tests/test-random_r.c: New file.
65752         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
65753          Declare.
65754         (RAND_MAX): Define.
65755         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
65756         * modules/stdlib: Substitute them, too.
65757         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
65758         * doc/glibc-functions/initstate_r.texi: Mention the new module.
65759         * doc/glibc-functions/random_r.texi: Likewise.
65760         * doc/glibc-functions/setstate_r.texi: Likewise.
65761         * doc/glibc-functions/srandom_r.texi: Likewise.
65762         * config/srclist.txt: Mention it.
65764 2008-10-23  David Lutterkort  <lutter@redhat.com>
65766         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
65767         link requirement
65769 2008-10-23  Jim Meyering  <meyering@redhat.com>
65771         selinux-h: mark parameters of stub functions as intentionally unused
65772         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
65773         * lib/se-context.in.h: Likewise.
65775 2008-10-22  Simon Josefsson  <simon@josefsson.org>
65777         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
65779 2008-10-22  Simon Josefsson  <simon@josefsson.org>
65781         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
65783 2008-10-22  Eric Blake  <ebb9@byu.net>
65785         glthread/thread: avoid compiler warning
65786         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
65787         Add unreachable abort to silence compiler.
65789 2008-10-22  Eric Blake  <ebb9@byu.net>
65791         netdb: also supply struct addrinfo for cygwin 1.5.x
65792         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
65793         older cygwin.
65794         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
65795         cygwin.
65796         * doc/posix-headers/netdb.texi (netdb.h): Document this.
65798 2008-10-22  Bruno Haible  <bruno@clisp.org>
65800         * users.txt: Update entry about pspp.
65802 2008-10-21  Bruno Haible  <bruno@clisp.org>
65804         Simplification.
65805         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
65806         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
65808         Simplification.
65809         * lib/ioctl.c (ioctl): Don't undefine.
65810         * lib/socket.c (socket): Don't undefine.
65812         Remove unused module indicator macros.
65813         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
65814         GNULIB_$1 as a C macro.
65816         * doc/posix-functions/close.texi: Undo last change.
65817         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
65818         Windows platforms.
65820 2008-10-21  Bruno Haible  <bruno@clisp.org>
65822         Add gethostname() declaration to <unistd.h>.
65823         * lib/unistd.in.h (gethostname): New declaration.
65824         * lib/gethostname.c: Include <unistd.h>.
65825         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
65826         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
65827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
65828         and HAVE_GETHOSTNAME.
65829         * modules/gethostname (Depends-on): Add unistd.
65830         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65831         (Include): Specify <unistd.h>.
65832         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
65833         HAVE_GETHOSTNAME.
65834         * tests/test-gethostname.c: Include <unistd.h> first.
65836 2008-10-21  Bruno Haible  <bruno@clisp.org>
65838         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
65839         * modules/select-tests (Depends-on): Likewise.
65840         Reported by Simon Josefsson.
65842 2008-10-21  Simon Josefsson  <simon@josefsson.org>
65844         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
65845         * lib/accept.c: New file, based on winsock.c.
65846         * lib/bind.c: New file, based on winsock.c.
65847         * lib/connect.c: New file, based on winsock.c.
65848         * lib/getpeername.c: New file, based on winsock.c.
65849         * lib/getsockname.c: New file, based on winsock.c.
65850         * lib/getsockopt.c: New file, based on winsock.c.
65851         * lib/ioctl.c: New file, based on winsock.c.
65852         * lib/listen.c: New file, based on winsock.c.
65853         * lib/recv.c: New file, based on winsock.c.
65854         * lib/recvfrom.c: New file, based on winsock.c.
65855         * lib/send.c: New file, based on winsock.c.
65856         * lib/sendto.c: New file, based on winsock.c.
65857         * lib/setsockopt.c: New file, based on winsock.c.
65858         * lib/shutdown.c: New file, based on winsock.c.
65859         * lib/socket.c: New file, based on winsock.c.
65860         * lib/w32sock.h: New file, based on winsock.c.
65861         * lib/winsock.c: Remove file.
65862         * modules/accept: Likewise.
65863         * modules/bind: Likewise.
65864         * modules/connect: Likewise.
65865         * modules/getpeername: Likewise.
65866         * modules/getsockname: Likewise.
65867         * modules/getsockopt: Likewise.
65868         * modules/ioctl: Likewise.
65869         * modules/listen: Likewise.
65870         * modules/recv: Likewise.
65871         * modules/recvfrom: Likewise.
65872         * modules/send: Likewise.
65873         * modules/sendto: Likewise.
65874         * modules/setsockopt: Likewise.
65875         * modules/shutdown: Likewise.
65876         * modules/socket: Use socket.c instead of winsock.c.
65877         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
65878         * doc/posix-functions/accept.texi: Doc fix.
65879         * doc/posix-functions/bind.texi: Doc fix.
65880         * doc/posix-functions/close.texi: Doc fix.
65881         * doc/posix-functions/connect.texi: Doc fix.
65882         * doc/posix-functions/getpeername.texi: Doc fix.
65883         * doc/posix-functions/getsockname.texi: Doc fix.
65884         * doc/posix-functions/getsockopt.texi: Doc fix.
65885         * doc/posix-functions/ioctl.texi: Doc fix.
65886         * doc/posix-functions/listen.texi: Doc fix.
65887         * doc/posix-functions/recv.texi: Doc fix.
65888         * doc/posix-functions/recvfrom.texi: Doc fix.
65889         * doc/posix-functions/send.texi: Doc fix.
65890         * doc/posix-functions/sendto.texi: Doc fix.
65891         * doc/posix-functions/setsockopt.texi: Doc fix.
65892         * doc/posix-functions/shutdown.texi: Doc fix.
65893         * doc/posix-functions/socket.texi: Doc fix.
65895 2008-10-20  Bruno Haible  <bruno@clisp.org>
65897         Take into account the role of SIGABRT_COMPAT on Windows 2008.
65898         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
65899         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
65900         as an alias for SIGABRT.
65901         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
65902         (sigaction): Map it to SIGABRT.
65903         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
65905 2008-10-20  Bruno Haible  <bruno@clisp.org>
65907         * lib/fts.c: Don't include lstat.h.
65908         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
65910         Move the lstat() declaration to <sys/stat.h>.
65911         * lib/lstat.h: Remove file.
65912         * lib/sys_stat.in.h: Add special invocation convention.
65913         (lstat): New declaration.
65914         * lib/lstat.c (orig_lstat): New function.
65915         (rpl_lstat): Use orig_lstat instead of lstat.
65916         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
65917         AC_C_INLINE. Set REPLACE_LSTAT.
65918         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
65919         and REPLACE_LSTAT.
65920         * modules/lstat (Files): Remove lib/lstat.h.
65921         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
65922         (Include): Specify <sys/stat.h> instead of lstat.h.
65923         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
65924         REPLACE_LSTAT.
65925         * NEWS: Mention the change.
65927 2008-10-20  Bruno Haible  <bruno@clisp.org>
65929         * modules/posix_spawn-tests: New file.
65930         * tests/test-posix_spawn3.c: New file.
65932 2008-10-20  Bruno Haible  <bruno@clisp.org>
65934         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
65935         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
65936         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
65937         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
65938         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
65940 2008-10-20  Bruno Haible  <bruno@clisp.org>
65942         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
65943         of posix_spawn on AIX 5.3.
65945 2008-10-20  Bruno Haible  <bruno@clisp.org>
65947         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
65949 2008-10-20  Bruno Haible  <bruno@clisp.org>
65951         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
65952         of AC_LANG_PROGRAM.
65954 2008-10-20  Simon Josefsson  <simon@josefsson.org>
65956         * lib/netdb.in.h: Don't define GNU specific constants until they
65957         are supported or needed.  Reported by Bruno Haible
65958         <bruno@clisp.org>.
65960 2008-10-20  Simon Josefsson  <simon@josefsson.org>
65962         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
65964 2008-10-20  Simon Josefsson  <simon@josefsson.org>
65966         * lib/getaddrinfo.h: Remove file.
65967         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
65968         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
65969         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
65970         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
65971         * modules/netdb: Substitute GNULIB_GETADDRINFO.
65972         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
65973         * tests/test-getaddrinfo.c: Likewise.
65974         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
65975         * NEWS: Mention change.
65977 2008-10-19  Bruno Haible  <bruno@clisp.org>
65979         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
65981 2008-10-19  Bruno Haible  <bruno@clisp.org>
65983         * lib/wait-process.c: Include simply <sys/wait.h>.
65984         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
65985         WIFSTOPPED): Remove fallback definitions.
65986         * modules/wait-process (Depends-on): Add sys_wait.
65988         New module 'sys_wait'.
65989         * modules/sys_wait: New file.
65990         * lib/sys_wait.in.h: New file, partially copied from
65991         lib/wait-process.c.
65992         * m4/sys_wait_h.m4: New file.
65993         * doc/posix-headers/sys_wait.texi: Mention the new module.
65995 2008-10-19  Bruno Haible  <bruno@clisp.org>
65997         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
65999 2008-10-19  Bruno Haible  <bruno@clisp.org>
66001         Assume that waitpid() fills an 'int' status, not a 'union wait'.
66002         * lib/wait-process.c (WAIT_T): Remove type.
66003         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
66004         (wait_subprocess): Update.
66006 2008-10-19  Bruno Haible  <bruno@clisp.org>
66008         New module 'atoll'.
66009         * modules/atoll: New file.
66010         * lib/stdlib.in.h (atoll): New declaration.
66011         * lib/atoll.c: New file, from glibc with modifications.
66012         * m4/atoll.m4: New file.
66013         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
66014         HAVE_ATOLL.
66015         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
66016         * doc/posix-functions/atoll.texi: Mention the new module.
66018 2008-10-19  Bruno Haible  <bruno@clisp.org>
66020         Add strtoull() declaration to <stdlib.h>.
66021         * lib/stdlib.in.h (strtoull): New declaration.
66022         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
66023         Set HAVE_STRTOULL.
66024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
66025         HAVE_STRTOULL.
66026         * modules/strtoull (Depends-on): Add stdlib.
66027         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66028         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
66029         HAVE_STRTOULL.
66031 2008-10-19  Bruno Haible  <bruno@clisp.org>
66033         Add strtoll() declaration to <stdlib.h>.
66034         * lib/stdlib.in.h (strtoll): New declaration.
66035         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
66036         Set HAVE_STRTOLL.
66037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
66038         HAVE_STRTOLL.
66039         * modules/strtoll (Depends-on): Add stdlib.
66040         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66041         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
66043 2008-10-19  Bruno Haible  <bruno@clisp.org>
66045         * modules/bcopy (Depends-on): Add strings.
66046         (Include): Specify <strings.h>.
66048 2008-10-19  Bruno Haible  <bruno@clisp.org>
66050         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
66052 2008-10-19  Bruno Haible  <bruno@clisp.org>
66054         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
66055         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
66056         mingw.
66058 2008-10-19  Bruno Haible  <bruno@clisp.org>
66060         * lib/atanl.c: Don't include isnanl.h.
66061         * lib/cosl.c: Likewise.
66062         * lib/ldexpl.c: Likewise.
66063         * lib/logl.c: Likewise.
66064         * lib/sinl.c: Likewise.
66065         * lib/sqrtl.c: Likewise.
66066         * lib/tanl.c: Likewise.
66068         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
66069         * lib/isnanf.h: Remove file.
66070         * lib/isnand.h: Remove file.
66071         * lib/isnanl.h: Remove file.
66072         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
66073         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
66074         macros.
66075         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
66076         HAVE_ISNANF, don't define it as a C macro.
66077         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
66078         HAVE_ISNAND, don't define it as a C macro.
66079         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
66080         HAVE_ISNANL, don't define it as a C macro.
66081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
66082         HAVE_ISNAN[FDL].
66083         * modules/isnanf (Files): Remove lib/isnanf.h.
66084         (Depends-on): Add math.
66085         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
66086         (Include): Specify <math.h> instead of isnanf.h.
66087         * modules/isnand (Files): Remove lib/isnand.h.
66088         (Depends-on): Add math.
66089         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
66090         (Include): Specify <math.h> instead of isnand.h.
66091         * modules/isnanl (Files): Remove lib/isnanl.h.
66092         (Depends-on): Add math.
66093         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
66094         (Include): Specify <math.h> instead of isnanl.h.
66095         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
66096         HAVE_ISNAN[FDL].
66097         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
66098         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
66099         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
66100         * NEWS: Mention the change.
66102 2008-10-18  Bruno Haible  <bruno@clisp.org>
66104         Add getusershell(), setusershell(), endusershell() declarations to
66105         <unistd.h>.
66106         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
66107         declarations.
66108         * lib/getusershell.c: Include unistd.h.
66109         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
66110         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
66111         HAVE_GETUSERSHELL.
66112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
66113         and HAVE_GETUSERSHELL.
66114         * modules/getusershell (Depends-on): Add unistd, extensions.
66115         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66116         (Include): Specify <unistd.h>.
66117         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
66118         HAVE_GETUSERSHELL.
66120 2008-10-18  Bruno Haible  <bruno@clisp.org>
66122         Add a getloadavg() declaration to <stdlib.h>.
66123         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
66124         getloadavg declaration.
66125         (getloadavg): New declaration.
66126         * lib/getloadavg.c: Include <stdlib.h> first.
66127         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
66128         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
66129         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
66130         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
66131         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
66132         * modules/getloadavg (Depends-on): Add stdlib, extensions.
66133         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
66134         (Include): Specify <stdlib.h>.
66135         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
66136         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
66138 2008-10-18  Bruno Haible  <bruno@clisp.org>
66140         * lib/dirchownmod.c: Don't include lchmod.h.
66142         Move the lchmod() declaration to <sys/stat.h>.
66143         * lib/lchmod.h: Remove file.
66144         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
66145         (lchmod): New declaration, moved here from lib/lchown.h.
66146         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
66147         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
66148         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
66149         and HAVE_LCHMOD.
66150         * modules/lchmod (Files): Remove lib/lchmod.h.
66151         (Depends-on): Add sys_stat, extensions.
66152         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
66153         (Include): Specify <sys/stat.h> instead of lchmod.h.
66154         * modules/sys_stat (Depends-on): Add link-warning.
66155         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
66156         definition of GL_LINK_WARNING.
66157         * NEWS: Mention the change.
66159 2008-10-18  Bruno Haible  <bruno@clisp.org>
66161         * lib/fchdir.c: Don't include dirfd.h.
66162         * lib/fts.c: Likewise.
66163         * lib/getcwd.c: Likewise.
66164         * lib/glob.c: Likewise.
66166         Move the dirfd() declaration to <dirent.h>.
66167         * lib/dirfd.h: Remove file.
66168         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
66169         (dirfd): New declaration.
66170         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
66171         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
66172         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
66173         HAVE_DECL_DIRFD.
66174         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
66175         HAVE_DECL_DIRFD.
66176         * modules/dirfd (Files): Remove lib/dirfd.h.
66177         (Depends-on): Add dirent, extensions.
66178         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
66179         (Include): Specify <dirent.h> instead of dirfd.h.
66180         * modules/dirent (Depends-on): Add link-warning.
66181         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
66182         definition of GL_LINK_WARNING.
66183         * NEWS: Mention the change.
66185 2008-10-18  Bruno Haible  <bruno@clisp.org>
66187         Move the euidaccess() declaration to <unistd.h>.
66188         * lib/euidaccess.h: Remove file.
66189         * lib/unistd.in.h (euidaccess): New declaration.
66190         * lib/euidaccess.c: Don't include euidaccess.h.
66191         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
66192         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
66193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
66194         and HAVE_EUIDACCESS.
66195         * modules/euidaccess (Files): Remove lib/euidaccess.h.
66196         (Depends-on): Add unistd.
66197         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66198         (Include): Specify <unistd.h> instead of euidaccess.h.
66199         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
66200         HAVE_EUIDACCESS.
66201         * NEWS: Mention the change.
66203 2008-10-18  Bruno Haible  <bruno@clisp.org>
66205         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
66207         Move the getdomainname() declaration to <unistd.h>.
66208         * lib/getdomainname.h: Remove file.
66209         * lib/unistd.in.h (getdomainname): New declaration.
66210         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
66211         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
66212         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
66213         HAVE_GETDOMAINNAME.
66214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66215         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
66216         * modules/getdomainname (Files): Remove lib/getdomainname.h.
66217         (Depends-on): Add unistd, extensions.
66218         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
66219         (Includes): Specify <unistd.h> instead of getdomainname.h.
66220         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
66221         HAVE_GETDOMAINNAME.
66222         * NEWS: Mention the change.
66224 2008-10-18  Bruno Haible  <bruno@clisp.org>
66226         * modules/dirent: New file.
66227         * m4/dirent_h.m4: New file.
66228         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
66229         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
66230         * modules/fchdir (Files): Remove lib/dirent.in.h.
66231         (Depends-on): Add dirent.
66232         (Makefile.am): Move rules to modules/dirent.
66233         * doc/posix-headers/dirent.texi: Mention the new module.
66235 2008-10-18  Bruno Haible  <bruno@clisp.org>
66237         Avoid -Wunused-parameter warnings in public gnulib header files.
66238         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
66239         macro.
66240         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
66242 2008-10-18  Bruno Haible  <bruno@clisp.org>
66244         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
66245         * doc/glibc-functions/error.texi: Mention the module 'error'.
66246         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
66247         * doc/glibc-functions/getdomainname.texi: Mention the module
66248         'getdomainname'.
66249         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
66250         * doc/glibc-functions/getpagesize.texi: Mention the module
66251         'getpagesize'.
66252         * doc/glibc-functions/getusershell.texi: Mention the module
66253         'getusershell'.
66254         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
66255         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
66256         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
66257         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
66258         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
66259         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
66260         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
66261         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
66262         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
66263         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
66264         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
66265         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
66266         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
66267         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
66269 2008-10-17  Bruno Haible  <bruno@clisp.org>
66271         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
66272         HP-UX and IRIX, use -0.0L.
66273         * tests/test-ceill.c (minus_zero): Likewise.
66274         * tests/test-floorl.c (minus_zero): Likewise.
66275         * tests/test-frexpl.c (minus_zero): Likewise.
66276         * tests/test-isnan.c (minus_zerol): Likewise.
66277         * tests/test-isnanl.h (minus_zero): Likewise.
66278         * tests/test-ldexpl.c (minus_zero): Likewise.
66279         * tests/test-roundl.c (minus_zero): Likewise.
66280         * tests/test-signbit.c (minus_zerol): Likewise.
66281         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
66282         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
66283         * tests/test-truncl.c (minus_zero): Likewise.
66284         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
66285         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
66286         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
66287         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
66289 2008-10-17  Bruno Haible  <bruno@clisp.org>
66291         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
66292         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
66293         that it gets activated only for gcc >= 3.0.
66294         * lib/dirent.in.h: Likewise.
66295         * lib/errno.in.h: Likewise.
66296         * lib/fcntl.in.h: Likewise.
66297         * lib/float.in.h: Likewise.
66298         * lib/iconv.in.h: Likewise.
66299         * lib/inttypes.in.h: Likewise.
66300         * lib/locale.in.h: Likewise.
66301         * lib/math.in.h: Likewise.
66302         * lib/netdb.in.h: Likewise.
66303         * lib/netinet_in.in.h: Likewise.
66304         * lib/search.in.h: Likewise.
66305         * lib/signal.in.h: Likewise.
66306         * lib/spawn.in.h: Likewise.
66307         * lib/stdarg.in.h: Likewise.
66308         * lib/stdint.in.h: Likewise.
66309         * lib/stdio.in.h: Likewise.
66310         * lib/stdlib.in.h: Likewise.
66311         * lib/string.in.h: Likewise.
66312         * lib/strings.in.h: Likewise.
66313         * lib/sys_file.in.h: Likewise.
66314         * lib/sys_ioctl.in.h: Likewise.
66315         * lib/sys_select.in.h: Likewise.
66316         * lib/sys_socket.in.h: Likewise.
66317         * lib/sys_stat.in.h: Likewise.
66318         * lib/sys_time.in.h: Likewise.
66319         * lib/sysexits.in.h: Likewise.
66320         * lib/time.in.h: Likewise.
66321         * lib/unistd.in.h: Likewise.
66322         * lib/wchar.in.h: Likewise.
66323         * lib/wctype.in.h: Likewise.
66324         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66326 2008-10-17  Jim Meyering  <meyering@redhat.com>
66328         ignore-value: don't depend on inline module
66329         * modules/ignore-value (Depends-on): Remove 'inline'.
66330         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
66331         Suggestion from Bruno Haible.
66333 2008-10-17  Bruno Haible  <bruno@clisp.org>
66335         New implementation of condition variables for Win32.
66336         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
66337         (gl_linked_waitqueue_t): New type.
66338         (gl_cond_t): Use it.
66339         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
66340         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
66341         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
66342         (glthread_cond_init_func, glthread_cond_wait_func,
66343         glthread_cond_timedwait_func, glthread_cond_signal_func,
66344         glthread_cond_broadcast_func, glthread_cond_destroy_func):
66345         Reimplemented on the basis of gl_linked_waitqueue_t.
66346         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
66347         gl_waitqueue_t.
66348         (gl_rwlock_t): Update.
66349         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
66351 2008-10-17  Simon Josefsson  <simon@josefsson.org>
66353         * modules/recvfrom (Depends-on): Add dependency on getpeername.
66354         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
66356 2008-10-17  Jim Meyering  <meyering@redhat.com>
66358         ignore-value: new module
66359         * modules/ignore-value: New file.
66360         * lib/ignore-value.h: New file.
66361         * MODULES.html.sh (Compiler warning management): New section,
66362         just for this module.  More to come.
66364 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66366         open-safer.c: avoid 'signed and unsigned in conditional...' warning
66367         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
66368         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
66370 2008-10-16  Jim Meyering  <meyering@redhat.com>
66372         openat-die.c: avoid 'no previous prototype' warning
66373         * lib/openat-die.c: Include "openat.h".
66374         Reported by Reuben Thomas <rrt@sc3d.org>.
66376 2008-10-16  Simon Josefsson  <simon@josefsson.org>
66378         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
66379         * lib/netdb.in.h: Fix typo.
66380         Reported by Bruno Haible  <bruno@clisp.org>
66382         * lib/netdb.in.h: Include sys/socket.h for platforms without
66383         netdb.h, to get structures like hostent on MinGW.
66384         * modules/netdb (Depends-on): Add sys_socket.
66386 2008-10-15  Simon Josefsson  <simon@josefsson.org>
66388         * modules/netdb, modules/netdb-tests: New file.
66389         * m4/netdb_h.m4: New file.
66390         * lib/netdb.in.h: Add, currently just an empty file pending
66391         definitions.
66392         * tests/test-netdb.c: New file.
66393         * doc/posix-headers/netdb.texi: Mention that we replace it if
66394         needed.
66395         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66396         netdb.
66398 2008-10-15  Simon Josefsson  <simon@josefsson.org>
66400         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
66401         with code.
66403 2008-10-13  Bruno Haible  <bruno@clisp.org>
66405         * lib/glthread/cond.c (glthread_cond_wait_func,
66406         glthread_cond_timedwait_func): Add a comment.
66408 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66410         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
66411         * tests/test-select.c: Likewise,
66413 2008-10-13  Bruno Haible  <bruno@clisp.org>
66415         * lib/glthread/cond.c (glthread_cond_wait_func,
66416         glthread_cond_timedwait_func): Fix variable name.
66417         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
66419 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
66421         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
66422         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
66423         struct sockaddr.sa_len.
66424         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
66426 2008-10-13  Simon Josefsson  <simon@josefsson.org>
66428         * build-aux/pmccabe2html: Add css and css_url parameters.
66430 2008-10-12  Bruno Haible  <bruno@clisp.org>
66432         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
66433         calling aclx_get.
66434         Reported by Rainer Tammer <tammer@tammer.net>.
66436 2008-10-12  Bruno Haible  <bruno@clisp.org>
66438         Use msvcrt aware primitives for creation/termination of Win32 threads.
66439         * lib/glthread/thread.c: Include <process.h>.
66440         (glthread_create_func): Use _beginthreadex instead of CreateThread.
66441         (wrapper_func): Update signature.
66442         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
66444 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66445             Bruno Haible  <bruno@clisp.org>
66447         Provide a Win32 implementation of the 'cond' module.
66448         * lib/glthread/cond.h [USE_WIN32]: New implementation.
66449         * lib/glthread/cond.c (glthread_cond_init_func,
66450         glthread_cond_wait_func, glthread_cond_timedwait_func,
66451         glthread_cond_signal_func, glthread_cond_broadcast_func,
66452         glthread_cond_destroy_func) [USE_WIN32]: New functions.
66453         * modules/cond (Dependencies): Add gettimeofday.
66455 2008-10-11  Bruno Haible  <bruno@clisp.org>
66457         Make sleep work on older versions of mingw.
66458         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
66459         only whether it exists.
66460         * doc/posix-functions/sleep.texi: Mention the problem with older
66461         versions of mingw.
66463 2008-10-11  Bruno Haible  <bruno@clisp.org>
66465         New module 'shutdown'.
66466         * modules/shutdown: New file.
66467         * lib/sys_socket.in.h (shutdown): New declaration.
66468         * lib/winsock.c (shutdown): New function.
66469         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
66470         GNULIB_SHUTDOWN.
66471         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
66472         * doc/posix-functions/shutdown.texi: Document the new module.
66474 2008-10-11  Jim Meyering  <meyering@redhat.com>
66476         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
66478 2008-10-11  Bruno Haible  <bruno@clisp.org>
66480         New module 'fclose'.
66481         * modules/fclose: New file.
66482         * lib/stdio.in.h (fclose): New declaration.
66483         * lib/fclose.c: New file.
66484         * m4/fclose.m4: New file.
66485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
66486         REPLACE_FCLOSE.
66487         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
66488         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
66489         REPLACE_FCLOSE.
66490         * modules/close (Depends-on): fclose.
66491         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
66493 2008-10-11  Bruno Haible  <bruno@clisp.org>
66495         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
66496         set errno and don't call _close.
66498 2008-10-10  Bruno Haible  <bruno@clisp.org>
66500         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
66501         ACL, not afterwards. Fixes test failure on Cygwin.
66503 2008-10-09  Ben Pfaff  <blp@gnu.org>
66505         * build-aux/announce-gen: Fix gnulib version related part of usage
66506         message.  Die with a useful error message if no tarballs are
66507         found.
66509 2008-10-10  Jim Meyering  <meyering@redhat.com>
66511         bootstrap: use git's --depth=N option only if it's supported
66512         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
66513         recognize the --depth option.  Reported by Pádraig Brady.
66515 2008-10-09  Bruno Haible  <bruno@clisp.org>
66517         New module 'ioctl'.
66518         * modules/ioctl: New file.
66519         * lib/sys_socket.in.h (ioctl): Remove declaration.
66520         * lib/winsock.c: Include <sys/ioctl.h>.
66521         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
66522         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
66523         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
66524         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
66525         * doc/posix-functions/ioctl.texi: Mention the new module.
66527 2008-10-09  Bruno Haible  <bruno@clisp.org>
66529         New module 'sys_ioctl'.
66530         * lib/sys_ioctl.in.h: New file.
66531         * m4/sys_ioctl_h.m4: New file.
66532         * modules/sys_ioctl: New file.
66533         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
66535 2008-10-09  Bruno Haible  <bruno@clisp.org>
66537         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
66538         * lib/winsock.c: Include <stdarg.h>.
66539         (rpl_ioctl): Change to second argument 'int' and then varargs.
66541 2008-10-09  Bruno Haible  <bruno@clisp.org>
66543         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
66544         when the sys_socket module is present and the system has <winsock2.h>.
66546 2008-10-09  Bruno Haible  <bruno@clisp.org>
66548         * doc/posix-functions/close.texi: Mention module 'close' instead of
66549         module 'sys_socket'.
66551 2008-10-09  Bruno Haible  <bruno@clisp.org>
66553         * doc/glibc-headers/sys_ioctl.texi: New file.
66554         * doc/gnulib.texi: Include it.
66556 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
66557             Bruno Haible  <bruno@clisp.org>
66559         Combine the two replacements of 'close'.
66560         * lib/sys_socket.in.h (close): Define to a reminder to include
66561         <unistd.h>.
66562         (_gl_close_fd_maybe_socket): New declaration.
66563         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
66564         * lib/winsock.c (close): Remove undefinition.
66565         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
66566         needed for the gnulib module 'close'.
66567         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
66568         define to an error symbol or to a warning, if suitable.
66569         * lib/close.c: Include <sys/socket.h>.
66570         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
66571         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
66572         UNISTD_H_HAVE_WINSOCK2_H.
66573         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
66574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66575         UNISTD_H_HAVE_WINSOCK2_H.
66576         * modules/sys_socket (Files): Add m4/unistd_h.m4.
66577         (configure.ac): Set a module indicator.
66578         (Makefile.am): Substitute GNULIB_CLOSE.
66579         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
66580         * modules/poll-tests (Depends-on): Add close.
66581         * modules/select-tests (Depends-on): Likewise.
66583 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
66584             Bruno Haible  <bruno@clisp.org>
66586         New module 'close'.
66587         * modules/close: New file.
66588         * lib/unistd.in.h (close): Move declaration out of the
66589         FCHDIR_REPLACEMENT scope.
66590         (_gl_unregister_fd): New declaration.
66591         * lib/close.c: New file.
66592         * lib/fchdir.c (rpl_close): Remove function.
66593         * m4/close.m4: New file.
66594         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
66595         close.
66596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
66597         REPLACE_CLOSE.
66598         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
66599         REPLACE_CLOSE.
66600         * modules/fchdir (Depends-on): Add close.
66602 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
66603             Bruno Haible  <bruno@clisp.org>
66605         * lib/fcntl.in.h (open): Simplify conditionals.
66606         (_gl_register_fd): New declaration.
66607         * lib/fchdir.c (rpl_open): Remove function.
66608         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
66609         also.
66610         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
66611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
66612         open.
66614 2008-10-09  Jim Meyering  <meyering@redhat.com>
66616         GNUmakefile: use the more name-space-friendly "_version"
66617         * top/GNUmakefile (_dummy): Update.
66618         (_version): Rename from "version".
66620 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
66621             Bruno Haible  <bruno@clisp.org>
66623         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
66624         rpl_close.
66625         (_gl_register_fd): New function, extracted from rpl_open.
66626         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
66627         (rpl_open, rpl_opendir): Use _gl_register_fd.
66629 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
66631         Fix organization of 'open' replacement.
66632         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
66633         (gl_FUNC_OPEN): Use it.
66634         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
66636 2008-10-08  Bruno Haible  <bruno@clisp.org>
66638         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
66640 2008-10-08  Simon Josefsson  <simon@josefsson.org>
66642         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
66643         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
66644         listen).
66646 2008-10-08  Eric Blake  <ebb9@byu.net>
66648         GNUmakefile: add 'make version' target
66649         * top/GNUmakefile (_curr-ver): Split version update rules...
66650         (version): ...into a target.
66652 2008-10-07  Bruno Haible  <bruno@clisp.org>
66654         Use a more portable replacement expression for -0.0L.
66655         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
66656         instead of -0.0L. Fix m4 quotation.
66658         * tests/test-signbit.c: Include <float.h>.
66659         (minus_zero): New variable.
66660         (test_signbitl): Use minus_zero instead of -zero.
66661         * modules/signbit-tests (Depends-on): Add float.
66663         * tests/test-ceill.c: Include <float.h>.
66664         (zero): Remove variable.
66665         (minus_zero): New variable.
66666         (main): Use minus_zero instead of -zero.
66667         * modules/ceill-tests (Depends-on): Add float.
66669         * tests/test-floorl.c: Include <float.h>.
66670         (zero): Remove variable.
66671         (minus_zero): New variable.
66672         (main): Use minus_zero instead of -zero.
66673         * modules/floorl-tests (Depends-on): Add float.
66675         * tests/test-roundl.c: Include <float.h>.
66676         (zero): Remove variable.
66677         (minus_zero): New variable.
66678         (main): Use minus_zero instead of -zero.
66679         * modules/roundl-tests (Depends-on): Add float.
66681         * tests/test-truncl.c: Include <float.h>.
66682         (zero): Remove variable.
66683         (minus_zero): New variable.
66684         (main): Use minus_zero instead of -zero.
66685         * modules/truncl-tests (Depends-on): Add float.
66687         * tests/test-frexpl.c (zero): Remove variable.
66688         (minus_zero): New variable.
66689         (main): Use minus_zero instead of -zero.
66690         * modules/frexpl-tests (Depends-on): Add float.
66692         * tests/test-isnan.c (zerol): Remove variable.
66693         (minus_zerol): New variable.
66694         (test_long_double): Use minus_zerol instead of -zerol.
66695         * modules/isnan-tests (Depends-on): Add float.
66697         * tests/test-isnanl.h (zero): Remove variable.
66698         (minus_zero): New variable.
66699         (main): Use minus_zero instead of -zero.
66700         * modules/isnanl-nolibm-tests (Depends-on): Add float.
66701         * modules/isnanl-tests (Depends-on): Add float.
66703         * tests/test-ldexpl.c (zero): Remove variable.
66704         (minus_zero): New variable.
66705         (main): Use minus_zero instead of -zero.
66706         * modules/ldexpl-tests (Depends-on): Add float.
66708         * tests/test-snprintf-posix.h (zerol): Remove variable.
66709         (minus_zerol): New variable.
66710         (test_function): Use minus_zerol instead of -zerol.
66711         * modules/snprintf-posix-tests (Depends-on): Add float.
66712         * modules/vsnprintf-posix-tests (Depends-on): Add float.
66714         * tests/test-sprintf-posix.h (zerol): Remove variable.
66715         (minus_zerol): New variable.
66716         (test_function): Use minus_zerol instead of -zerol.
66717         * modules/sprintf-posix-tests (Depends-on): Add float.
66718         * modules/vsprintf-posix-tests (Depends-on): Add float.
66720         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
66721         (minus_zerol): New variable.
66722         (test_function): Use minus_zerol instead of -zerol.
66723         * modules/vasnprintf-posix-tests (Depends-on): Add float.
66725         * tests/test-vasprintf-posix.c (zerol): Remove variable.
66726         (minus_zerol): New variable.
66727         (test_function): Use minus_zerol instead of -zerol.
66728         * modules/vasprintf-posix-tests (Depends-on): Add float.
66730 2008-10-07  Simon Josefsson  <simon@josefsson.org>
66732         * MODULES.html.sh (Support for building documentation): Mention
66733         pmccabe2html.  Sort entries.
66735         Add pmccabe2html module, from gnupdf.
66736         * build-aux/pmccabe.css: New file.
66737         * build-aux/pmccabe2html: New file.
66738         * m4/pmccabe2html.m4: New file.
66739         * modules/pmccabe2html: New file.
66741 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
66743         flock: new module
66744         * MODULES.html.sh: Add to list of modules.
66745         * lib/flock.c: flock implementation for Windows and Unix systems
66746         which have fcntl.
66747         * doc/glibc-functions/flock.texi: Update documentation.
66748         * lib/sys_file.in.h: <sys/file.h> header file.
66749         * m4/flock.m4: M4 macros.
66750         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
66751         * modules/flock: flock module.
66752         * modules/flock-tests: flock tests module.
66753         * modules/sys_file: sys/file.h module.
66754         * tests/test-flock.c: test suite for flock.
66756 2008-10-06  Jim Meyering  <meyering@redhat.com>
66758         bootstrap: check for LT_INIT more portably still ;-)
66759         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
66760         Spotted by Bruno Haible.
66762 2008-10-06  Eric Blake  <ebb9@byu.net>
66764         test-signbit: avoid tripping Irix cc bug on -0.0L
66765         * tests/test-signbit.c (minus_zerol): Delete, and replace with
66766         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
66767         entire testsuite consistent and avoids an Irix 6.2 bug.
66769 2008-10-05  Bruno Haible  <bruno@clisp.org>
66770             Jim Meyering  <jim@meyering.net>
66772         Add an option for ignoring EPIPE during close_stdout.
66773         * lib/closeout.h: Include <stdbool.h>.
66774         (close_stdout_set_ignore_EPIPE): New declaration.
66775         * lib/closeout.c: Include <stdbool.h>.
66776         (ignore_EPIPE): New variable.
66777         (close_stdout_set_ignore_EPIPE): New function.
66778         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
66779         * lib/close-stream.c (close_stream): Mention the possible EPIPE
66780         failure.
66781         * modules/closeout (Depends-on): Add stdbool.
66783 2008-10-05  Bruno Haible  <bruno@clisp.org>
66785         * modules/accept: New file.
66786         * modules/bind: New file.
66787         * modules/connect: New file.
66788         * modules/getpeername: New file.
66789         * modules/getsockname: New file.
66790         * modules/getsockopt: New file.
66791         * modules/listen: New file.
66792         * modules/recv: New file.
66793         * modules/recvfrom: New file.
66794         * modules/send: New file.
66795         * modules/sendto: New file.
66796         * modules/setsockopt: New file.
66797         * modules/socket: New file.
66798         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
66799         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
66800         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
66801         the particular module is requested. Add a link warning when the
66802         particular module is not requested.
66803         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
66804         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
66805         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
66806         the particular module is requested.
66807         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
66808         gl_SYS_SOCKET_H_DEFAULTS): New macros.
66809         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
66810         * modules/sys_socket (Depends-on): Add link-warning.
66811         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
66812         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
66813         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
66814         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
66815         GL_LINK_WARNING.
66816         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
66817         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
66818         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
66819         * doc/posix-functions/getpeername.texi: Mention the new module
66820         'getpeername'.
66821         * doc/posix-functions/getsockname.texi: Mention the new module
66822         'getsockname'.
66823         * doc/posix-functions/getsockopt.texi: Mention the new module
66824         'getsockopt'.
66825         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
66826         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
66827         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
66828         * doc/posix-functions/send.texi: Mention the new module 'send'.
66829         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
66830         * doc/posix-functions/setsockopt.texi: Mention the new module
66831         'setsockopt'.
66832         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
66833         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
66834         listen, connect, accept.
66835         * modules/select-tests (Depends-on): Likewise.
66837 2008-10-05  Bruno Haible  <bruno@clisp.org>
66839         * lib/winsock.c (strerror): Remove unused #undef.
66840         (rpl_close): Remove unused local variable.
66842         * modules/sys_socket (Depends-on); Add errno.
66844 2008-10-05  Bruno Haible  <bruno@clisp.org>
66846         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
66847         (select): Add a link warning when the 'select' module is not used.
66848         * modules/sys_select (Depends-on): Add link-warning.
66849         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
66850         Suggested by Paolo Bonzini.
66852 2008-10-05  Jim Meyering  <meyering@redhat.com>
66854         bootstrap: check for LT_INIT more portably
66855         * build-aux/bootstrap: Avoid using grep -E, since it's not
66856         portable enough.  Suggestion from Bruno Haible.
66858 2008-10-05  Bruno Haible  <bruno@clisp.org>
66860         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
66861         as being fixed by gnulib.
66863 2008-10-05  Bruno Haible  <bruno@clisp.org>
66865         * modules/select-tests: New file, mostly copied from
66866         modules/sys_select-tests.
66867         * tests/test-select.c: New file, mostly copied from
66868         tests/test-sys_select.c.
66869         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
66870         * modules/sys_select-tests (Depends-on): Remove all dependencies.
66871         (Makefile.am): Remove test_sys_select_LDADD.
66873         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
66874         to an undefined symbol, for an error message.
66875         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
66876         (gl_SYS_SELECT_H_DEFAULTS): New macro.
66877         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
66878         winsock-select.c here.
66879         * modules/sys_select (Files): Remove lib/winsock-select.c.
66880         (Depends-on): Remove alloca.
66881         (Makefile.am): Substitute GNULIB_SELECT.
66882         * modules/select: New file.
66883         * doc/posix-functions/select.texi: Update.
66885 2008-10-05  Bruno Haible  <bruno@clisp.org>
66887         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
66888         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
66889         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
66890         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
66891         getdtablesize.
66892         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
66893         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
66895 2008-10-05  Bruno Haible  <bruno@clisp.org>
66897         * modules/getdtablesize-tests: New file.
66898         * tests/test-getdtablesize.c: New file.
66900         New module 'getdtablesize'.
66901         * lib/unistd.in.h (getdtablesize): New declaration.
66902         * lib/getdtablesize.c: New file.
66903         * m4/getdtablesize.m4: New file.
66904         * modules/getdtablesize: New file.
66905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66906         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
66907         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
66908         HAVE_GETDTABLESIZE.
66909         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
66911 2008-10-05  Bruno Haible  <bruno@clisp.org>
66913         * modules/sched (Makefile.am): Fix typo.
66914         Reported by Simon Josefsson.
66916 2008-10-05  Jim Meyering  <meyering@redhat.com>
66918         bootstrap: check for LT_INIT, too
66919         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
66920         are deprecated.  Suggestion from Ralf Wildenhues.
66922 2008-10-05  Bruno Haible  <bruno@clisp.org>
66924         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
66925         overriding them by ours.
66926         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
66928 2008-10-05  Jim Meyering  <meyering@redhat.com>
66930         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
66931         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
66932         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
66934 2008-10-04  Bruno Haible  <bruno@clisp.org>
66936         * modules/dup2 (License): Change to LGPLv2+.
66937         * modules/sleep (License): Likewise.
66938         * modules/perror (License): Likewise.
66939         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
66940         Blake.
66941         * modules/signal (License): Likewise.
66942         * modules/sigprocmask (License): Likewise.
66943         * modules/raise (License): Change to LGPLv2+, with approval by Jim
66944         Meyering.
66946 2008-10-04  Bruno Haible  <bruno@clisp.org>
66948         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
66949         Reported by Rainer Tammer <tammer@tammer.net>.
66951 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
66952             Bruno Haible  <bruno@clisp.org>
66954         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
66955         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
66956         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
66958 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
66960         filevercmp: new module
66961         * lib/filevercmp.h: New function filevercmp comparing version strings.
66962         * lib/filevercmp.c: Implementation of filevercmp function.
66963         * modules/filevercmp: Module metadata.
66964         * tests/test-filevercmp.c: Unit test for new module.
66965         * modules/filevercmp-tests: Unit test metadata.
66966         * MODULES.html.sh: Add filevercmp module.
66968 2008-10-03  Bruno Haible  <bruno@clisp.org>
66970         * lib/c-ctype.h: Add comment.
66971         Reported by Jim Meyering.
66973 2008-10-02  Bruno Haible  <bruno@clisp.org>
66975         * modules/posix_spawn-internal (Depends-on): Add 'open'.
66977 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
66979         * build-aux/bootstrap: Allow renaming bootstrap, and change the
66980         name of bootstrap.conf accordingly.
66982 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
66984         * build-aux/bootstrap: Install git-merge-changelog configuration
66985         items into .gitconfig if needed.
66987 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
66989         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
66990         git repository, and initialize/update it accordingly.
66992 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
66994         * modules/fsync-tests: New file.
66995         * tests/test-fsync.c: New file.
66997         New module 'fsync'.
66998         * lib/fsync.c: New file.
66999         * m4/fsync.m4: New file.
67000         * modules/fsync: New file.
67001         * lib/unistd.in.h (fsync): New declaration.
67002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
67003         GNULIB_FSYNC and HAVE_FSYNC.
67004         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
67005         * MODULES.html.sh (posix_functions): Add fsync.
67006         * doc/posix-functions/fsync.texi: Mention the new module.
67008 2008-10-02  Jim Meyering  <meyering@redhat.com>
67010         fts.c: sync with similar code from coreutils' remove.c
67011         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
67012         Guard also with "#if defined __linux__", since for now at least,
67013         this code is Linux-kernel-specific.
67015 2008-10-02  Jim Meyering  <meyering@redhat.com>
67017         fts: bug fixes
67018         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
67019         Include <sys/vfs.h>, not <sys/statfs.h>.
67021         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
67022         Include <sys/vfs.h>, not <sys/statfs.h>.
67024 2008-10-01  Bruno Haible  <bruno@clisp.org>
67026         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
67027         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
67028         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
67029         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
67030         * doc/posix-functions/posix_spawnp.texi: Likewise.
67031         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
67032         whether posix_spawn actually works.
67033         * m4/pipe.m4 (gl_PIPE): Likewise.
67034         * modules/execute (Files): Add m4/posix_spawn.m4.
67035         * modules/pipe (Files): Add m4/posix_spawn.m4.
67036         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
67038 2008-10-01  Jim Meyering  <meyering@redhat.com>
67040         remove trailing spaces
67041         * NEWS: Likewise.
67042         * lib/poll.c (poll): Likewise.
67043         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
67044         * lib/winsock.c (rpl_close): Likewise.
67045         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
67046         * modules/yield: Likewise.
67047         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
67048         * tests/test-sys_select.c (connect_to_socket): Likewise.
67050         fts.c: adjust a new interface to be more generally useful
67051         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
67052         (fts_build): Adjust caller.
67054 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67056         * modules/cond-tests: New file.
67057         * tests/test-cond.c: New file.
67059 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67060             Bruno Haible  <bruno@clisp.org>
67062         * modules/cond (Dependencies): Add errno, time.
67063         * lib/glthread/cond.h: Include <time.h>.
67064         (gl_cond_define, gl_cond_define_initialized): Use the same definition
67065         across platforms.
67067 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67068             Bruno Haible  <bruno@clisp.org>
67070         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
67072 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67073             Bruno Haible  <bruno@clisp.org>
67075         * modules/tls-tests (Depends-on): Add thread, yield.
67076         (configure.ac): Remove all checks.
67077         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
67078         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
67079         gl_thread_self): Remove definitions. Include glthread/thread.h and
67080         glthread/yield.h instead.
67081         (test_tls): Pass an additional NULL argument to gl_thread_join.
67083 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67084             Bruno Haible  <bruno@clisp.org>
67086         * modules/lock-tests (Depends-on): Add thread, yield.
67087         (configure.ac): Remove all checks.
67088         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
67089         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
67090         gl_thread_self): Remove definitions. Include glthread/thread.h and
67091         glthread/yield.h instead.
67092         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
67093         additional NULL argument to gl_thread_join.
67095 2008-09-30  Bruno Haible  <bruno@clisp.org>
67097         Fix the Win32 implementation of the 'thread' module.
67098         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
67099         pointer type.
67100         (gl_thread_self): Invoke gl_thread_self_func.
67101         (gl_thread_self_func): New declaration.
67102         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
67103         (do_init_self_key, init_self_key): New functions.
67104         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
67105         Remove some fields.
67106         (running_threads, running_lock): Remove variables.
67107         (get_current_thread_handle): New function.
67108         (gl_thread_self_func, wrapper_func, glthread_create_func,
67109         glthread_join_func, gl_thread_exit_func): Largely rewritten and
67110         simplified.
67112 2008-09-30  Bruno Haible  <bruno@clisp.org>
67114         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
67115         files.
67117 2008-09-30  Jim Meyering  <meyering@redhat.com>
67119         fts.m4: correct the test for statfs.f_type
67120         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
67121         when checking for statfs.f_type.
67123 2008-09-15  Simon Josefsson  <simon@josefsson.org>
67125         tests: avoid some compiler warnings
67126         * tests/test-memchr.c (main): Pass NULL indirectly.
67127         * tests/test-getdate.c (main): Remove unused variable 'ret'.
67129 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
67131         getdate.y: disallow countable dayshifts like "4 yesterday ago"
67132         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
67133         exactly specified dayshifts.
67134         (dayshift): New rule.
67135         (rel): Add dayshift.
67136         (relative_time_table) [tomorrow, yesterday, today, now]:
67137         Use tDAY_SHIFT in place of tDAY_UNIT.
67138         * tests/test-getdate.c: Add tests for now-disallowed countable
67139         dayshifts, e.g., "4 yesterday ago".
67141 2008-09-29  Bruno Haible  <bruno@clisp.org>
67143         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
67144         * tests/test-posix_spawn1.in.sh: Renamed from
67145         tests/test-posix_spawn.in.sh.
67146         * tests/test-posix_spawn2.c: New file.
67147         * tests/test-posix_spawn2.in.sh: New file.
67148         * modules/posix_spawnp-tests (Files): Update.
67149         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
67151 2008-09-29  Bruno Haible  <bruno@clisp.org>
67153         Propagate effects of putenv/setenv/unsetenv to child processes.
67154         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
67155         * lib/pipe.c (create_pipe): Likewise.
67157 2008-09-29  Bruno Haible  <bruno@clisp.org>
67159         Enable use of shell scripts as executables in mingw.
67160         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
67161         run the program as a shell script.
67162         * lib/pipe.c (create_pipe): Likewise.
67163         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
67164         resulting array.
67166 2008-09-29  Eric Blake  <ebb9@byu.net>
67168         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
67170 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
67172         * doc/posix-functions/accept.texi: Update mingw problems.
67173         * doc/posix-functions/bind.texi: Update mingw problems.
67174         * doc/posix-functions/close.texi: Update mingw problems.
67175         * doc/posix-functions/connect.texi: Update mingw problems.
67176         * doc/posix-functions/getpeername.texi: Update mingw problems.
67177         * doc/posix-functions/getsockname.texi: Update mingw problems.
67178         * doc/posix-functions/getsockopt.texi: Update mingw problems.
67179         * doc/posix-functions/ioctl.texi: Update mingw problems.
67180         * doc/posix-functions/listen.texi: Update mingw problems.
67181         * doc/posix-functions/recv.texi: Update mingw problems.
67182         * doc/posix-functions/recvfrom.texi: Update mingw problems.
67183         * doc/posix-functions/select.texi: Update mingw problems.
67184         * doc/posix-functions/send.texi: Update mingw problems.
67185         * doc/posix-functions/sendto.texi: Update mingw problems.
67186         * doc/posix-functions/setsockopt.texi: Update mingw problems.
67187         * doc/posix-functions/socket.texi: Update mingw problems.
67189 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
67190             Bruno Haible  <bruno@clisp.org>
67192         * lib/sys_select.in.h: Include sys/time.h.
67193         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
67194         * modules/sys_select: Depend on sys_time.
67195         * tests/test-sys_select.c: Test that sys/select.h defines struct
67196         timeval fully.
67198 2008-09-29  Bruno Haible  <bruno@clisp.org>
67200         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
67201         * lib/sys_select.in.h: Likewise.
67203 2008-09-29  Bruno Haible  <bruno@clisp.org>
67205         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
67207 2008-09-29  Bruno Haible  <bruno@clisp.org>
67209         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
67210         Set LIBSOCKET instead of augmenting LIBS.
67211         * modules/sockets (Link): New section.
67212         * modules/sockets-tests (test_sockets_LDADD): New variable.
67213         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
67214         * modules/poll-tests (test_poll_LDADD): New variable.
67215         * NEWS: Document the change.
67217 2008-09-29  Bruno Haible  <bruno@clisp.org>
67219         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
67220         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
67221         ARPA_INET_H directly.
67222         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
67224 2008-09-28  Bruno Haible  <bruno@clisp.org>
67226         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
67227         from gl_HEADER_SYS_SOCKET.
67228         (gl_HEADER_SYS_SOCKET): Invoke it.
67229         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67231 2008-09-28  Bruno Haible  <bruno@clisp.org>
67233         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
67234         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
67235         Needed on OSF/1 4.0.
67237 2008-09-28  Bruno Haible  <bruno@clisp.org>
67239         Override open more carefully.
67240         * lib/open.c (orig_open): New function.
67241         (rpl_open): Use orig_open instead of open.
67242         * lib/fcntl.in.h: Add special invocation convention.
67243         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
67244         (gl_FUNC_OPEN): Invoke it.
67246         Override freopen more carefully.
67247         * lib/freopen.c (orig_freopen): New function.
67248         (rpl_freopen): Use orig_freopen instead of freopen.
67249         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
67250         (gl_FUNC_FREOPEN): Invoke it.
67252         Override fopen more carefully.
67253         * lib/fopen.c (orig_fopen): New function.
67254         (rpl_fopen): Use orig_fopen instead of fopen.
67255         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
67256         (gl_FUNC_FOPEN): Invoke it.
67257         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
67259 2008-09-28  Bruno Haible  <bruno@clisp.org>
67261         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
67262         SIGPIPE.
67264 2008-09-28  Bruno Haible  <bruno@clisp.org>
67266         * tests/test-sigaction.c (handler, main): Disable the check whether
67267         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
67268         glibc systems with LinuxThreads.
67270 2008-09-28  Bruno Haible  <bruno@clisp.org>
67272         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
67274         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
67275         with AIX xlc.
67276         * lib/fcntl.in.h (open): Likewise.
67277         Reported by Rainer Tammer <tammer@tammer.net>.
67279 2008-09-28  Bruno Haible  <bruno@clisp.org>
67281         * modules/posix_spawnp-tests: New file.
67282         * tests/test-posix_spawn.c: New file.
67283         * tests/test-posix_spawn.in.sh: New file.
67285         New module 'posix_spawnp'.
67286         * modules/posix_spawnp: New file.
67287         * lib/spawnp.c: New file, from GNU libc with modifications.
67288         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
67290         New module 'posix_spawn'.
67291         * modules/posix_spawn: New file.
67292         * lib/spawn.c: New file, from GNU libc with modifications.
67293         * doc/posix-functions/posix_spawn.texi: Mention the new module.
67295         New module 'posix_spawnattr_destroy'.
67296         * modules/posix_spawnattr_destroy: New file.
67297         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
67298         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
67299         module.
67301         New module 'posix_spawnattr_setsigmask'.
67302         * modules/posix_spawnattr_setsigmask: New file.
67303         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
67304         modifications.
67305         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
67306         new module.
67308         New module 'posix_spawnattr_getsigmask'.
67309         * modules/posix_spawnattr_getsigmask: New file.
67310         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
67311         modifications.
67312         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
67313         new module.
67315         New module 'posix_spawnattr_setsigdefault'.
67316         * modules/posix_spawnattr_setsigdefault: New file.
67317         * lib/spawnattr_setdefault.c: New file, from GNU libc with
67318         modifications.
67319         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
67320         new module.
67322         New module 'posix_spawnattr_getsigdefault'.
67323         * modules/posix_spawnattr_getsigdefault: New file.
67324         * lib/spawnattr_getdefault.c: New file, from GNU libc with
67325         modifications.
67326         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
67327         new module.
67329         New module 'posix_spawnattr_setschedpolicy'.
67330         * modules/posix_spawnattr_setschedpolicy: New file.
67331         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
67332         modifications.
67333         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
67334         new module.
67336         New module 'posix_spawnattr_getschedpolicy'.
67337         * modules/posix_spawnattr_getschedpolicy: New file.
67338         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
67339         modifications.
67340         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
67341         new module.
67343         New module 'posix_spawnattr_setschedparam'.
67344         * modules/posix_spawnattr_setschedparam: New file.
67345         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
67346         modifications.
67347         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
67348         new module.
67350         New module 'posix_spawnattr_getschedparam'.
67351         * modules/posix_spawnattr_getschedparam: New file.
67352         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
67353         modifications.
67354         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
67355         new module.
67357         New module 'posix_spawnattr_setpgroup'.
67358         * modules/posix_spawnattr_setpgroup: New file.
67359         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
67360         modifications.
67361         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
67362         module.
67364         New module 'posix_spawnattr_getpgroup'.
67365         * modules/posix_spawnattr_getpgroup: New file.
67366         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
67367         modifications.
67368         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
67369         module.
67371         New module 'posix_spawnattr_setflags'.
67372         * modules/posix_spawnattr_setflags: New file.
67373         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
67374         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
67375         module.
67377         New module 'posix_spawnattr_getflags'.
67378         * modules/posix_spawnattr_getflags: New file.
67379         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
67380         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
67381         module.
67383         New module 'posix_spawnattr_init'.
67384         * modules/posix_spawnattr_init: New file.
67385         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
67386         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
67387         module.
67389         New module 'posix_spawn_file_actions_destroy'.
67390         * modules/posix_spawn_file_actions_destroy: New file.
67391         * lib/spawn_faction_destroy.c: New file, from GNU libc with
67392         modifications.
67393         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
67394         the new module.
67396         New module 'posix_spawn_file_actions_addopen'.
67397         * modules/posix_spawn_file_actions_addopen: New file.
67398         * lib/spawn_faction_addopen.c: New file, from GNU libc with
67399         modifications.
67400         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
67401         the new module.
67403         New module 'posix_spawn_file_actions_adddup2'.
67404         * modules/posix_spawn_file_actions_adddup2: New file.
67405         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
67406         modifications.
67407         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
67408         the new module.
67410         New module 'posix_spawn_file_actions_addclose'.
67411         * modules/posix_spawn_file_actions_addclose: New file.
67412         * lib/spawn_faction_addclose.c: New file, from GNU libc with
67413         modifications.
67414         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
67415         the new module.
67417         New module 'posix_spawn_file_actions_init'.
67418         * modules/posix_spawn_file_actions_init: New file.
67419         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
67420         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
67421         new module.
67423         New module 'posix_spawn-internal'.
67424         * modules/posix_spawn-internal: New file.
67425         * lib/spawn_int.h: New file, from GNU libc with modifications.
67426         * lib/spawni.c: New file, from GNU libc with modifications.
67427         * m4/posix_spawn.m4: New file.
67429         New module 'spawn'.
67430         * modules/spawn: New file.
67431         * lib/spawn.in.h: New file, from GNU libc with modifications.
67432         * m4/spawn_h.m4: New file.
67433         * doc/posix-headers/spawn.texi: Mention the new module.
67435 2008-09-28  Bruno Haible  <bruno@clisp.org>
67437         * modules/sched-tests: New file.
67438         * tests/test-sched.c: New file.
67440         New module 'sched'.
67441         * modules/sched: New file.
67442         * lib/sched.in.h: New file.
67443         * m4/sched_h.m4: New file.
67444         * doc/posix-headers/sched.texi: Mention the new module.
67446 2008-09-27  Eric Blake  <ebb9@byu.net>
67448         Fix previous patch, and tweak references to $0.
67449         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
67450         (func_version, func_gnulib_dir): Don't call this program
67451         gnulib-tool.
67452         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
67453         with using $0 in function.
67454         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
67455         (func_fatal_error): Reuse the name the user invoked us with.
67457 2008-09-27  Bruno Haible  <bruno@clisp.org>
67459         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
67460         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
67461         (gl_ICONV_H): Not here.
67462         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
67463         instead of assigning ICONV_H directly.
67465         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
67466         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
67467         WCHAR_H directly.
67469 2008-09-27  Bruno Haible  <bruno@clisp.org>
67471         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
67472         * modules/arpa_inet (Depends-on): Add link-warning.
67473         (Makefile.am): Insert the definition of GL_LINK-WARNING.
67474         * modules/unistd (Makefile.am): Likewise.
67476 2008-09-26  Bruno Haible  <bruno@clisp.org>
67478         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
67479         variables.
67480         (func_version): Essentially copied from gnulib-tool.
67481         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
67482         func_readlink): Copied from gnulib-tool.
67484 2008-09-26  Bruno Haible  <bruno@clisp.org>
67486         * gnulib-tool (func_version): Change directory to $gnulib_dir before
67487         invoking git-version-gen.
67489 2008-09-26  Bruno Haible  <bruno@clisp.org>
67491         * posix-modules: Update to directory names changed on 2008-01-19.
67492         Remove commas in output before splitting into words. No more need to
67493         avoid 'ftruncate' since 2007-02-19.
67495 2008-09-26  Bruno Haible  <bruno@clisp.org>
67497         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
67499 2008-09-26  Bruno Haible  <bruno@clisp.org>
67501         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
67502         * modules/fwriteerror (Depends-on): Add errno.
67504 2008-09-26  Bruno Haible  <bruno@clisp.org>
67506         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
67507         * tests/test-vc-list-files-cvs.sh: Likewise.
67509 2008-09-26  Bruno Haible  <bruno@clisp.org>
67511         * doc/posix-headers/sys_resource.texi: Reorder items.
67513 2008-09-26  Jim Meyering  <meyering@redhat.com>
67515         fts: tweak inode comparison function
67516         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
67517         inode numbers, as documented.
67519         fts: sort dirent entries on inode number before traversing
67520         This avoids a quadratic, seek-related performance penalty when
67521         operating on a directory containing many entries (measurable at 10k;
67522         3.5 hours at 2 million entries with a cold cache) on certain types
67523         of file systems, including ext3 and ext4, but not tmpfs.
67524         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
67525         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
67526         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
67527         (fs_handles_readdir_ordered_dirents_efficiently): New function.
67528         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
67529         (fts_build): Set the stat.st_ino member from D_INO.
67530         If it is likely to be useful, sort dirent entries on inode number.
67532         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
67533         and the struct statfs.f_type member.
67534         * modules/fts (Depends-on): Add d-ino.
67536 2008-09-26  Bruno Haible  <bruno@clisp.org>
67538         * modules/sigpipe-die (Depends-on): Add sigpipe.
67540         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
67541         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
67542         and GNULIB_STDIO_H_SIGPIPE are set.
67543         * lib/stdio-write.c: New file.
67544         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
67545         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
67546         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
67547         REPLACE_STDIO_WRITE_FUNCS.
67548         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
67549         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
67550         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
67551         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
67552         * modules/stdio (Files): Add lib/stdio-write.c.
67553         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
67554         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
67555         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
67556         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
67557         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
67558         REPLACE_FPRINTF_POSIX.
67559         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
67560         REPLACE_PRINTF_POSIX.
67561         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
67562         REPLACE_VFPRINTF_POSIX.
67563         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
67564         REPLACE_VPRINTF_POSIX.
67565         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
67566         SIGPIPE issue.
67567         * doc/posix-functions/fputc.texi: Likewise.
67568         * doc/posix-functions/fputs.texi: Likewise.
67569         * doc/posix-functions/fwrite.texi: Likewise.
67570         * doc/posix-functions/printf.texi: Likewise.
67571         * doc/posix-functions/putc.texi: Likewise.
67572         * doc/posix-functions/putchar.texi: Likewise.
67573         * doc/posix-functions/puts.texi: Likewise.
67574         * doc/posix-functions/vfprintf.texi: Likewise.
67575         * doc/posix-functions/vprintf.texi: Likewise.
67577         * modules/safe-write (Depends-on): Add write.
67579         * modules/sigpipe-tests: New file.
67580         * tests/test-sigpipe.c: New file.
67581         * tests/test-sigpipe.sh: New file.
67583         * modules/write: New file.
67584         * lib/unistd.in.h: Include <sys/types.h>.
67585         (write): New declaration.
67586         * lib/write.c: New file.
67587         * m4/write.m4: New file.
67588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
67589         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
67590         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
67591         GNULIB_WRITE, REPLACE_WRITE.
67592         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
67593         and the SIGPIPE issue.
67595         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
67596         (raise): New declaration.
67597         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
67598         (ext_signal): New function.
67599         (rpl_raise): New function.
67600         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
67601         GNULIB_SIGNAL_H_SIGPIPE.
67602         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
67603         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
67605         * modules/sigpipe: New file.
67606         * m4/sigpipe.m4: New file.
67608 2008-09-25  Derek Price  <derek@ximbiot.com>
67609             Bruno Haible  <bruno@clisp.org>
67611         * gnulib-tool (func_import): Report all license incompatibilities, not
67612         just the first one.
67614 2008-09-25  Bruno Haible  <bruno@clisp.org>
67616         * gnulib-tool (func_import): When computing the edits, consider not
67617         only the Makefile.ams that exist but also those that will be generated.
67619 2008-09-25  Simon Josefsson  <simon@josefsson.org>
67621         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
67622         fixes gnulib-tool --test warning about duplicate dependency.
67624 2008-09-25  Bruno Haible  <bruno@clisp.org>
67626         * gnulib-tool: Don't ask the user to perform edits in the generated
67627         Makefile.ams.
67628         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
67629         apply to the Makefile.am being generated.
67630         (func_emit_tests_Makefile_am): Execute edits that apply to the
67631         Makefile.am being generated.
67632         (func_import): Setup list of Makefile.am edits before emitting the
67633         Makefile.ams, not at the end.
67634         (func_create_testdir): Update.
67635         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67637 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67639         * gnulib-tool (func_import): Store the --tests-base option in the
67640         comment in gnulib-cache.m4.
67642 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
67644         * NEWS: Document increased portability that sys_select now provides.
67646         * lib/sys_select.in.h: Install select wrapper.
67647         * lib/sys_socket.in.h: Use more descriptive name when there is no
67648         select wrapper.
67649         * lib/winsock-select.c: New.
67650         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
67651         Require gl_HEADER_SYS_SOCKET.
67652         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
67653         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
67654         * tests/test-sys_select.c: Add functional tests.
67656 2008-09-24  Eric Blake  <ebb9@byu.net>
67658         open, fopen: close fd leak in last patch
67659         * lib/open.c (rpl_open): Close fd before returning error.
67660         * lib/fopen.c (rpl_fopen): Close fd before returning error.
67661         * doc/posix-functions/open.texi (open): Document that Irix also
67662         has the bug.
67663         * doc/posix-functions/fopen.texi (fopen): Likewise.
67664         Reported by Paolo Bonzini.
67666 2008-09-24  Bruno Haible  <bruno@clisp.org>
67668         Ensure that a filename ending in a slash cannot be used to access a
67669         non-directory.
67670         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
67671         to check whether it's really a directory.
67672         * lib/fopen.c: Include fcntl.h, unistd.h.
67673         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
67674         and fdopen().
67675         * modules/fopen (Depends-on): Add unistd.
67676         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
67677         * tests/test-fopen.c (main): Likewise.
67678         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
67679         * doc/posix-functions/fopen.texi: Likewise.
67680         Reported by Eric Blake.
67682 2008-09-23  Eric Blake  <ebb9@byu.net>
67684         c-stack: avoid compiler optimizations when provoking overflow
67685         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
67686         recursion harder to optimize, to ensure a stack overflow occurs.
67687         * tests/test-c-stack.c (recurse): Likewise.
67688         Borrowed from libsigsegv.
67690         c-stack: work around Irix sigaltstack bug
67691         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
67692         whether sigaltstack uses wrong end of stack_t (copied in part from
67693         libsigsegv).
67694         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
67695         Irix bug, without requiring an over-allocation.
67696         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
67697         bug.
67699         fopen: document mingw bug on directories
67700         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
67701         not allowing a stream visiting a directory, even though reading
67702         from such a stream is not portable.
67704 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
67706         * lib/poll.c: Rewrite.
67707         * modules/poll: Depend on alloca.
67709 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
67711         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
67712         instead define prototypes for a full set of wrappers.  Ensure
67713         that Cygwin does not use the compatibility code, which is only
67714         for MinGW.
67715         * lib/winsock.c: New.
67716         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
67717         * modules/sys_socket: Add lib/winsock.c.
67719         * modules/poll-tests: Add errno and perror.
67720         * tests/test-poll.c: Use ioctl, not ioctlsocket.
67722 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
67724         * tests/test-poll.c: Downgrade minimum needed Winsock version.
67726 2008-09-23  Bruno Haible  <bruno@clisp.org>
67728         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
67729         * doc/glibc-functions/*: Likewise.
67731 2008-09-23  Simon Josefsson  <simon@josefsson.org>
67733         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
67734         success.
67736 2008-09-22  Eric Blake  <ebb9@byu.net>
67737             Bruno Haible  <bruno@clisp.org>
67739         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
67740         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
67741         supply %A but mishandle pseudo-NaN.
67742         Reported by Simon Josefsson.
67744 2008-09-21  Bruno Haible  <bruno@clisp.org>
67746         * tests/test-lock.c (main): Tweak skip message.
67747         * tests/test-tls.c (main): Likewise.
67749 2008-09-21  Bruno Haible  <bruno@clisp.org>
67751         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
67752         whether 'struct sigaction' has sa_sigaction here...
67753         (gl_PREREQ_SIG_HANDLER_H): ... not here.
67754         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
67756 2008-09-21  Bruno Haible  <bruno@clisp.org>
67758         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
67759         section.
67760         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
67761         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
67762         the new section.
67763         (Support for obsolete systems lacking POSIX:2001): New section.
67764         (String handling <string.h>): Move strdup to the new section.
67765         Suggested by Simon Josefsson and Paolo Bonzini.
67767 2008-09-21  Bruno Haible  <bruno@clisp.org>
67769         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
67770         exponents in %e and %g results on 'long double'. Needed for mingw's
67771         improved *printf functions.
67772         * tests/test-vasprintf-posix.c (test_function): Likewise.
67773         * tests/test-snprintf-posix.h (test_function): Likewise.
67774         * tests/test-sprintf-posix.h (test_function): Likewise.
67775         Reported by Eric Blake.
67777 2008-09-21  Bruno Haible  <bruno@clisp.org>
67779         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
67780         * tests/test-sprintf-posix.h (test_function): Likewise.
67782 2008-09-21  Bruno Haible  <bruno@clisp.org>
67784         * modules/getpass (Depends-on): Add strdup-posix.
67786         New module 'strdup-posix'.
67787         * modules/strdup-posix: New file.
67788         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
67789         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
67790         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67791         REPLACE_STRDUP.
67792         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
67793         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
67794         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67795         strdup-posix.
67797         * modules/strdup (Depends-on): Remove malloc-posix.
67799 2008-09-20  Bruno Haible  <bruno@clisp.org>
67801         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
67802         Wildenhues.
67804 2008-09-20  Bruno Haible  <bruno@clisp.org>
67806         Ensure that wint_t gets defined on IRIX 5.3.
67807         * lib/wchar.in.h (wint_t): Define if not defined by the system.
67808         * lib/wctype.in.h (wint_t): Likewise.
67809         (__wctype_wint_t): Remove type.
67810         (isw*): Use wint_t instead of __wctype_wint_t.
67811         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
67812         * modules/wchar (Files): Add m4/wint_t.m4.
67813         (Makefile.am): Substitute HAVE_WINT_T.
67814         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
67815         * tests/test-wctype.c: Check that wint_t is defined.
67816         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
67817         * doc/posix-headers/wctype.texi: Likewise.
67818         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67820 2008-09-18  Bruno Haible  <bruno@clisp.org>
67822         * gnulib-tool (func_exit): Update comment.
67824 2008-09-18  Simon Josefsson  <simon@josefsson.org>
67826         * modules/getaddrinfo (Depends-on): Remove strdup, this module
67827         assumes strdup exists and does not depend on strdup to return
67828         ENOMEM on out of memory conditions.
67830 2008-09-18  Bruno Haible  <bruno@clisp.org>
67832         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
67833         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
67834         digits for the exponent.
67836 2008-09-18  Jim Meyering  <meyering@redhat.com>
67837             Bruno Haible  <bruno@clisp.org>
67839         * lib/vasnprintf.c (decimal_point_char): Define also if
67840         NEED_PRINTF_INFINITE_LONG_DOUBLE.
67842 2008-09-16  Bruno Haible  <bruno@clisp.org>
67843         and Eric Blake  <ebb9@byu.net>
67845         vasnprintf: support Irix 5.3
67846         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
67847         that mishandle long double infinity.
67848         Reported by Tom G. Christensen.
67850 2008-09-16  Bruno Haible  <bruno@clisp.org>
67852         * doc/glibc-functions/scandir.texi: Mention the function is missing on
67853         Solaris 9.
67854         * doc/glibc-functions/alphasort.texi: Likewise.
67855         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
67857 2008-09-16  Jim Meyering  <meyering@redhat.com>
67859         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
67860         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
67861         a umask modification leak out of a subshell.  Otherwise, the
67862         opensolaris /bin/sh would be accepted and thus cause unwarranted
67863         failures in the coreutils test suite.
67865 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
67867         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
67868         to succeed.
67870 2008-09-16  Jim Meyering  <meyering@redhat.com>
67872         avoid spurious test failure when library is built without ACL support
67873         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
67874         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
67875         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
67876         * tests/test-copy-acl.sh: Likewise.
67878 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67880         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
67881         based on character occurrence counts.
67883 2008-09-15  Eric Blake  <ebb9@byu.net>
67885         tests: avoid some compiler warnings
67886         * tests/test-memchr.c (main): Pass NULL indirectly.
67887         * tests/test-closein.c (main): Avoid unused variable.
67889 2008-09-15  Bruno Haible  <bruno@clisp.org>
67891         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
67892         are missing on OpenBSD 4.0 individually.
67893         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67895 2008-09-15  Bruno Haible  <bruno@clisp.org>
67897         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
67898         * doc/posix-functions/strerror.texi: Mention also Cygwin.
67899         * doc/posix-functions/perror.texi: Likewise.
67900         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
67901         is missing.
67902         Reported by Eric Blake.
67904         * lib/errno.in.h: Use replacement values >= 2000.
67905         Reported by Eric Blake.
67907 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67909         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
67910         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
67911         limit.
67912         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
67913         compareseq was aborted.
67915 2008-09-14  Bruno Haible  <bruno@clisp.org>
67917         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
67918         yvec_edit_count.
67919         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
67920         (fstrcmp_bounded): Simplify result computation accordingly.
67922 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67924         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
67925         (fstrcmp): Define in terms of fstrcmp_bounded.
67926         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
67927         lower_bound argument.
67928         Return quickly if the result is certainly < lower_bound.
67929         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
67931 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67933         * lib/diffseq.h (EARLY_ABORT): New macro.
67934         (compareseq): Change return type to bool. Return true when EARLY_ABORT
67935         evaluates to true.
67937 2008-09-14  Bruno Haible  <bruno@clisp.org>
67939         * modules/perror-tests: New file.
67940         * tests/test-perror.sh: New file.
67941         * tests/test-perror.c: New file.
67943         New module 'perror'.
67944         * lib/stdio.in.h (perror): New declaration.
67945         * lib/perror.c: New file.
67946         * m4/perror.m4: New file.
67947         * modules/perror: New file.
67948         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
67949         * doc/posix-functions/perror.texi: Mention the perror module.
67950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
67951         REPLACE_PERROR.
67952         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
67953         REPLACE_PERROR.
67955 2008-09-14  Bruno Haible  <bruno@clisp.org>
67957         * modules/stdio (Makefile.am): Reorder to match the order in
67958         lib/stdio.in.h.
67959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67961 2008-09-13  Bruno Haible  <bruno@clisp.org>
67963         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
67965 2008-09-13  Bruno Haible  <bruno@clisp.org>
67967         Extend strerror to cover the added errno values.
67968         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
67969         (rpl_strerror): Provide error messages for the added errno values and
67970         for the WSA* values.
67971         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
67972         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
67973         strerror.
67974         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
67975         * modules/strerror (Depends-on): Add errno.
67976         * doc/posix-functions/strerror.texi: Document the change.
67977         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
67978         and EOVERFLOW.
67980 2008-09-13  Bruno Haible  <bruno@clisp.org>
67982         * modules/EOVERFLOW: Remove file.
67983         * m4/eoverflow.m4: Remove file.
67984         * modules/EOVERFLOW-tests: Remove file.
67985         * tests/test-EOVERFLOW.c: Remove file.
67986         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
67987         * modules/ftell (Depends-on): Likewise.
67988         * modules/getdelim (Depends-on): Likewise.
67989         * modules/getugroups (Depends-on): Likewise.
67990         * modules/poll (Depends-on): Likewise.
67991         * modules/snprintf (Depends-on): Likewise.
67992         * modules/sprintf-posix (Depends-on): Likewise.
67993         * modules/vasnprintf (Depends-on): Likewise.
67994         * modules/vasprintf (Depends-on): Likewise.
67995         * modules/vfprintf-posix (Depends-on): Likewise.
67996         * modules/vsnprintf (Depends-on): Likewise.
67997         * modules/vsprintf-posix (Depends-on): Likewise.
67998         * modules/xvasprintf (Depends-on): Likewise.
67999         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
68000         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
68001         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
68002         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
68003         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
68004         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
68005         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
68006         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
68007         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
68008         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
68009         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
68010         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
68011         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
68012         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
68013         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
68014         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
68015         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
68016         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
68017         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
68018         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
68019         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
68020         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
68021         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
68022         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
68023         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
68024         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
68025         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
68026         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
68027         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
68028         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
68029         * MODULES.html.sh: Remove EOVERFLOW.
68030         * NEWS: Mention the change.
68032 2008-09-13  Bruno Haible  <bruno@clisp.org>
68034         * modules/errno-tests: New file.
68035         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
68037         * lib/errno.in.h: New file.
68038         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
68039         * modules/errno: New file.
68040         * doc/posix-headers/errno.texi: Update documentation.
68041         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
68043 2008-09-13  Bruno Haible  <bruno@clisp.org>
68045         * tests/test-poll.c: Use #if for native Windows, rather than testing
68046         __MSVCRT__.
68048 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68049             Bruno Haible  <bruno@clisp.org>
68051         * lib/glob.c: Don't include <pwd.h> on native Windows.
68052         (WINDOWS32): New macro.
68053         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
68055 2008-09-13  Bruno Haible  <bruno@clisp.org>
68057         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
68058         (ETIMEDOUT): Remove macro.
68059         (glthread_cond_timedwait_multithreaded): New declaration.
68060         (glthread_cond_timedwait): Use it.
68061         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
68062         (glthread_cond_timedwait_multithreaded): New function.
68064 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
68066         * modules/poll-tests: Do not check for io.h.
68067         * tests/test-poll.c: Check for __MSVCRT__ instead.
68069 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
68071         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
68072         * modules/poll-tests: Add inet_pton, stdbool, sockets.
68073         * tests/test-poll.c: Use them.  Use _pipe on Windows.
68075 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
68077         * modules/poll-tests: New.
68078         * tests/test-poll.c: New.
68080 2008-09-12  Eric Blake  <ebb9@byu.net>
68082         frexp: test for NetBSD failure on -0.0
68083         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
68084         not all, bugs from NetBSD 3.0 have been fixed.
68085         * doc/posix-functions/frexp.texi (frexp): Document bug.
68086         Reported by Thomas Klausner.
68088         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
68089         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
68090         literal -0.0.
68091         Reported by Jonathan C. Patschke <jp@centtech.com>.
68093 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68095         * lib/glthread/cond.h: Use dummy implementation also if
68096         USE_WIN32_THREADS.
68098 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68100         * modules/fnmatch-posix (License): Change to LGPLv2+.
68101         * modules/fnmatch-gnu (License): Likewise.
68103 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68105         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
68107 2008-09-11  Jim Meyering  <meyering@redhat.com>
68109         * users.txt: Add gtk-vnc.
68111 2008-09-08  Simon Josefsson  <simon@josefsson.org>
68113         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
68114         rotate amounts.
68116         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
68117         required for 16-bit and 8-bit rotates.
68118         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
68119         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
68120         UINT8_MAX instead of hard-coded constants.
68121         Suggested by Paul Eggert.
68123 2008-09-07  Bruno Haible  <bruno@clisp.org>
68125         * tests/test-striconveh.c (main): Check behaviour when converting from
68126         UTF-7.
68128         Make striconveh work better with stateful encodings.
68129         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
68130         that iconv does not increment the inptr when returning -1/EINVAL.
68132 2008-09-07  Bruno Haible  <bruno@clisp.org>
68134         * build-aux/config.rpath: Update according to libtool-2.2.6.
68135         * build-aux/config.libpath: Likewise.
68137 2008-09-06  Bruno Haible  <bruno@clisp.org>
68139         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
68140         * lib/freadptr.c (freadptr): Likewise.
68141         * lib/freadseek.c (freadptrinc): Likewise.
68142         Reported by Simon Josefsson.
68144 2008-09-06  Bruno Haible  <bruno@clisp.org>
68146         * modules/freadptr (License): Change to LGPLv2+.
68147         * modules/freadseek (License): Likewise.
68148         Suggested by Eric Blake.
68150         * modules/memchr2 (License): Change to LGPLv2+.
68151         Approved by Eric Blake.
68153 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68154             Bruno Haible  <bruno@clisp.org>
68156         Make gnulib-tool work with native 'sed' on AIX.
68157         * gnulib-tool (sed_noop): New variable.
68158         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
68159         func_add_or_update, func_create_testdir): Use it to initialize sed
68160         script variables.
68161         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68163 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
68164             Bruno Haible  <bruno@clisp.org>
68166         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
68167         also works after #include directives.
68169 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
68171         getdate.y: reject an out-of-range timezone value
68172         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
68173         the range [-24...+24].  When specified with only one or two digits,
68174         * tests/test-getdate.c: Tests for the fix.
68175         * doc/getdate.texi: Document this change.
68177 2008-09-03  Bruno Haible  <bruno@clisp.org>
68179         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
68181 2008-09-02  Simon Josefsson  <simon@josefsson.org>
68183         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
68184         <bruce.korb@gmail.com> with ideas from Ben Pfaff
68185         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
68186         Blake <ebb9@byu.net>.
68188         * tests/test-bitrotate.c: Add more test vectors.
68190 2008-09-02  Eric Blake  <ebb9@byu.net>
68192         vasnprintf-posix: handle large precision via %.*d
68193         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
68194         when handling it ourselves.
68195         * tests/test-vasnprintf-posix.c (test_function): Add test.
68196         * tests/test-snprintf-posix.h (test_function): Likewise.
68197         * tests/test-sprintf-posix.h (test_function): Likewise.
68198         * tests/test-vasprintf-posix.c (test_function): Likewise.
68199         Reported by Alain Guibert.
68201 2008-09-01  Eric Blake  <ebb9@byu.net>
68203         c-stack: make configure-time check more robust
68204         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
68205         successful sigaction call.
68206         Reported by Tom G. Christensen.
68208 2008-09-01  Bruno Haible  <bruno@clisp.org>
68210         New module 'findprog-lgpl'.
68211         * modules/findprog-lgpl: New file.
68212         * lib/findprog-lgpl.c: New file.
68213         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
68214         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
68215         to decide whether to use strdup or xstrdup, concatenated_filename or
68216         xconcatenated_filename.
68218 2008-09-01  Bruno Haible  <bruno@clisp.org>
68220         Split module 'concat-filename' into 'concat-filename' (LGPL) and
68221         'xconcat-filename' (GPL).
68222         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
68223         (License): Change to LGPLv2+.
68224         * modules/xconcat-filename: New file.
68225         * lib/concat-filename.h (concatenated_filename): Change specification.
68226         (xconcatenated_filename): New declaration.
68227         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
68228         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
68229         memory situations.
68230         * lib/xconcat-filename.c: New file.
68231         * NEWS: Mention the change.
68232         * lib/findprog.c: Include concat-filename.h, not filename.h.
68233         (find_in_path): Use xconcatenated_filename instead of
68234         concatenated_filename.
68235         * lib/javacomp.c: Include concat-filename.h, not filename.h.
68236         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68237         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68238         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68239         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
68240         instead of concatenated_filename.
68241         * lib/javaexec.c: Include concat-filename.h, not filename.h.
68242         (execute_java_class): Use xconcatenated_filename instead of
68243         concatenated_filename.
68244         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
68245         * modules/javacomp (Depends-on): Likewise.
68246         * modules/javaexec (Depends-on): Likewise.
68248 2008-09-01  Bruno Haible  <bruno@clisp.org>
68250         Split module 'filename' into 'filename' and 'concat-filename'.
68251         * modules/filename: Keep only lib/filename.h.
68252         (License): Change to LGPLv2+.
68253         * modules/concat-filename: New file, extracted from modules/filename.
68254         * lib/filename.h (concatenated_filename): Remove declaration.
68255         * lib/concat-filename.h: New file, extracted from lib/filename.h.
68256         * lib/concat-filename.c: Include concat-filename.h.
68257         * NEWS: Mention the change.
68259 2008-09-01  Simon Josefsson  <simon@josefsson.org>
68261         * lib/bitrotate.h (rotl8, rotr8): Add.
68263         * modules/bitrotate (configure.ac): Need
68264         AC_REQUIRE([AC_C_INLINE]).
68265         (Description): Mention stdint.h.  Reported by Bruno Haible
68266         <bruno@clisp.org>.
68268         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
68269         Paolo Bonzini <bonzini@gnu.org>.
68271 2008-08-31  Bruno Haible  <bruno@clisp.org>
68273         Assume Solaris specific bi-arch conventions on Solaris systems.
68274         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
68275         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
68276         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
68277         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
68278         like acl_libdirstem.
68279         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
68280         acl_libdirstem.
68281         * NEWS: Mention the change.
68282         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
68284 2008-08-31  Jim Meyering  <meyering@redhat.com>
68286         * lib/strftime.h: Add comments describing the two added arguments.
68288         remove duplicate #include directives
68289         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
68290         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
68292 2008-08-31  Bruno Haible  <bruno@clisp.org>
68294         New module 'sigpipe-die'.
68295         * modules/sigpipe-die: New file.
68296         * lib/sigpipe-die.h: New file.
68297         * lib/sigpipe-die.c: New file.
68298         * MODULES.html.sh (Signal handling): Add sigpipe-die.
68300 2008-08-31  Bruno Haible  <bruno@clisp.org>
68302         Don't override previously installed signal handlers.
68303         * lib/fatal-signal.c (saved_sigactions): New variable.
68304         (uninstall_handlers): Reset the signal to the saved handler, not
68305         to SIG_DFL (except when ignored).
68306         (install_handlers): Save the previous handlers.
68308 2008-08-30  Bruno Haible  <bruno@clisp.org>
68310         * gnulib-tool (func_reset_sigpipe): New function.
68311         (func_get_automake_snippet, func_modules_transitive_closure,
68312         func_import): Invoke it before a join command that reads from stdin,
68313         to avoid "echo: write error: Broken pipe" error messages on stderr.
68314         Reported by Sam Steingold <sds@gnu.org>.
68316 2008-08-30  Bruno Haible  <bruno@clisp.org>
68318         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
68319         Code copied from m4/open.m4.
68320         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
68321         access and the filename ends in a slash. Code copied from lib/open.c.
68322         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
68323         * tests/test-fopen.c (main): Check against bug with trailing slash.
68325 2008-08-29  Bruno Haible  <bruno@clisp.org>
68327         Avoid some "gcc -pedantic" warnings.
68328         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
68329         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
68330         * lib/dirent.in.h: Likewise.
68331         * lib/fcntl.in.h: Likewise.
68332         * lib/float.in.h: Likewise.
68333         * lib/iconv.in.h: Likewise.
68334         * lib/inttypes.in.h: Likewise.
68335         * lib/locale.in.h: Likewise.
68336         * lib/math.in.h: Likewise.
68337         * lib/netinet_in.in.h: Likewise.
68338         * lib/search.in.h: Likewise.
68339         * lib/signal.in.h: Likewise.
68340         * lib/stdarg.in.h: Likewise.
68341         * lib/stdint.in.h: Likewise.
68342         * lib/stdio.in.h: Likewise.
68343         * lib/stdlib.in.h: Likewise.
68344         * lib/string.in.h: Likewise.
68345         * lib/strings.in.h: Likewise.
68346         * lib/sys_select.in.h: Likewise.
68347         * lib/sys_socket.in.h: Likewise.
68348         * lib/sys_stat.in.h: Likewise.
68349         * lib/sys_time.in.h: Likewise.
68350         * lib/sysexits.in.h: Likewise.
68351         * lib/time.in.h: Likewise.
68352         * lib/unistd.in.h: Likewise.
68353         * lib/wchar.in.h: Likewise.
68354         * lib/wctype.in.h: Likewise.
68355         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
68356         * modules/fchdir (Makefile.am): Likewise.
68357         * modules/fcntl (Makefile.am): Likewise.
68358         * modules/float (Makefile.am): Likewise.
68359         * modules/iconv_open (Makefile.am): Likewise.
68360         * modules/inttypes (Makefile.am): Likewise.
68361         * modules/locale (Makefile.am): Likewise.
68362         * modules/math (Makefile.am): Likewise.
68363         * modules/netinet_in (Makefile.am): Likewise.
68364         * modules/search (Makefile.am): Likewise.
68365         * modules/signal (Makefile.am): Likewise.
68366         * modules/stdarg (Makefile.am): Likewise.
68367         * modules/stdint (Makefile.am): Likewise.
68368         * modules/stdio (Makefile.am): Likewise.
68369         * modules/stdlib (Makefile.am): Likewise.
68370         * modules/string (Makefile.am): Likewise.
68371         * modules/strings (Makefile.am): Likewise.
68372         * modules/sys_select (Makefile.am): Likewise.
68373         * modules/sys_socket (Makefile.am): Likewise.
68374         * modules/sys_stat (Makefile.am): Likewise.
68375         * modules/sys_time (Makefile.am): Likewise.
68376         * modules/sysexits (Makefile.am): Likewise.
68377         * modules/time (Makefile.am): Likewise.
68378         * modules/unistd (Makefile.am): Likewise.
68379         * modules/wchar (Makefile.am): Likewise.
68380         * modules/wctype (Makefile.am): Likewise.
68381         Reported by Reuben Thomas <rrt@sc3d.org>.
68383 2008-08-29  Bruno Haible  <bruno@clisp.org>
68385         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
68386         any more.
68388 2008-08-29  Simon Josefsson  <simon@josefsson.org>
68390         * MODULES.html.sh (Misc): Add bitrotate.
68392         * modules/bitrotate: New file.
68394         * lib/bitrotate.h: New file.
68396         * modules/bitrotate-tests: New file.
68398         * tests/test-bitrotate.c: New file.
68400         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
68401         on the bitrotate module.
68403         * lib/arctwo.c: Use new bitrotate module.
68405 2008-08-29  Jim Meyering  <meyering@redhat.com>
68407         bootstrap: merge changes from coreutils
68408         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
68409         of copied files.  Remove a kludge, now that this is fixed.
68410         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
68411         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
68412         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
68414 2008-08-29  Bruno Haible  <bruno@clisp.org>
68416         * MODULES.html.sh: Remove --cvs-urls option.
68418 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
68420         maint.mk: adjust to file name change
68421         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
68423 2008-08-28  Jim Meyering  <meyering@redhat.com>
68425         * modules/getndelim2 (License): Relicense to LGPLv2+.
68426         Approved by Richard Stallman for the version of 1995, and by
68427         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
68429 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
68431         * lib/getdelim.c (flockfile, funlockfile): Make all of them
68432         dummy if one is not available.  Do not touch them if
68433         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
68434         (getc_maybe_unlocked): New.
68435         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
68437 2008-08-26  Eric Blake  <ebb9@byu.net>
68439         doc/INSTALL: resync from autoconf
68440         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
68441         (INSTALL_PRELUDE): Delete; this is done more efficiently by
68442         moving...
68443         * install.texi [!autoconf]: ...here.  Resync from autoconf.
68444         * INSTALL: Regenerate.
68445         * INSTALL.ISO: New file.
68446         * INSTALL.UTF-8: Likewise.
68448 2008-08-26  Jim Meyering  <meyering@redhat.com>
68450         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
68451         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
68452         these definitions conditional, so that they may be overridden, too.
68454 2008-08-26  Bruno Haible  <bruno@clisp.org>
68456         Generate INSTALL file variants with prettier quotes.
68457         * doc/Makefile (INSTALL_PRELUDE): New macro.
68458         (INSTALL): Use it.
68459         (INSTALL.ISO, INSTALL.UTF-8): New rules.
68461 2008-08-26  Bruno Haible  <bruno@clisp.org>
68463         Run makeinfo in an English locale.
68464         * doc/Makefile (MAKEINFO): New variable.
68466 2008-08-26  Bruno Haible  <bruno@clisp.org>
68468         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
68469         Suggested by Eric Blake.
68471 2008-08-25  Bruno Haible  <bruno@clisp.org>
68473         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
68475 2008-08-25  Eric Blake  <ebb9@byu.net>
68477         c-stack: test that stack overflow can be caught
68478         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
68479         that platform allows handling stack overflow; at least OS/2 EMX
68480         has sigaltstack, but crashes before transferring control to
68481         handler on stack overflow.
68482         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
68483         check for HAVE_STACK_OVERFLOW_HANDLING.
68484         Reported by Elbert Pol.
68486 2008-08-25  Bruno Haible  <bruno@clisp.org>
68488         * doc/posix-functions/strftime.texi: Fix description of strftime
68489         module.
68491 2008-08-24  Bruno Haible  <bruno@clisp.org>
68493         * tests/uniwidth/test-uc_width2.c: New file.
68494         * tests/uniwidth/test-uc_width2.sh: New file.
68495         * modules/uniwidth/width-tests (Files): Add the new files.
68496         (TESTS): Add uniwidth/test-uc_width2.sh.
68497         (TESTS_ENVIRONMENT): New variable.
68498         (check_PROGRAMS): Add test-uc_width2.
68499         (test_uc_width2_SOURCES): New variable.
68501         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
68502         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
68503         not 0x00AB.
68504         Reported by Alexander V. Lukyanov <lav@netis.ru>.
68506 2008-08-22  Eric Blake  <ebb9@byu.net>
68508         test-lock, test-tls: mention why a test is skipped
68509         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
68510         skipped.
68511         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
68513         count-one-bits: relax license
68514         * modules/count-one-bits (License): Relicense to LGPLv2+.
68515         Suggested by Ludovic Courtès, approved by Ben Pfaff.
68517 2008-08-22  Andreas Schwab  <schwab@suse.de>
68519         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
68520         Remove spurious space in assignment.
68522 2008-08-21  Simon Josefsson  <simon@josefsson.org>
68524         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
68525         Paul Eggert <eggert@CS.UCLA.EDU>.
68527 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
68529         * modules/gettext: Add m4/threadlib.m4.
68531 2008-08-19  Eric Blake  <ebb9@byu.net>
68533         test-c-stack: fix compilation failure on FreeBSD 5.0
68534         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
68535         headers before <sys/resource.h>.
68536         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
68537         the bug.
68538         Reported by Nelson H. F. Beebe.
68540         strverscmp: migrate from "strverscmp.h" to <string.h>
68541         * modules/string (Makefile.am): Add new hooks.
68542         * modules/strverscmp (Files): Remove strverscmp.h.
68543         (Depends-on): Add string.
68544         (configure.ac): Add indicator.
68545         (Include): Mention new header.
68546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
68547         defaults.
68548         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
68549         results.
68550         * lib/strverscmp.h: Delete.
68551         * lib/string.in.h (strverscmp): Provide declaration, when needed.
68552         * tests/test-strverscmp.c (includes): Adjust client.
68553         * lib/check-version.c (includes): Likewise.
68554         * NEWS: Document the change.
68556         strverscmp: add unit test
68557         * modules/strverscmp-tests: New file.
68558         * tests/test-strverscmp.c: Likewise.
68560 2008-08-19  Simon Josefsson  <simon@josefsson.org>
68562         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
68563         regarding Windows crypto stuff, from Mono.
68565 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
68567         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
68568         if present, for intel RND.  Return error on failures.
68570 2008-08-18  Ben Pfaff  <blp@gnu.org>
68572         gitlog-to-changelog: give better diagnostic for failed pipe-open
68573         * build-aux/gitlog-to-changelog: Improve error message: suggest
68574         that the version of Git may be too old.
68576 2008-08-18  Simon Josefsson  <simon@josefsson.org>
68578         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
68579         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
68581 2008-08-18  Bruno Haible  <bruno@clisp.org>
68583         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
68584         pthread_in_use().
68586 2008-08-18  Bruno Haible  <bruno@clisp.org>
68588         * lib/glthread/threadlib.c: Include <pthread.h>.
68590 2008-08-18  Bruno Haible  <bruno@clisp.org>
68592         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
68593         glthread_recursive_lock_* macros.
68594         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
68595         Fix syntax error.
68597 2008-08-18  Bruno Haible  <bruno@clisp.org>
68599         * lib/glthread/thread.c: Avoid forcing a context switch right after
68600         thread creation.
68602 2008-08-17  Bruno Haible  <bruno@clisp.org>
68604         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
68605         * lib/glthread/thread.h: Provide Win32 specific implementation.
68606         * modules/thread (Files): Add lib/glthread/thread.c.
68607         (Depends-on): Add lock.
68608         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
68610 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68612         New module 'yield'.
68613         * modules/yield: New file.
68614         * lib/glthread/yield.h: New file.
68615         * m4/yield.m4: New file.
68616         * MODULES.html.sh (Multithreading): Add yield.
68618 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68620         New module 'thread'.
68621         * modules/thread: New file.
68622         * lib/glthread/thread.h: New file.
68623         * m4/thread.m4: New file.
68624         * MODULES.html.sh (Multithreading): Add thread.
68626 2008-08-17  Bruno Haible  <bruno@clisp.org>
68628         * lib/glthread/lock.h: Include <stdlib.h> always.
68629         * lib/glthread/tls.h: Likewise.
68630         * lib/glthread/cond.h: Likewise.
68632 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68634         New module 'cond'.
68635         * modules/cond: New file.
68636         * lib/glthread/cond.h: New file.
68637         * lib/glthread/cond.c: New file.
68638         * m4/cond.m4: New file.
68639         * MODULES.html.sh (Multithreading): Add cond.
68641 2008-08-16  Eric Blake  <ebb9@byu.net>
68643         c-stack: fix regression on Irix 5.3 from 2008-06-21
68644         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
68645         sa_sigaction...
68646         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
68647         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
68648         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
68649         * modules/signal (Makefile.am): Use the value.
68650         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
68651         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
68652         * doc/posix-headers/signal.texi (signal.h): Document this
68653         portability issue.
68654         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
68655         Reported by Tom G. Christensen.
68657 2008-08-17  Bruno Haible  <bruno@clisp.org>
68659         New module 'threadlib'.
68660         * modules/threadlib: New file.
68661         * lib/glthread/threadlib.c: New file, extracted from
68662         lib/glthread/lock.c.
68663         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
68664         functions.
68665         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
68666         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
68667         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
68668         macros.
68669         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
68670         (gl_DISABLE_THREADS): Remove macro.
68671         * modules/lock (Files): Remove build-aux/config.rpath.
68672         (Depends-on): Remove havelib. Add threadlib.
68673         (configure.ac-early): Remove section.
68674         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
68675         * modules/tls (Depends-on): Remove lock. Add threadlib.
68676         (Link): New section, copied from threadlib.
68677         * MODULES.html.sh (Multithreading): Add threadlib.
68679 2008-08-14  Bruno Haible  <bruno@clisp.org>
68681         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
68682         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
68683         glthread_rwlock_unlock, glthread_rwlock_destroy,
68684         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
68685         glthread_recursive_lock_destroy): Define as macros always.
68686         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
68687         glthread_lock_lock.
68688         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
68689         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
68690         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
68691         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
68692         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
68693         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
68694         (glthread_recursive_lock_lock_func): Renamed from
68695         glthread_recursive_lock_lock.
68696         (glthread_recursive_lock_unlock_func): Renamed from
68697         glthread_recursive_lock_unlock.
68698         (glthread_recursive_lock_destroy_func): Renamed from
68699         glthread_recursive_lock_destroy.
68701 2008-08-14  Bruno Haible  <bruno@clisp.org>
68703         * lib/glthread/lock.h: Renamed from lib/lock.h.
68704         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
68705         * lib/glthread/tls.h: Renamed from lib/tls.h.
68706         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
68707         * lib/fstrcmp.c: Update includes.
68708         * lib/strsignal.c: Update includes.
68709         * modules/lock (Files, Makefile.am): Update.
68710         (Include): Change to "glthread/lock.h".
68711         * modules/tls (Files, Makefile.am): Update.
68712         (Include): Change to "glthread/tls.h".
68713         * tests/test-lock.c: Update includes.
68714         * tests/test-tls.c: Update includes.
68715         * NEWS: Mention the renamed header files.
68717 2008-08-11  Jim Meyering  <meyering@redhat.com>
68719         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
68721 2008-08-11  Eric Blake  <ebb9@byu.net>
68723         test-c-stack: avoid C99-ism
68724         * tests/test-c-stack.c (main): Fix whitespace, move declaration
68725         before statement.
68726         Reported by Alain Guibert.
68728 2008-08-10  Jim Meyering  <meyering@redhat.com>
68730         ensure that return value of uinttostr et al are not ignored
68731         * lib/inttostr.h (__GNUC_PREREQ): Define.
68732         (__attribute_warn_unused_result__): Define.
68733         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
68735 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
68737         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
68738         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
68740 2008-08-07  Jim Meyering  <meyering@redhat.com>
68742         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
68744         * modules/mkstemp (License): Relicense under LGPLv2+.
68745         * modules/tempname (License): Likewise.
68747 2008-08-06  Bruno Haible  <bruno@clisp.org>
68749         * lib/poll.c (poll): Further micro-optimization.
68751 2008-08-06  Jim Meyering  <meyering@redhat.com>
68753         inet_pton.c: use locale-independent tolower
68754         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
68755         (inet_pton6): Use c_tolower rather than tolower.
68756         * modules/inet_pton (Depends-on): Add c-ctype.
68758 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
68760         * lib/poll.c (poll): Avoid division when timeout is 0, cache
68761         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
68763 2008-08-06  Jim Meyering  <meyering@redhat.com>
68765         * modules/inet_pton (License): Relicense under LGPLv2+.
68767 2008-08-03  Bruno Haible  <bruno@clisp.org>
68769         Additional non-aborting API for lock and tls.
68770         * lib/lock.h: Include <errno.h>.
68771         (glthread_lock_init): New macro/function.
68772         (gl_lock_init): Define as wrapper around glthread_lock_init.
68773         (glthread_lock_lock): New macro/function.
68774         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
68775         (glthread_lock_unlock): New macro/function.
68776         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
68777         (glthread_lock_destroy): New macro/function.
68778         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
68779         (glthread_rwlock_init): New macro/function.
68780         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
68781         (glthread_rwlock_rdlock): New macro/function.
68782         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
68783         (glthread_rwlock_wrlock): New macro/function.
68784         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
68785         (glthread_rwlock_unlock): New macro/function.
68786         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
68787         (glthread_rwlock_destroy): New macro/function.
68788         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
68789         (glthread_recursive_lock_init): New macro/function.
68790         (gl_recursive_lock_init): Define as wrapper around
68791         glthread_recursive_lock_init.
68792         (glthread_recursive_lock_lock): New macro/function.
68793         (gl_recursive_lock_lock): Define as wrapper around
68794         glthread_recursive_lock_lock.
68795         (glthread_recursive_lock_unlock): New macro/function.
68796         (gl_recursive_lock_unlock): Define as wrapper around
68797         glthread_recursive_lock_unlock.
68798         (glthread_recursive_lock_destroy): New macro/function.
68799         (gl_recursive_lock_destroy): Define as wrapper around
68800         glthread_recursive_lock_destroy.
68801         (glthread_once): New macro/function.
68802         (gl_once): Define as wrapper around glthread_once.
68803         Update function declarations.
68804         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
68805         glthread_rwlock_init. Return error code.
68806         (glthread_rwlock_rdlock_multithreaded): Renamed from
68807         glthread_rwlock_rdlock. Return error code.
68808         (glthread_rwlock_wrlock_multithreaded): Renamed from
68809         glthread_rwlock_wrlock. Return error code.
68810         (glthread_rwlock_unlock_multithreaded): Renamed from
68811         glthread_rwlock_unlock. Return error code.
68812         (glthread_rwlock_destroy_multithreaded): Renamed from
68813         glthread_rwlock_destroy. Return error code.
68814         (glthread_recursive_lock_init_multithreaded): Renamed from
68815         glthread_recursive_lock_init. Return error code.
68816         (glthread_recursive_lock_lock_multithreaded): Renamed from
68817         glthread_recursive_lock_lock. Return error code.
68818         (glthread_recursive_lock_unlock_multithreaded): Renamed from
68819         glthread_recursive_lock_unlock. Return error code.
68820         (glthread_recursive_lock_destroy_multithreaded): Renamed from
68821         glthread_recursive_lock_destroy. Return error code.
68822         (glthread_once_call): Make static.
68823         (glthread_once_multithreaded): Renamed from glthread_once.
68824         * lib/tls.h: Include <errno.h>.
68825         (glthread_tls_key_init): New macro/function.
68826         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
68827         (glthread_tls_set): New macro/function.
68828         (gl_tls_set): Define as wrapper around glthread_tls_set.
68829         (glthread_tls_key_destroy): New macro/function.
68830         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
68831         Update function declarations.
68832         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
68833         glthread_tls_get.
68834         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68836 2008-08-04  Eric Blake  <ebb9@byu.net>
68838         gnumakefile: use space, not TAB, outside of targets
68839         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
68841 2008-08-02  Jim Meyering  <meyering@redhat.com>
68843         getdate.y: avoid locale-dependent date parsing failure
68844         In Turkish locales, getdate would fail to recognize keywords
68845         containing a lowercase "i".  The solution is not to rely on
68846         locale-sensitive case-conversion.
68847         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
68848         (lookup_word): Use c_toupper in place of toupper.
68849         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
68850         Reported by Vefa Bicakci <bicave@superonline.com> in
68851         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
68852         * modules/getdate (Depends-on): Add c-ctype.
68854 2008-08-02  Bruno Haible  <bruno@clisp.org>
68856         * gnulib-tool (func_import): When updating or creating a .gitignore
68857         file, prepend each added line with a slash, and ignore leading slashes
68858         from the existing lines.
68859         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68861 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68863         Portability fix for GNU make 3.79.1.
68864         * top/GNUmakefile: Avoid 'else COND', which older GNU make
68865         versions do not understand.
68867 2008-08-01  Bruno Haible  <bruno@clisp.org>
68869         Work around bug of HP-UX 10.20 cc with -0.0 literal.
68870         * tests/test-isnanf.h (zero): New variable.
68871         (main): Avoid literal -0.0f.
68872         * tests/test-isnand.h (zero): New variable.
68873         (main): Avoid literal -0.0.
68874         * tests/test-isnanl.h (zero): New variable.
68875         (main): Avoid literal -0.0L.
68876         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
68877         (test_float, test_double, test_long_double): Avoid literals -0.0f,
68878         -0.0, -0.0L.
68879         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
68880         (test_signbitd): Avoid literal -0.0.
68881         (test_signbitl): Avoid literal -0.0L.
68882         * tests/test-ceilf1.c (zero): New variable.
68883         (main): Avoid literal -0.0f.
68884         * tests/test-ceill.c (zero): New variable.
68885         (main): Avoid literal -0.0L.
68886         * tests/test-floorf1.c (zero): New variable.
68887         (main): Avoid literal -0.0f.
68888         * tests/test-floorl.c (zero): New variable.
68889         (main): Avoid literal -0.0L.
68890         * tests/test-roundf1.c (zero): New variable.
68891         (main): Avoid literal -0.0f.
68892         * tests/test-round1.c (zero): New variable.
68893         (main): Avoid literal -0.0.
68894         * tests/test-roundl.c (zero): New variable.
68895         (main): Avoid literal -0.0L.
68896         * tests/test-truncf1.c (zero): New variable.
68897         (main): Avoid literal -0.0f.
68898         * tests/test-trunc1.c (zero): New variable.
68899         (main): Avoid literal -0.0.
68900         * tests/test-truncl.c (zero): New variable.
68901         (main): Avoid literal -0.0L.
68902         * tests/test-frexp.c (zero): New variable.
68903         (main): Avoid literal -0.0.
68904         * tests/test-frexpl.c (zero): New variable.
68905         (main): Avoid literal -0.0L.
68906         * tests/test-ldexpl.c (zero): New variable.
68907         (main): Avoid literal -0.0L.
68908         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
68909         (zerod, zerol): New variables.
68910         (test_function): Avoid literals -0.0, -0.0L.
68911         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
68912         (zerod, zerol): New variables.
68913         (test_function): Avoid literals -0.0, -0.0L.
68914         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
68915         (zerod, zerol): New variables.
68916         (test_function): Avoid literals -0.0, -0.0L.
68917         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
68918         (zerod, zerol): New variables.
68919         (test_function): Avoid literals -0.0, -0.0L.
68920         * tests/test-strtod.c (zero): New variable.
68921         (main): Avoid literal -0.0.
68922         Reported by Jonathan C. Patschke <jp@centtech.com>.
68924 2008-07-31  Jim Meyering  <meyering@redhat.com>
68926         sha256.h: correct definition of SHA224_DIGEST_SIZE
68927         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
68928         Reported by Paulie Pena IV <paulie4@gmail.com>.
68929         Define as 224 / 8, rather than as a literal.
68930         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
68931         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
68932         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
68934 2008-07-31  Bruno Haible  <bruno@clisp.org>
68936         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
68937         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
68938         Reported by Jonathan Patschke <jp@centtech.com>.
68940 2008-07-31  Bruno Haible  <bruno@clisp.org>
68942         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
68943         Reported by Paolo Bonzini <bonzini@gnu.org>.
68945 2008-07-30  Eric Blake  <ebb9@byu.net>
68947         test-strtod: allow compilation without -lm
68948         * tests/test-strtod.c (main): Avoid link dependence on fabs.
68949         Reported by Dennis Clarke <blastwave@gmail.com>.
68951 2008-07-28  Jim Meyering  <meyering@redhat.com>
68953         bootstrap: work also when there are no .po files in po/
68954         * build-aux/bootstrap (update_po_files): Complete the change
68955         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
68957 2008-07-27  Jim Meyering  <meyering@redhat.com>
68959         * users.txt: Add zile.
68961 2008-07-26  Ben Pfaff  <blp@gnu.org>
68963         Add missing dependencies on new m4/exponent[fdl].m4 files.
68964         * modules/isnanf-nolibm: Add m4/exponentf.m4.
68965         * modules/isnand-nolibm: Add m4/exponentd.m4.
68966         * modules/isnanl-nolibm: Add m4/exponentl.m4.
68967         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
68968         m4/isnan[fdl].m4, because the macros actually used moved.
68969         Reported by Jim Meyering.
68971 2008-07-14  Ben Pfaff  <blp@gnu.org>
68973         Add isinf module.
68974         * lib/isinf.c: New file.
68975         * lib/math.in.h: Define isinf macro if we have decided to replace
68976         it.
68977         * m4/isinf.m4: New file.
68978         * m4/math_h.m4: Initialize and substitute variables for isinf
68979         module.
68980         * modules/isinf: New file.
68981         * modules/isinf-tests: New file.
68982         * modules/math: Add substitutions for new module.
68983         * tests/test-isinf.c: New file.
68984         * doc/posix-functions/isinf.texi: Mention new module.
68985         * MODULES.html.sh: Mention new module.
68987 2008-07-14  Ben Pfaff  <blp@gnu.org>
68989         Factor out some macros for use by additional modules.
68990         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
68991         exponentf.m4.
68992         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
68993         exponentd.m4.
68994         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
68995         file exponentl.m4.
68996         * m4/exponentf.m4: New file.
68997         * m4/exponentd.m4: New file.
68998         * m4/exponentl.m4: New file.
68999         * modules/isnanf: Use new file m4/exponentf.m4.
69000         * modules/isnand: Use new file m4/exponentd.m4.
69001         * modules/isnanl: Use new file m4/exponentl.m4.
69003 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
69005         mktime.c: normalize tp->tm_isdst value to -1/0/1.
69006         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
69007         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
69008         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
69010         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
69011         readlink on platforms without PATH_MAX.
69013 2008-07-21  Eric Blake  <ebb9@byu.net>
69015         Warn, not fail, on stale version.
69016         * top/GNUmakefile (_curr-ver): Tone down previous patch.
69018         Don't allow installation with stale devel version number.
69019         * top/GNUmakefile (_is-install-target): New macro.
69020         (_curr-ver): Forbid installation with stale version number.
69022 2008-07-20  Bruno Haible  <bruno@clisp.org>
69024         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
69025         TESTS_ENVIRONMENT.
69026         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
69028 2008-07-20  Bruno Haible  <bruno@clisp.org>
69030         * lib/c-stack.h (c_stack_action): Add documentation.
69031         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
69033 2008-07-20  Bruno Haible  <bruno@clisp.org>
69035         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
69036         * modules/readlink (License): Likewise.
69038 2008-07-17  Eric Blake  <ebb9@byu.net>
69040         * modules/c-stack (Link): Fix typo.
69042         Make c-stack use libsigsegv, when available.
69043         * modules/c-stack (Depends-on): Add libsigsegv.
69044         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
69045         needed.
69046         * lib/c-stack.c (SIGSTKSZ): Define fallback.
69047         (segv_handler, overflow_handler, c_stack_action)
69048         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
69049         implementation when libsigsegv is available, but only when using
69050         the library is necessary.
69051         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
69052         comment, explaining why XSI check fails on Linux.
69053         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
69054         * tests/test-c-stack2.sh: Tweak skip message.
69055         * NEWS: Document new link-time requirements.
69057 2008-07-16  Eric Blake  <ebb9@byu.net>
69059         c-stack: Expose false positives when not using libsigsegv.
69060         * modules/c-stack-tests (Files): Expand test.
69061         * tests/test-c-stack.c (main): Add means to conditionally trigger
69062         non-overflow SIGSEGV.
69063         * tests/test-c-stack2.sh: New file.
69065 2008-07-14  Bruno Haible  <bruno@clisp.org>
69067         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
69068         Reported by Eric Blake.
69070 2008-07-14  Sam Steingold  <sds@gnu.org>
69071             Bruno Haible  <bruno@clisp.org>
69073         New module libsigsegv.
69074         * modules/libsigsegv: New file.
69075         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
69076         modifications.
69077         * MODULES.html.sh (Signal handling): New section.
69079 2008-07-14  Bruno Haible  <bruno@clisp.org>
69081         * modules/unictype/ctype-* (Description): Add the word "function".
69082         Improves the resulting doc in MODULES.html.
69084 2008-07-12  Ben Pfaff  <blp@gnu.org>
69086         Add longlong module.
69087         * modules/longlong: New file.
69089 2008-07-12  Bruno Haible  <bruno@clisp.org>
69091         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
69092         to empty.
69094 2008-07-10  Ben Pfaff  <blp@gnu.org>
69096         Add isnan module.
69097         * doc/posix-functions/isnan.texi: Mention new module.
69098         * lib/math.in.h: Define isnan macro if we have decided to replace
69099         it.
69100         * m4/isnan.m4: New file.
69101         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
69102         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
69103         also.
69104         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
69105         redundancy.
69106         * m4/math_h.m4: Initialize and substitute variables for isnan
69107         module.
69108         * modules/isnan: New file.
69109         * modules/isnan-tests: New file.
69110         * modules/math: Add substitutions for new module.
69111         * tests/test-isnan.c: New file.
69112         * MODULES.html.sh: Mention new module.
69114 2008-07-10  Ben Pfaff  <blp@gnu.org>
69116         Add isnanf module.
69117         * lib/isnanf.m4: New file.
69118         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
69119         (gl_HAVE_ISNANF_IN_LIBM): New macro.
69120         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
69121         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
69122         * modules/isnanf: New file.
69123         * modules/isnanf-tests: New file.
69124         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
69125         files.
69126         * tests/test-isnanf-nolibm.c: factored most of its contents into
69127         new file tests/test-isnanf.h.
69128         * tests/test-isnanf.h: New file.
69129         * tests/test-isnanf.c: New file.
69130         * MODULES.html.sh: Mention new module.
69131         * doc/glibc-functions/isnanf.texi: Mention new module.
69133 2008-07-10  Ben Pfaff  <blp@gnu.org>
69135         Add isnand module.
69136         * lib/isnand.h: New file.
69137         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
69138         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
69139         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
69140         functionality also.
69141         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
69142         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
69143         (gl_HAVE_ISNAND_IN_LIBM): New macro.
69144         * modules/isnand: New file.
69145         * modules/isnand-tests: New file.
69146         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
69147         files.
69148         * tests/test-isnand-nolibm.c: factored most of its contents into
69149         new file tests/test-isnand.h.
69150         * tests/test-isnand.h: New file.
69151         * tests/test-isnand.c: New file.
69152         * MODULES.html.sh: Mention new module.
69154 2008-07-10  Ben Pfaff  <blp@gnu.org>
69156         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
69157         * lib/isnand.h: Rename lib/isnand-nolibm.h.
69158         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
69159         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
69160         * modules/isnanf-nolibm: Update references to renamed files.
69161         * modules/isnand-nolibm: Likewise.
69162         * modules/isnanf-nolibm-tests: Likewise.
69163         * modules/isnand-nolibm-tests: Likewise.
69164         * lib/frexp.c: Likewise.
69165         * lib/isfinite.c: Likewise.
69166         * lib/signbitd.c: Likewise.
69167         * lib/signbitf.c: Likewise.
69168         * lib/vasnprintf.c: Likewise.
69169         * tests/test-ceilf1.c: Likewise.
69170         * tests/test-ceilf2.c: Likewise.
69171         * tests/test-floorf1.c: Likewise.
69172         * tests/test-floorf2.c: Likewise.
69173         * tests/test-frexp.c: Likewise.
69174         * tests/test-round1.c: Likewise.
69175         * tests/test-round2.c: Likewise.
69176         * tests/test-roundf1.c: Likewise.
69177         * tests/test-strtod.c: Likewise.
69178         * tests/test-trunc1.c: Likewise.
69179         * tests/test-trunc2.c: Likewise.
69180         * tests/test-truncf1.c: Likewise.
69181         * tests/test-truncf2.c: Likewise.
69182         * NEWS: Mention the renamed header files.
69184 2008-07-11  Jim Meyering  <meyering@redhat.com>
69186         vc-list-files: make the last-resort awk code more portable
69187         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
69188         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
69189         does not support it.
69191 2008-07-10  Eric Blake  <ebb9@byu.net>
69193         Work with tar's bootstrap.
69194         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
69195         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
69196         an m4 comment.
69198 2008-07-09  Jim Meyering  <meyering@redhat.com>
69200         posix-shell.m4: fix typo that made this test malfunction
69201         * m4/posix-shell.m4: Remove capitalization in variable name.
69203 2008-07-08  Bruno Haible  <bruno@clisp.org>
69205         * m4/onceonly.m4: Update comments.
69206         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69208 2008-07-04  Jim Meyering  <meyering@redhat.com>
69210         * users.txt: Add vc-dwim.
69211         (bison, coreutils): Use the gitweb URL.
69213 2008-07-03  Jim Meyering  <meyering@redhat.com>
69215         * users.txt: Add libffcall.  From Sam Steingold.
69217 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
69219         getdate.y: do not ignore TZ with relative day, month or year offset
69220         * lib/getdate.y (get_date): Move the tz-handling block to follow the
69221         relative-date-handling, since otherwise, the latter would clobber the
69222         sole output (an updated Start value) of the tz-handling block.
69223         * tests/test-getdate.c: Tests for the fix
69225 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69227         Recognize 'foo_LIBRARIES += libgnu.a'.
69228         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
69229         makefile snippet has already specified an installation location,
69230         also using '+='.
69232 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
69234         getdate.y: factor out common actions
69235         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
69236         Use them in place of open-coded actions.
69238 2008-07-01  Simon Josefsson  <simon@josefsson.org>
69240         Add self-test for getdate module.
69241         * modules/getdate-tests: New file.
69242         * tests/test-getdate.c: New file.
69244 2008-06-29  Bruno Haible  <bruno@clisp.org>
69246         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
69247         .gitignore.
69248         Reported by Sylvain Beucler <beuc@beuc.net>.
69250 2008-06-29  Bruno Haible  <bruno@clisp.org>
69252         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
69253         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
69255 2008-06-29  Bruno Haible  <bruno@clisp.org>
69257         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
69258         EXTRA_DIST.
69259         Reported by Sylvain Beucler <beuc@beuc.net>.
69261 2008-06-26  Jim Meyering  <meyering@redhat.com>
69263         make several modules depend on the "open" module
69264         This provides slightly increased consistency when opening-for-write
69265         the name of a non-directory spelled with a trailing slash.
69266         * modules/chdir-safer: Likewise.
69267         * modules/chown: Likewise.
69268         * modules/clean-temp: Likewise.
69269         * modules/copy-file: Likewise.
69270         * modules/fchdir: Likewise.
69271         * modules/fcntl-safer: Likewise.
69272         * modules/pipe: Likewise.
69273         * modules/utime: Likewise.
69274         Prompted by Eric Blake and Bruno Haible.
69276 2008-06-24  Andreas Schwab  <schwab@suse.de>
69278         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
69279         literals can be used as initializers for global variables.
69281 2008-06-23  Eric Blake  <ebb9@byu.net>
69283         Make gnulib-cache.m4 easier to diff.
69284         * gnulib-tool (func_import): Allow newlines when reading cached
69285         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
69287 2008-06-23  Bruno Haible  <bruno@clisp.org>
69289         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
69290         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
69291         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
69292         m4/signalblocking.m4.
69293         (gl_PREREQ_SIGACTION): Don't invoke it.
69294         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
69295         gl_PREREQ_SIG_HANDLER_H.
69296         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
69297         Don't check for sigaction here.
69299 2008-06-23  Bruno Haible  <bruno@clisp.org>
69301         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
69302         (install_handlers): Don't set the SA_RESETHAND flag.
69304 2008-06-23  Bruno Haible  <bruno@clisp.org>
69306         * m4/sigaction.m4: Comment fixes.
69307         * lib/signal.in.h: Likewise.
69309 2008-06-23  Eric Blake  <ebb9@byu.net>
69311         Fix typo.
69312         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
69314         Avoid SA_ namespace.
69315         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
69316         Reported by Ralf Wildenhues.
69318         Avoid test failure due to SA_RESTORER.
69319         * tests/test-sigaction.c (SA_MASK): New macro.
69320         (main): Avoid failing due to extension flags being set.
69321         Reported by Jim Meyering.
69323         Revert use of sig-handler.h in sigprocmask.c.
69324         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
69325         it requires the existence of struct sigaction.
69326         * lib/sigprocmask.c (handler_t): Restore typedef.
69327         (rpl_signal, old_handlers): Use local type.
69329 2008-06-22  Bruno Haible  <bruno@clisp.org>
69331         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
69332         conditionally.
69333         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69335 2008-06-22  Bruno Haible  <bruno@clisp.org>
69337         * doc/posix-functions/siginterrupt.texi: Move note.
69339         * lib/signal.in.h (SA_RESTART): New macro.
69340         * lib/sigaction.c: Update comment.
69342         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
69344         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
69345         (gl_PREREQ_SIGPROCMASK): Invoke it.
69346         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
69348         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
69350         * lib/sigprocmask.c: Update a comment.
69352 2008-06-21  Eric Blake  <ebb9@byu.net>
69354         Use sigaction module rather than signal().
69355         * modules/c-stack (Depends-on): Add sigaction.
69356         * modules/fatal-signal (Depends-on): Likewise.
69357         * modules/nanosleep (Depends-on): Likewise.
69358         * modules/sigprocmask (Files): Add sig-handler.h.
69359         * modules/sigaction (Files): Likewise.
69360         * lib/sig-handler.h (get_handler): New file, suggested by Paul
69361         Eggert.
69362         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
69363         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
69364         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
69365         (init_fatal_signals): Likewise.
69366         * lib/nanosleep.c (rpl_nanosleep): Likewise.
69367         (siginterrupt): Delete fallback.
69368         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
69369         instead.
69370         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
69371         siginterrupt.
69373         New module sigaction, for mingw.
69374         * modules/sigaction: New module...
69375         * modules/sigaction-tests: ...and its test.
69376         * m4/sigaction.m4: New file.
69377         * lib/sigaction.c: Likewise.
69378         * tests/test-sigaction.c: Likewise.
69379         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
69380         * modules/signal (Makefile.am): Likewise.
69381         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
69382         needed.
69383         * doc/posix-headers/signal.texi (signal.h): Mention provided
69384         types.
69385         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
69386         that sigaction is preferable.
69387         * doc/posix-functions/sigaction.texi (sigaction): Mention new
69388         module.
69389         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69390         sigaction.
69392         Improve robustness of sigprocmask by overriding signal.
69393         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
69394         is in use.
69395         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
69396         (SIGKILL, SIGSTOP): Provide fallbacks.
69397         (rpl_signal): Implement.
69398         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
69399         signal can be called inside handlers.
69401         Fix nanosleep module on mingw.
69402         * modules/nanosleep (Depends-on): Add sys_select.
69403         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
69405         Fix licensing of sigprocmask.
69406         * modules/raise (License): Relicense as LGPL.
69408 2008-06-21  Bruno Haible  <bruno@clisp.org>
69410         * lib/propername.c (proper_name_utf8): Don't use the transliterated
69411         result if it contains question marks.
69412         Reported by Michael Geng <linux@michaelgeng.de>.
69414 2008-06-19  Bruno Haible  <bruno@clisp.org>
69416         Fix CVS-ism.
69417         * doc/gnulib.texi: Include updated-stamp.texi.
69418         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
69419         (updated-stamp.texi): New rule.
69420         (gnulib.info): Depend on it.
69421         * doc/.gitignore: Add updated-stamp.texi.
69422         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
69424 2008-06-19  Bruno Haible  <bruno@clisp.org>
69426         * doc/Makefile (gnulib.info): Update and simplify dependencies.
69427         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
69429 2008-06-19  Eric Blake  <ebb9@byu.net>
69431         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
69432         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
69433         Reported by Stepan Kasal.
69435 2008-06-18  Bruno Haible  <bruno@clisp.org>
69437         * lib/fatal-signal.c (init_fatal_signals): Add comment.
69438         Reported by Eric Blake.
69440 2008-06-18  Eric Blake  <ebb9@byu.net>
69442         Work around cygwin 1.5.25 strsignal bug.
69443         * tests/test-strsignal.c: Allow for const char *.
69444         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
69446 2008-06-18  Simon Josefsson  <simon@josefsson.org>
69448         * users.txt: Update URL to article and add author/date
69449         information.
69451 2008-06-17  Bruno Haible  <bruno@clisp.org>
69453         New macro gl_DISABLE_THREADS.
69454         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
69455         if the user did not pass --enable-threads or --disable-threads option.
69456         (gl_DISABLE_THREADS): New macro.
69457         Reported by Eric Blake <ebb9@byu.net>.
69459 2008-06-17  Bruno Haible  <bruno@clisp.org>
69461         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
69462         when the macro ignores it.
69463         Based on a patch by Eric Blake <ebb9@byu.net>.
69465 2008-06-17  Bruno Haible  <bruno@clisp.org>
69467         * modules/tls (License): Change to LGPLv2+.
69468         Reported by Eric Blake.
69470 2008-06-17  Eric Blake  <ebb9@byu.net>
69472         Simplify c-stack prerequisites.
69473         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
69474         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
69475         no longer requires <ucontext.h> to exist.  Optimize setrlimit
69476         check.
69477         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
69478         <sys/resource.h>.
69480         Move c-stack test into testsuite.
69481         * modules/c-stack-tests: New file.
69482         * lib/c-stack.c [DEBUG]: Move test program...
69483         * tests/test-c-stack.c: ...into this new file.  Skip rather than
69484         fail test if sigaltstack is lacking.
69485         * tests/test-c-stack.sh: New driver file.
69487 2008-06-16  Eric Blake  <ebb9@byu.net>
69489         Use raise module consistently.
69490         * modules/fatal-signal (Depends-on): Add raise.
69491         * modules/sigprocmask (Depends-on): Likewise.
69492         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
69493         * lib/sigprocmask.c (sigprocmask): Likewise.
69494         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
69495         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
69497         Fix compliance bug in sigpending.
69498         * lib/sigprocmask.c (sigpending): Return pending array via
69499         parameter, not return value.
69501 2008-06-14  Eric Blake  <ebb9@byu.net>
69503         Improve obstack-printf test code.
69504         * tests/test-obstack-printf.c (test_function): Fix comment, and
69505         simplify usage of obstack_* in macros.  Add a test for coverage.
69506         Reported by Bruno Haible.
69508 2008-06-14  Bruno Haible  <bruno@clisp.org>
69510         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
69511         array size as a constant, not as a const variable.
69512         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
69513         AC_USE_SYSTEM_EXTENSIONS.
69514         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
69515         Test whether the obstack_printf function actually exists.
69516         * modules/obstack-printf (Depends-on): Add extensions.
69517         (Include): Remove obstack.h.
69518         * modules/obstack-printf-posix (Depends-on): Add extensions.
69519         (Include): Remove obstack.h.
69521 2008-06-13  Eric Blake  <ebb9@byu.net>
69523         Add obstack-printf and obstack-printf-posix modules.
69524         * modules/obstack-printf: New file.
69525         * modules/obstack-printf-posix: Likewise.
69526         * MODULES.html.sh (Misc): Mention them.
69527         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
69528         Likewise.
69529         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
69530         Likewise.
69531         * modules/stdio (Makefile.am): Accomodate new modules.
69532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69533         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
69534         Declare.
69535         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
69536         functions.
69537         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
69538         (gl_REPLACE_OBSTACK_PRINTF): New macros
69539         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
69540         * tests/test-obstack-printf.c: New file.
69541         * modules/obstack-printf-tests: Likewise.
69542         * modules/obstack-printf-posix-tests: Likewise.
69544 2008-06-11  Bruno Haible  <bruno@clisp.org>
69546         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
69547         * lib/open.c: Include errno.h.
69548         (open): Fail when attempting to write to a file that has a trailing
69549         slash.
69550         * tests/test-open.c (main): Test against trailing slash bug.
69551         * doc/posix-functions/open.texi: Mention the trailing slash bug.
69553 2008-06-10  Bruno Haible  <bruno@clisp.org>
69555         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
69556         for $? to work inside the trap command, with various /bin/sh-s.
69557         * tests/test-vc-list-files-cvs.sh: Likewise.
69559 2008-06-10  Bruno Haible  <bruno@clisp.org>
69561         * lib/acl-internal.h: Don't include gettext.h here.
69562         * lib/set-mode-acl.c: Include gettext.h here.
69563         * lib/copy-acl.c: Likewise.
69565 2008-06-10  Bruno Haible  <bruno@clisp.org>
69567         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
69568         * lib/wait-process.c (wait_subprocess): Likewise.
69569         * lib/execute.h (execute): Add termsigp argument.
69570         * lib/execute.c (execute): Likewise.
69571         * lib/csharpcomp.c (compile_csharp_using_pnet,
69572         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
69573         * lib/csharpexec.c (execute_csharp_using_pnet,
69574         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
69575         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
69576         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
69577         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
69578         is_jikes_present): Update.
69579         * lib/javaexec.c (execute_java_class): Update.
69580         * lib/javaversion.c (execute_and_read_line): Update.
69581         * NEWS: Document the changes.
69582         Reported by Eric Blake.
69584 2008-06-10  Eric Blake  <ebb9@byu.net>
69586         Add missing include.
69587         * tests/test-strstr.c (includes): Add <signal.h>.
69588         * tests/test-strcasestr.c (includes): Likewise.
69589         * tests/test-memmem.c (includes): Likewise.
69591 2008-06-10  Bruno Haible  <bruno@clisp.org>
69593         * lib/wait-process.c (wait_subprocess): Add an assertion.
69595 2008-06-10  Bruno Haible  <bruno@clisp.org>
69597         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
69599 2008-06-10  Bruno Haible  <bruno@clisp.org>
69601         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
69602         using alarm().
69603         * tests/test-strcasestr.c (main): Likewise.
69604         * tests/test-strstr.c (main): Likewise.
69606 2008-06-09  Bruno Haible  <bruno@clisp.org>
69608         Work around the Solaris 10 ACE ACLs ABI change.
69609         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
69610         declare if ACL_NO_TRIVIAL is present.
69611         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
69612         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
69613         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
69614         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
69615         define if ACL_NO_TRIVIAL is present.
69616         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
69617         and use the current ABI.
69618         (file_has_acl): Use same #if condition as elsewhere.
69619         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
69620         in use, and use the current ABI.
69621         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
69622         Reported by Jim Meyering.
69624 2008-06-09  Eric Blake  <ebb9@byu.net>
69626         Work around environments that (stupidly) ignore SIGALRM.
69627         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
69628         before using alarm().
69629         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69630         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
69631         Reported by Ian Beckwith <ianb@erislabs.net>.
69633         Produce autobuild blurb earlier in log.
69634         * modules/autobuild (configure.ac-early): Move AB_INIT here.
69636 2008-06-09  Jim Meyering  <meyering@redhat.com>
69637         and Ondřej Vašík  <ovasik@redhat.com>
69639         utimens.c: correct kernel bug work-around
69640         Ondřej Vašík found that the invalid return value of 280 indicates
69641         failure, not success, and the kernel bug we're trying to work
69642         around affects not just the utimensat call, but also the fallback
69643         futimens call.
69644         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
69645         not success.
69646         [HAVE_FUTIMENS]: Use the same work-around, here.
69648 2008-06-09  Jim Meyering  <meyering@redhat.com>
69650         add more guards around definition of ACE_-related code
69651         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
69652         ALLOW and ACE_OWNER are also defined.
69654 2008-06-08  Bruno Haible  <bruno@clisp.org>
69656         * lib/acl-internal.h: Add me as co-author.
69657         * lib/file-has-acl.c: Likewise.
69658         * lib/set-mode-acl.c: Likewise.
69659         * lib/copy-acl.c: Likewise.
69661 2008-06-08  Bruno Haible  <bruno@clisp.org>
69663         Add support for AIX ACLs.
69664         * lib/acl-internal.h (acl_nontrivial): New declaration.
69665         * lib/file-has-acl.c (acl_nontrivial): New function.
69666         (file_has_acl): Add implementation using AIX 4 ACL API.
69667         * lib/set-mode-acl.c (qset_acl): Likewise.
69668         * lib/copy-acl.c (qcopy_acl): Likewise.
69670 2008-06-08  Bruno Haible  <bruno@clisp.org>
69672         Add support for HP-UX ACLs.
69673         * lib/acl-internal.h (acl_nontrivial): New declaration.
69674         * lib/file-has-acl.c (acl_nontrivial): New function.
69675         (file_has_acl): Add implementation using HP-UX 11 ACL API.
69676         * lib/set-mode-acl.c (qset_acl): Likewise.
69677         * lib/copy-acl.c (qcopy_acl): Likewise.
69679 2008-06-08  Bruno Haible  <bruno@clisp.org>
69681         Add support for Cygwin ACLs.
69682         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
69683         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
69684         the chmod_or_fchmod call.
69685         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
69687 2008-06-08  Bruno Haible  <bruno@clisp.org>
69689         Fix bug with setuid modes in Solaris 10+ code.
69690         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
69691         succeeded, when the mode contains some special bits.
69693 2008-06-08  Bruno Haible  <bruno@clisp.org>
69695         Add support for Solaris 7..10 ACLs.
69696         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
69697         declarations.
69698         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
69699         functions.
69700         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
69701         * lib/set-mode-acl.c (qset_acl): Likewise.
69702         * lib/copy-acl.c (qcopy_acl): Likewise.
69704 2008-06-08  Bruno Haible  <bruno@clisp.org>
69706         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
69707         declaration.
69708         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
69709         (acl_access_nontrivial): Remove MacOS X case.
69710         (file_has_acl): Use acl_extended_nontrivial.
69711         * lib/copy-acl.c (qcopy_acl): Likewise.
69713 2008-06-08  Bruno Haible  <bruno@clisp.org>
69715         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
69717 2008-06-08  Jim Meyering  <meyering@redhat.com>
69719         * modules/acl (Maintainer): Add Bruno Haible.
69721 2008-06-07  Bruno Haible  <bruno@clisp.org>
69723         Improve support for Tru64 ACLs.
69724         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
69725         ACL on OSF/1.
69727 2008-06-07  Bruno Haible  <bruno@clisp.org>
69729         Add support for MacOS X ACLs.
69730         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
69731         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
69732         * lib/set-mode-acl.c (qset_acl): Likewise.
69733         * lib/copy-acl.c (qcopy_acl): Likewise.
69735 2008-06-07  Bruno Haible  <bruno@clisp.org>
69737         Fix memory leak introduced on 2008-05-22.
69738         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
69739         use.
69741 2008-06-07  Bruno Haible  <bruno@clisp.org>
69743         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
69744         to construct an empty ACL.
69746 2008-06-07  Bruno Haible  <bruno@clisp.org>
69748         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
69749         precisely.
69750         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
69752 2008-06-07  Bruno Haible  <bruno@clisp.org>
69754         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
69755         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
69757 2008-06-07  Bruno Haible  <bruno@clisp.org>
69759         * doc/posix-functions/_setjmp.texi: Explain the use of this function
69760         regardless of POSIX.
69761         * doc/posix-functions/_longjmp.texi: Likewise.
69762         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
69763         SystemV platform in this case.
69765 2008-06-06  Eric Blake  <ebb9@byu.net>
69767         Document abort() bugs.
69768         * doc/posix-functions/abort.texi (abort): Mention anomalies.
69770         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
69771         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
69772         sigsetjmp.
69773         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
69774         siglongjmp, but only as a macro.
69775         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
69776         is obsolete.
69777         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
69779         Tweak documentation to cover cygwin argz bugs.
69780         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
69781         argz bug fix; no code change needed since no cygwin releases
69782         occurred between the last fix and the bug being tested.
69783         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
69784         module and recently fixed cygwin bugs.
69785         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
69786         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
69787         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
69788         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
69789         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
69790         Likewise.
69791         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
69792         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
69793         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
69794         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
69795         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
69796         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
69797         Likewise.
69799         Avoid gcc warning on cygwin.
69800         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
69801         !ACL_NO_TRIVIAL]: Avoid unused variable.
69803 2008-06-05  Eric Blake  <ebb9@byu.net>
69805         Be tolerant of UNKNOWN version in gnulib-tool test dir.
69806         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
69807         git-version-gen fails to come up with a version.
69808         Reported by Simon Josefsson.
69810 2008-06-05  Jim Meyering  <meyering@redhat.com>
69811             Paul Eggert  <eggert@cs.ucla.edu>
69813         utimens.c: work around a probable Linux kernel bug
69814         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
69815         appears to be a kernel bug that causes utimensat to return 280
69816         instead of 0, indicating success.
69818 2008-06-04  Bruno Haible  <bruno@clisp.org>
69820         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
69821         2008-06-01 commit.
69823 2008-06-04  Bruno Haible  <bruno@clisp.org>
69825         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
69826         * lib/file-has-acl.c (acl_access_nontrivial): New function.
69827         (file_has_acl): Use it. Save errno afterwards.
69828         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
69830 2008-06-03  Bruno Haible  <bruno@clisp.org>
69832         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
69833         draft code. Simplify #ifs.
69834         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
69835         Put Solaris code after POSIX-draft code. Fix comments regarding
69836         Solaris 10, HP-UX. Mention Cygwin.
69837         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
69839 2008-06-03  Eric Blake  <ebb9@byu.net>
69841         Provide fallback for older kernels.
69842         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
69843         Provide runtime fallback if kernel lacks support.
69844         Reported by Mike Frysinger.
69846 2008-06-02  Bruno Haible  <bruno@clisp.org>
69848         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
69849         it exists.
69851 2008-06-02  Bruno Haible  <bruno@clisp.org>
69853         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
69854         * lib/copy-acl.c (qcopy_acl): Update comment.
69856 2008-06-02  Bruno Haible  <bruno@clisp.org>
69858         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
69859         like ACL APIs.
69861 2008-06-02  Bruno Haible  <bruno@clisp.org>
69863         * tests/test-file-has-acl.sh: Use different code for Cygwin.
69864         * tests/test-set-mode-acl.sh: Likewise.
69865         * tests/test-copy-acl.sh: Likewise.
69866         * tests/test-copy-file.sh: Likewise.
69868 2008-06-02  Bruno Haible  <bruno@clisp.org>
69870         * tests/test-file-has-acl.sh: Remove unused code.
69872 2008-06-01  Bruno Haible  <bruno@clisp.org>
69874         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
69875         (copy_acl): Just a wrapper around qcopy_acl that emits the error
69876         messages.
69877         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
69879 2008-06-01  Bruno Haible  <bruno@clisp.org>
69881         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
69882         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
69883         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
69884         APIs.
69885         * modules/acl-tests (configure.ac): Remove tests now contained in
69886         m4/acl.m4.
69888 2008-06-02  Jim Meyering  <meyering@redhat.com>
69890         announce-gen: use a better key-server host name
69891         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
69892         it may be more consistently reliable.  Suggested by Werner Koch
69893         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
69895 2008-06-01  Bruno Haible  <bruno@clisp.org>
69897         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
69898         Reported by Voroskoi Andras <voroskoi@gmail.com>.
69900 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
69902         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
69904 2008-06-01  Bruno Haible  <bruno@clisp.org>
69906         New ACL tests.
69907         * tests/test-file-has-acl.sh: New file.
69908         * tests/test-file-has-acl.c: New file.
69909         * tests/test-set-mode-acl.sh: New file.
69910         * tests/test-set-mode-acl.c: New file.
69911         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
69912         * tests/test-copy-acl.c: New file.
69913         * modules/acl-tests: New file, based on modules/copy-file-tests.
69914         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
69915         (Depends-on): Add acl-tests.
69916         (configure.ac): Remove checks.
69917         (Makefile.am): Don't create test-sameacls program here any more.
69919 2008-06-01  Bruno Haible  <bruno@clisp.org>
69921         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
69922         * tests/test-sameacls.c: Include progname.h.
69923         (main): Invoke set_program_name. Portability fixes for MacOS X,
69924         Solaris, HP-UX.
69926 2008-06-01  Bruno Haible  <bruno@clisp.org>
69928         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
69929         function.
69930         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
69932 2008-06-01  Bruno Haible  <bruno@clisp.org>
69934         * modules/rpmatch (Depends-on): Add strdup.
69936 2008-06-01  Bruno Haible  <bruno@clisp.org>
69938         * lib/pipe.c: Include unistd-safer.h.
69939         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
69940         * modules/pipe (Depends-on): Add unistd-safer.
69942 2008-05-30  Simon Josefsson  <simon@josefsson.org>
69944         * modules/autobuild (configure.ac): Call AB_INIT.
69946 2008-05-30  Simon Josefsson  <simon@josefsson.org>
69948         * tests/test-getaddrinfo.c: Don't print debug messages by default.
69949         Suggested by Bruno Haible <bruno@clisp.org>.
69951 2008-05-30  Simon Josefsson  <simon@josefsson.org>
69953         * tests/test-base64.c: Cast size_t to unsigned long when invoking
69954         printf.  Use %lu instead of %d.  Reported by Bruno Haible
69955         <bruno@clisp.org>.
69957 2008-05-29  Eric Blake  <ebb9@byu.net>
69959         Prefer new POSIX 200x interfaces over futimesat.
69960         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
69961         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
69962         when available.
69963         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
69965 2008-05-28  Bruno Haible  <bruno@clisp.org>
69967         * modules/stpcpy (License): Change to LGPLv2+.
69968         Requested by David Lutterkort <dlutter@redhat.com>.
69970 2008-05-27  Bruno Haible  <bruno@clisp.org>
69972         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
69973         current mingw.
69974         Reported by Jose E. Marchesi <jemarch@gnu.org>.
69976 2008-05-27  Bruno Haible  <bruno@clisp.org>
69978         * modules/iconv_open (Link): New section, from module 'iconv'.
69979         * modules/striconv (Link): Likewise.
69980         * modules/striconveh (Link): Likewise.
69981         * modules/xstriconv (Link): Likewise.
69982         * modules/unicodeio (Link): Likewise.
69983         * modules/propername (Link): Likewise.
69984         Reported by Jim Meyering.
69986 2008-05-26  Jim Meyering  <meyering@redhat.com>
69988         sha256: do not artificially restrict buffer length to be < 2^32
69989         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
69990         uint32_t to size_t.
69991         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
69992         to match.
69994         avoid unaligned access errors, e.g., on sparc
69995         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
69996         direct access through a possibly-unaligned uint64* pointer.
69997         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
69998         direct access through a possibly-unaligned uint32* pointer.
69999         Prompted by this patch from Tom "spot" Callaway:
70000         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
70002         sha512.c: fix typo in comment
70003         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
70005 2008-05-25  Bruno Haible  <bruno@clisp.org>
70007         * lib/set-mode-acl.c: Renamed from lib/acl.c.
70008         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
70009         (Makefile.am): Update lib_SOURCES.
70011 2008-05-25  Bruno Haible  <bruno@clisp.org>
70013         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
70015 2008-05-25  Jim Meyering  <meyering@redhat.com>
70017         useless-if-before-free: freed expr may have white-space differences
70018         * build-aux/useless-if-before-free: Recognize cases in which the
70019         freed expression differs from the tested one in embedded white
70020         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
70021         $1 was used, so we can't make any regexp shy.  Improved tests now
70022         detect this.
70024         useless-if-before-free: accept white space in the expression.
70025         * build-aux/useless-if-before-free: For now, any white space
70026         in the expression must be identical in the free argument.
70028         useless-if-before-free: efficiency tweak
70029         * build-aux/useless-if-before-free: Make the expression-matching
70030         regexp "shy".
70031         Make the *outer* regexp shy, not the expr-matching one.
70033         update code-in-comment to accept cast of free arg
70034         * build-aux/useless-if-before-free: Update regexp.
70036 2008-05-25  Bruno Haible  <bruno@clisp.org>
70038         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
70039         * modules/copy-file-tests (Files, Makefile.am): Update.
70040         * tests/test-copy-file.c (func_test_copy): Update.
70042 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
70044         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
70046 2008-05-23  Bruno Haible  <bruno@clisp.org>
70048         Improve support for ACLs on OSF/1.
70049         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
70050         Remove fallback for unknown flavors of ACLs.
70052 2008-05-22  Bruno Haible  <bruno@clisp.org>
70054         Add support for ACLs on OSF/1.
70055         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
70056         replacements.
70057         (acl_free_text): New macro fallback.
70058         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
70059         acl_free.
70060         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
70061         acl_free_text function. Require AC_C_INLINE.
70063 2008-05-22  Bruno Haible  <bruno@clisp.org>
70065         Make copy_acl work on MacOS X 10.5.
70066         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
70067         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
70068         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
70069         If MODE_INSIDE_ACL, don't assume that every system has the same text
70070         representation for ACLs as FreeBSD.
70071         * lib/copy-acl.c (copy_acl): Add support for platforms with
70072         !MODE_INSIDE_ACL.
70073         * lib/file-has-acl.c (file_has_acl): Likewise.
70074         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
70075         FreeBSD, MacOS X, or IRIX, respectively.
70077 2008-05-22  Bruno Haible  <bruno@clisp.org>
70079         * lib/acl.h: Don't include <sys/acl.h>.
70080         (GETACLCNT): Move fallback to lib/acl-internal.h.
70081         * lib/acl-internal.h: Include <sys/acl.h> here.
70082         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
70084 2008-05-22  Bruno Haible  <bruno@clisp.org>
70086         Split off copy_acl function to separate file.
70087         * lib/copy-acl.c: New file, extracted from lib/acl.c.
70088         * lib/acl.c (copy_acl): Moved function to separate file.
70089         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
70090         * modules/acl (Files): Add lib/copy-acl.c.
70091         (Makefiles.am): Augment lib_SOURCES.
70093 2008-05-22  Bruno Haible  <bruno@clisp.org>
70095         * modules/copy-file-tests: New file.
70096         * tests/test-copy-file.sh: New file.
70097         * tests/test-copy-file.c: New file.
70098         * tests/test-copy-file-sameacls.c: New file.
70100 2008-05-22  Eric Blake  <ebb9@byu.net>
70102         Avoid gcc warning.
70103         * tests/test-memcmp.c (main): Pass NULL indirectly.
70105 2008-05-21  Bruno Haible  <bruno@clisp.org>
70107         Add reference doc about ACLs.
70108         * doc/acl-resources.txt: New file.
70109         * doc/acl-cygwin.txt: New file.
70111 2008-05-21  Bruno Haible  <bruno@clisp.org>
70113         Avoid one more warning from gcc.
70114         * lib/vasnprintf.c (IF_LINT): Update comments.
70115         (VASNPRINTF): Use it also for the 'prefix' array initializer.
70117 2008-05-21  Jim Meyering  <meyering@redhat.com>
70119         avoid a warning from gcc
70120         * lib/vasnprintf.c (IF_LINT): Define.
70121         (scale10_round_decimal_long_double):
70122         Use it to avoid a "may be used uninitialized" warning.
70123         (scale10_round_decimal_double): Likewise.
70125 2008-05-21  Simon Josefsson  <simon@josefsson.org>
70127         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
70128         declared.
70130 2008-05-20  Bruno Haible  <bruno@clisp.org>
70132         * tests/test-memcmp.c (main): Test also the sign of the result. Test
70133         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
70135 2008-05-20  Simon Josefsson  <simon@josefsson.org>
70137         * modules/memcmp-tests: New file.
70138         * tests/test-memcmp.c: New file.
70140 2008-05-19  Bruno Haible  <bruno@clisp.org>
70142         * modules/propername (Notice, configure.ac): Put quoted "..." into
70143         --keyword option.
70144         * lib/propername.h: Update comments accordingly.
70145         Reported by Eric Blake.
70147 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
70149         * modules/getpass-gnu (Depends-on): Add fseeko.
70151 2008-05-19  Simon Josefsson  <simon@josefsson.org>
70153         * modules/base64-tests: New file.
70155 2008-05-19  Bo Borgerson <gigabo@gmail.com>
70157         * lib/base64.c (base64_decode_ctx): If a decode context structure
70158         was passed in use it to ignore newlines.  If a context structure
70159         was _not_ passed in, continue to treat newlines as garbage (this
70160         is the historical behavior).  Formerly base64_decode.
70161         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
70162         takes a decode context structure.
70163         * lib/base64.h (base64_decode): Macro for four-argument calls.
70164         (base64_decode_alloc): Likewise.
70165         * lib/base64.c (base64_decode_ctx): If a decode context structure
70166         was passed in use it to ignore newlines.  If a context structure
70167         was _not_ passed in, continue to treat newlines as garbage (this
70168         is the historical behavior).  Formerly base64_decode.
70169         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
70170         takes a decode context structure.
70171         * lib/base64.h (base64_decode): Macro for four-argument calls.
70172         (base64_decode_alloc): Likewise.
70174 2008-05-19  Jim Meyering  <meyering@redhat.com>
70176         avoid a warning from gcc
70177         * lib/trim.c (IF_LINT): Define.
70178         (trim2): Use it to avoid a "may be used uninitialized" warning.
70180         Fix doc typo.
70181         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
70183 2008-05-19  Bruno Haible  <bruno@clisp.org>
70185         * doc/glibc-functions/getpass.texi: Document limits of other
70186         implementations.
70188 2008-05-19  Simon Josefsson  <simon@josefsson.org>
70189             Bruno Haible <bruno@clisp.org>
70191         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
70193 2008-05-18  Bruno Haible  <bruno@clisp.org>
70195         * modules/propername: New file, from GNU gettext.
70196         * lib/propername.h: New file, from GNU gettext.
70197         * lib/propername.c: New file, from GNU gettext.
70198         * MODULES.html.sh (Internationalization functions): Add propername.
70200 2008-05-16  Jim Meyering  <meyering@redhat.com>
70201             Bruno Haible  <bruno@clisp.org>
70203         Avoid some warnings from "gcc -Wshadow".
70204         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
70206 2008-05-15  Eric Blake  <ebb9@byu.net>
70208         Extend previous patch to cygwin 1.7.0.
70209         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
70210         fast implementation in cygwin >= 1.7.0.
70211         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70212         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70214 2008-05-15  Bruno Haible  <bruno@clisp.org>
70216         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
70217         implementation in glibc >= 2.9.
70218         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70219         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70221 2008-05-15  Bruno Haible  <bruno@clisp.org>
70223         * MODULES.html.sh (Internationalization functions): Remove linebreak.
70224         (Unicode string functions): Add unilbrk/*.
70225         Reported by Karl Berry.
70227 2008-05-15  Eric Blake  <ebb9@byu.net>
70229         Fix violation of <stdbool.h> replacement in regex.
70230         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
70231         * lib/regexec.c (re_search_internal): Likewise.
70232         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
70234 2008-05-15  Jim Meyering  <meyering@redhat.com>
70236         avoid distracting test output when git or cvs is not found
70237         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
70238         * tests/test-vc-list-files-git.sh: Likewise.
70240 2008-05-15  Eric Blake  <ebb9@byu.net>
70242         Glibc finally accepted the memmem speedup code, bugzilla #5514.
70243         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
70244         glibc version.
70245         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
70246         * doc/posix-functions/strstr.texi (strstr): Likewise.
70247         * lib/str-two-way.h (MAX): Sychronize with glibc.
70249 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
70251         * lib/regcomp.c (optimize_utf8): Add a note on why we test
70252         opr.ctx_type.
70253         (calc_first): Initialize constraint field.
70254         (duplicate_node_closure): Use it instead of special casing ANCHORS.
70255         Fix grammar.
70256         (duplicate_node): Merge constraint field for all node types.
70257         (calc_eclosure_iter): Look at constraint field for all node types.
70258         * lib/regex_internal.c (create_cd_newstate): Don't look at
70259         opr.ctx_type.
70261 2008-05-14  Bruno Haible  <bruno@clisp.org>
70263         Help GCC to do better code generation.
70264         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
70265         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
70266         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
70267         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
70268         Declare with attribute 'malloc' if supported.
70270 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
70272         use "echo STR|wc -c" rather than unportable "expr length STR"
70273         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
70274         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
70276 2008-05-14  Jim Meyering  <meyering@redhat.com>
70278         use dd ibs=$n count=1 ... rather than less-portable head -c$n
70279         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
70280         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
70281         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
70282         via Collin Lasse.
70284 2008-05-14  Eric Blake  <ebb9@byu.net>
70286         Avoid quadratic growth in gl_LIBSOURCES.
70287         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
70288         Suggested by Bruno Haible.
70290         Test xmemdup0.
70291         * modules/xmemdup0-tests: New file.
70292         * tests/test-xmemdup0.c: Likewise.
70294 2008-05-13  Eric Blake  <ebb9@byu.net>
70296         Split xmemdup0 into its own module.
70297         * modules/xmemdup0: New file.
70298         * lib/xmemdup0.h: Likewise.
70299         * lib/xmemdup0.c: Likewise.
70300         * MODULES.html.sh (Memory management functions): Add xmemdup0.
70301         * lib/xalloc.h (xmemdup0): Remove.
70302         * lib/xmalloc.c (xmemdup0): Likewise.
70304 2008-05-13  Eric Blake  <ebb9@byu.net>
70305             Bruno Haible  <bruno@clisp.org>
70307         Reduce number of forks required during autoconf.
70308         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
70309         and gl_LIBSOURCES_DIR.
70310         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
70311         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
70312         m4_syscmd per file.
70313         <m4_foreach_w>: Move...
70314         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
70316 2008-05-13  Eric Blake  <ebb9@byu.net>
70318         * gnulib-tool: Fix various comment typos.
70320 2008-05-12  Bruno Haible  <bruno@clisp.org>
70322         Tailor the linebreaking algorithm.
70323         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
70325 2008-05-12  Bruno Haible  <bruno@clisp.org>
70327         Update to Unicode 5.0.0.
70328         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
70329         LBP_JV, LBP_JT. Redistribute values.
70330         (unilbrk_table): Change size.
70331         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
70332         Unicode TR#14 rev. 22.
70333         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
70334         LBP_JV, LBP_JT. Redistribute values.
70335         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
70336         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
70337         Update.
70338         * lib/unilbrk/lbrkprop1.h: Regenerated.
70339         * lib/unilbrk/lbrkprop2.h: Regenerated.
70340         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
70341         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
70342         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
70343         Likewise.
70344         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
70345         Likewise.
70346         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
70347         result.
70348         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
70349         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
70350         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
70351         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
70352         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
70353         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
70355 2008-05-11  Bruno Haible  <bruno@clisp.org>
70357         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
70359 2008-05-11  Bruno Haible  <bruno@clisp.org>
70361         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
70362         * modules/unilbrk/gen-lbrk: New file.
70364 2008-05-11  Bruno Haible  <bruno@clisp.org>
70366         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
70367         * m4/sha512.m4 (gl_SHA512): Likewise.
70369 2008-05-11  Jim Meyering  <meyering@redhat.com>
70371         New modules: crypto/sha256, crypto/sha512 (from coreutils)
70372         * modules/crypto/sha256: New file.
70373         * modules/crypto/sha512: Likewise.
70374         * lib/sha256.c: Likewise.
70375         * lib/sha256.h: Likewise.
70376         * lib/sha512.c: Likewise.
70377         * lib/sha512.h: Likewise.
70378         * lib/u64.h: Likewise.
70379         * m4/sha256.m4: Likewise.
70380         * m4/sha512.m4: Likewise.
70381         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
70383 2008-05-10  Bruno Haible  <bruno@clisp.org>
70385         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
70386         (Input/Output <stdio.h>): Add xprintf.
70387         (Signal handling <signal.h>): Add strsignal.
70388         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
70389         (Core language properties): Add func.
70390         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
70391         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
70392         strings.
70393         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
70394         (Input/output): New section.
70395         (File system functions): Add openat-die, stat-macros.
70396         (Networking functions): Add sockets.
70397         (Unicode string functions): Add unictype/*.
70398         (Support for building libraries and executables): Add gperf.
70399         (Support for building documentation): Add agpl-3.0.
70400         (Misc): Add nocrash.
70402 2008-05-10  Bruno Haible  <bruno@clisp.org>
70404         * modules/unictype/gen-ctype: New file.
70406 2008-05-10  Jim Meyering  <meyering@redhat.com>
70408         Make chdir-safer.c more efficient on a system with no symlinks.
70409         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
70410         also if ELOOP is zero.  Suggested by Bruno Haible.
70412         Make chdir-safer.c slightly safer.
70413         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
70414         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
70416         Avoid compile failure on systems without ELOOP (like mingw).
70417         * lib/chdir-safer.c (ELOOP): Define if not already defined.
70418         Reported by Bruno Haible.
70420 2008-05-10  Bruno Haible  <bruno@clisp.org>
70422         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
70423         (is_utf8_encoding): Use a case-insensitive comparison.
70424         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
70425         streq.
70427 2008-05-10  Bruno Haible  <bruno@clisp.org>
70429         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
70430         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
70431         * lib/unilbrk/ulc-common.h (iconv_string_length,
70432         iconv_string_keeping_offsets): Remove declarations.
70433         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
70434         Don't include <iconv.h>, streq.h, xsize.h.
70435         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
70436         conversion.
70437         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
70438         <iconv.h>, streq.h, xsize.h.
70439         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
70440         conversion.
70441         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
70442         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
70443         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
70444         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
70446 2008-05-10  Bruno Haible  <bruno@clisp.org>
70448         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
70449         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
70451         * modules/unilbrk/u32-width-linebreaks-tests: New file.
70452         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
70454         * modules/unilbrk/u16-width-linebreaks-tests: New file.
70455         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
70457         * modules/unilbrk/u8-width-linebreaks-tests: New file.
70458         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
70460         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
70461         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
70463         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
70464         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
70466         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
70467         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
70469         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
70470         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
70472 2008-05-10  Bruno Haible  <bruno@clisp.org>
70474         Split up 'linebreak' module.
70475         * lib/unilbrk.h: New file, based on lib/linebreak.h.
70476         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
70477         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
70478         modifications.
70479         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
70480         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
70481         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
70482         lib/linebreak.c.
70483         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
70484         lib/linebreak.c.
70485         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
70486         lib/linebreak.c.
70487         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
70488         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
70489         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
70490         lib/linebreak.c.
70491         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
70492         lib/linebreak.c.
70493         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
70494         lib/linebreak.c.
70495         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
70496         lib/linebreak.c.
70497         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
70498         lib/linebreak.c.
70499         * modules/unilbrk/base: New file.
70500         * modules/unilbrk/tables: New file.
70501         * modules/unilbrk/u8-possible-linebreaks: New file.
70502         * modules/unilbrk/u16-possible-linebreaks: New file.
70503         * modules/unilbrk/u32-possible-linebreaks: New file.
70504         * modules/unilbrk/ulc-common: New file.
70505         * modules/unilbrk/ulc-possible-linebreaks: New file.
70506         * modules/unilbrk/u8-width-linebreaks: New file.
70507         * modules/unilbrk/u16-width-linebreaks: New file.
70508         * modules/unilbrk/u32-width-linebreaks: New file.
70509         * modules/unilbrk/ulc-width-linebreaks: New file.
70510         * lib/linebreak.h: Remove file.
70511         * lib/linebreak.c: Remove file.
70512         * m4/linebreak.m4: Remove file.
70513         * modules/linebreak: Remove file.
70514         * NEWS: Mention the changes.
70516 2008-05-09  Eric Blake  <ebb9@byu.net>
70518         Add xmemdup0.
70519         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
70520         implementation.
70521         * lib/xmalloc.c (xmemdup0): New C implementation.
70523 2008-05-08  Bruno Haible  <bruno@clisp.org>
70525         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
70527 2008-05-07  Eric Blake  <ebb9@byu.net>
70529         Support cross-compilation of <wctype.h>.
70530         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
70531         AC_CACHE_CHECK.
70533 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
70535         * build-aux/vc-list-files: Add support for bzr.
70537 2008-05-03  Jim Meyering  <meyering@redhat.com>
70539         avoid failed assertion with tight malloc
70540         * tests/test-getndelim2.c: Correct an off-by-one assertion.
70542 2008-05-03  Simon Josefsson  <simon@josefsson.org>
70544         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
70545         are needed from arpa/inet.h.
70546         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
70547         Reported by Bruno Haible.
70549 2008-05-02  Jim Meyering  <meyering@redhat.com>
70551         avoid compilation error on FreeBSD 6
70552         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
70554 2008-05-01  Jim Meyering  <meyering@redhat.com>
70556         useless-if-before-free: correct --help's exit status description
70557         * build-aux/useless-if-before-free (usage): Like grep, exit 0
70558         for one or more matches, etc.  Reported by Bruno Haible.
70560         vc-list-files: make the stand-alone gnulib test work
70561         * modules/vc-list-files-tests (configure.ac):
70562         Define and AC_SUBST abs_aux_dir.
70563         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
70564         $(abs_top_srcdir) to each script and having each of them
70565         duplicate the work of setting PATH, set PATH here, using
70566         the new variable, abs_aux_dir instead.
70567         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
70568         * tests/test-vc-list-files-git.sh: Likewise.
70569         Reported by Bruno Haible.
70571 2008-05-01  Bruno Haible  <bruno@clisp.org>
70573         * lib/getndelim2.c (getndelim2): Fix newsize computation during
70574         reallocation. Rename 'done' to 'found_delimiter'.
70576 2008-05-01  Jim Meyering  <meyering@redhat.com>
70578         vc-list-files: accommodate /bin/sh like the one from Solaris 10
70579         * build-aux/vc-list-files: Use `...`, not $(...).
70581 2008-04-30  Jim Meyering  <meyering@redhat.com>
70583         add tests for vc-list-files
70584         * modules/vc-list-files-tests: New module.
70585         * tests/test-vc-list-files-cvs.sh: New file.
70586         * tests/test-vc-list-files-git.sh: New file.
70588         avoid a warning from gcc
70589         * lib/getndelim2.c (IF_LINT): Define.
70590         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
70592         vc-list-files: work properly with build-aux/cvsu, too
70593         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
70594         to all cvs-based clauses.
70596         vc-list-files: work properly in the CVS+awk case, too
70597         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
70599         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
70600         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
70601         take more than one file argument, so .  Add quotes, just in case $dir
70602         ever contains a shell meta-character.  Prompted by Soren Hansen in
70603         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
70605 2008-04-29  Eric Blake  <ebb9@byu.net>
70607         Optimize getndelim2 to use block operations when possible.
70608         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
70609         freadseek, and memchr2.
70610         * lib/getndelim2.c (getndelim2): Use them for block reads.
70612 2008-04-29  Bruno Haible  <bruno@clisp.org>
70614         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
70615         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
70616         * modules/inet_ntop (Depends-on): Add extensions.
70617         * modules/inet_pton (Depends-on): Likewise.
70618         Reported by Simon Josefsson.
70620 2008-04-29  Jim Meyering  <meyering@redhat.com>
70622         When the is more than one match in a block, match all of them.
70623         * build-aux/useless-if-before-free: Iterate through each block
70624         until there are no more matches.
70626         Fix broken useless-if-before-free script.
70627         * build-aux/useless-if-before-free: Fix typo: missing "?" after
70628         the expression to match cast of argument to free-like function.
70630 2008-04-29  Eric Blake  <ebb9@byu.net>
70632         Use new header.
70633         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
70635 2008-04-29  Jim Meyering  <meyering@redhat.com>
70637         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
70638         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
70639         by gnulib to exist and to declare e.g., inet_ntop.
70640         Don't include "inet_ntop.h", now removed.
70642         * m4/arpa_inet_h.m4: Remove trailing blanks.
70644 2008-04-29  Eric Blake  <ebb9@byu.net>
70646         Silence valgrind on safe reads beyond potential array bounds.
70647         * lib/rawmemchr.valgrind: New file.
70648         * lib/strchrnul.valgrind: Likewise.
70649         * modules/rawmemchr (Files): Distribute new file.
70650         * modules/strchrnul (Files): Likewise.
70651         Suggested by Bruno Haible.
70653 2008-04-29  Bruno Haible  <bruno@clisp.org>
70655         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
70656         (inet_ntop, inet_pton): Change portability warning's wording.
70657         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
70658         Invoke gl_CHECK_NEXT_HEADERS.
70659         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
70660         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
70661         set ARPA_INET_H.
70662         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
70663         * modules/arpa_inet (Description): No longer only for systems that
70664         lack it.
70665         (Depends-on): Add include_next.
70666         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
70667         HAVE_ARPA_INET_H.
70669 2008-04-29  Jim Meyering  <meyering@redhat.com>
70671         * modules/mkdir (License): Re-license as LGPLv2+.
70673 2008-04-29  Bruno Haible  <bruno@clisp.org>
70675         * modules/rawmemchr (Maintainer): Set to Eric.
70676         * modules/strchrnul (Maintainer): Likewise.
70678 2008-04-29  Simon Josefsson  <simon@josefsson.org>
70680         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
70681         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
70683         * modules/arpa_inet (arpa/inet.h): Use them.
70685 2008-04-28  Eric Blake  <ebb9@byu.net>
70687         Test getndelim2.
70688         * modules/getndelim2-tests: New file.
70689         * tests/test-getndelim2.c: Likewise.
70690         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
70691         stream.
70692         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
70694         * MODULES.html.sh: Document new module.
70696 2008-04-20  Bruno Haible  <bruno@clisp.org>
70698         * lib/c-stack.c (die): Use raise.
70699         * modules/c-stack (Depends-on): Add raise.
70701 2008-04-28  Bruno Haible  <bruno@clisp.org>
70703         Expect rpmatch to be declared.
70704         * lib/yesno.c (rpmatch): Remove declaration.
70706         Declare rpmatch.
70707         * lib/stdlib.in.h (rpmatch): New declaration.
70708         * lib/rpmatch.c: Include <stdlib.h> first.
70709         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
70710         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
70711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
70712         HAVE_RPMATCH.
70713         * modules/rpmatch (Depends-on): Add stdlib, extensions.
70714         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70715         (Include): Set to <stdlib.h>.
70716         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
70717         HAVE_RPMATCH.
70718         * NEWS: Document the change.
70720 2008-04-28  Bruno Haible  <bruno@clisp.org>
70722         Change rpmatch to use nl_langinfo when appropriate.
70723         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
70724         (N_): New macro.
70725         (localized_pattern): New function/macro.
70726         (try): Remove match, nomatch arguments. Copy the pattern into safe
70727         memory before caching it.
70728         (rpmatch): Use localized_pattern. Add translator comments.
70729         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
70730         Suggested by Eric Blake.
70731         * modules/rpmatch (Depends-on): Add stdbool.
70733 2008-04-28  Eric Blake  <ebb9@byu.net>
70735         Add rawmemchr module, matching glibc.
70736         * modules/string (Makefile.am): New indicator.
70737         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
70738         * lib/string.in.h (rawmemchr): Declare when appropriate.
70739         * modules/rawmemchr: New file.
70740         * m4/rawmemchr.m4: Likewise.
70741         * lib/rawmemchr.c: Likewise.
70742         * modules/rawmemchr-tests: Likewise.
70743         * tests/test-rawmemchr.c: Likewise.
70744         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
70745         module.
70746         * modules/strchrnul (Depends-on): Add rawmemchr.
70747         * lib/strchrnul.c (strchrnul): Optimize a corner case.
70749         Whitespace cleanup.
70750         * tests/test-strchrnul.c: Reindent.
70751         * lib/strchrnul.c: Likewise.
70753         Optimize and test strchrnul.
70754         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
70755         * modules/strchrnul-tests: New file.
70756         * tests/test-strchrnul.c: Likewise.
70758         Remove intprops dependency.
70759         * modules/memchr (Depends-on): Remove intprops.
70760         * modules/memrchr (Depends-on): Likewise.
70761         * modules/memchr2 (Depends-on): Likewise.
70762         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
70763         * lib/memrchr.c (__memrchr): Likewise.
70764         * lib/memrchr2.c (memchr2): Likewise.
70765         Reported by Simon Josefsson.
70767 2008-04-28  Simon Josefsson  <simon@josefsson.org>
70769         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
70770         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70772 2008-04-28  Simon Josefsson  <simon@josefsson.org>
70774         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
70776         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
70778         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
70780         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
70781         declarations.
70782         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
70784         * m4/inet_pton.m4: Don't check for header files.
70786         * m4/inet_ntop.m4: Don't check for header files.
70788 2008-04-28  Simon Josefsson  <simon@josefsson.org>
70790         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
70791         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
70792         trigger for cygwin).
70793         Reported by Bruno Haible  <bruno@clisp.org>.
70795 2008-04-28  Bruno Haible  <bruno@clisp.org>
70797         * doc/posix-functions/strdup.texi: Mention mingw problem.
70799 2008-04-27  Bruno Haible  <bruno@clisp.org>
70801         * modules/stat-time-tests (Depends-on): Add sleep.
70802         * tests/test-stat-time.c (force_unlink): New function.
70803         (cleanup): Use it.
70804         (test_mtime): Remove the ctime related tests.
70805         (test_ctime): New function, containing the ctime related tests.
70806         (main): Call test_ctime, except on native Windows platforms.
70808 2008-04-27  Bruno Haible  <bruno@clisp.org>
70810         * lib/rpmatch.c (rpmatch): Add some comments.
70811         Reported by James Youngman <jay@gnu.org>.
70813 2008-04-27  Bruno Haible  <bruno@clisp.org>
70815         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
70816         quiet NaNs.
70818 2008-04-27  Bruno Haible  <bruno@clisp.org>
70820         Make test-yesno.sh work on mingw.
70821         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
70822         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
70823         (main): Set stdin to binary mode.
70824         * modules/yesno-tests (Depends-on): Add binary-io.
70826 2008-04-27  Bruno Haible  <bruno@clisp.org>
70828         Fix 'isfinite' on x86, x86_64, ia64 platforms.
70829         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
70830         argument that lie outside the IEEE 854 domain.
70831         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
70832         (gl_ISFINITE): Use it.
70833         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
70835 2008-04-27  Bruno Haible  <bruno@clisp.org>
70837         Allow local renaming in config.h.
70838         * lib/memrchr.c (memrchr): Don't undefine outside libc.
70840 2008-04-27  Bruno Haible  <bruno@clisp.org>
70842         * lib/memchr.c (__memchr): Change type of 'i'.
70843         * lib/memchr2.c (memchr2): Likewise.
70845 2008-04-26  Eric Blake  <ebb9@byu.net>
70846         and Bruno Haible  <bruno@clisp.org>
70848         Optimize and test memrchr.
70849         * modules/memrchr (Depends-on): Add intprops.
70850         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
70851         * modules/memrchr-tests: New file.
70852         * tests/test-memrchr.c: New file.
70854 2008-04-26  Bruno Haible  <bruno@clisp.org>
70856         Add tentative support for DragonFly BSD.
70857         * lib/stdio-impl.h: Add macros for DragonFly BSD.
70858         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
70859         fp.
70860         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
70861         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
70862         * lib/fpurge.c (fpurge): Likewise.
70863         * lib/freadable.c (freaadable): Likewise.
70864         * lib/freadahead.c (freadahead): Likewise.
70865         * lib/freading.c (freading): Likewise.
70866         * lib/freadptr.c (freadptr): Likewise.
70867         * lib/freadseek.c (freadptrinc): Likewise.
70868         * lib/fseeko.c (fseeko): Likewise.
70869         * lib/fseterr.c (fseterr): Likewise.
70870         * lib/fwritable.c (fwritable): Likewise.
70871         * lib/fwriting.c (fwriting): Likewise.
70873 2008-04-26  Bruno Haible  <bruno@clisp.org>
70875         * lib/stdio-impl.h: New file.
70876         * lib/fbufmode.c: Include stdio-impl.h.
70877         (fbufmode): Use fp_, remove redundant #defines.
70878         * lib/fflush.c: Include stdio-impl.h.
70879         (clear_ungetc_buffer): Remove redundant #defines.
70880         * lib/fpurge.c: Include stdio-impl.h.
70881         (fpurge): Remove redundant #defines.
70882         * lib/freadable.c: Include stdio-impl.h.
70883         (freadable): Remove redundant #defines.
70884         * lib/freadahead.c: Include stdio-impl.h.
70885         (freadahead): Remove redundant #defines.
70886         * lib/freading.c: Include stdio-impl.h.
70887         (freading): Remove redundant #defines.
70888         * lib/freadptr.c: Include stdio-impl.h.
70889         (freadptr): Remove redundant #defines.
70890         * lib/freadseek.c: Include stdio-impl.h.
70891         (freadptrinc): Remove redundant #defines.
70892         * lib/fseeko.c: Include stdio-impl.h.
70893         (rpl_fseeko): Remove redundant #defines.
70894         * lib/fseterr.c: Include stdio-impl.h.
70895         (fseterr): Remove redundant #defines.
70896         * lib/fwritable.c: Include stdio-impl.h.
70897         (fwritable: Remove redundant #defines.
70898         * lib/fwriting.c: Include stdio-impl.h.
70899         (fwriting): Remove redundant #defines.
70900         * modules/fbufmode (Files): Add lib/stdio-impl.h.
70901         * modules/fflush (Files): Likewise.
70902         * modules/fpurge (Files): Likewise.
70903         * modules/freadable (Files): Likewise.
70904         * modules/freadahead (Files): Likewise.
70905         * modules/freading (Files): Likewise.
70906         * modules/freadptr (Files): Likewise.
70907         * modules/freadseek (Files): Likewise.
70908         * modules/fseeko (Files): Likewise.
70909         * modules/fseterr (Files): Likewise.
70910         * modules/fwritable (Files): Likewise.
70911         * modules/fwriting (Files): Likewise.
70913 2008-04-26  Bruno Haible  <bruno@clisp.org>
70915         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
70916         restore_seek_optimization, update_fpos_cache): New functions, extracted
70917         from rpl_fflush.
70918         (rpl_fflush): Use them.
70919         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
70920         (gl_REPLACE_FFLUSH): Use it.
70922 2008-04-26  Bruno Haible  <bruno@clisp.org>
70924         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
70925         on Solaris.
70926         * tests/test-xstrtoimax.sh: Likewise.
70927         * tests/test-xstrtoumax.sh: Likewise.
70928         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70930 2008-04-26  Bruno Haible  <bruno@clisp.org>
70932         * modules/memchr-tests: New file.
70933         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
70935 2008-04-26  Eric Blake  <ebb9@byu.net>
70936             Bruno Haible  <bruno@clisp.org>
70938         * lib/memchr.c: Include intprops.h.
70939         (__memchr): Optimize parallel detection of matching bytes. Rename local
70940         variables. Add explanatory comments.
70942 2008-04-26  Bruno Haible  <bruno@clisp.org>
70944         Fix module 'memchr', broken since 2000-10-28.
70945         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
70947 2008-04-26  Bruno Haible  <bruno@clisp.org>
70949         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
70950         comments.
70952 2008-04-25  Eric Blake  <ebb9@byu.net>
70954         Use native fstatat on cygwin 1.7.0.
70955         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
70956         first.
70958 2008-04-23  Eric Blake  <ebb9@byu.net>
70960         Improve memchr2 performance.
70961         * lib/memchr2.c (memchr2): Further optimize parallel detection of
70962         NUL bytes.
70963         * modules/memchr2 (Depends-on): Use intprops.h.
70965 2008-04-23  Simon Josefsson  <simon@josefsson.org>
70967         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
70968         an inline function instead of a CPP macro.  Patch by Ben Pfaff
70969         <blp@cs.stanford.edu>.
70971 2008-04-23  Simon Josefsson  <simon@josefsson.org>
70973         * lib/arpa_inet.in.h: New file.
70975         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
70976         (Makefile.am): Sed in substitute header file.
70978         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
70979         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
70981         * modules/inet_ntop (configure.ac): Use
70982         gl_ARPA_INET_MODULE_INDICATOR.
70984         * modules/inet_pton (configure.ac): Use
70985         gl_ARPA_INET_MODULE_INDICATOR.
70987 2008-04-22  Jim Meyering  <meyering@redhat.com>
70989         * modules/verify (License): Re-license as LGPLv2+.
70991 2008-04-22  Simon Josefsson  <simon@josefsson.org>
70993         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
70994         parameter to void* as per POSIX standard (MinGW uses char*).
70996 2008-04-21  Bruno Haible  <bruno@clisp.org>
70998         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70999         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71000         Define to replacements if REPLACE_ISWCNTRL is 1.
71001         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
71002         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
71003         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
71004         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
71005         what it fixes.
71006         * doc/posix-functions/iswalpha.texi: Likewise.
71007         * doc/posix-functions/iswblank.texi: Likewise.
71008         * doc/posix-functions/iswcntrl.texi: Likewise.
71009         * doc/posix-functions/iswdigit.texi: Likewise.
71010         * doc/posix-functions/iswgraph.texi: Likewise.
71011         * doc/posix-functions/iswlower.texi: Likewise.
71012         * doc/posix-functions/iswprint.texi: Likewise.
71013         * doc/posix-functions/iswpunct.texi: Likewise.
71014         * doc/posix-functions/iswspace.texi: Likewise.
71015         * doc/posix-functions/iswupper.texi: Likewise.
71016         * doc/posix-functions/iswxdigit.texi: Likewise.
71017         Reported by Alain Guibert.
71019 2008-04-21  Bruno Haible  <bruno@clisp.org>
71021         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
71022         Patch by Alain Guibert.
71024 2008-04-21  Bruno Haible  <bruno@clisp.org>
71026         Fix test failures on mingw.
71027         * tests/test-xstrtol.c (print_no_progname): New function.
71028         (main): Install it in error_print_progname hook.
71029         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
71030         * tests/test-xstrtoimax.sh: Likewise.
71031         * tests/test-xstrtoumax.sh: Likewise.
71033 2008-04-21  Bruno Haible  <bruno@clisp.org>
71035         Fix test failure on mingw.
71036         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
71038 2008-04-21  Bruno Haible  <bruno@clisp.org>
71040         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
71041         Actually assign a value.
71043 2008-04-20  Bruno Haible  <bruno@clisp.org>
71045         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
71046         take 2.
71047         * lib/canonicalize.c (canonicalize_file_name): Elide if the
71048         'canonicalize-lgpl' module is also used.
71049         * lib/canonicalize-lgpl.c: Undo last change.
71050         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
71052 2008-04-20  Bruno Haible  <bruno@clisp.org>
71054         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
71055         config.h. Provide _mkdir based fallback for mingw.
71056         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
71057         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
71058         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
71059         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
71060         rather than defining mkdir in config.h.
71061         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
71062         (gl_SYS_STAT_H_DEFAULTS): New macro.
71063         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
71064         HAVE_IO_H any more.
71065         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
71066         HAVE_DECL_MKDIR and HAVE_IO_H.
71068 2008-04-20  Bruno Haible  <bruno@clisp.org>
71070         * lib/isapipe.c: Port to native Windows platforms.
71072 2008-04-20  Bruno Haible  <bruno@clisp.org>
71074         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
71076 2008-04-21  Eric Blake  <ebb9@byu.net>
71078         Work around preprocessors that don't handle UINTMAX_MAX.
71079         * lib/memchr2.c (memchr2): Avoid embedded #if.
71080         Reported by Alain Guibert, fix suggested by Bruno Haible.
71082 2008-04-21  Simon Josefsson  <simon@josefsson.org>
71084         * doc/posix-functions/strftime.texi (strftime): Explain better
71085         Windows incompatibility.  Suggested by Micah Cowan
71086         <micah@cowan.name>.
71088 2008-04-20  Bruno Haible  <bruno@clisp.org>
71090         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
71091         unistr/u8-mblen.
71093 2008-04-20  Bruno Haible  <bruno@clisp.org>
71095         Fix test failure on platforms with non-GNU iconv.
71096         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
71097         (U_TO_U8): Use it, rather than u16_to_u8.
71098         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
71099         units at the end of the input string.
71100         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
71102 2008-04-20  Bruno Haible  <bruno@clisp.org>
71104         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
71105         when the resulting length is 0.
71106         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
71108 2008-04-20  Bruno Haible  <bruno@clisp.org>
71110         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
71111         works.
71112         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
71114 2008-04-20  Bruno Haible  <bruno@clisp.org>
71116         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
71117         * modules/tsearch-tests (configure.ac): Test for initstate function.
71119 2008-04-20  Bruno Haible  <bruno@clisp.org>
71121         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
71122         for nlink_t if missing.
71123         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
71125 2008-04-19  Bruno Haible  <bruno@clisp.org>
71127         Work around snprintf bug on Linux libc5.
71128         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
71129         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71130         gl_SNPRINTF_SIZE1.
71131         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71132         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
71133         that test failed.
71134         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
71135         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
71136         * modules/snprintf (Files): Add m4/printf.m4.
71137         * modules/vsnprintf (Files): Likewise.
71138         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
71139         * doc/posix-functions/vsnprintf.texi: Likewise.
71141 2008-04-19  Bruno Haible  <bruno@clisp.org>
71143         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
71144         from 0.0058 to less than 10^-7.
71146 2008-04-19  Bruno Haible  <bruno@clisp.org>
71148         Fix rounding when a precision is given.
71149         * lib/vasnprintf.c (is_borderline): New function.
71150         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
71151         9...9x.
71152         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
71153         %e, %g.
71154         * tests/test-vasprintf-posix.c (test_function): Likewise.
71155         * tests/test-snprintf-posix.h (test_function): Likewise.
71156         * tests/test-sprintf-posix.h (test_function): Likewise.
71157         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
71158         * tests/test-printf-posix.h (test_function): Likewise.
71159         * tests/test-printf-posix.output: Update.
71160         Reported by John Darrington <john@darrington.wattle.id.au> via
71161         Ben Pfaff <blp@cs.stanford.edu>.
71163 2008-04-18  Simon Josefsson  <simon@josefsson.org>
71165         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
71166         Suggested by Bruno Haible <bruno@clisp.org>.
71168 2008-04-17  Bruno Haible  <bruno@clisp.org>
71170         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
71171         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
71172         implementation.
71173         Patch by Bruce Merry <bmerry@gmail.com>.
71175 2008-04-17  Simon Josefsson  <simon@josefsson.org>
71177         * doc/posix-functions/strftime.texi (strftime): Mention that %e
71178         doesn't work under Windows.
71180 2008-04-16  Bruno Haible  <bruno@clisp.org>
71182         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
71183         New macros.
71184         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
71185         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
71186         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
71187         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
71188         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
71189         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
71190         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
71191         macros.
71192         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
71193         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
71194         Northern Sotho, Uighur.
71196 2008-04-16  Bruno Haible  <bruno@clisp.org>
71198         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
71199         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
71200         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
71201         Reported by Daniel Bergström <daniel@octocode.com>.
71203 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
71204             Bruno Haible  <bruno@clisp.org>
71206         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
71207         function.
71208         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
71209         New functions, mostly extracted from gl_locale_name_default.
71210         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
71212 2008-04-16  Eric Blake  <ebb9@byu.net>
71214         Adjust strtod detection to catch glibc 2.7 bug.
71215         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
71216         Reported by John Gatewood Ham.
71218 2008-04-16  Bruno Haible  <bruno@clisp.org>
71220         Add tentative support for Linux libc5.
71221         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
71222         * lib/fpurge.c (fpurge): Likewise.
71223         * lib/freadable.c (freadable): Likewise.
71224         * lib/freadahead.c (freadahead): Likewise.
71225         * lib/freading.c (freading): Likewise.
71226         * lib/freadptr.c (freadptr): Likewise.
71227         * lib/freadseek.c (freadptrinc): Likewise.
71228         * lib/fseeko.c (rpl_fseeko): Likewise.
71229         * lib/fseterr.c (fseterr): Likewise.
71230         * lib/fwritable.c (fwritable): Likewise.
71231         * lib/fwriting.c (fwriting): Likewise.
71232         Reported by Alain Guibert <alguibert+bts@free.fr>.
71234 2008-04-15  Bruno Haible  <bruno@clisp.org>
71236         * modules/mathl (configure.ac): Define module indicator.
71238 2008-04-15  Bruno Haible  <bruno@clisp.org>
71240         * lib/logl.c (logl): Remove unused variables.
71242 2008-04-15  Bruno Haible  <bruno@clisp.org>
71244         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
71245         fails.
71247 2008-04-15  Bruno Haible  <bruno@clisp.org>
71249         * lib/trim.c (trim2): Fix argument of isspace() macro.
71251 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
71253         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
71254         to 0.
71255         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
71257 2008-04-14  Bruno Haible  <bruno@clisp.org>
71259         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
71260         AC_LANG_PROGRAM argument.
71261         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
71262         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
71263         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
71264         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
71265         * m4/math_h.m4 (gl_MATH_H): Likewise.
71266         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
71267         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
71268         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
71269         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
71270         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71271         * m4/regex.m4 (gl_REGEX): Likewise.
71272         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
71273         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
71274         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71275         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
71276         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
71277         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71278         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71279         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
71281 2008-04-14  Jim Meyering  <meyering@redhat.com>
71283         test-strtod: fix typos: s/abs/fabs/
71284         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
71286 2008-04-13  Bruno Haible  <bruno@clisp.org>
71288         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
71289         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
71290         module is also used and while not building the reloc-wrapper.
71292 2008-04-13  Bruno Haible  <bruno@clisp.org>
71294         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
71296 2008-04-13  Bruno Haible  <bruno@clisp.org>
71298         Fix AIX compilation failure introduced on 2008-04-02.
71299         * tests/test-frexp.c (exp): Undefine before redefining.
71300         * tests/test-frexpl.c (exp): Likewise.
71302 2008-04-13  Bruno Haible  <bruno@clisp.org>
71304         Work around a HP-UX stdio bug.
71305         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
71306         * tests/test-ftello.c (main): Likewise.
71307         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
71308         * doc/posix-functions/ftello.texi: Likewise.
71310 2008-04-13  Bruno Haible  <bruno@clisp.org>
71312         Make test-signbit pass on HP-UX/hppa.
71313         * tests/test-signbit.c (minus_zerol): New variable.
71314         (test_signbitl): Use it.
71316 2008-04-13  Bruno Haible  <bruno@clisp.org>
71318         Make truncl work on OSF/1 4.0.
71319         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
71320         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
71321         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
71322         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
71323         HAVE_DECL_TRUNCL.
71324         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
71325         HAVE_DECL_TRUNCL.
71326         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
71328 2008-04-13  Bruno Haible  <bruno@clisp.org>
71330         * lib/unictype.h: Remove trailing comma from enumeration definitions.
71332 2008-04-13  Bruno Haible  <bruno@clisp.org>
71334         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
71335         expression, so as to avoid HP-UX 11 cc compiler bug.
71337 2008-04-13  Bruno Haible  <bruno@clisp.org>
71339         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
71341 2008-04-13  Bruno Haible  <bruno@clisp.org>
71343         * lib/git-merge-changelog.c: Remove empty declaration outside of
71344         functions.
71346 2008-04-13  Bruno Haible  <bruno@clisp.org>
71348         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
71350 2008-04-13  Bruno Haible  <bruno@clisp.org>
71352         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
71353         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
71354         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
71355         also if it exists but lacks definitions of the SHUT_* macros.
71356         * modules/sys_socket (Description): Update.
71357         Reported by Elbert Pol <e.pol@chello.nl>.
71359 2008-04-13  Bruno Haible  <bruno@clisp.org>
71361         * lib/localcharset.c (OS2): Don't redefine if already defined.
71362         Reported by Elbert Pol <e.pol@chello.nl>.
71364 2008-04-13  Bruno Haible  <bruno@clisp.org>
71366         * lib/binary-io.h [__EMX__]: Include <io.h>.
71367         Reported by Elbert Pol <e.pol@chello.nl>.
71369 2008-04-12  Bruno Haible  <bruno@clisp.org>
71371         * lib/fpucw.h: Enable the definitions also for x86_64.
71372         Needed for NetBSD/x86_64.
71373         Reported by Thomas Klausner <tk@giga.or.at>.
71375 2008-04-12  Bruno Haible  <bruno@clisp.org>
71377         * tests/test-strtod.c: Include isnand.h.
71378         (main): Use isnand instead of isnan.
71379         Reported by Jim Meyering.
71381 2008-04-12  Bruno Haible  <bruno@clisp.org>
71383         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
71384         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71386 2008-04-12  Jim Meyering  <meyering@redhat.com>
71388         * m4/math_h.m4 (gl_MATH_H): Fix typos.
71390 2008-04-12  Bruno Haible  <bruno@clisp.org>
71392         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
71393         Reported by Elbert Pol <e.pol@chello.nl>.
71395 2008-04-12  Eric Blake  <ebb9@byu.net>
71397         Work around Solaris 10 math.h bug.
71398         * m4/math_h.m4 (gl_MATH_H): Check for bug.
71399         (gl_MATH_H_DEFAULTS): Set up default.
71400         * modules/math (Makefile.am): Replace new indicators.
71401         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
71402         * tests/test-math.c (main): Test this.
71403         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
71404         * doc/posix-headers/math.texi (math.h): Mention bug.
71405         Reported by Nelson H. F. Beebe and Jim Meyering.
71407 2008-04-11  Bruno Haible  <bruno@clisp.org>
71409         Adapt to future versions of Apple GCC.
71410         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
71411         Reported by Peter O'Gorman <peter@pogma.com>.
71413 2008-04-11  Bruno Haible  <bruno@clisp.org>
71415         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
71417 2008-04-11  Bruno Haible  <bruno@clisp.org>
71419         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
71421         * modules/getaddrinfo-tests (Makefile.am): Define
71422         test_getaddrinfo_LDADD.
71424 2008-04-11  Bruno Haible  <bruno@clisp.org>
71426         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
71427         (init): Fix syntax error.
71428         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
71429         is declared.
71431 2008-04-11  Bruno Haible  <bruno@clisp.org>
71433         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
71434         * modules/glob (Depends-on): Add stdbool.
71436 2008-04-11  Bruno Haible  <bruno@clisp.org>
71438         * lib/trim.c: Include <string.h>.
71440 2008-04-11  Eric Blake  <ebb9@byu.net>
71442         Avoid compile failure on OS/2.
71443         * lib/regex_internal.h (internal_function): Disable optimization
71444         on OS/2 (__EMX__), where it caused compiler error.
71445         Reported by Elbert Pol.
71447 2008-04-11  Bruno Haible  <bruno@clisp.org>
71449         Flush the standard error stream before aborting. Needed on mingw.
71450         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
71451         * tests/test-array_list.c (ASSERT): Likewise.
71452         * tests/test-array_oset.c (ASSERT): Likewise.
71453         * tests/test-avltree_list.c (ASSERT): Likewise.
71454         * tests/test-avltree_oset.c (ASSERT): Likewise.
71455         * tests/test-avltreehash_list.c (ASSERT): Likewise.
71456         * tests/test-binary-io.c (ASSERT): Likewise.
71457         * tests/test-byteswap.c (ASSERT): Likewise.
71458         * tests/test-c-ctype.c (ASSERT): Likewise.
71459         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
71460         * tests/test-c-strcasestr.c (ASSERT): Likewise.
71461         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
71462         * tests/test-c-strstr.c (ASSERT): Likewise.
71463         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
71464         * tests/test-canonicalize.c (ASSERT): Likewise.
71465         * tests/test-carray_list.c (ASSERT): Likewise.
71466         * tests/test-ceilf1.c (ASSERT): Likewise.
71467         * tests/test-ceilf2.c (ASSERT): Likewise.
71468         * tests/test-ceill.c (ASSERT): Likewise.
71469         * tests/test-count-one-bits.c (ASSERT): Likewise.
71470         * tests/test-fbufmode.c (ASSERT): Likewise.
71471         * tests/test-fflush2.c (ASSERT): Likewise.
71472         * tests/test-floorf1.c (ASSERT): Likewise.
71473         * tests/test-floorf2.c (ASSERT): Likewise.
71474         * tests/test-floorl.c (ASSERT): Likewise.
71475         * tests/test-fopen.c (ASSERT): Likewise.
71476         * tests/test-fpending.c (ASSERT): Likewise.
71477         * tests/test-fprintf-posix.c (ASSERT): Likewise.
71478         * tests/test-fpurge.c (ASSERT): Likewise.
71479         * tests/test-freadable.c (ASSERT): Likewise.
71480         * tests/test-freadahead.c (ASSERT): Likewise.
71481         * tests/test-freading.c (ASSERT): Likewise.
71482         * tests/test-freadptr.c (ASSERT): Likewise.
71483         * tests/test-freadptr2.c (ASSERT): Likewise.
71484         * tests/test-freadseek.c (ASSERT): Likewise.
71485         * tests/test-freopen.c (ASSERT): Likewise.
71486         * tests/test-frexp.c (ASSERT): Likewise.
71487         * tests/test-frexpl.c (ASSERT): Likewise.
71488         * tests/test-fseek.c (ASSERT): Likewise.
71489         * tests/test-fseeko.c (ASSERT): Likewise.
71490         * tests/test-fstrcmp.c (ASSERT): Likewise.
71491         * tests/test-ftell.c (ASSERT): Likewise.
71492         * tests/test-ftello.c (ASSERT): Likewise.
71493         * tests/test-func.c (ASSERT): Likewise.
71494         * tests/test-fwritable.c (ASSERT): Likewise.
71495         * tests/test-fwriting.c (ASSERT): Likewise.
71496         * tests/test-getdelim.c (ASSERT): Likewise.
71497         * tests/test-getline.c (ASSERT): Likewise.
71498         * tests/test-i-ring.c (ASSERT): Likewise.
71499         * tests/test-iconv-utf.c (ASSERT): Likewise.
71500         * tests/test-iconv.c (ASSERT): Likewise.
71501         * tests/test-isfinite.c (ASSERT): Likewise.
71502         * tests/test-isnand.c (ASSERT): Likewise.
71503         * tests/test-isnanf.c (ASSERT): Likewise.
71504         * tests/test-isnanl.h (ASSERT): Likewise.
71505         * tests/test-ldexpl.c (ASSERT): Likewise.
71506         * tests/test-linked_list.c (ASSERT): Likewise.
71507         * tests/test-linkedhash_list.c (ASSERT): Likewise.
71508         * tests/test-localename.c (ASSERT): Likewise.
71509         * tests/test-lseek.c (ASSERT): Likewise.
71510         * tests/test-mbscasecmp.c (ASSERT): Likewise.
71511         * tests/test-mbscasestr1.c (ASSERT): Likewise.
71512         * tests/test-mbscasestr2.c (ASSERT): Likewise.
71513         * tests/test-mbscasestr3.c (ASSERT): Likewise.
71514         * tests/test-mbscasestr4.c (ASSERT): Likewise.
71515         * tests/test-mbschr.c (ASSERT): Likewise.
71516         * tests/test-mbscspn.c (ASSERT): Likewise.
71517         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
71518         * tests/test-mbspbrk.c (ASSERT): Likewise.
71519         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
71520         * tests/test-mbsrchr.c (ASSERT): Likewise.
71521         * tests/test-mbsspn.c (ASSERT): Likewise.
71522         * tests/test-mbsstr1.c (ASSERT): Likewise.
71523         * tests/test-mbsstr2.c (ASSERT): Likewise.
71524         * tests/test-mbsstr3.c (ASSERT): Likewise.
71525         * tests/test-memchr2.c (ASSERT): Likewise.
71526         * tests/test-memmem.c (ASSERT): Likewise.
71527         * tests/test-open.c (ASSERT): Likewise.
71528         * tests/test-printf-frexp.c (ASSERT): Likewise.
71529         * tests/test-printf-frexpl.c (ASSERT): Likewise.
71530         * tests/test-printf-posix.c (ASSERT): Likewise.
71531         * tests/test-quotearg.c (ASSERT): Likewise.
71532         * tests/test-rbtree_list.c (ASSERT): Likewise.
71533         * tests/test-rbtree_oset.c (ASSERT): Likewise.
71534         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
71535         * tests/test-round1.c (ASSERT): Likewise.
71536         * tests/test-roundf1.c (ASSERT): Likewise.
71537         * tests/test-roundl.c (ASSERT): Likewise.
71538         * tests/test-signbit.c (ASSERT): Likewise.
71539         * tests/test-sleep.c (ASSERT): Likewise.
71540         * tests/test-snprintf-posix.c (ASSERT): Likewise.
71541         * tests/test-snprintf.c (ASSERT): Likewise.
71542         * tests/test-sprintf-posix.c (ASSERT): Likewise.
71543         * tests/test-stat-time.c (ASSERT): Likewise.
71544         * tests/test-strcasestr.c (ASSERT): Likewise.
71545         * tests/test-strerror.c (ASSERT): Likewise.
71546         * tests/test-striconv.c (ASSERT): Likewise.
71547         * tests/test-striconveh.c (ASSERT): Likewise.
71548         * tests/test-striconveha.c (ASSERT): Likewise.
71549         * tests/test-strsignal.c (ASSERT): Likewise.
71550         * tests/test-strstr.c (ASSERT): Likewise.
71551         * tests/test-strtod.c (ASSERT): Likewise.
71552         * tests/test-trunc1.c (ASSERT): Likewise.
71553         * tests/test-trunc2.c (ASSERT): Likewise.
71554         * tests/test-truncf1.c (ASSERT): Likewise.
71555         * tests/test-truncf2.c (ASSERT): Likewise.
71556         * tests/test-truncl.c (ASSERT): Likewise.
71557         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
71558         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
71559         * tests/test-vasnprintf.c (ASSERT): Likewise.
71560         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
71561         * tests/test-vasprintf.c (ASSERT): Likewise.
71562         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
71563         * tests/test-vprintf-posix.c (ASSERT): Likewise.
71564         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
71565         * tests/test-vsnprintf.c (ASSERT): Likewise.
71566         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
71567         * tests/test-wcwidth.c (ASSERT): Likewise.
71568         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
71569         * tests/test-xprintf-posix.c (ASSERT): Likewise.
71570         * tests/test-xvasprintf.c (ASSERT): Likewise.
71571         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
71572         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
71573         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
71574         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
71575         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
71576         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
71577         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
71578         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
71579         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
71580         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
71581         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
71582         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
71583         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
71584         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
71585         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
71586         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
71587         * tests/unictype/test-block_list.c (ASSERT): Likewise.
71588         * tests/unictype/test-block_of.c (ASSERT): Likewise.
71589         * tests/unictype/test-block_test.c (ASSERT): Likewise.
71590         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
71591         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
71592         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
71593         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
71594         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
71595         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
71596         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
71597         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
71598         * tests/unictype/test-combining.c (ASSERT): Likewise.
71599         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
71600         * tests/unictype/test-digit.c (ASSERT): Likewise.
71601         * tests/unictype/test-mirror.c (ASSERT): Likewise.
71602         * tests/unictype/test-numeric.c (ASSERT): Likewise.
71603         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
71604         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
71605         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
71606         * tests/unictype/test-scripts.c (ASSERT): Likewise.
71607         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
71608         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
71609         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
71610         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
71611         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
71612         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
71613         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
71614         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
71615         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
71616         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
71617         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
71618         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
71619         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
71620         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
71621         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
71622         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
71623         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
71624         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
71625         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
71626         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
71627         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
71628         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
71629         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
71630         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
71631         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
71632         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
71633         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
71634         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
71635         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
71636         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
71637         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
71638         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
71639         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
71640         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
71641         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
71642         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
71643         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
71644         Reported by Eric Blake.
71646 2008-04-11  Bruno Haible  <bruno@clisp.org>
71648         * lib/wchar.in.h: Tweak comment.
71650 2008-04-11  Bruno Haible  <bruno@clisp.org>
71652         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
71653         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
71654         gl_COMMON.
71655         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
71657 2008-04-11  Bruno Haible  <bruno@clisp.org>
71659         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
71661 2008-04-11  Simon Josefsson  <simon@josefsson.org>
71663         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
71664         of attempting to use non-existing /dev/*random.  Based on patch
71665         from Adam Strzelecki <ono@java.pl> in
71666         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
71668 2008-04-08  Bruno Haible  <bruno@clisp.org>
71670         Add tentative support for emx+gcc.
71671         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
71672         * lib/fpurge.c (fpurge): Likewise.
71673         * lib/freadable.c (freadable): Likewise.
71674         * lib/freadahead.c (freadahead): Likewise.
71675         * lib/freading.c (freading): Likewise.
71676         * lib/freadptr.c (freadptr): Likewise.
71677         * lib/freadseek.c (freadptrinc): Likewise.
71678         * lib/fseeko.c (rpl_fseeko): Likewise.
71679         * lib/fseterr.c (fseterr): Likewise.
71680         * lib/fwritable.c (fwritable): Likewise.
71681         * lib/fwriting.c (fwriting): Likewise.
71682         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
71684 2008-04-09  Eric Blake  <ebb9@byu.net>
71686         Avoid some autoconf warnings.
71687         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
71688         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
71689         * m4/afs.m4 (gl_AFS): Likewise.
71690         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
71691         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
71692         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
71693         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
71694         (gl_INTEGER_TYPE_SUFFIX): Likewise.
71695         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
71696         (AC_CHECK_DECLS_ONCE): Likewise.
71697         Rename file...
71698         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
71699         gnulib-tool requires autoconf 2.59 or better.
71700         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
71702 2008-04-08  Eric Blake  <ebb9@byu.net>
71704         Use 'git describe --match' if present (added in git 1.5.5).
71705         * build-aux/git-version-gen: Limit result to tags that match 'v*'
71706         if possible.
71708 2008-04-08  Bruno Haible  <bruno@clisp.org>
71710         Add tentative support for OpenServer.
71711         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
71712         _ptr, _cnt.
71713         * lib/fpurge.c (fpurge): Likewise.
71714         * lib/freadable.c (freadable): Likewise.
71715         * lib/freadahead.c (freadahead): Likewise.
71716         * lib/freading.c (freading): Likewise.
71717         * lib/freadptr.c (freadptr): Likewise.
71718         * lib/freadseek.c (freadptrinc): Likewise.
71719         * lib/fseeko.c (rpl_fseeko): Likewise.
71720         * lib/fseterr.c (fseterr): Likewise.
71721         * lib/fwritable.c (fwritable): Likewise.
71722         * lib/fwriting.c (fwriting): Likewise.
71723         Reported by Roger Cornelius <rac@tenzing.org> and
71724         Brian K. White <brian@aljex.com>.
71726 2008-04-06  Jim Meyering  <meyering@redhat.com>
71728         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
71730 2008-04-06  Bruno Haible  <bruno@clisp.org>
71732         Avoid possible error with non-ASCII bytes in UTF-8 locales.
71733         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
71734         * tests/test-printf-posix.sh: Likewise.
71735         * tests/test-vfprintf-posix.sh: Likewise.
71736         * tests/test-vprintf-posix.sh: Likewise.
71737         * tests/test-xprintf-posix.sh: Likewise.
71739 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71741         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
71742         hide error from 'ls', needed on OS/2.
71743         Report by Elbert Pol <elbert.pol@gmail.com>.
71745 2008-04-04  Eric Blake  <ebb9@byu.net>
71747         Make test-fseeko.c failures meaningful.
71748         * tests/test-fseeko.c: Print line number on failure.
71749         * tests/test-fseek.c: Likewise.
71750         Reported by Nelson H. F. Beebe.
71752         Improve strtod bug detection check.
71753         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
71754         required for Solaris 10.
71755         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
71757 2008-04-04  Bruno Haible  <bruno@clisp.org>
71759         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
71760         by m4/setenv.m4.
71762 2008-04-03  Eric Blake  <ebb9@byu.net>
71764         Ensure sane .version contents.
71765         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
71766         version string.
71767         * build-aux/git-version-gen: Improve documentation.
71769         Make GNU make output nicer.
71770         * top/GNUmakefile [!_have-Makefile]: Add dependency on
71771         MAKECMDGOALS to enforce message for all command line targets.  Set
71772         srcdir for use in maint.mk.
71774         Another maintainer tweak.
71775         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
71776         a target that regenerates version.
71778 2008-04-03  Jim Meyering  <meyering@redhat.com>
71780         vc-list-files: don't cause coreutils "make po-check" failure
71781         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
71783 2008-04-03  Eric Blake  <ebb9@byu.net>
71785         Allow VPATH usage of vc-list-files.
71786         * build-aux/vc-list-files (scriptversion): Add timestamp.
71787         (options): Add --help, --version, -C.
71788         (CVS): Support installed cvsu.
71790 2008-04-02  Bruno Haible  <bruno@clisp.org>
71792         Avoid some "statement with no effect" warnings from gcc.
71793         * tests/test-wctype.c (main): Explicitly ignore unused values.
71794         Reported by Jim Meyering.
71796 2008-04-02  Jim Meyering  <meyering@redhat.com>
71798         Avoid some warnings from "gcc -Wshadow".
71799         * tests/test-frexp.c (exp): Define to a different identifier.
71800         * tests/test-frexpl.c (exp): Likewise.
71802 2008-04-03  Jim Meyering  <meyering@redhat.com>
71804         bootstrap: remove dangling *.[ch] symlinks from lib
71805         * build-aux/bootstrap [dangling symlink removal]: Move find's
71806         -depth option to precede all others, to avoid a warning.
71807         Remove *.[ch] files too, and from "$source_base" (usually lib/).
71809 2008-04-02  Bruno Haible  <bruno@clisp.org>
71811         Avoid some warnings from "gcc -Wshadow".
71812         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
71813         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
71814         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
71815         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
71816         Reported by Jim Meyering.
71818 2008-04-01  Bruno Haible  <bruno@clisp.org>
71820         Fix test to work on IRIX 6.5 with cc.
71821         * tests/test-math.c (numeric_equal): New function.
71822         (main): Use it.
71824 2008-04-01  Bruno Haible  <bruno@clisp.org>
71826         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
71828 2008-04-01  Bruno Haible  <bruno@clisp.org>
71830         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
71831         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
71832         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
71833         (Depends-on): Remove math.
71835         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
71836         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
71837         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
71838         (Depends-on): Remove math.
71840         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
71841         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
71842         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
71843         (Depends-on): Remove math.
71844         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
71845         (Depends-on): Remove math.
71847         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
71848         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
71849         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
71850         (Depends-on): Remove math.
71851         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
71852         (Depends-on): Remove math.
71854         * tests/test-round1.c: Include nan.h.
71855         (main): Use NaNd instead of NAN.
71856         * modules/round-tests (Files): Add tests/nan.h.
71858         * tests/test-trunc1.c: Include nan.h.
71859         (main): Use NaNd instead of NAN.
71860         * modules/trunc-tests (Files): Add tests/nan.h.
71862         * tests/test-roundf1.c: Include nan.h.
71863         (main): Use NaNf instead of NAN.
71864         * modules/roundf-tests (Files): Add tests/nan.h.
71866         * tests/test-truncf1.c: Include nan.h.
71867         (main): Use NaNf instead of NAN.
71868         * modules/truncf-tests (Files): Add tests/nan.h.
71870         * tests/test-ceilf1.c: Include nan.h.
71871         (main): Use NaNf instead of NAN.
71872         * modules/ceilf-tests (Files): Add tests/nan.h.
71874         * tests/test-floorf1.c: Include nan.h.
71875         (main): Use NaNf instead of NAN.
71876         * modules/floorf-tests (Files): Add tests/nan.h.
71878         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
71879         (main): Use NaNf instead of NAN.
71880         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
71882         * tests/test-isnand.c: Include nan.h instead of <math.h>.
71883         (main): Use NaNd instead of NAN.
71884         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
71886         * tests/test-frexp.c: Include nan.h.
71887         (main): Use NaNd instead of NAN.
71888         * modules/frexp-tests (Files): Add tests/nan.h.
71890         * lib/isnan.c: Don't include <math.h>.
71891         (FUNC): Don't use NAN macro.
71892         * modules/isnand-nolibm (Depends-on): Remove math.
71893         * modules/isnanf-nolibm (Depends-on): Remove math.
71894         * modules/isnanl (Depends-on): Remove math.
71895         * modules/isnanl-nolibm (Depends-on): Remove math.
71897         * tests/nan.h: New file.
71899 2008-04-01  Eric Blake  <ebb9@byu.net>
71901         Fix typos.
71902         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
71903         values to be the right type.
71905         For now, cater to gnulib strtod inaccuracies.
71906         * tests/test-strtod.c (main): Allow 1-ulp error on expected
71907         fractional results.  While not as nice from a QoI perspective, it
71908         is a quicker patch than correctly implementing decimal to binary
71909         rounding.
71911 2008-03-31  Eric Blake  <ebb9@byu.net>
71913         Guarantee a definition of NAN.
71914         * lib/math.in.h (NAN): Define if missing.
71915         * tests/test-math.c (main): Test it.
71916         * doc/posix-headers/math.texi (math.h): Document this.
71917         * lib/isnan.c (rpl_isnand): Use it.
71918         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
71919         * tests/test-floorf1.c (NaN): Likewise.
71920         * tests/test-frexp.c (NaN): Likewise.
71921         * tests/test-isnand.c (NaN): Likewise.
71922         * tests/test-isnanf.c (NaN): Likewise.
71923         * tests/test-round1.c (NaN): Likewise.
71924         * tests/test-roundf1.c (NaN): Likewise.
71925         * tests/test-snprintf-posix.h (NaN): Likewise.
71926         * tests/test-sprintf-posix.h (NaN): Likewise.
71927         * tests/test-trunc1.c (NaN): Likewise.
71928         * tests/test-truncf1.c (NaN): Likewise.
71929         * tests/test-vasnprintf-posix.c (NaN): Likewise.
71930         * tests/test-vasprintf-posix.c (NaN): Likewise.
71931         * modules/isnand-nolibm (Depends-on): Add math.
71932         * modules/isnanf-nolibm (Depends-on): Likewise.
71933         * modules/isnanl (Depends-on): Likewise.
71934         * modules/isnanl-nolibm (Depends-on): Likewise.
71935         * modules/snprintf-posix-tests (Depends-on): Likewise.
71936         * modules/sprintf-posix-tests (Depends-on): Likewise.
71937         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
71938         * modules/vsprintf-posix-tests (Depends-on): Likewise.
71939         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
71940         * modules/vasprintf-posix-tests (Depends-on): Likewise.
71942 2008-03-31  Bruno Haible  <bruno@clisp.org>
71944         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
71945         * doc/posix-functions/strtod.texi: Likewise.
71947 2008-03-31  Bruno Haible  <bruno@clisp.org>
71949         * tests/test-strtod.c (main): Don't use C99 syntax.
71951 2008-03-31  Bruno Haible  <bruno@clisp.org>
71953         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
71954         Reported by Eric Blake.
71956 2008-03-31  Jim Meyering  <meyering@redhat.com>
71958         Don't compare actual signbit return values.
71959         * tests/test-strtod.c (main): Rather, compare only their
71960         zero/non-zero nature.
71962 2008-03-31  Eric Blake  <ebb9@byu.net>
71964         More strtod documentation.
71965         * doc/posix-functions/strtod.texi (strtod): Interpret more test
71966         failures as distinct bugs.
71968 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71970         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
71971         Problem reported by Erik Benada in
71972         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
71974 2008-03-30  Bruno Haible  <bruno@clisp.org>
71976         * tests/test-strtod.c: Add comments about which assertion fails on which
71977         platform.
71978         * doc/posix-functions/strtod.texi: Add info about many more platforms.
71980 2008-03-30  Eric Blake  <ebb9@byu.net>
71982         Test signbit behavior on zeros.
71983         * tests/test-signbit.c (test_signbitf): Add tests for zero.
71984         (test_signbitd, test_signbitl): Likewise.
71986         More strtod touchups.
71987         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
71988         sign of negative underflow, for now.  Use .5, not .1.
71989         * doc/posix-functions/strtod.texi (strtod): Mention these
71990         limitations.
71991         Reported by Jim Meyering.
71993 2008-03-30  Bruno Haible  <bruno@clisp.org>
71995         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
71996         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
71998 2008-03-30  Bruno Haible  <bruno@clisp.org>
72000         Avoid failure when attempting to return empty iconv results on some
72001         platforms.
72002         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
72003         allocation, don't report ENOMEM when the resulting string is empty.
72005 2008-03-30  Bruno Haible  <bruno@clisp.org>
72007         Fix buffer overrun.
72008         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
72009         Don't consider the width for tmp_length. Check count against tmp_length
72010         before doing the padding. Ensure enough allocation during padding.
72012 2008-03-30  Eric Blake  <ebb9@byu.net>
72014         strtod touchups.
72015         * lib/strtod.c (strtod): Avoid compiler warnings.
72016         Reported by Jim Meyering.
72018 2008-03-30  Bruno Haible  <bruno@clisp.org>
72020         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
72021         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
72022         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
72023         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
72024         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
72025         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
72026         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
72027         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
72029         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
72030         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
72031         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
72032         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
72033         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
72034         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
72035         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
72036         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
72038         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
72039         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
72040         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
72041         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
72042         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
72043         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
72044         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
72045         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
72047         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
72048         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
72050         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
72051         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
72053         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
72054         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
72056         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
72057         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
72058         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
72060         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
72061         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
72062         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
72064         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
72065         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
72066         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
72068         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
72069         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
72070         * modules/vasprintf (Depends-on): Add EOVERFLOW.
72072         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
72073         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
72074         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
72075         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
72076         (Depends-on): Add EOVERFLOW.
72077         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
72078         (Depends-on): Add EOVERFLOW.
72079         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
72080         (Depends-on): Add EOVERFLOW.
72081         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
72082         (Depends-on): Add EOVERFLOW.
72083         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
72084         (Depends-on): Add EOVERFLOW.
72085         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
72086         (Depends-on): Add EOVERFLOW.
72087         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
72088         (Depends-on): Add EOVERFLOW.
72089         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
72090         (Depends-on): Add EOVERFLOW.
72092         * lib/sprintf.c (EOVERFLOW): Remove fallback.
72093         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
72094         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
72096         * lib/snprintf.c (EOVERFLOW): Remove fallback.
72097         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
72098         * modules/snprintf (Depends-on): Add EOVERFLOW.
72100         * lib/poll.c (EOVERFLOW): Remove fallback.
72101         * modules/poll (Depends-on): Add EOVERFLOW.
72103         * lib/getugroups.c (EOVERFLOW): Remove fallback.
72104         * modules/getugroups (Depends-on): Add EOVERFLOW.
72106         * lib/getdelim.c (EOVERFLOW): Remove fallback.
72107         * modules/getdelim (Depends-on): Add EOVERFLOW.
72109         * lib/ftell.c (EOVERFLOW): Remove fallback.
72110         * modules/ftell (Depends-on): Add EOVERFLOW.
72112         * lib/fprintf.c (EOVERFLOW): Remove fallback.
72113         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
72114         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
72116         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
72118         * modules/EOVERFLOW-tests: New file.
72119         * tests/test-EOVERFLOW.c: New file.
72121         * modules/EOVERFLOW: New file.
72122         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
72124 2008-03-30  Bruno Haible  <bruno@clisp.org>
72126         Fix bug introduced on 2007-06-10.
72127         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
72128         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
72130 2008-03-30  Bruno Haible  <bruno@clisp.org>
72132         Improve freadseek's efficiency after ungetc.
72133         * lib/freadseek.c: Include freadahead.h.
72134         (freadptrinc): New function, extracted from freadseek.
72135         (freadseek): Use it in a loop. Use freadahead to determine the number
72136         of loop iterations.
72137         * modules/freadseek (Depends-on): Add freadahead.
72138         (configure.ac): Require AC_C_INLINE.
72140 2008-03-30  Bruno Haible  <bruno@clisp.org>
72142         * lib/freadseek.c (freadseek): Don't ignore the return value of
72143         freadptr.
72145 2008-03-29  Eric Blake  <ebb9@byu.net>
72147         Add hex float support.
72148         * modules/strtod (Depends-on): Add c-ctype.
72149         (Link): Mention POW_LIB.
72150         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
72151         whitespace between 'e' and exponent.
72152         * tests/test-strtod.c (main): Enable hex float tests.
72153         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
72154         now provides.
72156         Document various strtod bugs, with some fixes.
72157         * doc/posix-functions/strtod.texi (strtod): Document bugs with
72158         "-0x", "inf", "nan", and hex constants.
72159         * doc/posix-functions/atof.texi (atof): Likewise.
72160         * modules/stdlib (Makefile.am): Support strtod.
72161         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
72162         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
72163         detect additional strtod bugs.
72164         * lib/stdlib.in.h (rpl_strtod): Add declarations.
72165         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
72166         bool where appropriate.  Parse 'inf' and 'nan'.
72167         * tests/test-strtod.c: New file.
72168         * modules/strtod (Depends-on): Add stdbool, stdlib.
72169         (configure.ac): Turn on module indicator.
72170         * modules/strtod-tests: New module.
72172 2008-03-29  Eric Blake  <ebb9@byu.net>
72174         Fix ftell on mingw.
72175         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
72176         * modules/ftell-tests (Depends-on): Add binary-io.
72177         * modules/ftello-tests (Depends-on): Likewise.
72178         * tests/test-ftell.c (main): Enhance test to cover behavior after
72179         ungetc.  Enforce binary mode.
72180         * tests/test-ftello.c (main): Likewise.
72182         Pass test-freadseek on cygwin.
72183         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
72184         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
72185         ungetc buffer.
72187         * tests/test-fflush2.c (main): Fix typo.
72189 2008-03-29  Bruno Haible  <bruno@clisp.org>
72191         * tests/test-fflush2.c (main): Temporarily disable the contents of
72192         this test.
72193         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
72194         Reported by Eric Blake.
72196 2008-03-28  Simon Josefsson  <simon@josefsson.org>
72198         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
72199         (GC_SHA224_DIGEST_SIZE): Add.
72201         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
72202         (gc_hash_digest_length): Likewise.
72203         (gc_hash_buffer): Likewise.
72205 2008-03-25  Bruno Haible  <bruno@clisp.org>
72207         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
72208         detail which gettext release to use.
72209         Reported by Simon Josefsson.
72211 2008-03-26  Jim Meyering  <meyering@redhat.com>
72213         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
72214         * modules/gnumakefile (clean-GNUmakefile): Also, use
72215         test ... && ... || : syntax rather than if-then ... fi.
72217         gnumakefile: Don't double-quote-expand $(VPATH) value.
72218         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
72220 2008-03-24  Eric Blake  <ebb9@byu.net>
72222         Alter GNUmakefile to install into top directory.
72223         * modules/maintainer-makefile: Split, and add dependency...
72224         * modules/gnumakefile: to this new module.
72225         * build-aux/GNUmakefile: Move...
72226         * top/GNUmakefile: ...here.
72227         * build-aux/maint.mk: Move...
72228         * top/maint.mk: ...here.
72229         * MODULES.html.sh (Support for maintaining...): Document new
72230         module.
72232 2008-03-23  Bruno Haible  <bruno@clisp.org>
72234         * gnulib-tool: New options --vc-files, --no-vc-files.
72235         (func_usage): Document them.
72236         (vc_files): New variable.
72237         (func_import): Consider vc_files.
72238         (func_create_testdir): Set vc_files to empty.
72239         Suggested by Jim Meyering and Karl Berry.
72241 2008-03-23  Bruno Haible  <bruno@clisp.org>
72243         Fix regex compilation error on HP-UX 11.
72244         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
72245         * modules/regex (Files): Add m4/mbstate_t.m4.
72246         Reported by Ton Voon <ton.voon@altinity.com>.
72248 2008-03-23  Bruno Haible  <bruno@clisp.org>
72250         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
72252 2008-03-23  Eric Blake  <ebb9@byu.net>
72253             Bruno Haible  <bruno@clisp.org>
72255         Install files from top/ in the destination directory.
72256         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
72257         augmentation also for the files from top/.
72258         (func_import, func_create_testdir): Rewrite file names:
72259         top/filename -> filename.
72261 2008-03-23  Bruno Haible  <bruno@clisp.org>
72263         Tweak "gnulib --version" output.
72264         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
72266 2008-03-23  Bruno Haible  <bruno@clisp.org>
72268         Tweak "gnulib --version" output.
72269         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
72270         rather than contents of ChangeLog, when possible.
72272 2008-03-21  Eric Blake  <ebb9@byu.net>
72274         More --version tweaks.
72275         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
72276         date of last ChangeLog entry.
72278 2008-03-21  Jim Meyering  <meyering@redhat.com>
72280         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
72282 2008-03-20  Eric Blake  <ebb9@byu.net>
72284         VPATH fix.
72285         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
72287 2008-03-20  Simon Josefsson  <simon@josefsson.org>
72289         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
72290         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
72292 2008-03-20  Eric Blake  <ebb9@byu.net>
72294         Sync GNUmakefile with coreutils.
72295         * build-aux/GNUmakefile (have-Makefile): Rename...
72296         (_have-Makefile): ...to this, for namespace consideration.
72297         (GNUmakefile.cfg): Include, if present.
72298         (_autoreconf): Define a default.
72299         (_is-dist-target): New rule for rebuilds to pick up intra-release
72300         version.
72301         (maint-cfg.mk): Rename...
72302         (cfg.mk): ...to this.
72304 2008-03-18  Jim Meyering  <meyering@redhat.com>
72306         New script and module: mktempd
72307         * MODULES.html.sh (maint+release support): Add mktempd.
72308         * build-aux/mktempd: New file.
72309         * modules/mktempd: New file.
72311 2008-03-15  Jim Meyering  <meyering@redhat.com>
72313         Undo last change.
72314         * lib/sha1.c, lib/md5.c: 63 != ~63.
72315         Reported by Andreas Schwab.
72317         sha1.c, md5.c: Hoist a redundant expression.
72318         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
72319         "ctx->buflen" only once, before calling *_process_block.
72320         * lib/md5.c (md5_process_bytes): Likewise.
72322 2008-03-14  Eric Blake  <ebb9@byu.net>
72324         Bump copyright year in files generated by gnulib-tool.
72325         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
72326         gnulib-tool, rather than hard-coding it.
72328         Fix 'gnulib-tool --version' output to work with git.
72329         * gnulib-tool (func_gnulib_dir): New function, extracted from...
72330         (startup): ...here.
72331         (func_version): Use it to invoke git-version-gen, rather than
72332         relying on CVS keyword expansion.  Modernize wording.
72333         (cvsdatestamp, last_checkin_date, version): Kill unused
72334         variables.
72336 2008-03-12  Jim Meyering  <meyering@redhat.com>
72338         Recognize optional cast of the argument to free.
72339         * build-aux/useless-if-before-free: Update regexps.
72341         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
72343 2008-03-11  Bruno Haible  <bruno@clisp.org>
72345         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
72346         by a single package.
72347         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
72348         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
72349         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
72350         Reported by Sam Steingold <sds@gnu.org>.
72352 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
72354         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
72355         repositories.
72357 2008-03-11  Bruno Haible  <bruno@clisp.org>
72359         Avoid conflicts between local macro definitions.
72360         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72361         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
72363 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
72364             Bruno Haible  <bruno@clisp.org>
72366         Make va_copy work with some version of xlc on AIX 5.1.
72367         * lib/stdarg.in.h: New file.
72368         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
72369         On AIX, use a <stdarg.h> file substitute.
72370         * modules/stdarg (Files): Add lib/stdarg.in.h.
72371         (Depends-on): Add include_next.
72372         (Makefile.am): Build a stdarg.h substitute if requested.
72373         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
72375 2008-03-10  Bruno Haible  <bruno@clisp.org>
72377         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
72378         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
72379         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
72381 2008-03-10  Bruno Haible  <bruno@clisp.org>
72383         * modules/stdlib (Depends-on): Add include_next, remove
72384         absolute-header.
72386 2008-03-09  Bruno Haible  <bruno@clisp.org>
72388         * lib/freadahead.h (freadahead): Document more precisely.
72389         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
72390         the sum of both buffer sizes.
72391         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
72392         * NEWS: Document the change.
72394 2008-03-09  Bruno Haible  <bruno@clisp.org>
72396         Extend freadptr to return also the buffer size.
72397         * lib/freadptr.h (freadptr): Add sizep argument.
72398         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
72399         (freadptr): Add sizep argument. Determine buffer size like freadahead
72400         does.
72401         * tests/test-freadptr.c: Don't include freadahead.h.
72402         (main): Adapt for new calling convention of freadptr.
72403         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
72404         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
72405         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
72406         tests/test-freadptr2.sh.
72407         (Depends): Remove freadahead.
72408         (TESTS): Add test-freadptr2.sh.
72409         (check_PROGRAMS): Add test-freadptr2.
72411 2008-03-09  Bruno Haible  <bruno@clisp.org>
72413         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
72414         Report and solution by Simon Josefsson.
72416 2008-03-06  Bruno Haible  <bruno@clisp.org>
72418         Make fflush after ungetc work on BSD platforms.
72419         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
72420         * tests/test-fflush2.c: New file.
72421         * tests/test-fflush2.sh: New file.
72422         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
72423         tests/test-fflush2.c.
72424         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
72425         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
72427 2008-03-06  Eric Blake  <ebb9@byu.net>
72429         Likewise for ftello.
72430         * modules/ftello (Dependencies): Add extensions.
72431         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
72433 2008-03-06  Bruno Haible  <bruno@clisp.org>
72435         * modules/fseeko (Dependencies): Add extensions.
72436         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
72437         Needed on glibc systems.
72439 2008-03-06  Bruno Haible  <bruno@clisp.org>
72441         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
72442         email address.
72443         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
72445 2008-03-06  Bruno Haible  <bruno@clisp.org>
72447         * users.txt: Add libgnupdf.
72449 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
72451         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
72452         (Header File Substitutes, Function Substitutes,
72453         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
72454         (Build robot for gnulib): Fix typo.
72456 2008-03-06  Bruno Haible  <bruno@clisp.org>
72458         * doc/gnulib-tool.texi (VCS Issues): Small updates.
72459         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
72461 2008-03-06  Bruno Haible  <bruno@clisp.org>
72463         * doc/func.texi: New file, extracted from doc/gnulib.texi.
72464         * doc/gnulib.texi: Include it.
72466 2008-03-06  Simon Josefsson  <simon@josefsson.org>
72468         * modules/func (License): Change license to unlimited; there was
72469         no LGPL parts in the module anyway.
72471 2008-03-06  Simon Josefsson  <simon@josefsson.org>
72473         * modules/__func__: Renamed to modules/func.
72474         * modules/__func__-tests: Renamed to modules/func-tests.
72475         * tests/test-__func__.c: Renamed to tests/test-func.c.
72476         * m4/__func__.m4: Renamed to m4/func.m4.
72477         * doc/gnulib.texi (__func__): Section renamed to func.
72478         Suggested by Eric Blake <ebb9@byu.net>.
72480 2008-03-06  Simon Josefsson  <simon@josefsson.org>
72482         * doc/gnulib.texi (__func__): Use C99 terminology when talking
72483         about __func__.  Make example self-contained.  Suggested by Eric
72484         Blake <ebb9@byu.net>.
72486         * tests/test-__func__.c (main): Avoid extraneous () around __func.
72487         Suggested by Eric Blake <ebb9@byu.net>.
72489 2008-03-06  Simon Josefsson  <simon@josefsson.org>
72491         * modules/__func__: New file.
72492         * modules/__func__-tests: New file.
72493         * tests/test-__func__.c: New file.
72494         * m4/__func__.m4: New file.
72495         * doc/gnulib.texi (__func__): Document __func__ module.
72497 2008-03-05  Simon Josefsson  <simon@josefsson.org>
72499         * modules/byteswap (License): Re-license as LGPLv2+.
72501 2008-03-05  Simon Josefsson  <simon@josefsson.org>
72503         * doc/Makefile: Add pdf target.
72505 2008-03-05  Simon Josefsson  <simon@josefsson.org>
72507         * modules/inline (License): Use 'unlimited', since there are only
72508         *.m4 files in this module.
72510 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
72511             Bruno Haible  <bruno@clisp.org>
72513         Add support for HP C 7.1 on OpenVMS 8.3.
72514         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
72516 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
72518         Update VMS specifics.
72519         * lib/getopt.c [VMS]: Remove include of unixlib.h.
72521 2008-03-02  Jim Meyering  <meyering@redhat.com>
72523         Remove the last dependency on the "free" module.
72524         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
72525         Reported by Bob Proulx.
72527         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
72529         Remove useless "if" tests before free.  Deprecate "free" module.
72530         * doc/posix-functions/free.texi: Mention that this
72531         module is no longer useful.
72532         * modules/free (Notice): Say this module is obsolete.
72533         * modules/readutmp (Depends-on): Remove free.
72534         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
72535         * lib/putenv.c (putenv): Likewise.
72536         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
72537         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
72538         * tests/test-c-strcasestr.c (main): Likewise.
72539         * tests/test-c-strstr.c (main): Likewise.
72540         * tests/test-mbscasestr1.c (main): Likewise.
72541         * tests/test-mbscasestr2.c (main): Likewise.
72542         * tests/test-mbsstr1.c (main): Likewise.
72543         * tests/test-mbsstr2.c (main): Likewise.
72544         * tests/test-memmem.c (main): Likewise.
72545         * tests/test-strcasestr.c (main): Likewise.
72546         * tests/test-striconv.c (main): Likewise.
72547         * tests/test-striconveh.c (main): Likewise.
72548         * tests/test-striconveha.c (main): Likewise.
72549         * tests/test-strstr.c (main): Likewise.
72551         * build-aux/git-version-gen: Adjust a comment and the Usage string.
72553         bootstrap: sync from coreutils again
72554         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
72556 2008-03-01  Jim Meyering  <meyering@redhat.com>
72558         bootstrap: sync from coreutils
72559         * build-aux/bootstrap (update_po_files): Copy a .po file into place
72560         also when the target doesn't exist.
72562 2008-03-01  Eric Blake  <ebb9@byu.net>
72564         Fix bugs in last patch.
72565         * lib/memchr2.c (memchr2): Fix typo.
72566         * tests/test-memchr2.c: Test previous bug, and don't use GNU
72567         extension.
72568         Reported by Bruce Korb.
72570         New module 'memchr2'.
72571         * modules/memchr2: New file.
72572         * modules/memchr2-tests: Likewise.
72573         * lib/memchr2.h: Likewise.
72574         * lib/memchr2.c: Likewise, based on memchr.c.
72575         * tests/test-memchr2.c: New test.
72576         * MODULES.html.sh (String handling): Add memchr2.
72578 2008-02-29  Bruno Haible  <bruno@clisp.org>
72580         * modules/freadseek-tests: New file.
72581         * tests/test-freadseek.sh: New file.
72582         * tests/test-freadseek.c: New file.
72584         New module 'freadseek'.
72585         * modules/freadseek: New file.
72586         * lib/freadseek.h: New file.
72587         * lib/freadseek.c: New file.
72588         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
72590 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
72592         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
72593         wydawca.
72595         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
72596         program_invocation_name and program_invocation_short_name are
72597         present.
72599 2008-02-28  Bruno Haible  <bruno@clisp.org>
72601         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
72602         * tests/test-freadptr.sh: Also test non-seekable stdin.
72604 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
72606         * build-aux/bootstrap (source_base, m4_base)
72607         (doc_base, tests_base): New variables.
72608         (gnulib_tool_options): Do not hardcode base directories, use
72609         the above variables instead.
72611 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
72613         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
72615 2008-02-28  Bruno Haible  <bruno@clisp.org>
72617         * modules/freadptr-tests: New file.
72618         * tests/test-freadptr.sh: New file.
72619         * tests/test-freadptr.c: New file.
72621         New module 'freadptr'.
72622         * modules/freadptr: New file.
72623         * lib/freadptr.h: New file.
72624         * lib/freadptr.c: New file.
72625         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
72627 2008-02-26  Karl Berry  <karl@freefriends.org>
72629         Sync from Libtool:
72630         * libltdl/argz.c (argz_add, argz_count): New functions.
72631         * libltdl/argz.in.h: Declare them.
72632         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
72634 2008-02-22  Bruno Haible  <bruno@clisp.org>
72636         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
72637         is a pointer type.  Needed for HP-UX 10.
72638         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
72639         * doc/posix-functions/gmtime_r.texi: Likewise.
72640         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
72642 2008-02-24  Bruno Haible  <bruno@clisp.org>
72644         * modules/environ-tests: New file.
72645         * tests/test-environ.c: New file.
72647         New module 'environ'.
72648         * modules/environ: New file.
72649         * lib/unistd.in.h (environ): New declaration.
72650         * m4/environ.m4: New file.
72651         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
72652         after use.
72653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
72654         HAVE_DECL_ENVIRON.
72655         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
72656         HAVE_DECL_ENVIRON.
72657         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
72658         wrong claim that 'environ' is missing on some systems.
72659         * modules/execute (Depends-on): Add environ.
72660         * lib/execute.c (environ): Remove fallback declaration.
72661         * modules/pipe (Depends-on): Add environ.
72662         * lib/pipe.c (environ): Remove fallback declaration.
72663         * modules/setenv (Depends-on): Add environ.
72664         * lib/setenv.c (environ): Remove fallback declaration.
72665         * modules/unsetenv (Depends-on): Add environ.
72666         * lib/unsetenv.c (environ): Remove fallback declaration.
72667         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
72668         m4/environ.m4.
72669         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
72670         (gl_PREREQ_UNSETENV): Likewise.
72672 2008-02-24  Bruno Haible  <bruno@clisp.org>
72674         * doc/posix-functions/environ.texi: Document the MacOS X problem.
72676 2008-02-20  Bob Proulx  <bob@proulx.com>
72678         Enable use of older two part flavor 'git describe'.
72679         * build-aux/git-version-gen: If using the older two part flavor of
72680         git version then recreate the third part now present in the
72681         newer three part flavor of git describe.
72683 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
72685         * lib/fts.c (fts_build): Typo correction to comment.
72687 2008-02-17  Bruno Haible  <bruno@clisp.org>
72689         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
72690         generating no-op conflicts.
72692 2008-02-17  Bruno Haible  <bruno@clisp.org>
72694         Speed up by 10%.
72695         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
72696         result_entries, rather than an index-based loop.
72698 2008-02-17  Bruno Haible  <bruno@clisp.org>
72700         Speed up by 25%.
72701         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
72702         'hashcode_cached'.
72703         (entry_create): New function.
72704         (entry_hashcode): Use the cached hashcode if possible.
72705         (read_changelog_file, try_split_merged_entry): Use entry_create.
72707 2008-02-17  Bruno Haible  <bruno@clisp.org>
72709         Speed up from O(n^2) to O(n) for long ChangeLog files.
72710         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
72711         (read_changelog_file): Change implementation of entries_reversed list
72712         to rbtreehash.
72713         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
72715 2008-02-17  Bruno Haible  <bruno@clisp.org>
72717         New option --split-merged-entry.
72718         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
72719         (find_paragraph_end, try_split_merged_entry): New functions.
72720         (long_options): Add option --split-merged-entry.
72721         (usage): Document option --split-merged-entry.
72722         (main): Implement option --split-merged-entry.
72723         Reported by Eric Blake.
72725 2008-02-17  Bruno Haible  <bruno@clisp.org>
72727         * lib/git-merge-changelog.c: Include c-strstr.h.
72728         (main): Support the "git pull --rebase" situation.
72729         * modules/git-merge-changelog (Depends-on): Add c-strstr.
72730         Reported by Eric Blake.
72732 2008-02-16  Eric Blake  <ebb9@byu.net>
72734         Avoid doubling \ in common case of "c-maybe" quoting style.
72735         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
72736         eliding outer quotes.
72737         * lib/quotearg.h: Document this.
72738         * tests/test-quotearg.c (result_strings, inputs, results_g)
72739         (flag_results, locale_results): Test it by adding a new string to
72740         each test group.
72741         (compare_strings): Test new string.
72743 2008-02-13  Eric Blake  <ebb9@byu.net>
72745         Avoid trigraph quoting in default output.
72746         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
72747         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
72748         unless explicitly requested.
72749         * tests/test-quotearg.c (flag_results, main): Add additional tests.
72751 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
72753         Don't rely on signed integer overflowing to negative value.
72754         * lib/getugroups.c (getugroups): Include <limits.h>.
72755         Instead, compare against INT_MAX, and increment only if the test passes.
72757 2008-02-13  Jim Meyering  <meyering@redhat.com>
72758         and Eric Blake  <ebb9@byu.net>
72760         Avoid shadowing warning and compile errors on Linux.
72761         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
72762         forwarding macros on Linux.
72763         (dcgettext): Define a stub, for Linux.
72764         (results_g, main): Avoid warnings.
72766 2008-02-12  Eric Blake  <ebb9@byu.net>
72768         Silence warning in last patch.
72769         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
72771         Quotearg part 4: add tests, fix c-maybe colon quoting.
72772         * lib/quotearg.h: Improve documentation.
72773         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
72774         escapes when adding outer quotes.  When quoting trigraphs, use
72775         valid C notation.  When quoting NUL, omit extra characters if next
72776         character is not digit.  Alter prototype.
72777         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
72778         callers.
72779         * modules/quotearg-tests: New module.
72780         * tests/test-quotearg.c: New test.
72782 2008-02-07  Eric Blake  <ebb9@byu.net>
72784         Quotearg part 3: add flag to control outer quote elision.
72785         * lib/quotearg.h (c_maybe_quoting_style): New style.
72786         (enum quoting_flags): Better documentation of flags.
72787         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
72788         c-maybe style.
72789         (quotearg_buffer_restyled): Handle new flag to elide outer
72790         quotes.
72792         Quotearg part 2: add flag that can control NUL elision.
72793         * lib/quotearg.h (set_quoting_flags): New prototype.
72794         * lib/quotearg.c (struct quoting_options): Add flag field.
72795         (set_quoting_flags): New function.
72796         (quotearg_buffer_restyled): Add flags parameter.
72797         (quotearg_alloc_mem): Set the flag if length cannot be returned.
72798         (quotearg_n_options): Set the flag, since length cannot be
72799         returned.
72800         (quoting_options_from_style): Default flags correctly.
72802         Quotearg part 1: more wrappers, restore quotearg_char state.
72803         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
72804         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
72805         (quotearg_colon_mem): New wrappers.
72806         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
72807         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
72808         functions.
72809         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
72810         (quotearg_colon_mem): New functions.
72812 2008-02-11  Bruno Haible  <bruno@clisp.org>
72814         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
72815         library in the current directory: it does not work with parallel make.
72816         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72818 2008-02-11  Bruno Haible  <bruno@clisp.org>
72820         * .gitattributes: New file.
72822 2008-02-11  Jim Meyering  <meyering@redhat.com>
72824         useless-if-before-free: Fix reversed exit values.
72825         * build-aux/useless-if-before-free: Use correct values
72826         for EXIT_MATCH and EXIT_NO_MATCH.
72828         * build-aux/useless-if-before-free: Close stdout carefully.
72830 2008-02-10  Bruno Haible  <bruno@clisp.org>
72832         New module 'git-merge-changelog'.
72833         * modules/git-merge-changelog: New file.
72834         * lib/git-merge-changelog.c: New file.
72836 2008-02-10  Jim Meyering  <meyering@redhat.com>
72838         useless-if-before-free: New option: --list (-l).
72840         useless-if-before-free: Don't exit immediately upon open failure.
72841         * build-aux/useless-if-before-free: Exit 2 for errors.
72842         Upon failure to open a file, don't exit immediately.
72843         Rather, just warn and continue with any remaining files.
72845 2008-02-10  Bruno Haible  <bruno@clisp.org>
72847         New abstract list operation 'node_set_value'.
72848         * lib/gl_list.h (gl_list_node_set_value): New function.
72849         (struct gl_list_implementation): New field node_set_value.
72850         * lib/gl_list.c (gl_list_node_set_value): New function.
72851         * lib/gl_array_list.c (gl_array_node_set_value): New function.
72852         (gl_array_list_implementation): Update.
72853         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
72854         (gl_carray_list_implementation): Update.
72855         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
72856         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72857         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72858         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
72859         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72860         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72861         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72862         Update.
72863         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72864         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
72865         (gl_sublist_list_implementation): Update.
72867 2008-02-10  Bruno Haible  <bruno@clisp.org>
72869         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
72870         Needed when ELEMENT is #defined to 'some_type *'.
72872 2008-02-10  Jim Meyering  <meyering@redhat.com>
72874         New script and module: useless-if-before-free
72875         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
72876         * build-aux/useless-if-before-free: New file.
72877         * modules/useless-if-before-free: New file.
72879         * build-aux/gitlog-to-changelog: Use committer date, not author date.
72881         xstrtol_error: Fix typo.
72882         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
72883         s/exit_failure/exit_status/.
72885 2008-02-09  Jim Meyering  <meyering@redhat.com>
72887         New script and module: gitlog-to-changelog
72888         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
72889         * modules/gitlog-to-changelog: New file.
72890         * build-aux/gitlog-to-changelog: New file.
72892 2008-02-08  Jim Meyering  <meyering@redhat.com>
72894         Avoid two "parameter unused" warnings.
72895         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
72896         Mark "st" as used.
72898         Use "git COMMAND", not "git-COMMAND".
72899         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
72900         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
72901         * build-aux/git-version-gen: Use "git status", not "git-status".
72903 2008-02-07  Bruno Haible  <bruno@clisp.org>
72905         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
72906         Avoids a crash on Windows Vista.
72907         Reported by Adam Strzelecki <ono@java.pl> via
72908         Simon Josefsson <simon@josefsson.org>.
72910 2008-02-06  Bruno Haible  <bruno@clisp.org>
72912         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
72913         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
72914         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
72915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
72916         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
72917         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
72918         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
72919         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
72920         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
72921         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72922         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72923         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72924         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
72925         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72926         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72927         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
72928         left-adjust flag.
72929         * tests/test-snprintf-posix.h (test_function): Likewise.
72930         * tests/test-sprintf-posix.h (test_function): Likewise.
72931         * tests/test-vasprintf-posix.c (test_function): Likewise.
72932         * doc/posix-functions/fprintf.texi: Update.
72933         * doc/posix-functions/printf.texi: Update.
72934         * doc/posix-functions/snprintf.texi: Update.
72935         * doc/posix-functions/sprintf.texi: Update.
72936         * doc/posix-functions/vfprintf.texi: Update.
72937         * doc/posix-functions/vprintf.texi: Update.
72938         * doc/posix-functions/vsnprintf.texi: Update.
72939         * doc/posix-functions/vsprintf.texi: Update.
72940         Reported by Peter Fales <psfales@alcatel-lucent.com>.
72942 2008-02-06  Bruno Haible  <bruno@clisp.org>
72944         Fix bug introduced on 2008-01-26.
72945         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
72947 2008-02-06  Bruno Haible  <bruno@clisp.org>
72949         Fix bug introduced on 2007-06-10.
72950         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
72951         !NEED_PRINTF_FLAG_ZERO.
72953 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
72955         getloadavg: use libperfstat on AIX5
72956         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
72958 2008-02-03  Bruno Haible  <bruno@clisp.org>
72960         * lib/diffseq.h: Add comments about required #includes.
72961         Reported by Michael Biggs <gnulib@doubleplum.net>.
72963 2008-02-01  Bruno Haible  <bruno@clisp.org>
72965         * users.txt: Add gnuit.
72967 2008-01-31  Bruno Haible  <bruno@clisp.org>
72969         * lib/md4.c (set_uint32): Mark as inline.
72970         * lib/md5.c (set_uint32): Likewise.
72971         * lib/sha1.c (set_uint32): Likewise.
72972         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
72973         * m4/md5.m4 (gl_MD5): Likewise.
72974         * m4/sha1.m4 (gl_SHA1): Likewise.
72976 2008-01-31  Jim Meyering  <meyering@redhat.com>
72978         Use "sizeof VAR", rather than a literal "4".
72979         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
72980         * lib/md4.c (md4_read_ctx): Likewise.
72981         * lib/sha1.c (sha1_read_ctx): Likewise.
72983 2008-01-31  Simon Josefsson  <simon@josefsson.org>
72985         * tests/test-sha1.c: New file, based on test-md5.c.
72987         * modules/crypto/sha1-tests: New file.
72989 2008-01-31  Simon Josefsson  <simon@josefsson.org>
72991         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
72993 2008-01-31  Jim Meyering  <meyering@redhat.com>
72995         Prefer "sizeof v" over the equivalent "4".
72996         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
72997         * lib/md5.c (set_uint32): Likewise.
72998         * lib/sha1.c (set_uint32): Likewise.
73000 2008-01-31  Simon Josefsson  <simon@josefsson.org>
73002         * lib/sha1.c (set_uint32): Mark function as static.
73004 2008-01-31  Simon Josefsson  <simon@josefsson.org>
73006         md2: clarify comments to say that alignment is not required.
73007         * lib/md2.h: Remove warning about alignment in comment.
73008         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
73009         never been required.
73011 2008-01-31  Simon Josefsson  <simon@josefsson.org>
73013         md4: adapt alignment constraint fix from sha1.
73014         * lib/md4.c (set_uint32): New function, from sha1.c
73015         (md4_read_ctx): Use it.
73016         (md4_finish_ctx): Doc fix.
73017         * lib/md4.h: Doc fix.
73019 2008-01-31  Simon Josefsson  <simon@josefsson.org>
73021         md5: adapt alignment constraint fix from sha1.
73022         * lib/md5.c (set_uint32): New function, from sha1.c
73023         (md5_read_ctx): Use it.
73024         (md5_finish_ctx): Doc fix.
73025         * lib/md5.h: Doc fix.
73027 2008-01-30  Peter Palfrader  <weasel@debian.org>
73029         sha1: remove the result buffer alignment constraint
73030         * lib/sha1.c (set_uint32): New function.
73031         (sha1_read_ctx): Rewrite to remove the result buffer alignment
73032         constraint.
73033         (sha1_finish_ctx): Remove comment warning about alignment constraint.
73034         * lib/sha1.h: Likewise.
73036 2008-01-30  Andreas Schwab  <schwab@suse.de>
73037             Bruno Haible  <bruno@clisp.org>
73039         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
73040         correct definition of LDBL_MIN_EXP.
73042 2008-01-30  Karl Berry  <karl@gnu.org>
73044         * config/srclist-update: try to preserve x bit on updates.
73045         * config/srclistvars.sh: update for karl.
73047 2008-01-29  Jim Meyering  <meyering@redhat.com>
73049         vasnprintf.c: Avoid warning about unused label
73050         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
73051         "overflow" label definition and associated code with the
73052         same cpp condition that guards the sole use of that label.
73054 2008-01-26  Bruno Haible  <bruno@clisp.org>
73056         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
73057         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
73058         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
73059         * lib/isnanl-nolibm.h (isnanl): Likewise.
73060         Reported by Paul Eggert <eggert@cs.ucla.edu>.
73062 2008-01-26  Bruno Haible  <bruno@clisp.org>
73064         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
73065         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
73067 2008-01-26  Bruno Haible  <bruno@clisp.org>
73069         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
73070         GCC >= 4.0 built-in.
73071         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
73073 2008-01-26  Bruno Haible  <bruno@clisp.org>
73075         Rename isnan, applicable to 'double' only, to isnand.
73076         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
73077         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
73078         (configure.ac): Update.
73079         (Include): Replace "isnan.h" with "isnand.h".
73080         * m4/isnand.m4: Renamed from m4/isnan.m4.
73081         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
73082         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
73083         instead of isnan.c.
73084         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
73085         instead of HAVE_ISNAN_IN_LIBC.
73086         (isnand): Renamed from isnan.
73087         * lib/isnand.c: New file.
73088         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
73089         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
73090         (Makefile.am): Update.
73091         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
73092         Include isnand.h instead of isnan.h.
73093         (main): Test isnand instead of isnan.
73094         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
73095         isnan-nolibm.
73096         * modules/frexp (Depends-on): Likewise.
73097         * modules/frexp-tests (Depends-on): Likewise.
73098         * modules/frexp-nolibm (Depends-on): Likewise.
73099         * modules/frexp-nolibm-tests (Depends-on): Likewise.
73100         * modules/isfinite (Depends-on): Likewise.
73101         * modules/round-tests (Depends-on): Likewise.
73102         * modules/signbit (Depends-on): Likewise.
73103         * modules/signbit-tests (Depends-on): Likewise.
73104         * modules/snprintf-posix (Depends-on): Likewise.
73105         * modules/sprintf-posix (Depends-on): Likewise.
73106         * modules/trunc-tests (Depends-on): Likewise.
73107         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
73108         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
73109         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
73110         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
73111         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
73112         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
73113         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
73114         * modules/vasnprintf-posix (Depends-on): Likewise.
73115         * modules/vasprintf-posix (Depends-on): Likewise.
73116         * modules/vfprintf-posix (Depends-on): Likewise.
73117         * modules/vsnprintf-posix (Depends-on): Likewise.
73118         * modules/vsprintf-posix (Depends-on): Likewise.
73119         * lib/frexp.c: Include isnand.h instead of isnan.h.
73120         (ISNAN): Set to isnand instead of isnan.
73121         * lib/isfinite.c: Include isnand.h instead of isnan.h.
73122         (gl_isfinited): Use isnand instead of isnan.
73123         * lib/signbitd.c: Include isnand.h instead of isnan.h.
73124         (gl_signbitd): Use isnand instead of isnan.
73125         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
73126         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
73127         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
73128         (main): Use isnand instead of isnan.
73129         * tests/test-round1.c: Include isnand.h.
73130         (main): Use isnand instead of isnan.
73131         * tests/test-round2.c: Include isnand.h instead of isnan.h.
73132         (ISNAN): Set to isnand instead of isnan.
73133         * tests/test-trunc1.c: Include isnand.h.
73134         (main): Use isnand instead of isnan.
73135         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
73136         (equal): Use isnand instead of isnan.
73137         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
73138         isnand-nolibm.
73139         * NEWS: Mention the change.
73141 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73142             Bruno Haible  <bruno@clisp.org>
73144         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
73145         the GCC builtins for signbits are present and set
73146         REPLACE_SIGNBIT_USING_GCC if so.
73147         * lib/math.in.h (signbit): Define using GCC builtins if
73148         REPLACE_SIGNBIT_USING_GCC is set.
73149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
73150         REPLACE_SIGNBIT_USING_GCC.
73151         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
73153 2008-01-25  Jim Meyering  <meyering@redhat.com>
73155         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
73156         * lib/poll.c: Include <config.h>, not "config.h".
73157         * tests/test-getaddrinfo.c: Likewise.
73159 2008-01-25  Simon Josefsson  <simon@josefsson.org>
73161         * modules/sockets-tests: New file.
73163 2008-01-24  Simon Josefsson  <simon@josefsson.org>
73165         * modules/sockets: New module, can be used to call WSA_Startup and
73166         WSA_Cleanup when needed.
73168         * lib/sockets.h, lib/sockets.c: New files.
73170         * m4/sockets.m4: New file.
73172         * tests/test-sockets.c: New file.
73174 2008-01-19  Bruno Haible  <bruno@clisp.org>
73176         * doc/posix-headers: Renamed from doc/headers.
73177         * doc/posix-functions: Renamed from doc/functions.
73178         * doc/gnulib.texi: Update.
73180 2008-01-19  Bruno Haible  <bruno@clisp.org>
73182         * doc/glibc-functions/strcasestr.texi: Include contents of
73183         doc/functions/strcasestr.texi, fixing the list of platforms.
73184         * doc/functions/strcasestr.texi: Remove file.
73186 2008-01-19  Bruno Haible  <bruno@clisp.org>
73188         * doc/glibc-functions/memmem.texi: Include contents of
73189         doc/functions/memmem.texi.
73190         * doc/functions/memmem.texi: Remove file.
73192 2008-01-18  Bruno Haible  <bruno@clisp.org>
73194         * doc/glibc-functions/*.texi: New files.
73195         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
73196         to use the new files.
73198 2008-01-17  Bruno Haible  <bruno@clisp.org>
73200         * tests/test-gethostname.c (main): Fix printf statement.
73202 2008-01-17  Simon Josefsson  <simon@josefsson.org>
73204         * modules/gethostname-tests: New file.
73206         * tests/test-gethostname.c: New file.
73208 2008-01-17  Simon Josefsson  <simon@josefsson.org>
73210         * lib/gethostname.c: Include string.h unconditionally, strncpy is
73211         used by the UNAME case.  Reported by Bruno Haible
73212         <bruno@clisp.org>.
73214 2008-01-17  Eric Blake  <ebb9@byu.net>
73216         Convert c-strcasestr to be more efficient.
73217         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
73218         (Depends-on): Add c-strcase, remove malloca, strnlen.
73219         * tests/test-c-strcasestr.c (main): Enhance test.
73220         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
73222 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73224         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
73225         Use it in creating po/Makevars.
73227 2008-01-15  Simon Josefsson  <simon@josefsson.org>
73229         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
73230         Applications that requires it should initialize libgcrypt
73231         manually.
73233 2008-01-16  Simon Josefsson  <simon@josefsson.org>
73235         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
73237 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
73239         Fix problem with getdate on mingw32 reported by Simon Josefsson
73240         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
73241         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
73242         tzname", when deciding whether to declare tzname.
73243         * lib/strftime.c (tzname): Likewise.
73245 2008-01-15  Bruno Haible  <bruno@clisp.org>
73247         Work around a MacOS X 10.5 bug in frexpl().
73248         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
73249         * doc/functions/frexpl.texi: Document the bug.
73250         Reported by Elias Pipping <pipping@gentoo.org>.
73252 2008-01-14  Eric Blake  <ebb9@byu.net>
73254         Touch up previous patch.
73255         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
73256         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
73258         Convert strcasestr module to use Two-Way algorithm.
73259         * modules/strcasestr-simple: New module, based on the old
73260         strcasestr, but with Two-Way rather than KMP.
73261         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
73262         * lib/string.in.h (rpl_strcasestr): Declare.
73263         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
73264         performance.
73265         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
73266         * modules/string (Makefile.am): Support strcasestr.
73267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
73268         * modules/strcasestr-tests (Depends-on): Check for alarm.
73269         * tests/test-strcasestr.c: Augment test.
73270         * lib/str-two-way.h: Clean up stray macro.
73271         * NEWS: Document new module.
73272         * MODULES.html.sh (string handling): Likewise.
73273         * doc/functions/strcasestr.texi: New file.
73274         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
73275         here, since it is not a POSIX function.
73277 2008-01-14  Colin Watson  <cjwatson@debian.org>
73278             Bruno Haible  <bruno@clisp.org>
73280         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
73281         works fine; if not, set REPLACE_STRSIGNAL.
73282         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
73283         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73284         REPLACE_STRSIGNAL.
73285         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
73286         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
73287         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
73289 2008-01-14  Bruno Haible  <bruno@clisp.org>
73291         * modules/strsignal (Include): Change to <string.h>.
73293 2008-01-14  Colin Watson  <cjwatson@debian.org>
73295         * modules/argp (Notice): Add a notice recommending to change
73296         XGETTEXT_OPTIONS.
73297         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
73299 2008-01-13  Colin Watson  <cjwatson@debian.org>
73301         * modules/strsignal-tests: New file.
73302         * tests/test-strsignal.c: New file.
73304         * lib/strsignal.c: New file, from glibc with modifications.
73305         * lib/siglist.h: New file, from glibc with modifications.
73306         * lib/string.in.h (strsignal): New declaration.
73307         * m4/strsignal.m4: New file.
73308         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73309         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
73310         * modules/strsignal: New file.
73311         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
73312         HAVE_DECL_STRSIGNAL.
73314 2008-01-13  Bruno Haible  <bruno@clisp.org>
73316         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
73317         locale encoding is not ASCII. Needed for OpenBSD 4.0.
73318         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
73319         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
73321 2008-01-13  Bruno Haible  <bruno@clisp.org>
73323         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
73324         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
73325         * lib/argp.h (__attribute__): Likewise.
73326         * lib/c-stack.c (__attribute__): Likewise.
73327         * lib/error.h (__attribute__): Likewise.
73328         * lib/fts.c (__attribute__): Likewise.
73329         * lib/openat.h (__attribute__): Likewise.
73330         * lib/stdio.in.h (__attribute__): Likewise.
73331         * lib/string.in.h (__attribute__): Likewise.
73332         * lib/utimens.c (__attribute__): Likewise.
73333         * lib/vasnprintf.h (__attribute__): Likewise.
73334         * lib/xalloc.h (__attribute__): Likewise.
73335         * lib/xprintf.h (__attribute__): Likewise.
73336         * lib/xstrtol.h (__attribute__): Likewise.
73337         * lib/xvasprintf.h (__attribute__): Likewise.
73339 2008-01-12  Bruno Haible  <bruno@clisp.org>
73341         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
73342         * doc/glibc-headers/a.out.texi: New file.
73343         * doc/glibc-headers/aliases.texi: New file.
73344         * doc/glibc-headers/alloca.texi: New file.
73345         * doc/glibc-headers/ar.texi: New file.
73346         * doc/glibc-headers/argp.texi: New file.
73347         * doc/glibc-headers/argz.texi: New file.
73348         * doc/glibc-headers/byteswap.texi: New file.
73349         * doc/glibc-headers/crypt.texi: New file.
73350         * doc/glibc-headers/endian.texi: New file.
73351         * doc/glibc-headers/envz.texi: New file.
73352         * doc/glibc-headers/err.texi: New file.
73353         * doc/glibc-headers/error.texi: New file.
73354         * doc/glibc-headers/execinfo.texi: New file.
73355         * doc/glibc-headers/fpu_control.texi: New file.
73356         * doc/glibc-headers/fstab.texi: New file.
73357         * doc/glibc-headers/fts.texi: New file.
73358         * doc/glibc-headers/getopt.texi: New file.
73359         * doc/glibc-headers/ieee754.texi: New file.
73360         * doc/glibc-headers/ifaddrs.texi: New file.
73361         * doc/glibc-headers/libintl.texi: New file.
73362         * doc/glibc-headers/mcheck.texi: New file.
73363         * doc/glibc-headers/mntent.texi: New file.
73364         * doc/glibc-headers/obstack.texi: New file.
73365         * doc/glibc-headers/paths.texi: New file.
73366         * doc/glibc-headers/printf.texi: New file.
73367         * doc/glibc-headers/pty.texi: New file.
73368         * doc/glibc-headers/resolv.texi: New file.
73369         * doc/glibc-headers/shadow.texi: New file.
73370         * doc/glibc-headers/sysexits.texi: New file.
73371         * doc/glibc-headers/ttyent.texi: New file.
73373 2008-01-12  Jim Meyering  <meyering@redhat.com>
73375         announce-gen: emit Gnulib's git-based version string.
73376         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
73377         New option --gnulib-version=V, where V is expected to be
73378         the output of running git describe in the gnulib directory.
73379         (get_tool_versions): Request feedback on xdelta.  I suspect it's
73380         not useful, and plan to stop publishing an xdelta file with each
73381         coreutils release.
73383         * build-aux/announce-gen: Also check for lzma-compressed files.
73385 2008-01-11  Bruno Haible  <bruno@clisp.org>
73387         * tests/test-memmem.c (main): Increase maximum allowed time.
73388         * tests/test-strstr.c (main): Likewise.
73390 2008-01-11  Bruno Haible  <bruno@clisp.org>
73392         * doc/functions/memmem.texi: Add more precisions about platforms.
73393         * doc/functions/strstr.texi: Likewise.
73395 2008-01-10  Eric Blake  <ebb9@byu.net>
73397         * m4/strstr.m4: Delete cruft from copy-n-paste.
73398         Reported by Bruno Haible.
73400 2008-01-10  Bruno Haible  <bruno@clisp.org>
73402         Make c-strstr rely on strstr.
73403         * lib/c-strstr.c: Don't include str-kmp.h.
73404         (c_strstr): Define in terms of strstr.
73405         * modules/c-strstr (Files): Remove lib/str-kmp.h.
73406         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
73408 2008-01-10  Bruno Haible  <bruno@clisp.org>
73410         * doc/gnulib.texi (String Functions in C Locale): New section.
73411         * doc/c-ctype.texi: New file.
73412         * doc/c-strcase.texi: New file.
73413         * doc/c-strcaseeq.texi: New file.
73414         * doc/c-strcasestr.texi: New file.
73415         * doc/c-strstr.texi: New file.
73416         * doc/c-strtod.texi: New file.
73417         * doc/c-strtold.texi: New file.
73419 2008-01-10  Eric Blake  <ebb9@byu.net>
73421         * lib/relocatable.h: Fix a comment.
73423 2008-01-10  Eric Blake  <ebb9@byu.net>
73425         Share two-way algorithm.
73426         * lib/str-two-way.h: New file, merged from...
73427         * lib/memmem.c: ...here...
73428         * lib/strstr.c: ...and here.
73429         * modules/memmem (Files): Use it.
73430         * modules/strstr (Files): Likewise.
73432         Avoid quadratic strstr implementations.
73433         * lib/strstr.c: New file.
73434         * m4/strstr.m4: Likewise.
73435         * modules/strstr: Likewise.
73436         * modules/strstr-tests: Likewise.
73437         * tests/test-strstr.c: Likewise.
73438         * lib/string.in.h (rpl_strstr): Declare.
73439         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
73440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
73441         * modules/string (Makefile.am): Likewise.
73442         * MODULES.html.sh (string handling): Mention new module.
73443         * doc/functions/strstr.texi (strstr): Document the bug.
73445 2008-01-10  Bruno Haible  <bruno@clisp.org>
73447         * lib/relocatable.h (relocate): State whether result is freshly
73448         allocated or not.
73449         * lib/relocatable.c (relocate): Return a freshly allocated string
73450         instead of a pointer to a privately held string.
73451         Reported by Sylvain Beucler <beuc@gnu.org>.
73453 2008-01-10  Colin Watson  <cjwatson@debian.org>
73455         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
73456         s/S_ISNLK/S_ISLNK/.
73458 2008-01-09  Bruno Haible  <bruno@clisp.org>
73460         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
73461         and other files.
73462         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
73463         if it's only a guess.
73464         * modules/memmem: Simplify by depending on memmem-simple.
73466 2008-01-09  Bruno Haible  <bruno@clisp.org>
73468         Work around OpenBSD 4.0 tdelete() bug.
73469         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
73470         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
73471         macros and don't redefine the enum values.
73472         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
73473         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
73474         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
73476 2008-01-09  Bruno Haible  <bruno@clisp.org>
73478         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
73479         (main): Don't perform the tests if setlocale did not install a UTF-8
73480         locale. Needed on OpenBSD 4.0.
73481         * modules/wcwidth-tests (Depends-on): Add localcharset.
73483 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73485         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
73486         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
73487         * NEWS: announce this.
73488         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
73490 2008-01-09  Simon Josefsson  <simon@josefsson.org>
73491         and Eric Blake  <ebb9@byu.net>
73493         Add memmem-simple module.
73494         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
73495         (gl_FUNC_MEMMEM): Separate performance from presence checks.
73496         * modules/memmem-simple: New file.
73497         * modules/memmem (Description): Tweak.
73498         * MODULES.html.sh (string handling): Mention new module.
73499         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
73500         addressed by memmem-simple.
73501         * NEWS: Document the difference.
73503 2008-01-09  Eric Blake  <ebb9@byu.net>
73505         Give gcc some memmem optimization hints.
73506         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
73507         (strcasestr): Declare as pure.
73508         * modules/memmem (Maintainer): Claim my implementation.
73510 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73512         Support AIX 6.1 and higher.
73513         * build-aux/config.libpath: Likewise.
73514         * build-aux/config.rpath: Likewise.
73516 2008-01-08  Jim Meyering  <meyering@redhat.com>
73517             Bruno Haible  <bruno@clisp.org>
73519         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
73520         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
73521         Reported by Peter Fales in
73522         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
73524 2008-01-08  Bruno Haible  <bruno@clisp.org>
73526         * modules/unictype/category-of (Depends-on): Add
73527         unictype/category-none.
73528         * modules/unictype/category-and-tests (Depends-on): Add
73529         unictype/category-{L,N,Lu,Nd}.
73530         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
73531         * modules/unictype/category-or-tests (Depends-on): Add
73532         unictype/category-{L,N}.
73533         * modules/unictype/category-name-tests (Depends-on): Add
73534         unictype/category-{Z,Nl}.
73535         Reported by Simon Josefsson.
73537 2008-01-08  Bruno Haible  <bruno@clisp.org>
73539         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
73540         convention better.
73541         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
73542         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
73543         Reported by Peter Miller <millerp@canb.auug.org.au>.
73545 2008-01-08  Eric Blake  <ebb9@byu.net>
73547         Rewrite memmem to guarantee linear complexity without malloc.
73548         * lib/memmem.c (memmem): Use Two-Way rather than
73549         Knuth-Morris-Pratt, to allow O(1) space usage.
73550         (critical_factorization, two_way_short_needle)
73551         (two_way_long_needle): New functions.
73552         (knuth_morris_pratt): Delete.
73553         * modules/memmem (Depends-on): No longer need malloca or stdbool.
73554         Add stdint.
73555         * tests/test-memmem.c (main): Add tests for periodic needle and
73556         sublinear performance.
73557         * doc/functions/memmem.texi (memmem): Document other deficiencies
73558         in cygwin and older glibc.
73560 2008-01-08  Bruno Haible  <bruno@clisp.org>
73562         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
73563         augmentation.
73565 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
73567         Add a configure time option: --disable-acl.
73568         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
73569         AC_ARG_ENABLE(acl).
73571 2008-01-06  Simon Josefsson  <simon@josefsson.org>
73573         * tests/test-localename.c: Don't include obsolete "setenv.h".
73575         * modules/localename-tests (Depends-on): Need unsetenv.
73577 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73579         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
73581 2008-01-06  Colin Watson  <cjwatson@debian.org>
73583         * users.txt: Add man-db.
73585 2008-01-07  Bruno Haible  <bruno@clisp.org>
73587         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
73588         previous section name.
73590 2008-01-07  Bruno Haible  <bruno@clisp.org>
73592         * lib/progname.c (set_program_name): Don't strip off a leading
73593         "lt-" prefix outside a .libs directory.
73594         Suggested by Paul Eggert.
73596 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
73597             Bruno Haible  <bruno@clisp.org>
73599         Improve memory cleanup in 'relocatable' module.
73600         * lib/relocatable.h (compute_curr_prefix): Change return type to
73601         'char *'.
73602         * lib/relocatable.c (compute_curr_prefix): Change return type to
73603         'char *'. Free curr_installdir after use.
73604         (relocate): Free curr_prefix_better after use.
73605         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
73607 2008-01-01  Bruno Haible  <bruno@clisp.org>
73609         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
73610         failure on older glibc systems.
73611         Reported by Peter Fales <psfales@alcatel-lucent.com>.
73613 2008-01-05  Eric Blake  <ebb9@byu.net>
73615         Avoid quadratic system memmem.
73616         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
73617         Reported by Ralf Wildenhues.
73619         Fix memmem test for mingw.
73620         * modules/memmem-tests (configure.ac): Check for alarm.
73621         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
73622         it.
73623         * doc/functions/memmem.texi: New file.
73624         * doc/gnulib.texi (Function Substitutes): Add memmem.
73625         Reported by Bruno Haible.
73627 2008-01-04  Bruno Haible  <bruno@clisp.org>
73629         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
73630         Require gl_HEADER_STRINGS_H_DEFAULTS, not
73631         gl_HEADER_STRING_H_DEFAULTS.
73633 2008-01-04  Eric Blake  <ebb9@byu.net>
73635         Shorten duration of memmem test.
73636         * tests/test-memmem.c (main): Use alarm to declare failure if test
73637         is taking too long.
73638         Reported by Ralf Wildenhues.
73640 2007-12-21  Simon Josefsson  <simon@josefsson.org>
73642         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
73643         string, needed by strerror.
73645 2008-01-03  Colin Watson  <cjwatson@debian.org>
73646             Bruno Haible  <bruno@clisp.org>
73648         * doc/gnulib-tool.texi (Localization): New section.
73650 2008-01-02  Bruno Haible  <bruno@clisp.org>
73652         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
73653         variables to 'unsigned char *' type.
73654         Reported by Paul Eggert.
73656 2008-01-02  Jim Meyering  <jim@meyering.net>
73658         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
73660 2007-12-31  Jim Meyering  <jim@meyering.net>
73662         Avoid use of private FTS type name.
73663         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
73665 2007-12-30  Karl Berry  <karl@gnu.org>
73667         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
73668         work around defect in Texinfo and/or the standalone Info browser.
73670 2007-12-30  Bruno Haible  <bruno@clisp.org>
73672         Unify 5 copies of the KMP code.
73673         * lib/str-kmp.h: New file.
73674         * lib/c-strcasestr.c: Include str-kmp.h.
73675         (knuth_morris_pratt): Remove function.
73676         (c_strcasestr): Update.
73677         * lib/c-strstr.c: Include str-kmp.h.
73678         (knuth_morris_pratt): Remove function.
73679         (c_strcasestr): Update.
73680         * lib/mbscasestr.c: Include str-kmp.h.
73681         (knuth_morris_pratt_unibyte): Remove function.
73682         * lib/mbsstr.c: Include str-kmp.h.
73683         (knuth_morris_pratt_unibyte): Remove function.
73684         * lib/strcasestr.c: Include str-kmp.h.
73685         (knuth_morris_pratt): Remove function.
73686         (strcasestr): Update.
73687         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
73688         * modules/c-strstr (Files): Likewise.
73689         * modules/mbscasestr (Files): Likewise.
73690         * modules/mbsstr (Files): Likewise.
73691         * modules/strcasestr (Files): Likewise.
73692         Suggested by Paul Eggert.
73694 2007-12-30  Bruno Haible  <bruno@clisp.org>
73696         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
73697         defined.
73699 2007-12-30  Bruno Haible  <bruno@clisp.org>
73701         * lib/xmalloca.h: Include xalloc.h.
73702         (xnmalloca): New macro.
73704 2007-12-30  Bruno Haible  <bruno@clisp.org>
73706         * lib/malloca.h (nmalloca): New macro.
73707         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
73708         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
73709         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
73710         knuth_morris_pratt_multibyte): Likewise.
73711         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
73712         knuth_morris_pratt_multibyte): Likewise.
73713         * lib/memmem.c (knuth_morris_pratt): Likewise.
73714         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
73716 2007-12-25  Bruno Haible  <bruno@clisp.org>
73718         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
73719         * lib/glob.c: Don't include openat.h.
73720         (link_exists2_p): Add back the code that deals with the
73721         !GLOB_ALTDIRFUNC case.
73722         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
73723         let it do the filename concatenation.
73724         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
73725         * modules/glob (Depends-on): Remove openat.
73727 2007-12-31  Bruno Haible  <bruno@clisp.org>
73729         * modules/dirfd (License): Change to LGPLv2+.
73730         Approved by Jim Meyering.
73732 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
73734         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
73735         when multiplying M by sizeof (size_t).
73737 2007-12-10  Martin Lambers  <marlam@marlam.de>
73739         Override getpagesize on mingw.
73740         * lib/getpagesize.c: New file.
73741         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
73742         * modules/getpagesize (Files): Add lib/getpagesize.c.
73743         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
73744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73745         REPLACE_GETPAGESIZE.
73746         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
73748 2007-12-25  Bruno Haible  <bruno@clisp.org>
73750         * modules/localcharset (Notice): New field.
73751         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
73752         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
73754 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
73755             Bruno Haible  <bruno@clisp.org>
73757         Avoid using the syntax symbol() in formatted documentation.
73758         * MODULES.html.sh (func_module): When replacing symbol() with a
73759         hyperlink, remove the parentheses. Show an error if some remain.
73760         Recognize and render the '...' syntax.
73761         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
73762         Rework. Add paragraph about GCC's inlining.
73763         * doc/alloca.texi: Likewise.
73764         * doc/error.texi: Remove parentheses from symbol reference.
73765         * doc/gnulib-intro.texi: Likewise.
73766         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
73767         * modules/fnmatch (Description): Reword to say "the ... function".
73768         * modules/full-read (Description): Likewise.
73769         * modules/full-write (Description): Likewise.
73770         * modules/safe-read (Description): Likewise.
73771         * modules/safe-write (Description): Likewise.
73772         * modules/strchrnul (Description): Likewise.
73773         * modules/trim (Description): Likewise.
73774         * modules/error (Description): Remove parentheses from symbol
73775         references.
73776         * modules/verror (Description): Likewise.
73777         Reported by Karl Berry.
73779 2007-12-25  Bruno Haible  <bruno@clisp.org>
73781         Fixup after 2007-10-16 commit.
73782         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
73784 2007-12-24  Bruno Haible  <bruno@clisp.org>
73786         Make --enable-relocatable work with DESTDIR.
73787         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
73788         to compute installdir from destprog.
73789         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
73790         also set the RELOC_DESTDIR variable.
73791         Reported by Левашев Иван <octagram@bluebottle.com>.
73793 2007-12-24  Bruno Haible  <bruno@clisp.org>
73795         Fix link error due to xalloc_die().
73796         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
73797         of xreadlink.
73798         * lib/relocwrapper.c: Update comments.
73799         * build-aux/install-reloc: Remove xreadlink.c from file list.
73800         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
73801         xreadlink.c.
73802         Reported by Левашев Иван <octagram@bluebottle.com>.
73804 2007-12-24  Bruno Haible  <bruno@clisp.org>
73806         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
73807         * lib/setenv.h: Remove file.
73808         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
73809         lib/setenv.h.
73810         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
73811         (Depends-on): Add stdlib.
73812         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
73813         gl_FUNC_UNSETENV.
73814         (Include): Replace setenv.h with <stdlib.h>.
73815         * modules/unsetenv: New file.
73816         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
73817         * lib/unsetenv.c: Include <stdlib.h> first.
73818         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
73819         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
73820         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
73821         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
73822         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
73823         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
73824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
73825         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
73826         * doc/functions/unsetenv.texi: Update.
73827         * modules/xsetenv (Depends-on): Add unsetenv.
73828         * modules/getdate (Depends-on): Likewise.
73829         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
73830         * lib/xsetenv.c: Don't include setenv.h.
73831         * lib/getdate.y: Likewise.
73832         * lib/relocwrapper.c: Likewise.
73833         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
73834         (Depends-on): Add stdlib.
73835         * NEWS: Mention the changes.
73836         Reported by Левашев Иван <octagram@bluebottle.com>.
73838 2007-12-23  Bruno Haible  <bruno@clisp.org>
73840         * lib/memmem.c (memmem): Use lowercase variable names. Tab
73841         indentation.
73843 2007-12-23  Bruno Haible  <bruno@clisp.org>
73845         * lib/c-strcasestr.c: Add more comments.
73846         * lib/c-strstr.c: Likewise.
73847         * lib/mbscasestr.c: Likewise.
73848         * lib/mbsstr.c: Likewise.
73849         * lib/strcasestr.c: Likewise.
73850         * lib/memmem.c: Likewise.
73852 2007-12-23  Bruno Haible  <bruno@clisp.org>
73854         * tests/test-memmem.c: Include <string.h> first.
73856 2007-12-22  Bruno Haible  <bruno@clisp.org>
73858         * gnulib-tool (func_create_testdir): Change $auxdir while generating
73859         the contents of $testsbase.
73860         Reported by Ralf Wildenhues.
73862 2007-12-22  Bruno Haible  <bruno@clisp.org>
73864         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
73865         two variables local_ldadd_before, local_ldadd_last.
73867 2007-12-20  Eric Blake  <ebb9@byu.net>
73869         Work around circular library issue when cross-compiling.
73870         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
73871         that progname.o does not need to pull in rpl_memcmp.
73873 2007-12-19  Eric Blake  <ebb9@byu.net>
73875         Fix memmem to avoid O(n^2) worst-case complexity.
73876         * lib/memmem.c (knuth_morris_pratt): New function.
73877         (memmem): Use it if first few naive iterations fail.
73878         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
73879         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
73880         * modules/memchr (License): Likewise.
73881         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
73882         malloca.
73883         * tests/test-memmem.c: Rewrite, borrowing ideas from
73884         test-mbsstr1.c; the old version wouldn't even compile!
73885         * modules/memmem-tests: New file.
73886         * lib/string.in.h (rpl_memmem): Add declaration.
73887         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
73888         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
73889         REPLACE_MEMMEM.
73891 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73893         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
73894         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
73895         before any system include files, and undef after them all.  This
73896         should fix a problem on VMS reported by John E. Malmberg in
73897         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
73899 2007-12-17  Eric Blake  <ebb9@byu.net>
73901         Revert addition of verify, for BSD/OS.
73902         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
73903         can't handle large files, for the sake of obsolete platforms.
73904         * modules/fseeko (Depends-on): Remove verify.
73905         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
73906         * doc/functions/ftello.texi (ftello): Likewise.
73907         * doc/functions/fgetpos.texi (fgetpos): Likewise.
73908         Reported by Larry Jones.
73910 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
73912         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
73913         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
73915 2007-12-17  Jim Meyering  <meyering@redhat.com>
73917         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
73918         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
73919         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
73920         * modules/getcwd (Depends-on): Add openat.
73921         Reported by Petr Salinger.
73923 2007-12-17  Bruno Haible  <bruno@clisp.org>
73925         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
73926         avoid a segmentation fault of the configure test on x86_64 systems.
73928 2007-12-15  Jim Meyering  <meyering@redhat.com>
73930         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
73932 2007-12-13  Eric Blake  <ebb9@byu.net>
73934         Another fseek test.
73935         * tests/test-fseek.c (main): Also test ungetc handling.
73936         * tests/test-fseeko.c (main): Likewise.
73937         * modules/fseeko (Depends-on): Add verify.
73938         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
73939         large.
73940         Reported by Larry Jones.
73942         Fix fseeko on mingw.
73943         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
73944         seek.
73946         Beef up fseek tests.
73947         * tests/test-fseek.c (main): Also test eof handling.
73948         * tests/test-fseeko.c (main): Likewise.
73949         Reported by Larry Jones.
73951 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
73953         Fix fseeko on BSD-based platforms.
73954         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
73955         successful seek.
73957 2007-12-12  Eric Blake  <ebb9@byu.net>
73959         Allow circular dependency of separate libtests.a
73960         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
73961         when use_libtests.
73963 2007-12-11  Eric Blake  <ebb9@byu.net>
73965         Fix bug with -0.0L in previous patch.
73966         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
73967         * tests/test-isnan.c (main): Also test on zeroes.
73968         * tests/test-isnanf.c (main): Likewise.
73969         * tests/test-isnanl.h (main): Likewise.
73971         Detect pseudo-denormals on x86 even when cross-compiling.
73972         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
73973         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
73974         invalid bit patterns that happen to satisfy ==.
73976         Avoid link failures with separate libtests.a.
73977         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
73978         last, to satisfy circular dependencies.
73980 2007-12-11  Eric Blake  <ebb9@byu.net>
73981         and Bruno Haible  <bruno@clisp.org>
73983         Fix OpenBSD 4.0 <float.h> handling of long double.
73984         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
73985         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
73986         * doc/headers/float.texi (float.h): Document OpenBSD bug.
73988 2007-12-11  Jim Meyering  <meyering@redhat.com>
73990         * users.txt: Add libvirt.
73992         Support versions of autoconf prior to 2.59c.
73993         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
73994         if it is not already defined.
73996 2007-12-09  Bruno Haible  <bruno@clisp.org>
73998         Let 'gnulib-tool --import' collect sources needed for the tests in
73999         tests/ rather than in lib/.
74000         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
74001         argument. If true, add rules to generate libtests.a, and put libtests.a
74002         into $(LDADD). Consider source files in subdirectories and set
74003         uses_subdirs.
74004         (func_emit_initmacro_start, func_emit_initmacro_end,
74005         func_emit_initmacro_done): Pass all arguments explicitly.
74006         (func_import): Determine two module lists main_modules,
74007         testsrelated_modules. Determine use_libtests. Determine two variables
74008         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
74009         instead of just sed_transform_lib_file. Determine two variables
74010         main_files and testsrelated_files. Compute 'files' as the union of
74011         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
74012         func_add_or_update. In the generated gnulib-comp.m4, collect the
74013         object files for tests/ in different variables than those for lib/.
74014         Substitute LIBTESTS_LIBDEPS.
74015         (func_create_testdir): Combine the uses_subdirs results from
74016         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
74018 2007-12-09  Bruno Haible  <bruno@clisp.org>
74020         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
74021         the build-aux directory.
74023 2007-12-09  Bruno Haible  <bruno@clisp.org>
74025         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
74026         introduced on 2006-09-09.
74028 2007-12-07  Jim Meyering  <meyering@redhat.com>
74030         Let these macros work also with autoconf-2.59.
74031         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
74032         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
74033         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
74035 2007-12-06  Jim Meyering  <meyering@redhat.com>
74037         Avoid a configure-time syntax error in gl_FUNC_ACL.
74038         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
74039         function in each branch, before testing the cache variable.
74041 2007-12-04  Eric Blake  <ebb9@byu.net>
74043         Make scripts executable.
74044         * build-aux/config.guess: Add execute permissions.
74045         * build-aux/config.sub: Likewise.
74046         * build-aux/gendocs.sh: Likewise.
74048         Fix frexp on mingw.
74049         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
74050         cross-compiling.
74051         * doc/functions/frexp.texi (frexp): Document the bug.
74053         Make cygwin fseeko check more reliable.
74054         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
74055         version numbers, rather than unrelated feature check.
74056         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
74057         * doc/functions/ftello.texi (ftello): Likewise.
74058         Reported by Bruno Haible.
74060         * m4/strerror.m4: Bump version number.
74062 2007-12-03  Bruno Haible  <bruno@clisp.org>
74064         * doc/functions/mprotect.texi: Mention the mingw problem.
74066 2007-12-03  Eric Blake  <ebb9@byu.net>
74068         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
74069         REPLACE_STRERROR is initialized before this macro.
74071 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74073         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
74074         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
74075         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
74076         put -lsec in even for programs other than 'ls'.  This fixes a problem
74077         for gettext reported by Bruno Haible in
74078         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
74079         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
74080         Add support for Solaris 10.  This isn't efficient, but should get the
74081         job done for now.
74083 2007-12-03  James Youngman  <jay@gnu.org>
74085         * doc/regexprops-generic.texi: change "an close-group" to "a
74086         close-group" and "illegal" to "not allowed".
74088 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74090         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
74091         pr_byname.h. Needed for the rare case when the maintainer has done
74092         "make maintainer-clean" in the source directory and then attempts a
74093         build outside the source directory.
74094         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
74095         scripts_byname.h.
74097 2007-12-02  Martin Lambers <marlam@marlam.de>
74098             Bruno Haible  <bruno@clisp.org>
74100         * lib/getpagesize.h: Remove file.
74101         * lib/unistd.in.h: Include declaration of getpagesize here.
74102         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
74103         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
74104         HAVE_SYS_PARAM_H.
74105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
74106         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
74107         * modules/getpagesize (Files): Remove lib/getpagesize.h.
74108         (Depends-on): Add unistd.
74109         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74110         (Include): Use <unistd.h> instead of getpagesize.h.
74111         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
74112         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
74113         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
74114         gl_GETPAGESIZE invocation, already handled by module dependency.
74115         * lib/pagealign_alloc.c: Don't include getpagesize.h.
74117 2007-12-02  Bruno Haible  <bruno@clisp.org>
74119         * modules/strings-tests: New file.
74120         * tests/test-strings.c: New file.
74122         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
74123         * lib/strings.in.h: New file.
74124         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
74125         * m4/strings_h.m4: New file.
74126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
74127         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
74128         * modules/strings: New file.
74129         * modules/string (Makefile.am): Update.
74130         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
74131         Reported by Karl Berry.
74133 2007-12-01  Eric Blake  <ebb9@byu.net>
74135         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
74136         accommodate fix in cygwin 1.5.25.
74138 2007-12-01  Jim Meyering  <meyering@redhat.com>
74140         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
74141         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
74142         that would inhibit utf8-optimization of a regexp containing line-
74143         or buffer-anchors, e.g., `^', `$'.
74145 2007-11-30  Bruno Haible  <bruno@clisp.org>
74147         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
74148         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
74149         glthread_recursive_lock_init.
74150         * lib/lock.c (glthread_recursive_lock_init)
74151         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
74152         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74154 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
74156         New function qset_acl, like set_acl but with syscall semantics.
74157         * lib/acl.h (qset_acl): New decl.
74158         * lib/acl.c (qset_acl): New function.
74159         (set_acl): Use new function.  Use more-consistent diagnostics.
74161 2007-11-28  Jim Meyering  <meyering@redhat.com>
74163         * modules/physmem (License): Change from GPL to LGPLv2+.
74165 2007-11-26  Bruno Haible  <bruno@clisp.org>
74167         * lib/vasnprintf.c (decode_long_double): Don't abort if the
74168         'long double' type has excess precision.
74169         Reported by Jim Meyering in
74170         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
74172 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74174         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
74175         Sync from <http://gnu.org/licenses>.
74176         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
74177         with license text from same location.
74178         * doc/maintain.texi, doc/standards.texi:  Sync from
74179         <http://savannah.gnu.org/projects/gnustandards>.
74181 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
74182         and Jim Meyering  <meyering@redhat.com>
74184         Adjust getdate' grammar to accept a slightly more regular language.
74185         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
74186         Before, the former was rejected.
74187         * lib/getdate.y (digits_to_date_time): New function, factored
74188         out of ...
74189         (number): ...here.  Just call digits_to_date_time.
74190         (hybrid): New non-terminal to handle an <unsigned number,
74191         signed relative offset> sequence consistently.
74193 2007-11-18  Jim Meyering  <meyering@redhat.com>
74195         Pull my changes from coreutils:
74196         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
74197         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
74198         use of $gnulib_tool_option_extras, so that it's separated from the
74199         preceding argument.
74201         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
74202         * build-aux/bootstrap (cp_mark_as_generated): Create any required
74203         parent destination directories before copying a file into place.
74205 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
74207         bootstrap: work also with 4-argument variant of AC_INIT
74208         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
74210 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74212         Port test-getaddrinfo to Solaris.
74213         Problem reported by Bruno Haible in
74214         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
74215         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
74216         explanation of setting 'hints'.
74217         Don't reject an implementation merely because it returns EAI_SERVICE.
74218         (EAI_SERVICE): Define to 0 if not defined.
74220 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74222         The license of gnu-make and posix-shell is now "GPLed build tool".
74223         * modules/gnu-make (License): Likewise.
74224         * modules/posix-shell (License): Likewise.
74226         New module posix-shell, for determining a POSIX shell
74227         or perhaps something that is close enough to a POSIX shell.
74228         * m4/posix-shell.m4: New file.
74229         * modules/posix-shell: New file.
74231         * MODULES.html.sh: Mention new module.
74233         New module gnu-make, for determining whether we're using GNU Make.
74234         * m4/gnu-make.m4: New file.
74235         * modules/gnu-make: New file.
74236         * MODULES.html.sh: Mention new module.
74238 2007-11-14  Jim Meyering  <meyering@redhat.com>
74240         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
74241         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
74242         use this macro to create a function _definition_.
74243         Remove useless "#undef ARGMATCH_DIE".
74245 2007-11-14  Bruno Haible  <bruno@clisp.org>
74247         * lib/config.charset: Update for OpenBSD 4.1.
74248         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
74250 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
74252         Document 64-bit #if problems in stdint.texi.
74253         * doc/headers/stdint.texi (stdint.h): Mention problems with
74254         64-bit-#if, and how to work around them.
74256         Don't insist on 'long long int' support in the preprocessor.  It
74257         breaks too many things.  For example, PRIdMAX still uses a 'long
74258         long int' format with the latest Sun compiler, even though
74259         HAVE_LONG_LONG_INT isn't defined due to that compiler's
74260         preprocessor problem.  This causes the latest coreutils to dump
74261         core on Solaris 10 sparc with the Sun C compiler.
74262         Instead, fix the 2007-10-16 problem in a different way, by evaluating
74263         the troublesome expressions at configure-time, not at #if-time.
74264         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
74265         preprocessor.
74266         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
74267         compile-time C checks, done at 'configure'-time.
74268         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
74269         * modules/inttypes (Makefile): Substitute the new symbols that
74270         gl_INTTYPES_H now generates.
74271         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
74273 2007-11-12  Bruno Haible  <bruno@clisp.org>
74275         Tests for Unicode character classification functions.
74277         * modules/unictype/bidicategory-byname-tests: New file.
74278         * modules/unictype/bidicategory-name-tests: New file.
74279         * modules/unictype/bidicategory-of-tests: New file.
74280         * modules/unictype/bidicategory-test-tests: New file.
74281         * modules/unictype/block-list-tests: New file.
74282         * modules/unictype/block-of-tests: New file.
74283         * modules/unictype/block-test-tests: New file.
74284         * modules/unictype/category-C-tests: New file.
74285         * modules/unictype/category-Cc-tests: New file.
74286         * modules/unictype/category-Cf-tests: New file.
74287         * modules/unictype/category-Cn-tests: New file.
74288         * modules/unictype/category-Co-tests: New file.
74289         * modules/unictype/category-Cs-tests: New file.
74290         * modules/unictype/category-L-tests: New file.
74291         * modules/unictype/category-Ll-tests: New file.
74292         * modules/unictype/category-Lm-tests: New file.
74293         * modules/unictype/category-Lo-tests: New file.
74294         * modules/unictype/category-Lt-tests: New file.
74295         * modules/unictype/category-Lu-tests: New file.
74296         * modules/unictype/category-M-tests: New file.
74297         * modules/unictype/category-Mc-tests: New file.
74298         * modules/unictype/category-Me-tests: New file.
74299         * modules/unictype/category-Mn-tests: New file.
74300         * modules/unictype/category-N-tests: New file.
74301         * modules/unictype/category-Nd-tests: New file.
74302         * modules/unictype/category-Nl-tests: New file.
74303         * modules/unictype/category-No-tests: New file.
74304         * modules/unictype/category-P-tests: New file.
74305         * modules/unictype/category-Pc-tests: New file.
74306         * modules/unictype/category-Pd-tests: New file.
74307         * modules/unictype/category-Pe-tests: New file.
74308         * modules/unictype/category-Pf-tests: New file.
74309         * modules/unictype/category-Pi-tests: New file.
74310         * modules/unictype/category-Po-tests: New file.
74311         * modules/unictype/category-Ps-tests: New file.
74312         * modules/unictype/category-S-tests: New file.
74313         * modules/unictype/category-Sc-tests: New file.
74314         * modules/unictype/category-Sk-tests: New file.
74315         * modules/unictype/category-Sm-tests: New file.
74316         * modules/unictype/category-So-tests: New file.
74317         * modules/unictype/category-Z-tests: New file.
74318         * modules/unictype/category-Zl-tests: New file.
74319         * modules/unictype/category-Zp-tests: New file.
74320         * modules/unictype/category-Zs-tests: New file.
74321         * modules/unictype/category-and-not-tests: New file.
74322         * modules/unictype/category-and-tests: New file.
74323         * modules/unictype/category-byname-tests: New file.
74324         * modules/unictype/category-name-tests: New file.
74325         * modules/unictype/category-none-tests: New file.
74326         * modules/unictype/category-of-tests: New file.
74327         * modules/unictype/category-or-tests: New file.
74328         * modules/unictype/category-test-withtable-tests: New file.
74329         * modules/unictype/combining-class-tests: New file.
74330         * modules/unictype/ctype-alnum-tests: New file.
74331         * modules/unictype/ctype-alpha-tests: New file.
74332         * modules/unictype/ctype-blank-tests: New file.
74333         * modules/unictype/ctype-cntrl-tests: New file.
74334         * modules/unictype/ctype-digit-tests: New file.
74335         * modules/unictype/ctype-graph-tests: New file.
74336         * modules/unictype/ctype-lower-tests: New file.
74337         * modules/unictype/ctype-print-tests: New file.
74338         * modules/unictype/ctype-punct-tests: New file.
74339         * modules/unictype/ctype-space-tests: New file.
74340         * modules/unictype/ctype-upper-tests: New file.
74341         * modules/unictype/ctype-xdigit-tests: New file.
74342         * modules/unictype/decimal-digit-tests: New file.
74343         * modules/unictype/digit-tests: New file.
74344         * modules/unictype/mirror-tests: New file.
74345         * modules/unictype/numeric-tests: New file.
74346         * modules/unictype/property-alphabetic-tests: New file.
74347         * modules/unictype/property-ascii-hex-digit-tests: New file.
74348         * modules/unictype/property-bidi-arabic-digit-tests: New file.
74349         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
74350         * modules/unictype/property-bidi-block-separator-tests: New file.
74351         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
74352         * modules/unictype/property-bidi-common-separator-tests: New file.
74353         * modules/unictype/property-bidi-control-tests: New file.
74354         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
74355         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
74356         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
74357         * modules/unictype/property-bidi-european-digit-tests: New file.
74358         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
74359         * modules/unictype/property-bidi-left-to-right-tests: New file.
74360         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
74361         * modules/unictype/property-bidi-other-neutral-tests: New file.
74362         * modules/unictype/property-bidi-pdf-tests: New file.
74363         * modules/unictype/property-bidi-segment-separator-tests: New file.
74364         * modules/unictype/property-bidi-whitespace-tests: New file.
74365         * modules/unictype/property-byname-tests: New file.
74366         * modules/unictype/property-combining-tests: New file.
74367         * modules/unictype/property-composite-tests: New file.
74368         * modules/unictype/property-currency-symbol-tests: New file.
74369         * modules/unictype/property-dash-tests: New file.
74370         * modules/unictype/property-decimal-digit-tests: New file.
74371         * modules/unictype/property-default-ignorable-code-point-tests: New file.
74372         * modules/unictype/property-deprecated-tests: New file.
74373         * modules/unictype/property-diacritic-tests: New file.
74374         * modules/unictype/property-extender-tests: New file.
74375         * modules/unictype/property-format-control-tests: New file.
74376         * modules/unictype/property-grapheme-base-tests: New file.
74377         * modules/unictype/property-grapheme-extend-tests: New file.
74378         * modules/unictype/property-grapheme-link-tests: New file.
74379         * modules/unictype/property-hex-digit-tests: New file.
74380         * modules/unictype/property-hyphen-tests: New file.
74381         * modules/unictype/property-id-continue-tests: New file.
74382         * modules/unictype/property-id-start-tests: New file.
74383         * modules/unictype/property-ideographic-tests: New file.
74384         * modules/unictype/property-ids-binary-operator-tests: New file.
74385         * modules/unictype/property-ids-trinary-operator-tests: New file.
74386         * modules/unictype/property-ignorable-control-tests: New file.
74387         * modules/unictype/property-iso-control-tests: New file.
74388         * modules/unictype/property-join-control-tests: New file.
74389         * modules/unictype/property-left-of-pair-tests: New file.
74390         * modules/unictype/property-line-separator-tests: New file.
74391         * modules/unictype/property-logical-order-exception-tests: New file.
74392         * modules/unictype/property-lowercase-tests: New file.
74393         * modules/unictype/property-math-tests: New file.
74394         * modules/unictype/property-non-break-tests: New file.
74395         * modules/unictype/property-not-a-character-tests: New file.
74396         * modules/unictype/property-numeric-tests: New file.
74397         * modules/unictype/property-other-alphabetic-tests: New file.
74398         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
74399         * modules/unictype/property-other-grapheme-extend-tests: New file.
74400         * modules/unictype/property-other-id-continue-tests: New file.
74401         * modules/unictype/property-other-id-start-tests: New file.
74402         * modules/unictype/property-other-lowercase-tests: New file.
74403         * modules/unictype/property-other-math-tests: New file.
74404         * modules/unictype/property-other-uppercase-tests: New file.
74405         * modules/unictype/property-paired-punctuation-tests: New file.
74406         * modules/unictype/property-paragraph-separator-tests: New file.
74407         * modules/unictype/property-pattern-syntax-tests: New file.
74408         * modules/unictype/property-pattern-white-space-tests: New file.
74409         * modules/unictype/property-private-use-tests: New file.
74410         * modules/unictype/property-punctuation-tests: New file.
74411         * modules/unictype/property-quotation-mark-tests: New file.
74412         * modules/unictype/property-radical-tests: New file.
74413         * modules/unictype/property-sentence-terminal-tests: New file.
74414         * modules/unictype/property-soft-dotted-tests: New file.
74415         * modules/unictype/property-space-tests: New file.
74416         * modules/unictype/property-terminal-punctuation-tests: New file.
74417         * modules/unictype/property-test-tests: New file.
74418         * modules/unictype/property-titlecase-tests: New file.
74419         * modules/unictype/property-unassigned-code-value-tests: New file.
74420         * modules/unictype/property-unified-ideograph-tests: New file.
74421         * modules/unictype/property-uppercase-tests: New file.
74422         * modules/unictype/property-variation-selector-tests: New file.
74423         * modules/unictype/property-white-space-tests: New file.
74424         * modules/unictype/property-xid-continue-tests: New file.
74425         * modules/unictype/property-xid-start-tests: New file.
74426         * modules/unictype/property-zero-width-tests: New file.
74427         * modules/unictype/scripts-tests: New file.
74428         * modules/unictype/syntax-c-ident-tests: New file.
74429         * modules/unictype/syntax-c-whitespace-tests: New file.
74430         * modules/unictype/syntax-java-ident-tests: New file.
74431         * modules/unictype/syntax-java-whitespace-tests: New file.
74432         * tests/unictype/test-bidi_byname.c: New file.
74433         * tests/unictype/test-bidi_name.c: New file.
74434         * tests/unictype/test-bidi_of.c: New file.
74435         * tests/unictype/test-bidi_test.c: New file.
74436         * tests/unictype/test-block_list.c: New file.
74437         * tests/unictype/test-block_of.c: New file.
74438         * tests/unictype/test-block_test.c: New file.
74439         * tests/unictype/test-categ_and.c: New file.
74440         * tests/unictype/test-categ_and_not.c: New file.
74441         * tests/unictype/test-categ_byname.c: New file.
74442         * tests/unictype/test-categ_name.c: New file.
74443         * tests/unictype/test-categ_none.c: New file.
74444         * tests/unictype/test-categ_of.c: New file.
74445         * tests/unictype/test-categ_or.c: New file.
74446         * tests/unictype/test-categ_test_withtable.c: New file.
74447         * tests/unictype/test-combining.c: New file.
74448         * tests/unictype/test-decdigit.c: New file.
74449         * tests/unictype/test-digit.c: New file.
74450         * tests/unictype/test-mirror.c: New file.
74451         * tests/unictype/test-numeric.c: New file.
74452         * tests/unictype/test-pr_byname.c: New file.
74453         * tests/unictype/test-pr_test.c: New file.
74454         * tests/unictype/test-predicate-part1.h: New file.
74455         * tests/unictype/test-predicate-part2.h: New file.
74456         * tests/unictype/test-scripts.c: New file.
74457         * tests/unictype/test-sy_c_ident.c: New file.
74458         * tests/unictype/test-sy_java_ident.c: New file.
74460         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
74461         for Unicode 5.0.0.
74462         * tests/unictype/test-categ_Cc.c: Likewise.
74463         * tests/unictype/test-categ_Cf.c: Likewise.
74464         * tests/unictype/test-categ_Cn.c: Likewise.
74465         * tests/unictype/test-categ_Co.c: Likewise.
74466         * tests/unictype/test-categ_Cs.c: Likewise.
74467         * tests/unictype/test-categ_L.c: Likewise.
74468         * tests/unictype/test-categ_Ll.c: Likewise.
74469         * tests/unictype/test-categ_Lm.c: Likewise.
74470         * tests/unictype/test-categ_Lo.c: Likewise.
74471         * tests/unictype/test-categ_Lt.c: Likewise.
74472         * tests/unictype/test-categ_Lu.c: Likewise.
74473         * tests/unictype/test-categ_M.c: Likewise.
74474         * tests/unictype/test-categ_Mc.c: Likewise.
74475         * tests/unictype/test-categ_Me.c: Likewise.
74476         * tests/unictype/test-categ_Mn.c: Likewise.
74477         * tests/unictype/test-categ_N.c: Likewise.
74478         * tests/unictype/test-categ_Nd.c: Likewise.
74479         * tests/unictype/test-categ_Nl.c: Likewise.
74480         * tests/unictype/test-categ_No.c: Likewise.
74481         * tests/unictype/test-categ_P.c: Likewise.
74482         * tests/unictype/test-categ_Pc.c: Likewise.
74483         * tests/unictype/test-categ_Pd.c: Likewise.
74484         * tests/unictype/test-categ_Pe.c: Likewise.
74485         * tests/unictype/test-categ_Pf.c: Likewise.
74486         * tests/unictype/test-categ_Pi.c: Likewise.
74487         * tests/unictype/test-categ_Po.c: Likewise.
74488         * tests/unictype/test-categ_Ps.c: Likewise.
74489         * tests/unictype/test-categ_S.c: Likewise.
74490         * tests/unictype/test-categ_Sc.c: Likewise.
74491         * tests/unictype/test-categ_Sk.c: Likewise.
74492         * tests/unictype/test-categ_Sm.c: Likewise.
74493         * tests/unictype/test-categ_So.c: Likewise.
74494         * tests/unictype/test-categ_Z.c: Likewise.
74495         * tests/unictype/test-categ_Zl.c: Likewise.
74496         * tests/unictype/test-categ_Zp.c: Likewise.
74497         * tests/unictype/test-categ_Zs.c: Likewise.
74498         * tests/unictype/test-ctype_alnum.c: Likewise.
74499         * tests/unictype/test-ctype_alpha.c: Likewise.
74500         * tests/unictype/test-ctype_blank.c: Likewise.
74501         * tests/unictype/test-ctype_cntrl.c: Likewise.
74502         * tests/unictype/test-ctype_digit.c: Likewise.
74503         * tests/unictype/test-ctype_graph.c: Likewise.
74504         * tests/unictype/test-ctype_lower.c: Likewise.
74505         * tests/unictype/test-ctype_print.c: Likewise.
74506         * tests/unictype/test-ctype_punct.c: Likewise.
74507         * tests/unictype/test-ctype_space.c: Likewise.
74508         * tests/unictype/test-ctype_upper.c: Likewise.
74509         * tests/unictype/test-ctype_xdigit.c: Likewise.
74510         * tests/unictype/test-decdigit.h: Likewise.
74511         * tests/unictype/test-digit.h: Likewise.
74512         * tests/unictype/test-numeric.h: Likewise.
74513         * tests/unictype/test-pr_alphabetic.c: Likewise.
74514         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
74515         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
74516         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
74517         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
74518         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
74519         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
74520         * tests/unictype/test-pr_bidi_control.c: Likewise.
74521         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
74522         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
74523         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
74524         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
74525         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
74526         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
74527         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
74528         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
74529         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
74530         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
74531         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
74532         * tests/unictype/test-pr_combining.c: Likewise.
74533         * tests/unictype/test-pr_composite.c: Likewise.
74534         * tests/unictype/test-pr_currency_symbol.c: Likewise.
74535         * tests/unictype/test-pr_dash.c: Likewise.
74536         * tests/unictype/test-pr_decimal_digit.c: Likewise.
74537         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
74538         * tests/unictype/test-pr_deprecated.c: Likewise.
74539         * tests/unictype/test-pr_diacritic.c: Likewise.
74540         * tests/unictype/test-pr_extender.c: Likewise.
74541         * tests/unictype/test-pr_format_control.c: Likewise.
74542         * tests/unictype/test-pr_grapheme_base.c: Likewise.
74543         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
74544         * tests/unictype/test-pr_grapheme_link.c: Likewise.
74545         * tests/unictype/test-pr_hex_digit.c: Likewise.
74546         * tests/unictype/test-pr_hyphen.c: Likewise.
74547         * tests/unictype/test-pr_id_continue.c: Likewise.
74548         * tests/unictype/test-pr_id_start.c: Likewise.
74549         * tests/unictype/test-pr_ideographic.c: Likewise.
74550         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
74551         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
74552         * tests/unictype/test-pr_ignorable_control.c: Likewise.
74553         * tests/unictype/test-pr_iso_control.c: Likewise.
74554         * tests/unictype/test-pr_join_control.c: Likewise.
74555         * tests/unictype/test-pr_left_of_pair.c: Likewise.
74556         * tests/unictype/test-pr_line_separator.c: Likewise.
74557         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
74558         * tests/unictype/test-pr_lowercase.c: Likewise.
74559         * tests/unictype/test-pr_math.c: Likewise.
74560         * tests/unictype/test-pr_non_break.c: Likewise.
74561         * tests/unictype/test-pr_not_a_character.c: Likewise.
74562         * tests/unictype/test-pr_numeric.c: Likewise.
74563         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
74564         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
74565         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
74566         * tests/unictype/test-pr_other_id_continue.c: Likewise.
74567         * tests/unictype/test-pr_other_id_start.c: Likewise.
74568         * tests/unictype/test-pr_other_lowercase.c: Likewise.
74569         * tests/unictype/test-pr_other_math.c: Likewise.
74570         * tests/unictype/test-pr_other_uppercase.c: Likewise.
74571         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
74572         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
74573         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
74574         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
74575         * tests/unictype/test-pr_private_use.c: Likewise.
74576         * tests/unictype/test-pr_punctuation.c: Likewise.
74577         * tests/unictype/test-pr_quotation_mark.c: Likewise.
74578         * tests/unictype/test-pr_radical.c: Likewise.
74579         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
74580         * tests/unictype/test-pr_soft_dotted.c: Likewise.
74581         * tests/unictype/test-pr_space.c: Likewise.
74582         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
74583         * tests/unictype/test-pr_titlecase.c: Likewise.
74584         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
74585         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
74586         * tests/unictype/test-pr_uppercase.c: Likewise.
74587         * tests/unictype/test-pr_variation_selector.c: Likewise.
74588         * tests/unictype/test-pr_white_space.c: Likewise.
74589         * tests/unictype/test-pr_xid_continue.c: Likewise.
74590         * tests/unictype/test-pr_xid_start.c: Likewise.
74591         * tests/unictype/test-pr_zero_width.c: Likewise.
74592         * tests/unictype/test-sy_c_whitespace.c: Likewise.
74593         * tests/unictype/test-sy_java_whitespace.c: Likewise.
74595 2007-11-12  Bruno Haible  <bruno@clisp.org>
74597         Unicode character classification functions.
74598         * lib/unictype.h: New file.
74599         * modules/unictype/base: New file.
74600         * modules/unictype/category-L: New file.
74601         * modules/unictype/category-Lu: New file.
74602         * modules/unictype/category-Ll: New file.
74603         * modules/unictype/category-Lt: New file.
74604         * modules/unictype/category-Lm: New file.
74605         * modules/unictype/category-Lo: New file.
74606         * modules/unictype/category-M: New file.
74607         * modules/unictype/category-Mn: New file.
74608         * modules/unictype/category-Mc: New file.
74609         * modules/unictype/category-Me: New file.
74610         * modules/unictype/category-N: New file.
74611         * modules/unictype/category-Nd: New file.
74612         * modules/unictype/category-Nl: New file.
74613         * modules/unictype/category-No: New file.
74614         * modules/unictype/category-P: New file.
74615         * modules/unictype/category-Pc: New file.
74616         * modules/unictype/category-Pd: New file.
74617         * modules/unictype/category-Ps: New file.
74618         * modules/unictype/category-Pe: New file.
74619         * modules/unictype/category-Pi: New file.
74620         * modules/unictype/category-Pf: New file.
74621         * modules/unictype/category-Po: New file.
74622         * modules/unictype/category-S: New file.
74623         * modules/unictype/category-Sm: New file.
74624         * modules/unictype/category-Sc: New file.
74625         * modules/unictype/category-Sk: New file.
74626         * modules/unictype/category-So: New file.
74627         * modules/unictype/category-Z: New file.
74628         * modules/unictype/category-Zs: New file.
74629         * modules/unictype/category-Zl: New file.
74630         * modules/unictype/category-Zp: New file.
74631         * modules/unictype/category-C: New file.
74632         * modules/unictype/category-Cc: New file.
74633         * modules/unictype/category-Cf: New file.
74634         * modules/unictype/category-Cs: New file.
74635         * modules/unictype/category-Co: New file.
74636         * modules/unictype/category-Cn: New file.
74637         * modules/unictype/category-or: New file.
74638         * modules/unictype/category-of: New file.
74639         * modules/unictype/category-test: New file.
74640         * modules/unictype/category-test-withtable: New file.
74641         * modules/unictype/category-byname: New file.
74642         * modules/unictype/category-none: New file.
74643         * modules/unictype/category-and: New file.
74644         * modules/unictype/category-and-not: New file.
74645         * modules/unictype/category-name: New file.
74646         * modules/unictype/combining-class: New file.
74647         * modules/unictype/category-all: New file.
74648         * modules/unictype/bidicategory-all: New file.
74649         * modules/unictype/bidicategory-byname: New file.
74650         * modules/unictype/bidicategory-name: New file.
74651         * modules/unictype/bidicategory-of: New file.
74652         * modules/unictype/bidicategory-test: New file.
74653         * modules/unictype/decimal-digit: New file.
74654         * modules/unictype/digit: New file.
74655         * modules/unictype/numeric: New file.
74656         * modules/unictype/mirror: New file.
74657         * modules/unictype/property-white-space: New file.
74658         * modules/unictype/property-alphabetic: New file.
74659         * modules/unictype/property-other-alphabetic: New file.
74660         * modules/unictype/property-not-a-character: New file.
74661         * modules/unictype/property-default-ignorable-code-point: New file.
74662         * modules/unictype/property-other-default-ignorable-code-point: New
74663         file.
74664         * modules/unictype/property-deprecated: New file.
74665         * modules/unictype/property-logical-order-exception: New file.
74666         * modules/unictype/property-variation-selector: New file.
74667         * modules/unictype/property-private-use: New file.
74668         * modules/unictype/property-unassigned-code-value: New file.
74669         * modules/unictype/property-uppercase: New file.
74670         * modules/unictype/property-other-uppercase: New file.
74671         * modules/unictype/property-lowercase: New file.
74672         * modules/unictype/property-other-lowercase: New file.
74673         * modules/unictype/property-titlecase: New file.
74674         * modules/unictype/property-soft-dotted: New file.
74675         * modules/unictype/property-id-start: New file.
74676         * modules/unictype/property-other-id-start: New file.
74677         * modules/unictype/property-id-continue: New file.
74678         * modules/unictype/property-other-id-continue: New file.
74679         * modules/unictype/property-xid-start: New file.
74680         * modules/unictype/property-xid-continue: New file.
74681         * modules/unictype/property-pattern-white-space: New file.
74682         * modules/unictype/property-pattern-syntax: New file.
74683         * modules/unictype/property-join-control: New file.
74684         * modules/unictype/property-grapheme-base: New file.
74685         * modules/unictype/property-grapheme-extend: New file.
74686         * modules/unictype/property-other-grapheme-extend: New file.
74687         * modules/unictype/property-grapheme-link: New file.
74688         * modules/unictype/property-bidi-control: New file.
74689         * modules/unictype/property-bidi-left-to-right: New file.
74690         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
74691         * modules/unictype/property-bidi-arabic-right-to-left: New file.
74692         * modules/unictype/property-bidi-european-digit: New file.
74693         * modules/unictype/property-bidi-eur-num-separator: New file.
74694         * modules/unictype/property-bidi-eur-num-terminator: New file.
74695         * modules/unictype/property-bidi-arabic-digit: New file.
74696         * modules/unictype/property-bidi-common-separator: New file.
74697         * modules/unictype/property-bidi-block-separator: New file.
74698         * modules/unictype/property-bidi-segment-separator: New file.
74699         * modules/unictype/property-bidi-whitespace: New file.
74700         * modules/unictype/property-bidi-non-spacing-mark: New file.
74701         * modules/unictype/property-bidi-boundary-neutral: New file.
74702         * modules/unictype/property-bidi-pdf: New file.
74703         * modules/unictype/property-bidi-embedding-or-override: New file.
74704         * modules/unictype/property-bidi-other-neutral: New file.
74705         * modules/unictype/property-hex-digit: New file.
74706         * modules/unictype/property-ascii-hex-digit: New file.
74707         * modules/unictype/property-ideographic: New file.
74708         * modules/unictype/property-unified-ideograph: New file.
74709         * modules/unictype/property-radical: New file.
74710         * modules/unictype/property-ids-binary-operator: New file.
74711         * modules/unictype/property-ids-trinary-operator: New file.
74712         * modules/unictype/property-zero-width: New file.
74713         * modules/unictype/property-space: New file.
74714         * modules/unictype/property-non-break: New file.
74715         * modules/unictype/property-iso-control: New file.
74716         * modules/unictype/property-format-control: New file.
74717         * modules/unictype/property-dash: New file.
74718         * modules/unictype/property-hyphen: New file.
74719         * modules/unictype/property-punctuation: New file.
74720         * modules/unictype/property-line-separator: New file.
74721         * modules/unictype/property-paragraph-separator: New file.
74722         * modules/unictype/property-quotation-mark: New file.
74723         * modules/unictype/property-sentence-terminal: New file.
74724         * modules/unictype/property-terminal-punctuation: New file.
74725         * modules/unictype/property-currency-symbol: New file.
74726         * modules/unictype/property-math: New file.
74727         * modules/unictype/property-other-math: New file.
74728         * modules/unictype/property-paired-punctuation: New file.
74729         * modules/unictype/property-left-of-pair: New file.
74730         * modules/unictype/property-combining: New file.
74731         * modules/unictype/property-composite: New file.
74732         * modules/unictype/property-decimal-digit: New file.
74733         * modules/unictype/property-numeric: New file.
74734         * modules/unictype/property-diacritic: New file.
74735         * modules/unictype/property-extender: New file.
74736         * modules/unictype/property-ignorable-control: New file.
74737         * modules/unictype/property-test: New file.
74738         * modules/unictype/property-byname: New file.
74739         * modules/unictype/property-all: New file.
74740         * modules/unictype/scripts: New file.
74741         * modules/unictype/scripts-all: New file.
74742         * modules/unictype/block-of: New file.
74743         * modules/unictype/block-test: New file.
74744         * modules/unictype/block-list: New file.
74745         * modules/unictype/block-all: New file.
74746         * modules/unictype/syntax-c-whitespace: New file.
74747         * modules/unictype/syntax-java-whitespace: New file.
74748         * modules/unictype/syntax-c-ident: New file.
74749         * modules/unictype/syntax-java-ident: New file.
74750         * modules/unictype/ctype-alnum: New file.
74751         * modules/unictype/ctype-alpha: New file.
74752         * modules/unictype/ctype-cntrl: New file.
74753         * modules/unictype/ctype-digit: New file.
74754         * modules/unictype/ctype-graph: New file.
74755         * modules/unictype/ctype-lower: New file.
74756         * modules/unictype/ctype-print: New file.
74757         * modules/unictype/ctype-punct: New file.
74758         * modules/unictype/ctype-space: New file.
74759         * modules/unictype/ctype-upper: New file.
74760         * modules/unictype/ctype-xdigit: New file.
74761         * modules/unictype/ctype-blank: New file.
74762         * lib/unictype/bidi_byname.c: New file.
74763         * lib/unictype/bidi_name.c: New file.
74764         * lib/unictype/bidi_of.c: New file.
74765         * lib/unictype/bidi_test.c: New file.
74766         * lib/unictype/bitmap.h: New file.
74767         * lib/unictype/block_test.c: New file.
74768         * lib/unictype/blocks.c: New file.
74769         * lib/unictype/categ_C.c: New file.
74770         * lib/unictype/categ_Cc.c: New file.
74771         * lib/unictype/categ_Cf.c: New file.
74772         * lib/unictype/categ_Cn.c: New file.
74773         * lib/unictype/categ_Co.c: New file.
74774         * lib/unictype/categ_Cs.c: New file.
74775         * lib/unictype/categ_L.c: New file.
74776         * lib/unictype/categ_Ll.c: New file.
74777         * lib/unictype/categ_Lm.c: New file.
74778         * lib/unictype/categ_Lo.c: New file.
74779         * lib/unictype/categ_Lt.c: New file.
74780         * lib/unictype/categ_Lu.c: New file.
74781         * lib/unictype/categ_M.c: New file.
74782         * lib/unictype/categ_Mc.c: New file.
74783         * lib/unictype/categ_Me.c: New file.
74784         * lib/unictype/categ_Mn.c: New file.
74785         * lib/unictype/categ_N.c: New file.
74786         * lib/unictype/categ_Nd.c: New file.
74787         * lib/unictype/categ_Nl.c: New file.
74788         * lib/unictype/categ_No.c: New file.
74789         * lib/unictype/categ_P.c: New file.
74790         * lib/unictype/categ_Pc.c: New file.
74791         * lib/unictype/categ_Pd.c: New file.
74792         * lib/unictype/categ_Pe.c: New file.
74793         * lib/unictype/categ_Pf.c: New file.
74794         * lib/unictype/categ_Pi.c: New file.
74795         * lib/unictype/categ_Po.c: New file.
74796         * lib/unictype/categ_Ps.c: New file.
74797         * lib/unictype/categ_S.c: New file.
74798         * lib/unictype/categ_Sc.c: New file.
74799         * lib/unictype/categ_Sk.c: New file.
74800         * lib/unictype/categ_Sm.c: New file.
74801         * lib/unictype/categ_So.c: New file.
74802         * lib/unictype/categ_Z.c: New file.
74803         * lib/unictype/categ_Zl.c: New file.
74804         * lib/unictype/categ_Zp.c: New file.
74805         * lib/unictype/categ_Zs.c: New file.
74806         * lib/unictype/categ_and.c: New file.
74807         * lib/unictype/categ_and_not.c: New file.
74808         * lib/unictype/categ_byname.c: New file.
74809         * lib/unictype/categ_name.c: New file.
74810         * lib/unictype/categ_none.c: New file.
74811         * lib/unictype/categ_of.c: New file.
74812         * lib/unictype/categ_or.c: New file.
74813         * lib/unictype/categ_test.c: New file.
74814         * lib/unictype/combining.c: New file.
74815         * lib/unictype/ctype_alnum.c: New file.
74816         * lib/unictype/ctype_alpha.c: New file.
74817         * lib/unictype/ctype_blank.c: New file.
74818         * lib/unictype/ctype_cntrl.c: New file.
74819         * lib/unictype/ctype_digit.c: New file.
74820         * lib/unictype/ctype_graph.c: New file.
74821         * lib/unictype/ctype_lower.c: New file.
74822         * lib/unictype/ctype_print.c: New file.
74823         * lib/unictype/ctype_punct.c: New file.
74824         * lib/unictype/ctype_space.c: New file.
74825         * lib/unictype/ctype_upper.c: New file.
74826         * lib/unictype/ctype_xdigit.c: New file.
74827         * lib/unictype/decdigit.c: New file.
74828         * lib/unictype/digit.c: New file.
74829         * lib/unictype/identsyntaxmap.h: New file.
74830         * lib/unictype/mirror.c: New file.
74831         * lib/unictype/numeric.c: New file.
74832         * lib/unictype/pr_alphabetic.c: New file.
74833         * lib/unictype/pr_ascii_hex_digit.c: New file.
74834         * lib/unictype/pr_bidi_arabic_digit.c: New file.
74835         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
74836         * lib/unictype/pr_bidi_block_separator.c: New file.
74837         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
74838         * lib/unictype/pr_bidi_common_separator.c: New file.
74839         * lib/unictype/pr_bidi_control.c: New file.
74840         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
74841         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
74842         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
74843         * lib/unictype/pr_bidi_european_digit.c: New file.
74844         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
74845         * lib/unictype/pr_bidi_left_to_right.c: New file.
74846         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
74847         * lib/unictype/pr_bidi_other_neutral.c: New file.
74848         * lib/unictype/pr_bidi_pdf.c: New file.
74849         * lib/unictype/pr_bidi_segment_separator.c: New file.
74850         * lib/unictype/pr_bidi_whitespace.c: New file.
74851         * lib/unictype/pr_byname.c: New file.
74852         * lib/unictype/pr_byname.gperf: New file.
74853         * lib/unictype/pr_combining.c: New file.
74854         * lib/unictype/pr_composite.c: New file.
74855         * lib/unictype/pr_currency_symbol.c: New file.
74856         * lib/unictype/pr_dash.c: New file.
74857         * lib/unictype/pr_decimal_digit.c: New file.
74858         * lib/unictype/pr_default_ignorable_code_point.c: New file.
74859         * lib/unictype/pr_deprecated.c: New file.
74860         * lib/unictype/pr_diacritic.c: New file.
74861         * lib/unictype/pr_extender.c: New file.
74862         * lib/unictype/pr_format_control.c: New file.
74863         * lib/unictype/pr_grapheme_base.c: New file.
74864         * lib/unictype/pr_grapheme_extend.c: New file.
74865         * lib/unictype/pr_grapheme_link.c: New file.
74866         * lib/unictype/pr_hex_digit.c: New file.
74867         * lib/unictype/pr_hyphen.c: New file.
74868         * lib/unictype/pr_id_continue.c: New file.
74869         * lib/unictype/pr_id_start.c: New file.
74870         * lib/unictype/pr_ideographic.c: New file.
74871         * lib/unictype/pr_ids_binary_operator.c: New file.
74872         * lib/unictype/pr_ids_trinary_operator.c: New file.
74873         * lib/unictype/pr_ignorable_control.c: New file.
74874         * lib/unictype/pr_iso_control.c: New file.
74875         * lib/unictype/pr_join_control.c: New file.
74876         * lib/unictype/pr_left_of_pair.c: New file.
74877         * lib/unictype/pr_line_separator.c: New file.
74878         * lib/unictype/pr_logical_order_exception.c: New file.
74879         * lib/unictype/pr_lowercase.c: New file.
74880         * lib/unictype/pr_math.c: New file.
74881         * lib/unictype/pr_non_break.c: New file.
74882         * lib/unictype/pr_not_a_character.c: New file.
74883         * lib/unictype/pr_numeric.c: New file.
74884         * lib/unictype/pr_other_alphabetic.c: New file.
74885         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
74886         * lib/unictype/pr_other_grapheme_extend.c: New file.
74887         * lib/unictype/pr_other_id_continue.c: New file.
74888         * lib/unictype/pr_other_id_start.c: New file.
74889         * lib/unictype/pr_other_lowercase.c: New file.
74890         * lib/unictype/pr_other_math.c: New file.
74891         * lib/unictype/pr_other_uppercase.c: New file.
74892         * lib/unictype/pr_paired_punctuation.c: New file.
74893         * lib/unictype/pr_paragraph_separator.c: New file.
74894         * lib/unictype/pr_pattern_syntax.c: New file.
74895         * lib/unictype/pr_pattern_white_space.c: New file.
74896         * lib/unictype/pr_private_use.c: New file.
74897         * lib/unictype/pr_punctuation.c: New file.
74898         * lib/unictype/pr_quotation_mark.c: New file.
74899         * lib/unictype/pr_radical.c: New file.
74900         * lib/unictype/pr_sentence_terminal.c: New file.
74901         * lib/unictype/pr_soft_dotted.c: New file.
74902         * lib/unictype/pr_space.c: New file.
74903         * lib/unictype/pr_terminal_punctuation.c: New file.
74904         * lib/unictype/pr_test.c: New file.
74905         * lib/unictype/pr_titlecase.c: New file.
74906         * lib/unictype/pr_unassigned_code_value.c: New file.
74907         * lib/unictype/pr_unified_ideograph.c: New file.
74908         * lib/unictype/pr_uppercase.c: New file.
74909         * lib/unictype/pr_variation_selector.c: New file.
74910         * lib/unictype/pr_white_space.c: New file.
74911         * lib/unictype/pr_xid_continue.c: New file.
74912         * lib/unictype/pr_xid_start.c: New file.
74913         * lib/unictype/pr_zero_width.c: New file.
74914         * lib/unictype/scripts.c: New file.
74915         * lib/unictype/sy_c_ident.c: New file.
74916         * lib/unictype/sy_c_whitespace.c: New file.
74917         * lib/unictype/sy_java_ident.c: New file.
74918         * lib/unictype/sy_java_whitespace.c: New file.
74920         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
74921         Unicode 5.0.0.
74922         * lib/unictype/blocks.h: Likewise.
74923         * lib/unictype/categ_C.h: Likewise.
74924         * lib/unictype/categ_Cc.h: Likewise.
74925         * lib/unictype/categ_Cf.h: Likewise.
74926         * lib/unictype/categ_Cn.h: Likewise.
74927         * lib/unictype/categ_Co.h: Likewise.
74928         * lib/unictype/categ_Cs.h: Likewise.
74929         * lib/unictype/categ_L.h: Likewise.
74930         * lib/unictype/categ_Ll.h: Likewise.
74931         * lib/unictype/categ_Lm.h: Likewise.
74932         * lib/unictype/categ_Lo.h: Likewise.
74933         * lib/unictype/categ_Lt.h: Likewise.
74934         * lib/unictype/categ_Lu.h: Likewise.
74935         * lib/unictype/categ_M.h: Likewise.
74936         * lib/unictype/categ_Mc.h: Likewise.
74937         * lib/unictype/categ_Me.h: Likewise.
74938         * lib/unictype/categ_Mn.h: Likewise.
74939         * lib/unictype/categ_N.h: Likewise.
74940         * lib/unictype/categ_Nd.h: Likewise.
74941         * lib/unictype/categ_Nl.h: Likewise.
74942         * lib/unictype/categ_No.h: Likewise.
74943         * lib/unictype/categ_P.h: Likewise.
74944         * lib/unictype/categ_Pc.h: Likewise.
74945         * lib/unictype/categ_Pd.h: Likewise.
74946         * lib/unictype/categ_Pe.h: Likewise.
74947         * lib/unictype/categ_Pf.h: Likewise.
74948         * lib/unictype/categ_Pi.h: Likewise.
74949         * lib/unictype/categ_Po.h: Likewise.
74950         * lib/unictype/categ_Ps.h: Likewise.
74951         * lib/unictype/categ_S.h: Likewise.
74952         * lib/unictype/categ_Sc.h: Likewise.
74953         * lib/unictype/categ_Sk.h: Likewise.
74954         * lib/unictype/categ_Sm.h: Likewise.
74955         * lib/unictype/categ_So.h: Likewise.
74956         * lib/unictype/categ_Z.h: Likewise.
74957         * lib/unictype/categ_Zl.h: Likewise.
74958         * lib/unictype/categ_Zp.h: Likewise.
74959         * lib/unictype/categ_Zs.h: Likewise.
74960         * lib/unictype/categ_of.h: Likewise.
74961         * lib/unictype/combining.h: Likewise.
74962         * lib/unictype/ctype_alnum.h: Likewise.
74963         * lib/unictype/ctype_alpha.h: Likewise.
74964         * lib/unictype/ctype_blank.h: Likewise.
74965         * lib/unictype/ctype_cntrl.h: Likewise.
74966         * lib/unictype/ctype_digit.h: Likewise.
74967         * lib/unictype/ctype_graph.h: Likewise.
74968         * lib/unictype/ctype_lower.h: Likewise.
74969         * lib/unictype/ctype_print.h: Likewise.
74970         * lib/unictype/ctype_punct.h: Likewise.
74971         * lib/unictype/ctype_space.h: Likewise.
74972         * lib/unictype/ctype_upper.h: Likewise.
74973         * lib/unictype/ctype_xdigit.h: Likewise.
74974         * lib/unictype/decdigit.h: Likewise.
74975         * lib/unictype/digit.h: Likewise.
74976         * lib/unictype/mirror.h: Likewise.
74977         * lib/unictype/numeric.h: Likewise.
74978         * lib/unictype/pr_alphabetic.h: Likewise.
74979         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
74980         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
74981         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
74982         * lib/unictype/pr_bidi_block_separator.h: Likewise.
74983         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
74984         * lib/unictype/pr_bidi_common_separator.h: Likewise.
74985         * lib/unictype/pr_bidi_control.h: Likewise.
74986         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
74987         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
74988         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
74989         * lib/unictype/pr_bidi_european_digit.h: Likewise.
74990         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
74991         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
74992         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
74993         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
74994         * lib/unictype/pr_bidi_pdf.h: Likewise.
74995         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
74996         * lib/unictype/pr_bidi_whitespace.h: Likewise.
74997         * lib/unictype/pr_combining.h: Likewise.
74998         * lib/unictype/pr_composite.h: Likewise.
74999         * lib/unictype/pr_currency_symbol.h: Likewise.
75000         * lib/unictype/pr_dash.h: Likewise.
75001         * lib/unictype/pr_decimal_digit.h: Likewise.
75002         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
75003         * lib/unictype/pr_deprecated.h: Likewise.
75004         * lib/unictype/pr_diacritic.h: Likewise.
75005         * lib/unictype/pr_extender.h: Likewise.
75006         * lib/unictype/pr_format_control.h: Likewise.
75007         * lib/unictype/pr_grapheme_base.h: Likewise.
75008         * lib/unictype/pr_grapheme_extend.h: Likewise.
75009         * lib/unictype/pr_grapheme_link.h: Likewise.
75010         * lib/unictype/pr_hex_digit.h: Likewise.
75011         * lib/unictype/pr_hyphen.h: Likewise.
75012         * lib/unictype/pr_id_continue.h: Likewise.
75013         * lib/unictype/pr_id_start.h: Likewise.
75014         * lib/unictype/pr_ideographic.h: Likewise.
75015         * lib/unictype/pr_ids_binary_operator.h: Likewise.
75016         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
75017         * lib/unictype/pr_ignorable_control.h: Likewise.
75018         * lib/unictype/pr_iso_control.h: Likewise.
75019         * lib/unictype/pr_join_control.h: Likewise.
75020         * lib/unictype/pr_left_of_pair.h: Likewise.
75021         * lib/unictype/pr_line_separator.h: Likewise.
75022         * lib/unictype/pr_logical_order_exception.h: Likewise.
75023         * lib/unictype/pr_lowercase.h: Likewise.
75024         * lib/unictype/pr_math.h: Likewise.
75025         * lib/unictype/pr_non_break.h: Likewise.
75026         * lib/unictype/pr_not_a_character.h: Likewise.
75027         * lib/unictype/pr_numeric.h: Likewise.
75028         * lib/unictype/pr_other_alphabetic.h: Likewise.
75029         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
75030         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
75031         * lib/unictype/pr_other_id_continue.h: Likewise.
75032         * lib/unictype/pr_other_id_start.h: Likewise.
75033         * lib/unictype/pr_other_lowercase.h: Likewise.
75034         * lib/unictype/pr_other_math.h: Likewise.
75035         * lib/unictype/pr_other_uppercase.h: Likewise.
75036         * lib/unictype/pr_paired_punctuation.h: Likewise.
75037         * lib/unictype/pr_paragraph_separator.h: Likewise.
75038         * lib/unictype/pr_pattern_syntax.h: Likewise.
75039         * lib/unictype/pr_pattern_white_space.h: Likewise.
75040         * lib/unictype/pr_private_use.h: Likewise.
75041         * lib/unictype/pr_punctuation.h: Likewise.
75042         * lib/unictype/pr_quotation_mark.h: Likewise.
75043         * lib/unictype/pr_radical.h: Likewise.
75044         * lib/unictype/pr_sentence_terminal.h: Likewise.
75045         * lib/unictype/pr_soft_dotted.h: Likewise.
75046         * lib/unictype/pr_space.h: Likewise.
75047         * lib/unictype/pr_terminal_punctuation.h: Likewise.
75048         * lib/unictype/pr_titlecase.h: Likewise.
75049         * lib/unictype/pr_unassigned_code_value.h: Likewise.
75050         * lib/unictype/pr_unified_ideograph.h: Likewise.
75051         * lib/unictype/pr_uppercase.h: Likewise.
75052         * lib/unictype/pr_variation_selector.h: Likewise.
75053         * lib/unictype/pr_white_space.h: Likewise.
75054         * lib/unictype/pr_xid_continue.h: Likewise.
75055         * lib/unictype/pr_xid_start.h: Likewise.
75056         * lib/unictype/pr_zero_width.h: Likewise.
75057         * lib/unictype/scripts.h: Likewise.
75058         * lib/unictype/scripts_byname.gperf: Likewise.
75059         * lib/unictype/sy_c_ident.h: Likewise.
75060         * lib/unictype/sy_c_whitespace.h: Likewise.
75061         * lib/unictype/sy_java_ident.h: Likewise.
75062         * lib/unictype/sy_java_whitespace.h: Likewise.
75064         * lib/unictype/Makefile: New file.
75065         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
75066         glibc.
75067         * lib/unictype/3level.h: New file, copied from glibc.
75068         * lib/unictype/3levelbit.h: New file.
75070 2007-11-11  Bruno Haible  <bruno@clisp.org>
75072         * modules/gperf: New file.
75073         * modules/iconv_open (Depends-on): Add it.
75074         (Makefile.am): Remove the GPERF definition.
75076 2007-11-11  Bruno Haible  <bruno@clisp.org>
75078         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
75079         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
75081 2007-11-11  Bruno Haible  <bruno@clisp.org>
75083         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
75084         (usage): Remove function.
75086 2007-11-11  Bruno Haible  <bruno@clisp.org>
75088         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
75089         gl_FUNC_CEILF_LIBS.
75090         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
75091         gl_FUNC_CEIL_LIBS.
75092         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
75093         gl_FUNC_CEILL_LIBS.
75094         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
75095         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
75096         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
75098 2007-11-11  Bruno Haible  <bruno@clisp.org>
75100         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
75101         roundf were declared but do not exist on functions.
75102         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
75103         roundl were declared but do not exist on functions.
75104         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
75105         HAVE_FLOORL_AND_CEILL, respectively.
75106         Needed for Sun C on Solaris 10.
75108 2007-11-11  Bruno Haible  <bruno@clisp.org>
75110         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
75111         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
75112         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
75113         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
75114         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
75115         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
75116         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
75117         HAVE_DECL_ROUNDF.
75118         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
75119         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
75120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
75121         of HAVE_DECL_ROUND*.
75122         * modules/math (Makefile.am): Update.
75124 2007-11-10  Bruno Haible  <bruno@clisp.org>
75126         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
75127         ptrdiff_t as m4/intl.m4.
75129 2007-11-10  Jim Meyering  <meyering@redhat.com>
75131         Avoid link failure for the argmatch test.
75132         * tests/test-argmatch.c (usage): Define function to avoid a link
75133         failure: argmatch_die requires a usage function.
75135 2007-11-09  Bruno Haible  <bruno@clisp.org>
75137         * doc/functions/snprintf.texi: Mention BeOS deficiency.
75138         * doc/functions/vsnprintf.texi: Likewise.
75139         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
75140         with a size argument < 2.
75142 2007-11-09  Bruno Haible  <bruno@clisp.org>
75144         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
75145         buffer. Fixes an inefficiency introduced on 2007-11-03.
75147 2007-11-09  Bruno Haible  <bruno@clisp.org>
75149         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
75150         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
75152 2007-11-08  Jim Meyering  <meyering@redhat.com>
75154         Change cache variable name prefix "jm_" to "gl_" everywhere.
75155         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
75156         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
75157         * m4/uptime.m4: s/gl_/jm_/
75159 2007-11-07  Bruno Haible  <bruno@clisp.org>
75161         Update to GNU gettext 0.17.
75162         * m4/intl.m4: Update to GNU gettext 0.17.
75163         * m4/po.m4: Likewise.
75164         * modules/gettext (Files): Remove m4/ulonglong.m4.
75165         (configure.ac): Require gettext infrastructure from version 0.17.
75167 2007-11-06  Bruno Haible  <bruno@clisp.org>
75169         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
75170         symbolic values are not defined in a public header.
75171         * lib/freadable.c (freadable) [QNX]: Likewise.
75172         * lib/freadahead.c (freadahead) [QNX]: Likewise.
75173         * lib/freading.c (freading) [QNX]: Likewise.
75174         * lib/fseterr.c (fseterr) [QNX]: Likewise.
75175         * lib/fwritable.c (fwritable) [QNX]: Likewise.
75176         * lib/fwriting.c (fwriting) [QNX]: Likewise.
75177         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
75178         Reported by Alain Magloire.
75180         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
75182 2007-11-05  Bruno Haible  <bruno@clisp.org>
75184         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
75185         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
75186         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
75187         Reported by Eric Blake.
75189 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75190             Bruno Haible  <bruno@clisp.org>
75192         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
75193         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
75194         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
75195         (malloc): Undefine also before including <stdlib.h>.
75196         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
75197         Needed on OSF/1 4.0.
75199 2007-11-05  Jim Meyering  <meyering@redhat.com>
75201         git-version-gen: sync from coreutils.
75202         * build-aux/git-version-gen: Add comments.
75203         Change the first '-' to '.' in the snapshot version string,
75204         e.g., 6.9-377-08144 -> 6.9.377-08144
75205         Remove first parameter.
75206         Don't declare a version "-dirty" merely because a time
75207         stamp has changed.
75209 2007-11-04  Bruno Haible  <bruno@clisp.org>
75211         * lib/lock.h: Protect all macro definitions containing an 'if'
75212         statement through a "do { ... } while (0)".
75213         * lib/tls.h: Likewise.
75215 2007-11-04  Bruno Haible  <bruno@clisp.org>
75217         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
75219 2007-11-04  Bruno Haible  <bruno@clisp.org>
75221         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
75222         * modules/fprintf-posix (Depends-on): Add nocrash.
75223         * modules/snprintf-posix (Depends-on): Likewise.
75224         * modules/sprintf-posix (Depends-on): Likewise.
75225         * modules/vasnprintf-posix (Depends-on): Likewise.
75226         * modules/vasprintf-posix (Depends-on): Likewise.
75227         * modules/vfprintf-posix (Depends-on): Likewise.
75228         * modules/vsnprintf-posix (Depends-on): Likewise.
75229         * modules/vsprintf-posix (Depends-on): Likewise.
75230         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
75231         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
75232         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
75233         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
75234         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
75235         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
75236         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
75238 2007-11-04  Bruno Haible  <bruno@clisp.org>
75240         * modules/nocrash: New file.
75241         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
75242         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
75244 2007-11-04  Bruno Haible  <bruno@clisp.org>
75246         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
75247         precision handling.
75248         * tests/test-vasprintf-posix.c (test_function): Likewise.
75249         * tests/test-snprintf-posix.h (test_function): Likewise.
75250         * tests/test-sprintf-posix.h (test_function): Likewise.
75252         Fix *printf behaviour for large precisions on mingw and BeOS.
75253         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
75254         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
75255         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
75256         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
75257         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
75258         gl_PRINTF_PRECISION and test its result. Invoke
75259         gl_PREREQ_VASNPRINTF_PRECISION.
75260         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
75261         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
75262         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
75263         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
75264         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
75265         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
75266         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
75267         * doc/functions/fprintf.texi: Update.
75268         * doc/functions/printf.texi: Update.
75269         * doc/functions/snprintf.texi: Update.
75270         * doc/functions/sprintf.texi: Update.
75271         * doc/functions/vfprintf.texi: Update.
75272         * doc/functions/vprintf.texi: Update.
75273         * doc/functions/vsnprintf.texi: Update.
75274         * doc/functions/vsprintf.texi: Update.
75276 2007-11-04  Bruno Haible  <bruno@clisp.org>
75278         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
75280 2007-11-04  Bruno Haible  <bruno@clisp.org>
75282         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
75283         Reported by Sylvain Beucler <beuc@gnu.org>.
75285 2007-11-03  Bruno Haible  <bruno@clisp.org>
75287         * tests/test-fprintf-posix2.sh: New file.
75288         * tests/test-fprintf-posix2.c: New file.
75289         * modules/fprintf-posix-tests (Files): Add them.
75290         (TESTS): Add test-fprintf-posix2.sh.
75291         (configure.ac): Check for getrlimit and setrlimit.
75292         (check_PROGRAMS): Add test-fprintf-posix2.
75294         * tests/test-printf-posix2.sh: New file.
75295         * tests/test-printf-posix2.c: New file.
75296         * modules/printf-posix-tests (Files): Add them.
75297         (TESTS): Add test-printf-posix2.sh.
75298         (configure.ac): Check for getrlimit and setrlimit.
75299         (check_PROGRAMS): Add test-printf-posix2.
75301         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
75302         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
75303         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
75304         (decode_double): New function, copied from decode_long_double.
75305         (scale10_round_decimal_decoded): New function, extracted from
75306         scale10_round_decimal_long_double.
75307         (scale10_round_decimal_long_double): Use it.
75308         (scale10_round_decimal_double): New function.
75309         (floorlog10): New function.
75310         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
75311         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
75312         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
75313         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
75314         gl_PRINTF_ENOMEM and test its result. Invoke
75315         gl_PREREQ_VASNPRINTF_ENOMEM.
75316         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
75317         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
75318         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
75319         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
75320         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
75321         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
75322         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
75323         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
75324         * modules/snprintf-posix (Depends-on): Likewise.
75325         * modules/sprintf-posix (Depends-on): Likewise.
75326         * modules/vasnprintf-posix (Depends-on): Likewise.
75327         * modules/vasprintf-posix (Depends-on): Likewise.
75328         * modules/vfprintf-posix (Depends-on): Likewise.
75329         * modules/vsnprintf-posix (Depends-on): Likewise.
75330         * modules/vsprintf-posix (Depends-on): Likewise.
75331         * doc/functions/fprintf.texi: Update.
75332         * doc/functions/printf.texi: Update.
75333         * doc/functions/snprintf.texi: Update.
75334         * doc/functions/sprintf.texi: Update.
75335         * doc/functions/vfprintf.texi: Update.
75336         * doc/functions/vprintf.texi: Update.
75337         * doc/functions/vsnprintf.texi: Update.
75338         * doc/functions/vsprintf.texi: Update.
75340 2007-11-03  Bruno Haible  <bruno@clisp.org>
75342         * modules/frexp-nolibm-tests: New file.
75344         * modules/frexp-nolibm: New file.
75345         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
75347 2007-11-03  Bruno Haible  <bruno@clisp.org>
75349         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
75350         value is C99 compliant.
75351         Needed for OSF/1 5.1.
75353 2007-11-03  Bruno Haible  <bruno@clisp.org>
75355         Fix out-of-memory handling of vasnprintf.
75356         * lib/printf-parse.c: Include <errno.h>.
75357         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
75358         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
75359         is already set.
75361 2007-11-02  Eric Blake  <ebb9@byu.net>
75363         Fix tests on cygwin.
75364         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
75366 2007-11-01  Bruno Haible  <bruno@clisp.org>
75368         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
75369         warning.
75370         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
75371         needed for POSIX compatibility.
75373 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75375         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
75376         for compatibility with GNU.
75378 2007-11-01  Bruno Haible  <bruno@clisp.org>
75380         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
75381         (putenv): Renamed from rpl_putenv. Change argument type from
75382         'const char *' to 'char *'.
75383         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
75384         of defining putenv in config.h, just set REPLACE_PUTENV.
75385         * modules/putenv (Depends-on): Add stdlib.
75386         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
75387         (Include): Use <stdlib.h>.
75388         * lib/stdlib.in.h (putenv): New declaration.
75389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
75390         REPLACE_PUTENV.
75391         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
75392         REPLACE_PUTENV.
75393         Needed for MacOS X 10.5.0.
75394         Reported by Peter O'Gorman <peter@pogma.com>.
75396 2007-11-01  Jim Meyering  <meyering@redhat.com>
75398         Treat an empty date string exactly like "0".
75399         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
75400         if the remaining date string (to be parsed) is empty, use "0".
75401         Reported by Mischa Molhoek and discussed in this thread:
75402         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
75404 2007-10-31  Bruno Haible  <bruno@clisp.org>
75406         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
75407         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
75408         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
75409         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
75410         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
75411         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
75413 2007-10-31  Bruno Haible  <bruno@clisp.org>
75415         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
75416         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
75417         (AC_TYPE_LONG_LONG_INT): Use it.
75418         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
75419         it as well.
75420         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
75421         to m4/longlong.m4.
75422         * modules/stdint (Files): Remove m4/ulonglong.m4.
75423         * modules/strtoull (Files): Use m4/longlong.m4 instead of
75424         m4/ulonglong.m4.
75425         * modules/strtoumax (Files): Likewise.
75427 2007-10-30  Bruno Haible  <bruno@clisp.org>
75429         * modules/xvasprintf-posix: New file.
75430         Suggested by Eric Blake.
75432 2007-10-30  Bruno Haible  <bruno@clisp.org>
75434         * modules/xprintf-posix-tests: New file.
75435         * tests/test-xprintf-posix.sh: New file.
75436         * tests/test-xprintf-posix.c: New file.
75437         * tests/test-xfprintf-posix.c: New file.
75439         * modules/xprintf-posix: New file.
75441 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75443         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
75444         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
75445         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
75447 2007-10-29  Bruno Haible  <bruno@clisp.org>
75449         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
75450         contain the special marker '_cv_'.
75451         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
75452         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
75453         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
75454         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
75455         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
75456         Reported by Ralf Wildenhues.
75458 2007-10-29  Bruno Haible  <bruno@clisp.org>
75460         * gnulib-tool (func_import): When --lgpl is not specified, set
75461         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
75462         GPLv3.
75463         Reported by Simon Josefsson.
75465 2007-10-28  Bruno Haible  <bruno@clisp.org>
75467         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
75468         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
75469         HAVE_DECL_ISFINITE.
75470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
75471         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
75472         HAVE_DECL_ISFINITE.
75474 2007-10-28  Bruno Haible  <bruno@clisp.org>
75476         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
75477         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
75479 2007-10-28  Bruno Haible  <bruno@clisp.org>
75481         Fix link errors with Sun C 5.0 on Solaris 10.
75482         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
75483         function is declared but not present in the compiler's libm.
75484         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
75485         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
75486         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
75487         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
75488         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
75489         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
75490         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
75491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
75492         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
75493         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
75494         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
75495         HAVE_DECL_FLOORL.
75497 2007-10-28  Bruno Haible  <bruno@clisp.org>
75499         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
75500         gl_FUNC_FLOORL. Cache the result.
75501         (gl_FUNC_FLOORL): Use it.
75502         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
75503         gl_FUNC_CEILL. Cache the result.
75504         (gl_FUNC_CEILL): Use it.
75506         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
75507         gl_FUNC_FLOOR. Cache the result.
75508         (gl_FUNC_FLOOR): Use it.
75509         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
75510         gl_FUNC_CEIL. Cache the result.
75511         (gl_FUNC_CEIL): Use it.
75513         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
75514         gl_FUNC_FLOORF. Cache the result.
75515         (gl_FUNC_FLOORF): Use it.
75516         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
75517         gl_FUNC_CEILF. Cache the result.
75518         (gl_FUNC_CEILF): Use it.
75520 2007-10-28  Bruno Haible  <bruno@clisp.org>
75522         * gnulib-tool: Allow specifying the LGPL version number through
75523         --lgpl=2 or --lgpl=3.
75524         (func_usage): Document --lgpl with argument.
75525         Handle --lgpl=... arguments.
75526         (func_import): Recognize also gl_LGPL calls with an argument. When
75527         --lgpl=2 is used and the module's license is just LGPL, report an
75528         error. Set sed_transform_lib_file according to the lgpl variable. In
75529         the generated files, use --lgpl or gl_LGPL invocations with argument,
75530         if necessary.
75531         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
75532         an LGPv2+ license.
75533         * doc/gnulib-tool.texi (Modified imports): Update explanation of
75534         gl_LGPL macro.
75536 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75537             Bruno Haible  <bruno@clisp.org>
75539         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
75540         (u16_uctomb_aux): Likewise.
75541         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
75542         !HAVE_INLINE.
75543         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
75545 2007-10-28  Bruno Haible  <bruno@clisp.org>
75547         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
75548         Invoke AM_GETTEXT_OPTION if it exists.
75549         * modules/vasprintf: Likewise.
75550         * modules/verror: Likewise.
75551         * modules/xprintf: Likewise.
75552         * modules/xvasprintf: Likewise.
75554 2007-10-27  Ben Pfaff  <blp@gnu.org>
75556         * lib/math.in.h: Define isfinite macro and prototypes for
75557         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
75558         implementations.
75559         * m4/math_h.m4: New substitutions for isfinite module.
75560         * lib/isfinite.c: New file.
75561         * m4/isfinite.m4: New file.
75562         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
75563         * modules/isfinite: New file.
75564         * modules/isfinite-tests: New file.
75565         * tests/tests-isfinite.c: New file.
75566         * doc/functions/isfinite.texi: Mention isfinite module.
75567         * MODULES.html.sh: Mention new module.
75569 2007-10-27  Ben Pfaff  <blp@gnu.org>
75571         Ralf Wildenhues reported that Tru64 4.0D declares the round
75572         functions but does not have definitions.
75573         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
75574         cannot be found in any library, set the output variable to
75575         "missing" instead of "".
75576         * m4/round.m4: Also use our substitute if we cannot find round in
75577         any library, even if it is declared.
75578         * m4/roundf.m4: Likewise for roundf.
75579         * m4/roundl.m4: Likewise for roundl.
75580         * lib/math.in.h: Undefine roundf, round, roundl before defining
75581         their replacements, to allow for hypothetical systems where these
75582         may be defined as macros but not available in libraries.
75584 2007-10-27  Bruno Haible  <bruno@clisp.org>
75586         * doc/gnulib.texi: Invoke @firstparagraphindent.
75587         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
75588         changes in gnulib.
75589         (Source changes): New section.
75591 2007-10-26  Bruno Haible  <bruno@clisp.org>
75593         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
75594         borrowed from autoconf.
75596 2007-10-26  Bruno Haible  <bruno@clisp.org>
75598         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
75599         strerror returned the empty string. Needed on HP-UX 11.00.
75601 2007-10-24  Micah Cowan  <micah@cowan.name>
75603         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
75604         * build-aux/bootstrap: Remove support for now-unnecessary option,
75605         --cvs-user, and envvars CVS_USER, CVS_RSH.
75607 2007-10-24  Jim Meyering  <meyering@redhat.com>
75609         Avoid diagnostics from sha1sum when there is no cached checksum.
75610         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
75611         if the po.s1 file hasn't been created yet.
75613         * build-aux/bootstrap: Sync from coreutils:
75614         2007-10-24  Jim Meyering  <meyering@redhat.com>
75615         Get gnulib from the git repository, not from an obsolete cvs one.
75616         * build-aux/bootstrap: Suggestion from Micah Cowan.
75617         2007-10-04  Jim Meyering  <jim@meyering.net>
75618         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
75619         (update_po_files): Work also when there are no .po files in po/.
75621 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75623         * README: Append ".git" to git and cg examples.
75624         Problem reported by Benoit Sigoure.
75626 2007-10-23  Micah Cowan  <micah@cowan.name>
75628         * users.txt: Add wget.
75630 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75632         Fix linking of some unistdio tests on FreeBSD.
75633         * modules/unistdio/u16-vsnprintf-tests
75634         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
75635         * modules/unistdio/u16-vsprintf-tests
75636         (test_u16_vsnprintf1_LDADD): Likewise.
75637         * modules/unistdio/u32-vsnprintf-tests
75638         (test_u32_vsnprintf1_LDADD): Likewise.
75639         * modules/unistdio/u32-vsprintf-tests
75640         (test_u32_vsprintf1_LDADD): Likewise.
75641         * modules/unistdio/u8-vsnprintf-tests
75642         (test_u8_vsnprintf1_LDADD): Likewise.
75643         * modules/unistdio/u8-vsprintf-tests
75644         (test_u8_vsprintf1_LDADD): Likewise.
75645         * modules/unistdio/ulc-vsnprintf-tests
75646         (test_ulc_vsnprintf1_LDADD): Likewise.
75647         * modules/unistdio/ulc-vsprintf-tests
75648         (test_ulc_vsprintf1_LDADD): Likewise.
75650         Fix linking of some uniconv tests on FreeBSD.
75651         * modules/uniconv/u16-conv-from-enc-tests
75652         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
75653         * modules/uniconv/u16-conv-to-enc-tests
75654         (test_u16_conv_to_enc_LDADD): Likewise.
75655         * modules/uniconv/u16-strconv-from-enc-tests
75656         (test_u16_strconv_from_enc_LDADD): Likewise.
75657         * modules/uniconv/u16-strconv-to-enc-tests
75658         (test_u16_strconv_to_enc_LDADD): Likewise.
75659         * modules/uniconv/u32-conv-from-enc-tests
75660         (test_u32_conv_from_enc_LDADD): Likewise.
75661         * modules/uniconv/u32-conv-to-enc-tests
75662         (test_u32_conv_to_enc_LDADD): Likewise.
75663         * modules/uniconv/u32-strconv-from-enc-tests
75664         (test_u32_strconv_from_enc_LDADD): Likewise.
75665         * modules/uniconv/u32-strconv-to-enc-tests
75666         (test_u32_strconv_to_enc_LDADD): Likewise.
75667         * modules/uniconv/u8-conv-from-enc-tests
75668         (test_u8_conv_from_enc_LDADD): Likewise.
75669         * modules/uniconv/u8-conv-to-enc-tests
75670         (test_u8_conv_to_enc_LDADD): Likewise.
75671         * modules/uniconv/u8-strconv-from-enc-tests
75672         (test_u8_strconv_from_enc_LDADD): Likewise.
75673         * modules/uniconv/u8-strconv-to-enc-tests
75674         (test_u8_strconv_to_enc_LDADD): Likewise.
75676 2007-10-22  Bruno Haible  <bruno@clisp.org>
75678         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
75679         size.
75681 2007-10-22  Eric Blake  <ebb9@byu.net>
75683         Tweak x*printf documentation.
75684         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
75685         variable name and comments.
75686         Suggested by Bruno Haible.
75688 2007-10-22  Bruno Haible  <bruno@clisp.org>
75690         * lib/acl.c (copy_acl): Fix file name in comment.
75692 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75694         Fix Tru64 problem with stdbool.h.
75695         * lib/stdbool.in.h (false, true):
75696         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
75697         Don't declare as an enum in this situation; it runs afoul of Tru64.
75698         Problem reported by Steven M. Schweda in
75699         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
75701 2007-10-22  Eric Blake  <ebb9@byu.net>
75703         Also wrap vf?printf.
75704         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
75705         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
75706         (xvprintf, xvfprintf): New functions.
75708 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75710         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
75711         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
75713         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
75714         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
75716 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75718         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
75719         by Bruno Haible.
75721 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75723         * lib/getloadavg.c
75724         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
75725         Undef `sys' after including sys/table.h, for Tru64 4.0D.
75727         * tests/test-i-ring.c: Work for C89.
75729 2007-10-22  Bruno Haible  <bruno@clisp.org>
75731         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
75732         -1u, in preprocessor expression, so that we don't test for the bug
75733         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
75734         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
75736 2007-10-22  Eric Blake  <ebb9@byu.net>
75738         * tests/test-yesno.sh: Silence stderr during test.
75740 2007-10-22  Simon Josefsson  <simon@josefsson.org>
75742         * modules/crypto/gc-camellia: New file.
75744         * m4/gc-camellia.m4: New file.
75746         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
75748         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
75750 2007-10-22  Simon Josefsson  <simon@josefsson.org>
75752         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
75753         --help to stdout.  Reported by sms@antinode.org (Steven
75754         M. Schweda).
75756 2007-10-22  Simon Josefsson  <simon@josefsson.org>
75758         * users.txt: Fix link to libksba.
75760 2007-10-21  Ben Pfaff  <blp@gnu.org>
75762         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
75763         round.c roundf implementation that depends on floorf and ceilf to
75764         be tested unconditionally.
75766 2007-10-21  Ben Pfaff  <blp@gnu.org>
75768         * m4/check-libm-func.m4: Removed.
75769         * m4/check-math-lib.m4: New file.
75770         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
75771         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
75772         definition and lack of AC_LIBOBJ([roundf]).
75773         * m4/roundl.m4: Ditto, and similarly for roundl.
75774         * modules/round: Reference new m4 file.
75775         * modules/roundf: Ditto.
75776         * modules/roundl: Ditto.
75777         * tests/test-round2.c (main): Use ROUND instead of round.
75778         Bug report from Bruno Haible.
75780 2007-10-21  Bruno Haible  <bruno@clisp.org>
75782         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
75783         context.
75785 2007-10-21  Bruno Haible  <bruno@clisp.org>
75787         * tests/test-wcwidth.c (main): Allow negative result for some control
75788         characters.
75790         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
75791         Needed on OSF/1 5.1.
75793 2007-10-21  Bruno Haible  <bruno@clisp.org>
75795         * tests/test-floorf1.c: Include isnanf.h.
75796         (main): Use isnanf() instead of isnan().
75797         * tests/test-ceilf1.c: Include isnanf.h.
75798         (main): Use isnanf() instead of isnan().
75799         * tests/test-truncf1.c: Include isnanf.h.
75800         (main): Use isnanf() instead of isnan().
75801         * tests/test-roundf1.c: Include isnanf.h.
75802         (main): Use isnanf() instead of isnan().
75804 2007-10-21  Eric Blake  <ebb9@byu.net>
75806         * users.txt: Update URL for m4.
75808 2007-10-21  Bruno Haible  <bruno@clisp.org>
75810         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
75812 2007-10-21  Bruno Haible  <bruno@clisp.org>
75814         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
75815         Git's management files if the CVS files are not present.
75817 2007-10-20  Bruno Haible  <bruno@clisp.org>
75819         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
75820         gcc-3.4.x.
75822 2007-10-20  Ben Pfaff  <blp@gnu.org>
75824         * lib/math.in.h: Declare round, roundf, roundl if we are providing
75825         implementations.
75826         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
75827         * lib/round.c: New file.
75828         * lib/roundf.c: New file.
75829         * lib/roundl.c: New file.
75830         * m4/round.m4: New file.
75831         * m4/roundf.m4: New file.
75832         * m4/roundl.m4: New file.
75833         * m4/check-libm-func-m4: New file.
75834         * modules/math: Replace round, roundf, roundl related @VARS@ in
75835         math.in.h.
75836         * modules/round: New file.
75837         * modules/round-tests: New file.
75838         * modules/roundf: New file.
75839         * modules/roundf-tests: New file.
75840         * modules/roundl: New file.
75841         * modules/roundl-tests: New file.
75842         * tests/test-round1.c: New file.
75843         * tests/test-round2.c: New file.
75844         * tests/test-roundf1.c: New file.
75845         * tests/test-roundf2.c: New file.
75846         * tests/test-roundl.c: New file.
75847         * doc/functions/round.texi: Mention round module.
75848         * doc/functions/roundf.texi: Mention roundf module.
75849         * doc/functions/roundl.texi: Mention roundl module.
75850         * MODULES.html.sh: Mention new modules.
75851         Thanks to Bruno Haible for suggestions.
75853 2007-10-20  Jim Meyering  <meyering@redhat.com>
75855         * lib/xprintf.c: Include <config.h> unconditionally.
75857         Change xprintf's license to GPL.
75858         * modules/xprintf (License): s/LGPL/GPL/, since this module
75859         depends on modules (exit and exitfail) which are GPL.
75860         Suggestion from Bruno Haible.
75862         xprintf fixes.
75863         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
75864         Use a clearer diagnostic.
75865         Patch from Bruno Haible.
75867 2007-10-20  Bruno Haible  <bruno@clisp.org>
75869         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
75870         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
75871         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75873 2007-10-20  Bruno Haible  <bruno@clisp.org>
75875         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
75876         precision in the comparison result > x - 1 or similar.
75877         * tests/test-ceilf2.c (correct_result_p): Likewise.
75878         * tests/test-truncf2.c (correct_result_p): Likewise.
75879         * tests/test-trunc2.c (correct_result_p): Likewise.
75880         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75882 2007-10-20  Bruno Haible  <bruno@clisp.org>
75884         * modules/ceil: New file.
75885         * m4/ceil.m4: New file.
75886         * doc/functions/ceil.texi: Mention the 'ceil' module.
75888 2007-10-20  Bruno Haible  <bruno@clisp.org>
75890         * modules/floor: New file.
75891         * m4/floor.m4: New file.
75892         * doc/functions/floor.texi: Mention the 'floor' module.
75894 2007-10-20  Bruno Haible  <bruno@clisp.org>
75896         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
75897         of %a.
75898         * modules/floorf-tests (Depends-on): Likewise.
75899         * modules/truncf-tests (Depends-on): Likewise.
75900         * modules/trunc-tests (Depends-on): Likewise.
75901         Reported by Ben Pfaff.
75903 2007-10-19  Jim Meyering  <meyering@redhat.com>
75905         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
75906         Don't bother testing specific errno values.  Just test ferror.
75908         New module: xprintf
75909         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
75911 2007-10-19  Bruno Haible  <bruno@clisp.org>
75913         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
75914         syntax.
75915         * modules/javaexec (Makefile.am): Likewise.
75916         * modules/relocatable-prog (Makefile.am): Likewise.
75917         Suggested by Jim Meyering.
75919 2007-10-18  Bruno Haible  <bruno@clisp.org>
75921         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
75922         Reported by Jim Meyering.
75924 2007-10-18  Eric Blake  <ebb9@byu.net>
75926         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
75928 2007-10-18  Bruno Haible  <bruno@clisp.org>
75930         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
75931         the format string into writable memory. Needed in Fortify conditions.
75933 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
75934             Bruno Haible  <bruno@clisp.org>
75936         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
75937         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
75938         * modules/trim (Depends-on): Add mbchar.
75939         (configure.ac): Add gl_FUNC_MBRTOWC.
75940         (Makefile.am): Augment lib_SOURCES.
75942 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75944         Modify glob.c to use fstatat and dirfd, to simplify it.
75945         Suggested by Eric Blake.
75946         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
75947         Don't include <stdbool.h>; not used.
75948         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
75949         (link_exists_p): Simplify implementation, since we can now assume
75950         dirfd and fstatat.
75951         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
75953 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75955         * gnulib-tool (func_get_dependencies): Fix sed script to
75956         match only tests.
75958 2007-10-17  Bruno Haible  <bruno@clisp.org>
75960         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
75961         allow locale names without encoding suffix.
75962         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
75963         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
75965 2007-10-16  Bruno Haible  <bruno@clisp.org>
75967         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
75968         * lib/getgroups.c (getgroups): Likewise.
75969         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
75971 2007-10-16  Bruno Haible  <bruno@clisp.org>
75973         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
75974         * modules/malloc-posix (License): Likewise.
75975         * modules/realloc-posix (License): Likewise.
75976         * modules/calloc-posix (License): Likewise.
75977         * modules/intprops (License): Change from GPL to LGPL, with
75978         Paul Eggert's approval.
75980 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75982         Merge glibc changes into lib/glob.c.
75984         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
75985         2007-10-15 04:59:03 UTC.  Here are the changes:
75987         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
75989         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
75991         * lib/glob.c: Add some branch prediction throughout.
75993         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
75995         [BZ #5103]
75996         * lib/glob.c (glob): Recognize patterns starting \/.
75998         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
76000         [BZ #3996]
76001         * lib/glob.c (attribute_hidden): Define if not defined.
76002         (glob): Unescape dirname, filename or username when needed and not
76003         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
76004         is NULL.  Handle unescaped [ in pattern without closing ].
76005         Don't pass GLOB_CHECK down to recursive glob for directories.
76006         (__glob_pattern_type): New function.
76007         (__glob_pattern_p): Implement using __glob_pattern_type.
76008         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
76009         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
76010         Remove unreachable code.
76012         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
76014         * lib/glob.c (glob_in_dir): Add some comments and asserts to
76015         explain why there are no leaks.
76017         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
76019         [BZ #3253]
76020         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
76021         time, rather allocate increasingly bigger arrays of pointers, if
76022         possible with alloca, if too large with malloc.
76024 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76026         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
76027         Problem reported by H.Merijn Brand in
76028         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
76029         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
76030         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76032 2007-10-15  Bruno Haible  <bruno@clisp.org>
76034         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
76035         with explicit rpl_ prefix.
76036         * lib/fopen.c (fopen): Likewise.
76037         * lib/freopen.c (freopen): Likewise.
76038         * lib/iconv.c (iconv): Likewise.
76039         * lib/iconv_close.c (iconv_close): Likewise.
76041 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76043         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
76045 2007-10-15  Bruno Haible  <bruno@clisp.org>
76047         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
76048         <stddef.h> instead of <stdlib.h> since we only need NULL.
76049         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76051 2007-10-15  Bruno Haible  <bruno@clisp.org>
76053         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
76054         Replace paragraph talking about LIBOBJS.
76055         Reported by Colin Watson <cjwatson@debian.org>.
76057 2007-10-15  Bruno Haible  <bruno@clisp.org>
76059         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
76060         <stdlib.h> before using NULL.
76062 2007-10-15  Simon Josefsson  <simon@josefsson.org>
76064         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
76065         Reported by Albert Chin <china@thewrittenword.com>.
76067 2007-10-14  Bruno Haible  <bruno@clisp.org>
76069         * modules/iconv_open-utf-tests: New file.
76070         * tests/test-iconv-utf.c: New file.
76072         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
76073         * modules/iconv_open-utf: New file.
76074         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
76075         (iconv, iconv_close): New declarations.
76076         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
76077         be defined.
76078         (iconv_open): Add special handling of conversion between UTF-8 and
76079         UTF-{16,32}{BE,LE}.
76080         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
76081         * lib/iconv_close.c: New file.
76082         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
76083         gl_FUNC_ICONV_OPEN.
76084         (gl_FUNC_ICONV_OPEN): Use it.
76085         (gl_FUNC_ICONV_OPEN_UTF): New macro.
76086         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
76087         and REPLACE_ICONV_UTF.
76088         * modules/iconv_open (Depends-on): Add c-strcase.
76089         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
76090         ICONV_CONST.
76091         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
76093 2007-10-13  Albert Chin  <china@thewrittenword.com>
76094             Bruno Haible  <bruno@clisp.org>
76096         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
76097         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
76099 2007-10-13  Bruno Haible  <bruno@clisp.org>
76101         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
76102         defined, use the ISO C99 inline semantics.
76103         * lib/argp.h (ARGP_EI): Likewise.
76105 2007-10-13  Bruno Haible  <bruno@clisp.org>
76107         Handle 'inline' change in gcc 4.3.0.
76108         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
76109         argp_fmtstream_write, argp_fmtstream_set_lmargin,
76110         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
76111         argp_fmtstream_point): Disable 'extern' declaration if the function
76112         definition is going to be provided inline.
76113         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
76114         semantics, not the ISO C99 inline semantics.
76115         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
76116         'extern' declaration if the function definition is going to be provided
76117         inline.
76118         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
76119         the GNU C inline semantics, not the ISO C99 inline semantics. With
76120         GCC 4.2, avoid a warning.
76122 2007-10-13  Bruno Haible  <bruno@clisp.org>
76124         * lib/freading.h (freading): Enable the use of __freading for
76125         glibc >= 2.7.
76126         * lib/freading.c (freading): Likewise.
76128 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76130         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
76131         "warning: C99 inline functions are not supported; using GNU89".
76133 2007-10-12  Bruno Haible  <bruno@clisp.org>
76135         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
76136         of 2.
76137         * tests/test-ceilf2.c: New file.
76138         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
76140         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
76141         * modules/ceilf-tests: Update.
76143 2007-10-12  Bruno Haible  <bruno@clisp.org>
76145         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
76146         of 2.
76147         * tests/test-floorf2.c: New file.
76148         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
76150         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
76151         * modules/floorf-tests: Update.
76153 2007-10-12  Bruno Haible  <bruno@clisp.org>
76155         * tests/test-trunc2.c: New file.
76156         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
76158         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
76159         * modules/trunc-tests: Update.
76161 2007-10-12  Bruno Haible  <bruno@clisp.org>
76163         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
76164         of 2.
76165         * tests/test-truncf2.c: New file.
76166         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
76168         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
76169         * modules/truncf-tests: Update.
76171 2007-10-11  Eric Blake  <ebb9@byu.net>
76173         Don't claim strerror is broken on Interix.
76174         * doc/functions/strerror.texi (strerror): Known broken systems are
76175         now Solaris 8, and not Interix.
76176         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
76177         Interix on cross-compile.
76178         Reported by Martin Koeppe in
76179         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
76181 2007-10-11  Bruno Haible  <bruno@clisp.org>
76183         * modules/i-ring-tests: New file.
76184         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
76185         instead of assert.
76187 2007-10-11  Bruno Haible  <bruno@clisp.org>
76189         * modules/filenamecat-tests: New file.
76190         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
76191         * lib/filenamecat.c: Remove test code.
76193 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76195         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
76197         * lib/strerror.c: Include <string.h> always, to test interface,
76198         and to remove the need for the dummy.
76199         Include intprops.h to compute width instead of doing it ourselves
76200         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
76201         (strerror): Define it to return NULL if there's no system strerror.
76202         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
76203         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
76204         ancient pre-strerror Unix systems well any more.  Saying "unknown
76205         system error" is enough.
76206         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
76207         simpler strerror.c implementation.
76208         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
76209         Simplify the tests to reflect the simpler strerror implementation.
76210         * modules/strerror (Depends-on): Add intprops.
76212 2007-10-09  Eric Blake  <ebb9@byu.net>
76214         Silence test-fpending.
76215         * modules/fpending-tests (Files): Add wrapper script.
76216         * tests/test-fpending.sh: New file.
76218 2007-10-09  Bruno Haible  <bruno@clisp.org>
76220         * MODULES.html.sh (func_module): Don't create a hyperlink for
76221         function names like 'printf_frexp'.
76222         (Misc): Add crc, memxor.
76223         (Characteristics of floating types): New section.
76224         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
76225         isnanf-nolibm, signbit, trunc, truncf, truncl.
76226         (Enhancements for ISO C 99 functions): New subsection Input/output.
76227         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
76228         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
76229         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
76230         (Compatibility checks for POSIX:2001 functions): Add clock-time.
76231         (Enhancements for POSIX:2001 functions): Add chdir-long.
76232         (File system functions): Add areadlink, chdir-safer, read-file.
76233         Remove cycle-check.
76234         (File system as inode set): New section.
76235         (Date and time): Add gethrxtime.
76236         (Multithreading): Add openmp.
76237         (Internationalization functions): Add localename.
76238         (Unicode string functions): Add unistr/u*-mbsnlen.
76239         (Support for maintaining and releasing projects): Add git-version-gen.
76240         (Lone files): Remove directories.
76242 2007-10-08  Ben Pfaff  <blp@gnu.org>
76244         * lib/xmalloca.h: Fix typo in comment.
76246 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76248         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
76249         when avoiding problems with integer overflow.  Use a portable test
76250         instead.
76252 2007-10-08  Simon Josefsson  <simon@josefsson.org>
76254         * modules/dummy (License): Change to LGPLv2+.
76255         * modules/float (License): Likewise
76256         * modules/realloc (License): Likewise
76257         * modules/stdlib (License): Likewise
76259 2007-10-07  Bruno Haible  <bruno@clisp.org>
76261         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
76262         * floor.c (TWO_MANT_DIG): Likewise.
76263         * ceil.c (TWO_MANT_DIG): Likewise.
76264         Reported by Ben Pfaff.
76266 2007-10-07  Bruno Haible  <bruno@clisp.org>
76268         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
76269         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
76270         * lib/frexp.c (FUNC): Likewise.
76271         * lib/printf-frexp.h (printf_frexp): Likewise.
76272         * lib/printf-frexpl.h (printf_frexpl): Likewise.
76273         * lib/printf-frexp.c (FUNC): Likewise.
76274         Suggested by Jim Meyering.
76276 2007-10-07  Jim Meyering  <meyering@redhat.com>
76278         Make xnanosleep's integer overflow test more robust.
76279         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
76280         so that gcc-4.3.0 doesn't optimize away this test for overflow.
76282 2007-10-07  Bruno Haible  <bruno@clisp.org>
76284         * NEWS: Mention the license change.
76286         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
76287         abbreviations in the modules files.
76289         Change copyright notice from GPLv2+ to GPLv3+.
76290         * README: Change copyright notice.
76291         * MODULES.html.sh: Likewise.
76292         * build-aux/bootstrap.conf: Likewise.
76293         * build-aux/config.libpath: Likewise.
76294         * build-aux/csharpcomp.sh.in: Likewise.
76295         * build-aux/csharpexec.sh.in: Likewise.
76296         * build-aux/install-reloc: Likewise.
76297         * build-aux/javacomp.sh.in: Likewise.
76298         * build-aux/javaexec.sh.in: Likewise.
76299         * build-aux/ldd.sh.in: Likewise.
76300         * build-aux/reloc-ldflags: Likewise.
76301         * build-aux/relocatable.sh.in: Likewise.
76302         * build-aux/x-to-1.in: Likewise.
76303         * check-module: Likewise.
76304         * config/srclistvars.sh: Likewise.
76305         * gnulib-tool: Likewise.
76306         * lib/acl-internal.h: Likewise.
76307         * lib/acl.c: Likewise.
76308         * lib/acl.h: Likewise.
76309         * lib/acl_entries.c: Likewise.
76310         * lib/areadlink-with-size.c: Likewise.
76311         * lib/areadlink.c: Likewise.
76312         * lib/areadlink.h: Likewise.
76313         * lib/argmatch.c: Likewise.
76314         * lib/argmatch.h: Likewise.
76315         * lib/argp-ba.c: Likewise.
76316         * lib/argp-eexst.c: Likewise.
76317         * lib/argp-fmtstream.c: Likewise.
76318         * lib/argp-fmtstream.h: Likewise.
76319         * lib/argp-fs-xinl.c: Likewise.
76320         * lib/argp-help.c: Likewise.
76321         * lib/argp-namefrob.h: Likewise.
76322         * lib/argp-parse.c: Likewise.
76323         * lib/argp-pin.c: Likewise.
76324         * lib/argp-pv.c: Likewise.
76325         * lib/argp-pvh.c: Likewise.
76326         * lib/argp-xinl.c: Likewise.
76327         * lib/argp.h: Likewise.
76328         * lib/at-func.c: Likewise.
76329         * lib/atanl.c: Likewise.
76330         * lib/backupfile.c: Likewise.
76331         * lib/backupfile.h: Likewise.
76332         * lib/basename.c: Likewise.
76333         * lib/binary-io.h: Likewise.
76334         * lib/byteswap.in.h: Likewise.
76335         * lib/c-stack.c: Likewise.
76336         * lib/c-stack.h: Likewise.
76337         * lib/c-strcasestr.c: Likewise.
76338         * lib/c-strcasestr.h: Likewise.
76339         * lib/c-strstr.c: Likewise.
76340         * lib/c-strstr.h: Likewise.
76341         * lib/c-strtod.c: Likewise.
76342         * lib/calloc.c: Likewise.
76343         * lib/canon-host.c: Likewise.
76344         * lib/canon-host.h: Likewise.
76345         * lib/canonicalize-lgpl.c: Likewise.
76346         * lib/canonicalize.c: Likewise.
76347         * lib/canonicalize.h: Likewise.
76348         * lib/ceil.c: Likewise.
76349         * lib/ceilf.c: Likewise.
76350         * lib/ceill.c: Likewise.
76351         * lib/chdir-long.c: Likewise.
76352         * lib/chdir-long.h: Likewise.
76353         * lib/chdir-safer.c: Likewise.
76354         * lib/chdir-safer.h: Likewise.
76355         * lib/chown.c: Likewise.
76356         * lib/classpath.c: Likewise.
76357         * lib/classpath.h: Likewise.
76358         * lib/clean-temp.c: Likewise.
76359         * lib/clean-temp.h: Likewise.
76360         * lib/cloexec.c: Likewise.
76361         * lib/close-stream.c: Likewise.
76362         * lib/closein.c: Likewise.
76363         * lib/closein.h: Likewise.
76364         * lib/closeout.c: Likewise.
76365         * lib/closeout.h: Likewise.
76366         * lib/concat-filename.c: Likewise.
76367         * lib/copy-file.c: Likewise.
76368         * lib/copy-file.h: Likewise.
76369         * lib/count-one-bits.h: Likewise.
76370         * lib/crc.c: Likewise.
76371         * lib/crc.h: Likewise.
76372         * lib/creat-safer.c: Likewise.
76373         * lib/csharpcomp.c: Likewise.
76374         * lib/csharpcomp.h: Likewise.
76375         * lib/csharpexec.c: Likewise.
76376         * lib/csharpexec.h: Likewise.
76377         * lib/cycle-check.c: Likewise.
76378         * lib/cycle-check.h: Likewise.
76379         * lib/diacrit.c: Likewise.
76380         * lib/diacrit.h: Likewise.
76381         * lib/diffseq.h: Likewise.
76382         * lib/dirchownmod.c: Likewise.
76383         * lib/dirent.in.h: Likewise.
76384         * lib/dirfd.c: Likewise.
76385         * lib/dirfd.h: Likewise.
76386         * lib/dirname.c: Likewise.
76387         * lib/dirname.h: Likewise.
76388         * lib/dummy.c: Likewise.
76389         * lib/dup-safer.c: Likewise.
76390         * lib/dup2.c: Likewise.
76391         * lib/eealloc.h: Likewise.
76392         * lib/error.c: Likewise.
76393         * lib/error.h: Likewise.
76394         * lib/euidaccess.c: Likewise.
76395         * lib/exclude.c: Likewise.
76396         * lib/exclude.h: Likewise.
76397         * lib/execute.c: Likewise.
76398         * lib/execute.h: Likewise.
76399         * lib/exitfail.c: Likewise.
76400         * lib/exitfail.h: Likewise.
76401         * lib/expl.c: Likewise.
76402         * lib/fatal-signal.c: Likewise.
76403         * lib/fatal-signal.h: Likewise.
76404         * lib/fbufmode.c: Likewise.
76405         * lib/fbufmode.h: Likewise.
76406         * lib/fchdir.c: Likewise.
76407         * lib/fchmodat.c: Likewise.
76408         * lib/fchownat.c: Likewise.
76409         * lib/fcntl--.h: Likewise.
76410         * lib/fcntl-safer.h: Likewise.
76411         * lib/fcntl.in.h: Likewise.
76412         * lib/fd-safer.c: Likewise.
76413         * lib/fflush.c: Likewise.
76414         * lib/file-has-acl.c: Likewise.
76415         * lib/file-set.c: Likewise.
76416         * lib/file-type.c: Likewise.
76417         * lib/file-type.h: Likewise.
76418         * lib/fileblocks.c: Likewise.
76419         * lib/filemode.c: Likewise.
76420         * lib/filemode.h: Likewise.
76421         * lib/filename.h: Likewise.
76422         * lib/filenamecat.c: Likewise.
76423         * lib/filenamecat.h: Likewise.
76424         * lib/findprog.c: Likewise.
76425         * lib/findprog.h: Likewise.
76426         * lib/float.in.h: Likewise.
76427         * lib/floor.c: Likewise.
76428         * lib/floorf.c: Likewise.
76429         * lib/floorl.c: Likewise.
76430         * lib/fopen-safer.c: Likewise.
76431         * lib/fopen.c: Likewise.
76432         * lib/fpending.c: Likewise.
76433         * lib/fpending.h: Likewise.
76434         * lib/fprintf.c: Likewise.
76435         * lib/fprintftime.h: Likewise.
76436         * lib/fpucw.h: Likewise.
76437         * lib/fpurge.c: Likewise.
76438         * lib/fpurge.h: Likewise.
76439         * lib/freadable.c: Likewise.
76440         * lib/freadable.h: Likewise.
76441         * lib/freadahead.c: Likewise.
76442         * lib/freadahead.h: Likewise.
76443         * lib/freading.c: Likewise.
76444         * lib/freading.h: Likewise.
76445         * lib/free.c: Likewise.
76446         * lib/freopen.c: Likewise.
76447         * lib/frexp.c: Likewise.
76448         * lib/frexpl.c: Likewise.
76449         * lib/fseek.c: Likewise.
76450         * lib/fseterr.c: Likewise.
76451         * lib/fseterr.h: Likewise.
76452         * lib/fstatat.c: Likewise.
76453         * lib/fstrcmp.c: Likewise.
76454         * lib/fstrcmp.h: Likewise.
76455         * lib/fsusage.c: Likewise.
76456         * lib/fsusage.h: Likewise.
76457         * lib/ftell.c: Likewise.
76458         * lib/ftello.c: Likewise.
76459         * lib/fts-cycle.c: Likewise.
76460         * lib/fts.c: Likewise.
76461         * lib/fts_.h: Likewise.
76462         * lib/full-read.c: Likewise.
76463         * lib/full-read.h: Likewise.
76464         * lib/full-write.c: Likewise.
76465         * lib/full-write.h: Likewise.
76466         * lib/fwritable.c: Likewise.
76467         * lib/fwritable.h: Likewise.
76468         * lib/fwriteerror.c: Likewise.
76469         * lib/fwriteerror.h: Likewise.
76470         * lib/fwriting.c: Likewise.
76471         * lib/fwriting.h: Likewise.
76472         * lib/gcd.c: Likewise.
76473         * lib/gcd.h: Likewise.
76474         * lib/getcwd.c: Likewise.
76475         * lib/getdate.h: Likewise.
76476         * lib/getdate.y: Likewise.
76477         * lib/getdomainname.c: Likewise.
76478         * lib/getdomainname.h: Likewise.
76479         * lib/getgroups.c: Likewise.
76480         * lib/gethostname.c: Likewise.
76481         * lib/gethrxtime.c: Likewise.
76482         * lib/gethrxtime.h: Likewise.
76483         * lib/getloadavg.c: Likewise.
76484         * lib/getndelim2.c: Likewise.
76485         * lib/getndelim2.h: Likewise.
76486         * lib/getnline.c: Likewise.
76487         * lib/getnline.h: Likewise.
76488         * lib/getopt.c: Likewise.
76489         * lib/getopt.in.h: Likewise.
76490         * lib/getopt1.c: Likewise.
76491         * lib/getopt_int.h: Likewise.
76492         * lib/getpagesize.h: Likewise.
76493         * lib/getsubopt.c: Likewise.
76494         * lib/gettime.c: Likewise.
76495         * lib/getugroups.c: Likewise.
76496         * lib/getugroups.h: Likewise.
76497         * lib/getusershell.c: Likewise.
76498         * lib/gl_anyavltree_list1.h: Likewise.
76499         * lib/gl_anyavltree_list2.h: Likewise.
76500         * lib/gl_anyhash_list1.h: Likewise.
76501         * lib/gl_anyhash_list2.h: Likewise.
76502         * lib/gl_anylinked_list1.h: Likewise.
76503         * lib/gl_anylinked_list2.h: Likewise.
76504         * lib/gl_anyrbtree_list1.h: Likewise.
76505         * lib/gl_anyrbtree_list2.h: Likewise.
76506         * lib/gl_anytree_list1.h: Likewise.
76507         * lib/gl_anytree_list2.h: Likewise.
76508         * lib/gl_anytree_oset.h: Likewise.
76509         * lib/gl_anytreehash_list1.h: Likewise.
76510         * lib/gl_anytreehash_list2.h: Likewise.
76511         * lib/gl_array_list.c: Likewise.
76512         * lib/gl_array_list.h: Likewise.
76513         * lib/gl_array_oset.c: Likewise.
76514         * lib/gl_array_oset.h: Likewise.
76515         * lib/gl_avltree_list.c: Likewise.
76516         * lib/gl_avltree_list.h: Likewise.
76517         * lib/gl_avltree_oset.c: Likewise.
76518         * lib/gl_avltree_oset.h: Likewise.
76519         * lib/gl_avltreehash_list.c: Likewise.
76520         * lib/gl_avltreehash_list.h: Likewise.
76521         * lib/gl_carray_list.c: Likewise.
76522         * lib/gl_carray_list.h: Likewise.
76523         * lib/gl_linked_list.c: Likewise.
76524         * lib/gl_linked_list.h: Likewise.
76525         * lib/gl_linkedhash_list.c: Likewise.
76526         * lib/gl_linkedhash_list.h: Likewise.
76527         * lib/gl_list.c: Likewise.
76528         * lib/gl_list.h: Likewise.
76529         * lib/gl_oset.c: Likewise.
76530         * lib/gl_oset.h: Likewise.
76531         * lib/gl_rbtree_list.c: Likewise.
76532         * lib/gl_rbtree_list.h: Likewise.
76533         * lib/gl_rbtree_oset.c: Likewise.
76534         * lib/gl_rbtree_oset.h: Likewise.
76535         * lib/gl_rbtreehash_list.c: Likewise.
76536         * lib/gl_rbtreehash_list.h: Likewise.
76537         * lib/gl_sublist.c: Likewise.
76538         * lib/gl_sublist.h: Likewise.
76539         * lib/group-member.c: Likewise.
76540         * lib/group-member.h: Likewise.
76541         * lib/hard-locale.c: Likewise.
76542         * lib/hard-locale.h: Likewise.
76543         * lib/hash-pjw.c: Likewise.
76544         * lib/hash-pjw.h: Likewise.
76545         * lib/hash-triple.c: Likewise.
76546         * lib/hash.c: Likewise.
76547         * lib/hash.h: Likewise.
76548         * lib/human.c: Likewise.
76549         * lib/human.h: Likewise.
76550         * lib/i-ring.c: Likewise.
76551         * lib/i-ring.h: Likewise.
76552         * lib/idcache.c: Likewise.
76553         * lib/imaxabs.c: Likewise.
76554         * lib/imaxdiv.c: Likewise.
76555         * lib/inet_pton.c: Likewise.
76556         * lib/inet_pton.h: Likewise.
76557         * lib/intprops.h: Likewise.
76558         * lib/inttostr.c: Likewise.
76559         * lib/inttostr.h: Likewise.
76560         * lib/inttypes.in.h: Likewise.
76561         * lib/isapipe.c: Likewise.
76562         * lib/isdir.c: Likewise.
76563         * lib/isnan.c: Likewise.
76564         * lib/isnan.h: Likewise.
76565         * lib/isnanf.c: Likewise.
76566         * lib/isnanf.h: Likewise.
76567         * lib/isnanl-nolibm.h: Likewise.
76568         * lib/isnanl.c: Likewise.
76569         * lib/isnanl.h: Likewise.
76570         * lib/javacomp.c: Likewise.
76571         * lib/javacomp.h: Likewise.
76572         * lib/javaexec.c: Likewise.
76573         * lib/javaexec.h: Likewise.
76574         * lib/javaversion.c: Likewise.
76575         * lib/javaversion.h: Likewise.
76576         * lib/javaversion.java: Likewise.
76577         * lib/lbrkprop.h: Likewise.
76578         * lib/lchmod.h: Likewise.
76579         * lib/lchown.c: Likewise.
76580         * lib/ldexpl.c: Likewise.
76581         * lib/linebreak.c: Likewise.
76582         * lib/linebreak.h: Likewise.
76583         * lib/linebuffer.c: Likewise.
76584         * lib/linebuffer.h: Likewise.
76585         * lib/locale.in.h: Likewise.
76586         * lib/logl.c: Likewise.
76587         * lib/long-options.c: Likewise.
76588         * lib/long-options.h: Likewise.
76589         * lib/lstat.c: Likewise.
76590         * lib/lstat.h: Likewise.
76591         * lib/math.in.h: Likewise.
76592         * lib/mbchar.c: Likewise.
76593         * lib/mbchar.h: Likewise.
76594         * lib/mbfile.h: Likewise.
76595         * lib/mbiter.h: Likewise.
76596         * lib/mbscasecmp.c: Likewise.
76597         * lib/mbscasestr.c: Likewise.
76598         * lib/mbschr.c: Likewise.
76599         * lib/mbscspn.c: Likewise.
76600         * lib/mbslen.c: Likewise.
76601         * lib/mbsncasecmp.c: Likewise.
76602         * lib/mbsnlen.c: Likewise.
76603         * lib/mbspbrk.c: Likewise.
76604         * lib/mbspcasecmp.c: Likewise.
76605         * lib/mbsrchr.c: Likewise.
76606         * lib/mbssep.c: Likewise.
76607         * lib/mbsspn.c: Likewise.
76608         * lib/mbsstr.c: Likewise.
76609         * lib/mbstok_r.c: Likewise.
76610         * lib/mbswidth.c: Likewise.
76611         * lib/mbswidth.h: Likewise.
76612         * lib/mbuiter.h: Likewise.
76613         * lib/memcasecmp.c: Likewise.
76614         * lib/memcasecmp.h: Likewise.
76615         * lib/memchr.c: Likewise.
76616         * lib/memcmp.c: Likewise.
76617         * lib/memcoll.c: Likewise.
76618         * lib/memcoll.h: Likewise.
76619         * lib/memcpy.c: Likewise.
76620         * lib/memrchr.c: Likewise.
76621         * lib/mkancesdirs.c: Likewise.
76622         * lib/mkdir-p.c: Likewise.
76623         * lib/mkdir-p.h: Likewise.
76624         * lib/mkdir.c: Likewise.
76625         * lib/mkdirat.c: Likewise.
76626         * lib/mkdtemp.c: Likewise.
76627         * lib/mkstemp-safer.c: Likewise.
76628         * lib/mkstemp.c: Likewise.
76629         * lib/modechange.c: Likewise.
76630         * lib/modechange.h: Likewise.
76631         * lib/mountlist.c: Likewise.
76632         * lib/mountlist.h: Likewise.
76633         * lib/mpsort.c: Likewise.
76634         * lib/nanosleep.c: Likewise.
76635         * lib/obstack.c: Likewise.
76636         * lib/obstack.h: Likewise.
76637         * lib/open-safer.c: Likewise.
76638         * lib/open.c: Likewise.
76639         * lib/openat-die.c: Likewise.
76640         * lib/openat-priv.h: Likewise.
76641         * lib/openat-proc.c: Likewise.
76642         * lib/openat.c: Likewise.
76643         * lib/openat.h: Likewise.
76644         * lib/pagealign_alloc.c: Likewise.
76645         * lib/pagealign_alloc.h: Likewise.
76646         * lib/physmem.c: Likewise.
76647         * lib/physmem.h: Likewise.
76648         * lib/pipe-safer.c: Likewise.
76649         * lib/pipe.c: Likewise.
76650         * lib/pipe.h: Likewise.
76651         * lib/posixtm.c: Likewise.
76652         * lib/posixtm.h: Likewise.
76653         * lib/posixver.c: Likewise.
76654         * lib/printf-frexp.c: Likewise.
76655         * lib/printf-frexp.h: Likewise.
76656         * lib/printf-frexpl.c: Likewise.
76657         * lib/printf-frexpl.h: Likewise.
76658         * lib/printf.c: Likewise.
76659         * lib/progname.c: Likewise.
76660         * lib/progname.h: Likewise.
76661         * lib/progreloc.c: Likewise.
76662         * lib/putenv.c: Likewise.
76663         * lib/quote.c: Likewise.
76664         * lib/quote.h: Likewise.
76665         * lib/quotearg.c: Likewise.
76666         * lib/quotearg.h: Likewise.
76667         * lib/raise.c: Likewise.
76668         * lib/readline.c: Likewise.
76669         * lib/readline.h: Likewise.
76670         * lib/readlink.c: Likewise.
76671         * lib/readtokens.c: Likewise.
76672         * lib/readtokens.h: Likewise.
76673         * lib/readtokens0.c: Likewise.
76674         * lib/readtokens0.h: Likewise.
76675         * lib/readutmp.c: Likewise.
76676         * lib/readutmp.h: Likewise.
76677         * lib/realloc.c: Likewise.
76678         * lib/relocwrapper.c: Likewise.
76679         * lib/rename-dest-slash.c: Likewise.
76680         * lib/rename.c: Likewise.
76681         * lib/rmdir.c: Likewise.
76682         * lib/rpmatch.c: Likewise.
76683         * lib/safe-read.c: Likewise.
76684         * lib/safe-read.h: Likewise.
76685         * lib/safe-write.c: Likewise.
76686         * lib/safe-write.h: Likewise.
76687         * lib/same-inode.h: Likewise.
76688         * lib/same.c: Likewise.
76689         * lib/same.h: Likewise.
76690         * lib/save-cwd.c: Likewise.
76691         * lib/save-cwd.h: Likewise.
76692         * lib/savedir.c: Likewise.
76693         * lib/savedir.h: Likewise.
76694         * lib/savewd.c: Likewise.
76695         * lib/savewd.h: Likewise.
76696         * lib/search.in.h: Likewise.
76697         * lib/setenv.c: Likewise.
76698         * lib/setenv.h: Likewise.
76699         * lib/settime.c: Likewise.
76700         * lib/sh-quote.c: Likewise.
76701         * lib/sh-quote.h: Likewise.
76702         * lib/sig2str.c: Likewise.
76703         * lib/sig2str.h: Likewise.
76704         * lib/signal.in.h: Likewise.
76705         * lib/signbitd.c: Likewise.
76706         * lib/signbitf.c: Likewise.
76707         * lib/signbitl.c: Likewise.
76708         * lib/sigprocmask.c: Likewise.
76709         * lib/sincosl.c: Likewise.
76710         * lib/sleep.c: Likewise.
76711         * lib/sprintf.c: Likewise.
76712         * lib/sqrtl.c: Likewise.
76713         * lib/stat-time.h: Likewise.
76714         * lib/stdio--.h: Likewise.
76715         * lib/stdio-safer.h: Likewise.
76716         * lib/stdlib--.h: Likewise.
76717         * lib/stdlib-safer.h: Likewise.
76718         * lib/stdlib.in.h: Likewise.
76719         * lib/stpcpy.c: Likewise.
76720         * lib/stpncpy.c: Likewise.
76721         * lib/strchrnul.c: Likewise.
76722         * lib/strcspn.c: Likewise.
76723         * lib/strerror.c: Likewise.
76724         * lib/strftime.c: Likewise.
76725         * lib/strftime.h: Likewise.
76726         * lib/striconveh.c: Likewise.
76727         * lib/striconveh.h: Likewise.
76728         * lib/striconveha.c: Likewise.
76729         * lib/striconveha.h: Likewise.
76730         * lib/stripslash.c: Likewise.
76731         * lib/strnlen1.c: Likewise.
76732         * lib/strnlen1.h: Likewise.
76733         * lib/strtod.c: Likewise.
76734         * lib/strtoimax.c: Likewise.
76735         * lib/strtok_r.c: Likewise.
76736         * lib/strtol.c: Likewise.
76737         * lib/strtoll.c: Likewise.
76738         * lib/strtoul.c: Likewise.
76739         * lib/strtoull.c: Likewise.
76740         * lib/sysexits.in.h: Likewise.
76741         * lib/tempname.c: Likewise.
76742         * lib/tempname.h: Likewise.
76743         * lib/timespec.h: Likewise.
76744         * lib/tls.c: Likewise.
76745         * lib/tls.h: Likewise.
76746         * lib/tmpdir.c: Likewise.
76747         * lib/tmpdir.h: Likewise.
76748         * lib/tmpfile-safer.c: Likewise.
76749         * lib/tmpfile.c: Likewise.
76750         * lib/trigl.c: Likewise.
76751         * lib/trigl.h: Likewise.
76752         * lib/trim.c: Likewise.
76753         * lib/trim.h: Likewise.
76754         * lib/trunc.c: Likewise.
76755         * lib/truncf.c: Likewise.
76756         * lib/truncl.c: Likewise.
76757         * lib/tsearch.c: Likewise.
76758         * lib/unicodeio.c: Likewise.
76759         * lib/unicodeio.h: Likewise.
76760         * lib/unistd--.h: Likewise.
76761         * lib/unistd-safer.h: Likewise.
76762         * lib/unistdio/ulc-fprintf.c: Likewise.
76763         * lib/unistdio/ulc-vfprintf.c: Likewise.
76764         * lib/unlinkdir.c: Likewise.
76765         * lib/unlinkdir.h: Likewise.
76766         * lib/unlocked-io.h: Likewise.
76767         * lib/unsetenv.c: Likewise.
76768         * lib/userspec.c: Likewise.
76769         * lib/utime.c: Likewise.
76770         * lib/utimecmp.c: Likewise.
76771         * lib/utimecmp.h: Likewise.
76772         * lib/utimens.c: Likewise.
76773         * lib/verify.h: Likewise.
76774         * lib/verror.c: Likewise.
76775         * lib/verror.h: Likewise.
76776         * lib/version-etc-fsf.c: Likewise.
76777         * lib/version-etc.c: Likewise.
76778         * lib/version-etc.h: Likewise.
76779         * lib/vfprintf.c: Likewise.
76780         * lib/vprintf.c: Likewise.
76781         * lib/vsprintf.c: Likewise.
76782         * lib/w32spawn.h: Likewise.
76783         * lib/wait-process.c: Likewise.
76784         * lib/wait-process.h: Likewise.
76785         * lib/wcwidth.c: Likewise.
76786         * lib/write-any-file.c: Likewise.
76787         * lib/xalloc-die.c: Likewise.
76788         * lib/xalloc.h: Likewise.
76789         * lib/xasprintf.c: Likewise.
76790         * lib/xgetcwd.c: Likewise.
76791         * lib/xgetcwd.h: Likewise.
76792         * lib/xgetdomainname.c: Likewise.
76793         * lib/xgetdomainname.h: Likewise.
76794         * lib/xgethostname.c: Likewise.
76795         * lib/xmalloc.c: Likewise.
76796         * lib/xmalloca.c: Likewise.
76797         * lib/xmalloca.h: Likewise.
76798         * lib/xmemcoll.c: Likewise.
76799         * lib/xnanosleep.c: Likewise.
76800         * lib/xreadlink.c: Likewise.
76801         * lib/xreadlink.h: Likewise.
76802         * lib/xsetenv.c: Likewise.
76803         * lib/xsetenv.h: Likewise.
76804         * lib/xstriconv.c: Likewise.
76805         * lib/xstriconv.h: Likewise.
76806         * lib/xstrndup.c: Likewise.
76807         * lib/xstrndup.h: Likewise.
76808         * lib/xstrtod.c: Likewise.
76809         * lib/xstrtod.h: Likewise.
76810         * lib/xstrtol-error.c: Likewise.
76811         * lib/xstrtol.c: Likewise.
76812         * lib/xstrtol.h: Likewise.
76813         * lib/xtime.h: Likewise.
76814         * lib/xvasprintf.c: Likewise.
76815         * lib/xvasprintf.h: Likewise.
76816         * lib/yesno.c: Likewise.
76817         * lib/yesno.h: Likewise.
76818         * posix-modules: Likewise.
76819         * tests/test-alloca-opt.c: Likewise.
76820         * tests/test-arcfour.c: Likewise.
76821         * tests/test-arctwo.c: Likewise.
76822         * tests/test-argmatch.c: Likewise.
76823         * tests/test-argp-2.sh: Likewise.
76824         * tests/test-argp.c: Likewise.
76825         * tests/test-arpa_inet.c: Likewise.
76826         * tests/test-array_list.c: Likewise.
76827         * tests/test-array_oset.c: Likewise.
76828         * tests/test-atexit.c: Likewise.
76829         * tests/test-avltree_list.c: Likewise.
76830         * tests/test-avltree_oset.c: Likewise.
76831         * tests/test-avltreehash_list.c: Likewise.
76832         * tests/test-base64.c: Likewise.
76833         * tests/test-binary-io.c: Likewise.
76834         * tests/test-byteswap.c: Likewise.
76835         * tests/test-c-ctype.c: Likewise.
76836         * tests/test-c-strcasecmp.c: Likewise.
76837         * tests/test-c-strcasestr.c: Likewise.
76838         * tests/test-c-strncasecmp.c: Likewise.
76839         * tests/test-c-strstr.c: Likewise.
76840         * tests/test-canonicalize-lgpl.c: Likewise.
76841         * tests/test-canonicalize.c: Likewise.
76842         * tests/test-carray_list.c: Likewise.
76843         * tests/test-ceilf.c: Likewise.
76844         * tests/test-ceill.c: Likewise.
76845         * tests/test-count-one-bits.c: Likewise.
76846         * tests/test-crc.c: Likewise.
76847         * tests/test-dirname.c: Likewise.
76848         * tests/test-fbufmode.c: Likewise.
76849         * tests/test-fcntl.c: Likewise.
76850         * tests/test-fflush.c: Likewise.
76851         * tests/test-floorf.c: Likewise.
76852         * tests/test-floorl.c: Likewise.
76853         * tests/test-fopen.c: Likewise.
76854         * tests/test-fprintf-posix.c: Likewise.
76855         * tests/test-fprintf-posix.h: Likewise.
76856         * tests/test-fpurge.c: Likewise.
76857         * tests/test-freadable.c: Likewise.
76858         * tests/test-freadahead.c: Likewise.
76859         * tests/test-freading.c: Likewise.
76860         * tests/test-freopen.c: Likewise.
76861         * tests/test-frexp.c: Likewise.
76862         * tests/test-frexpl.c: Likewise.
76863         * tests/test-fseek.c: Likewise.
76864         * tests/test-fseeko.c: Likewise.
76865         * tests/test-fseterr.c: Likewise.
76866         * tests/test-fstrcmp.c: Likewise.
76867         * tests/test-ftell.c: Likewise.
76868         * tests/test-ftello.c: Likewise.
76869         * tests/test-fwritable.c: Likewise.
76870         * tests/test-fwriting.c: Likewise.
76871         * tests/test-getaddrinfo.c: Likewise.
76872         * tests/test-getpass.c: Likewise.
76873         * tests/test-gettimeofday.c: Likewise.
76874         * tests/test-hmac-md5.c: Likewise.
76875         * tests/test-hmac-sha1.c: Likewise.
76876         * tests/test-iconv.c: Likewise.
76877         * tests/test-iconvme.c: Likewise.
76878         * tests/test-inttypes.c: Likewise.
76879         * tests/test-isnan.c: Likewise.
76880         * tests/test-isnanf.c: Likewise.
76881         * tests/test-isnanl-nolibm.c: Likewise.
76882         * tests/test-isnanl.c: Likewise.
76883         * tests/test-isnanl.h: Likewise.
76884         * tests/test-ldexpl.c: Likewise.
76885         * tests/test-linked_list.c: Likewise.
76886         * tests/test-linkedhash_list.c: Likewise.
76887         * tests/test-locale.c: Likewise.
76888         * tests/test-localename.c: Likewise.
76889         * tests/test-lock.c: Likewise.
76890         * tests/test-lseek.c: Likewise.
76891         * tests/test-malloca.c: Likewise.
76892         * tests/test-math.c: Likewise.
76893         * tests/test-mbscasecmp.c: Likewise.
76894         * tests/test-mbscasestr1.c: Likewise.
76895         * tests/test-mbscasestr2.c: Likewise.
76896         * tests/test-mbscasestr3.c: Likewise.
76897         * tests/test-mbscasestr4.c: Likewise.
76898         * tests/test-mbschr.c: Likewise.
76899         * tests/test-mbscspn.c: Likewise.
76900         * tests/test-mbsncasecmp.c: Likewise.
76901         * tests/test-mbspbrk.c: Likewise.
76902         * tests/test-mbspcasecmp.c: Likewise.
76903         * tests/test-mbsrchr.c: Likewise.
76904         * tests/test-mbsspn.c: Likewise.
76905         * tests/test-mbsstr1.c: Likewise.
76906         * tests/test-mbsstr2.c: Likewise.
76907         * tests/test-mbsstr3.c: Likewise.
76908         * tests/test-md5.c: Likewise.
76909         * tests/test-memmem.c: Likewise.
76910         * tests/test-netinet_in.c: Likewise.
76911         * tests/test-open.c: Likewise.
76912         * tests/test-printf-frexp.c: Likewise.
76913         * tests/test-printf-frexpl.c: Likewise.
76914         * tests/test-printf-posix.c: Likewise.
76915         * tests/test-printf-posix.h: Likewise.
76916         * tests/test-rbtree_list.c: Likewise.
76917         * tests/test-rbtree_oset.c: Likewise.
76918         * tests/test-rbtreehash_list.c: Likewise.
76919         * tests/test-read-file.c: Likewise.
76920         * tests/test-rijndael.c: Likewise.
76921         * tests/test-search.c: Likewise.
76922         * tests/test-signbit.c: Likewise.
76923         * tests/test-sleep.c: Likewise.
76924         * tests/test-snprintf-posix.c: Likewise.
76925         * tests/test-snprintf-posix.h: Likewise.
76926         * tests/test-snprintf.c: Likewise.
76927         * tests/test-sprintf-posix.c: Likewise.
76928         * tests/test-sprintf-posix.h: Likewise.
76929         * tests/test-stat-time.c: Likewise.
76930         * tests/test-stdbool.c: Likewise.
76931         * tests/test-stdint.c: Likewise.
76932         * tests/test-stdio.c: Likewise.
76933         * tests/test-stdlib.c: Likewise.
76934         * tests/test-stpncpy.c: Likewise.
76935         * tests/test-strcasestr.c: Likewise.
76936         * tests/test-striconv.c: Likewise.
76937         * tests/test-striconveh.c: Likewise.
76938         * tests/test-striconveha.c: Likewise.
76939         * tests/test-string.c: Likewise.
76940         * tests/test-sys_select.c: Likewise.
76941         * tests/test-sys_socket.c: Likewise.
76942         * tests/test-sys_stat.c: Likewise.
76943         * tests/test-sys_time.c: Likewise.
76944         * tests/test-sysexits.c: Likewise.
76945         * tests/test-time.c: Likewise.
76946         * tests/test-tls.c: Likewise.
76947         * tests/test-trunc.c: Likewise.
76948         * tests/test-truncf.c: Likewise.
76949         * tests/test-truncl.c: Likewise.
76950         * tests/test-unistd.c: Likewise.
76951         * tests/test-vasnprintf-posix.c: Likewise.
76952         * tests/test-vasnprintf-posix2.c: Likewise.
76953         * tests/test-vasnprintf.c: Likewise.
76954         * tests/test-vasprintf-posix.c: Likewise.
76955         * tests/test-vasprintf.c: Likewise.
76956         * tests/test-verify.c: Likewise.
76957         * tests/test-vfprintf-posix.c: Likewise.
76958         * tests/test-vprintf-posix.c: Likewise.
76959         * tests/test-vsnprintf-posix.c: Likewise.
76960         * tests/test-vsnprintf.c: Likewise.
76961         * tests/test-vsprintf-posix.c: Likewise.
76962         * tests/test-wchar.c: Likewise.
76963         * tests/test-wctype.c: Likewise.
76964         * tests/test-wcwidth.c: Likewise.
76965         * tests/test-xstrtol.c: Likewise.
76966         * tests/test-xvasprintf.c: Likewise.
76967         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
76968         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
76969         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
76970         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
76971         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
76972         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
76973         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
76974         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
76975         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
76976         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
76977         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
76978         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
76979         * tests/uniname/test-uninames.c: Likewise.
76980         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
76981         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
76982         * tests/unistdio/test-u16-printf1.h: Likewise.
76983         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
76984         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
76985         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
76986         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
76987         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
76988         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
76989         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
76990         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
76991         * tests/unistdio/test-u32-printf1.h: Likewise.
76992         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
76993         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
76994         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
76995         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
76996         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
76997         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
76998         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
76999         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
77000         * tests/unistdio/test-u8-printf1.h: Likewise.
77001         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
77002         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
77003         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
77004         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
77005         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
77006         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
77007         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
77008         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
77009         * tests/unistdio/test-ulc-printf1.h: Likewise.
77010         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
77011         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
77012         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
77013         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
77014         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
77015         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
77016         * tests/uniwidth/test-u16-strwidth.c: Likewise.
77017         * tests/uniwidth/test-u16-width.c: Likewise.
77018         * tests/uniwidth/test-u32-strwidth.c: Likewise.
77019         * tests/uniwidth/test-u32-width.c: Likewise.
77020         * tests/uniwidth/test-u8-strwidth.c: Likewise.
77021         * tests/uniwidth/test-u8-width.c: Likewise.
77022         * tests/uniwidth/test-uc_width.c: Likewise.
77023         * config/srclist-update: Likewise.
77024         (fixlicense): Update to GPLv3+.
77026         Change copyright notice from LGPLv2.1+ to LGPLv3+.
77027         * tests/test-tsearch.c: Change copyright notice.
77029         Change copyright notice from LGPLv2.0+ to LGPLv3+.
77030         * lib/c-strcaseeq.h: Change copyright notice.
77031         * lib/streq.h: Likewise.
77032         * lib/uniconv.h: Likewise.
77033         * lib/uniconv/u-conv-from-enc.h: Likewise.
77034         * lib/uniconv/u-conv-to-enc.h: Likewise.
77035         * lib/uniconv/u-strconv-from-enc.h: Likewise.
77036         * lib/uniconv/u-strconv-to-enc.h: Likewise.
77037         * lib/uniconv/u16-conv-from-enc.c: Likewise.
77038         * lib/uniconv/u16-conv-to-enc.c: Likewise.
77039         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
77040         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
77041         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
77042         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
77043         * lib/uniconv/u32-conv-from-enc.c: Likewise.
77044         * lib/uniconv/u32-conv-to-enc.c: Likewise.
77045         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
77046         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
77047         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
77048         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
77049         * lib/uniconv/u8-conv-from-enc.c: Likewise.
77050         * lib/uniconv/u8-conv-to-enc.c: Likewise.
77051         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
77052         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
77053         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
77054         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
77055         * lib/uniname.h: Likewise.
77056         * lib/uniname/uniname.c: Likewise.
77057         * lib/unistdio.h: Likewise.
77058         * lib/unistdio/u-asnprintf.h: Likewise.
77059         * lib/unistdio/u-asprintf.h: Likewise.
77060         * lib/unistdio/u-printf-args.c: Likewise.
77061         * lib/unistdio/u-printf-args.h: Likewise.
77062         * lib/unistdio/u-printf-parse.h: Likewise.
77063         * lib/unistdio/u-snprintf.h: Likewise.
77064         * lib/unistdio/u-sprintf.h: Likewise.
77065         * lib/unistdio/u-vasprintf.h: Likewise.
77066         * lib/unistdio/u-vsnprintf.h: Likewise.
77067         * lib/unistdio/u-vsprintf.h: Likewise.
77068         * lib/unistdio/u16-asnprintf.c: Likewise.
77069         * lib/unistdio/u16-asprintf.c: Likewise.
77070         * lib/unistdio/u16-printf-parse.c: Likewise.
77071         * lib/unistdio/u16-snprintf.c: Likewise.
77072         * lib/unistdio/u16-sprintf.c: Likewise.
77073         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
77074         * lib/unistdio/u16-u16-asprintf.c: Likewise.
77075         * lib/unistdio/u16-u16-snprintf.c: Likewise.
77076         * lib/unistdio/u16-u16-sprintf.c: Likewise.
77077         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
77078         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
77079         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
77080         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
77081         * lib/unistdio/u16-vasnprintf.c: Likewise.
77082         * lib/unistdio/u16-vasprintf.c: Likewise.
77083         * lib/unistdio/u16-vsnprintf.c: Likewise.
77084         * lib/unistdio/u16-vsprintf.c: Likewise.
77085         * lib/unistdio/u32-asnprintf.c: Likewise.
77086         * lib/unistdio/u32-asprintf.c: Likewise.
77087         * lib/unistdio/u32-printf-parse.c: Likewise.
77088         * lib/unistdio/u32-snprintf.c: Likewise.
77089         * lib/unistdio/u32-sprintf.c: Likewise.
77090         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
77091         * lib/unistdio/u32-u32-asprintf.c: Likewise.
77092         * lib/unistdio/u32-u32-snprintf.c: Likewise.
77093         * lib/unistdio/u32-u32-sprintf.c: Likewise.
77094         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
77095         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
77096         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
77097         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
77098         * lib/unistdio/u32-vasnprintf.c: Likewise.
77099         * lib/unistdio/u32-vasprintf.c: Likewise.
77100         * lib/unistdio/u32-vsnprintf.c: Likewise.
77101         * lib/unistdio/u32-vsprintf.c: Likewise.
77102         * lib/unistdio/u8-asnprintf.c: Likewise.
77103         * lib/unistdio/u8-asprintf.c: Likewise.
77104         * lib/unistdio/u8-printf-parse.c: Likewise.
77105         * lib/unistdio/u8-snprintf.c: Likewise.
77106         * lib/unistdio/u8-sprintf.c: Likewise.
77107         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
77108         * lib/unistdio/u8-u8-asprintf.c: Likewise.
77109         * lib/unistdio/u8-u8-snprintf.c: Likewise.
77110         * lib/unistdio/u8-u8-sprintf.c: Likewise.
77111         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
77112         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
77113         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
77114         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
77115         * lib/unistdio/u8-vasnprintf.c: Likewise.
77116         * lib/unistdio/u8-vasprintf.c: Likewise.
77117         * lib/unistdio/u8-vsnprintf.c: Likewise.
77118         * lib/unistdio/u8-vsprintf.c: Likewise.
77119         * lib/unistdio/ulc-asnprintf.c: Likewise.
77120         * lib/unistdio/ulc-asprintf.c: Likewise.
77121         * lib/unistdio/ulc-printf-parse.c: Likewise.
77122         * lib/unistdio/ulc-snprintf.c: Likewise.
77123         * lib/unistdio/ulc-sprintf.c: Likewise.
77124         * lib/unistdio/ulc-vasnprintf.c: Likewise.
77125         * lib/unistdio/ulc-vasprintf.c: Likewise.
77126         * lib/unistdio/ulc-vsnprintf.c: Likewise.
77127         * lib/unistdio/ulc-vsprintf.c: Likewise.
77128         * lib/unistr.h: Likewise.
77129         * lib/unistr/u-cpy-alloc.h: Likewise.
77130         * lib/unistr/u-cpy.h: Likewise.
77131         * lib/unistr/u-endswith.h: Likewise.
77132         * lib/unistr/u-move.h: Likewise.
77133         * lib/unistr/u-set.h: Likewise.
77134         * lib/unistr/u-startswith.h: Likewise.
77135         * lib/unistr/u-stpcpy.h: Likewise.
77136         * lib/unistr/u-stpncpy.h: Likewise.
77137         * lib/unistr/u-strcat.h: Likewise.
77138         * lib/unistr/u-strcpy.h: Likewise.
77139         * lib/unistr/u-strcspn.h: Likewise.
77140         * lib/unistr/u-strdup.h: Likewise.
77141         * lib/unistr/u-strlen.h: Likewise.
77142         * lib/unistr/u-strncat.h: Likewise.
77143         * lib/unistr/u-strncpy.h: Likewise.
77144         * lib/unistr/u-strnlen.h: Likewise.
77145         * lib/unistr/u-strpbrk.h: Likewise.
77146         * lib/unistr/u-strspn.h: Likewise.
77147         * lib/unistr/u-strstr.h: Likewise.
77148         * lib/unistr/u-strtok.h: Likewise.
77149         * lib/unistr/u16-check.c: Likewise.
77150         * lib/unistr/u16-chr.c: Likewise.
77151         * lib/unistr/u16-cmp.c: Likewise.
77152         * lib/unistr/u16-cpy-alloc.c: Likewise.
77153         * lib/unistr/u16-cpy.c: Likewise.
77154         * lib/unistr/u16-endswith.c: Likewise.
77155         * lib/unistr/u16-mblen.c: Likewise.
77156         * lib/unistr/u16-mbsnlen.c: Likewise.
77157         * lib/unistr/u16-mbtouc-aux.c: Likewise.
77158         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
77159         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
77160         * lib/unistr/u16-mbtouc.c: Likewise.
77161         * lib/unistr/u16-mbtoucr.c: Likewise.
77162         * lib/unistr/u16-move.c: Likewise.
77163         * lib/unistr/u16-next.c: Likewise.
77164         * lib/unistr/u16-prev.c: Likewise.
77165         * lib/unistr/u16-set.c: Likewise.
77166         * lib/unistr/u16-startswith.c: Likewise.
77167         * lib/unistr/u16-stpcpy.c: Likewise.
77168         * lib/unistr/u16-stpncpy.c: Likewise.
77169         * lib/unistr/u16-strcat.c: Likewise.
77170         * lib/unistr/u16-strchr.c: Likewise.
77171         * lib/unistr/u16-strcmp.c: Likewise.
77172         * lib/unistr/u16-strcpy.c: Likewise.
77173         * lib/unistr/u16-strcspn.c: Likewise.
77174         * lib/unistr/u16-strdup.c: Likewise.
77175         * lib/unistr/u16-strlen.c: Likewise.
77176         * lib/unistr/u16-strmblen.c: Likewise.
77177         * lib/unistr/u16-strmbtouc.c: Likewise.
77178         * lib/unistr/u16-strncat.c: Likewise.
77179         * lib/unistr/u16-strncmp.c: Likewise.
77180         * lib/unistr/u16-strncpy.c: Likewise.
77181         * lib/unistr/u16-strnlen.c: Likewise.
77182         * lib/unistr/u16-strpbrk.c: Likewise.
77183         * lib/unistr/u16-strrchr.c: Likewise.
77184         * lib/unistr/u16-strspn.c: Likewise.
77185         * lib/unistr/u16-strstr.c: Likewise.
77186         * lib/unistr/u16-strtok.c: Likewise.
77187         * lib/unistr/u16-to-u32.c: Likewise.
77188         * lib/unistr/u16-to-u8.c: Likewise.
77189         * lib/unistr/u16-uctomb-aux.c: Likewise.
77190         * lib/unistr/u16-uctomb.c: Likewise.
77191         * lib/unistr/u32-check.c: Likewise.
77192         * lib/unistr/u32-chr.c: Likewise.
77193         * lib/unistr/u32-cmp.c: Likewise.
77194         * lib/unistr/u32-cpy-alloc.c: Likewise.
77195         * lib/unistr/u32-cpy.c: Likewise.
77196         * lib/unistr/u32-endswith.c: Likewise.
77197         * lib/unistr/u32-mblen.c: Likewise.
77198         * lib/unistr/u32-mbsnlen.c: Likewise.
77199         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
77200         * lib/unistr/u32-mbtouc.c: Likewise.
77201         * lib/unistr/u32-mbtoucr.c: Likewise.
77202         * lib/unistr/u32-move.c: Likewise.
77203         * lib/unistr/u32-next.c: Likewise.
77204         * lib/unistr/u32-prev.c: Likewise.
77205         * lib/unistr/u32-set.c: Likewise.
77206         * lib/unistr/u32-startswith.c: Likewise.
77207         * lib/unistr/u32-stpcpy.c: Likewise.
77208         * lib/unistr/u32-stpncpy.c: Likewise.
77209         * lib/unistr/u32-strcat.c: Likewise.
77210         * lib/unistr/u32-strchr.c: Likewise.
77211         * lib/unistr/u32-strcmp.c: Likewise.
77212         * lib/unistr/u32-strcpy.c: Likewise.
77213         * lib/unistr/u32-strcspn.c: Likewise.
77214         * lib/unistr/u32-strdup.c: Likewise.
77215         * lib/unistr/u32-strlen.c: Likewise.
77216         * lib/unistr/u32-strmblen.c: Likewise.
77217         * lib/unistr/u32-strmbtouc.c: Likewise.
77218         * lib/unistr/u32-strncat.c: Likewise.
77219         * lib/unistr/u32-strncmp.c: Likewise.
77220         * lib/unistr/u32-strncpy.c: Likewise.
77221         * lib/unistr/u32-strnlen.c: Likewise.
77222         * lib/unistr/u32-strpbrk.c: Likewise.
77223         * lib/unistr/u32-strrchr.c: Likewise.
77224         * lib/unistr/u32-strspn.c: Likewise.
77225         * lib/unistr/u32-strstr.c: Likewise.
77226         * lib/unistr/u32-strtok.c: Likewise.
77227         * lib/unistr/u32-to-u16.c: Likewise.
77228         * lib/unistr/u32-to-u8.c: Likewise.
77229         * lib/unistr/u32-uctomb.c: Likewise.
77230         * lib/unistr/u8-check.c: Likewise.
77231         * lib/unistr/u8-chr.c: Likewise.
77232         * lib/unistr/u8-cmp.c: Likewise.
77233         * lib/unistr/u8-cpy-alloc.c: Likewise.
77234         * lib/unistr/u8-cpy.c: Likewise.
77235         * lib/unistr/u8-endswith.c: Likewise.
77236         * lib/unistr/u8-mblen.c: Likewise.
77237         * lib/unistr/u8-mbsnlen.c: Likewise.
77238         * lib/unistr/u8-mbtouc-aux.c: Likewise.
77239         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
77240         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
77241         * lib/unistr/u8-mbtouc.c: Likewise.
77242         * lib/unistr/u8-mbtoucr.c: Likewise.
77243         * lib/unistr/u8-move.c: Likewise.
77244         * lib/unistr/u8-next.c: Likewise.
77245         * lib/unistr/u8-prev.c: Likewise.
77246         * lib/unistr/u8-set.c: Likewise.
77247         * lib/unistr/u8-startswith.c: Likewise.
77248         * lib/unistr/u8-stpcpy.c: Likewise.
77249         * lib/unistr/u8-stpncpy.c: Likewise.
77250         * lib/unistr/u8-strcat.c: Likewise.
77251         * lib/unistr/u8-strchr.c: Likewise.
77252         * lib/unistr/u8-strcmp.c: Likewise.
77253         * lib/unistr/u8-strcpy.c: Likewise.
77254         * lib/unistr/u8-strcspn.c: Likewise.
77255         * lib/unistr/u8-strdup.c: Likewise.
77256         * lib/unistr/u8-strlen.c: Likewise.
77257         * lib/unistr/u8-strmblen.c: Likewise.
77258         * lib/unistr/u8-strmbtouc.c: Likewise.
77259         * lib/unistr/u8-strncat.c: Likewise.
77260         * lib/unistr/u8-strncmp.c: Likewise.
77261         * lib/unistr/u8-strncpy.c: Likewise.
77262         * lib/unistr/u8-strnlen.c: Likewise.
77263         * lib/unistr/u8-strpbrk.c: Likewise.
77264         * lib/unistr/u8-strrchr.c: Likewise.
77265         * lib/unistr/u8-strspn.c: Likewise.
77266         * lib/unistr/u8-strstr.c: Likewise.
77267         * lib/unistr/u8-strtok.c: Likewise.
77268         * lib/unistr/u8-to-u16.c: Likewise.
77269         * lib/unistr/u8-to-u32.c: Likewise.
77270         * lib/unistr/u8-uctomb-aux.c: Likewise.
77271         * lib/unistr/u8-uctomb.c: Likewise.
77272         * lib/unitypes.h: Likewise.
77273         * lib/uniwidth.h: Likewise.
77274         * lib/uniwidth/cjk.h: Likewise.
77275         * lib/uniwidth/u16-strwidth.c: Likewise.
77276         * lib/uniwidth/u16-width.c: Likewise.
77277         * lib/uniwidth/u32-strwidth.c: Likewise.
77278         * lib/uniwidth/u32-width.c: Likewise.
77279         * lib/uniwidth/u8-strwidth.c: Likewise.
77280         * lib/uniwidth/u8-width.c: Likewise.
77281         * lib/uniwidth/width.c: Likewise.
77283 2007-10-07  Bruno Haible  <bruno@clisp.org>
77285         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
77286         The file is still under LGPL (see modules/inttypes).
77288 2007-10-06  Bruno Haible  <bruno@clisp.org>
77290         * modules/trunc (Dependencies): Add 'extensions'.
77291         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
77292         Reported by Ben Pfaff <blp@gnu.org>.
77294 2007-10-06  Bruno Haible  <bruno@clisp.org>
77296         * modules/freopen-tests: New file.
77297         * tests/test-freopen.c: New file.
77299         * modules/fopen-tests: New file.
77300         * tests/test-fopen.c: New file.
77302         * modules/fopen: New file.
77303         * lib/fopen.c: New file.
77304         * m4/fopen.m4: New file.
77305         * modules/freopen: New file.
77306         * lib/freopen.c: New file.
77307         * m4/freopen.m4: New file.
77308         * lib/stdio.in.h (fopen, freopen): New declarations.
77309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
77310         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
77311         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
77312         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
77313         * doc/functions/fopen.texi: Mention the 'fopen' module.
77314         * doc/functions/freopen.texi: Mention the 'freopen' module.
77316 2007-10-06  Bruno Haible  <bruno@clisp.org>
77318         * modules/open-tests: New file.
77319         * tests/test-open.c: New file.
77321         * modules/open: New file.
77322         * lib/open.c: New file.
77323         * m4/open.m4: New file.
77324         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
77325         lib/open.c does.
77326         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
77327         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
77328         macros.
77329         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
77330         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
77331         REPLACE_OPEN.
77332         * doc/functions/open.texi: Mention the 'open' module.
77334 2007-10-04  Bruno Haible  <bruno@clisp.org>
77336         * modules/ceill-tests: New file.
77337         * tests/test-ceill.c: New file.
77339         * modules/ceill: New file.
77340         * lib/ceill.c: Replace entire file.
77341         * m4/ceill.m4: New file.
77342         * lib/math.in.h (ceill): Replace declaration.
77343         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
77344         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
77345         * doc/functions/ceill.texi: Mention the 'ceill' module.
77346         * modules/mathl (Files): Remove lib/ceill.c.
77347         (Depends-on): Add ceill.
77349 2007-10-04  Bruno Haible  <bruno@clisp.org>
77351         * modules/ceilf-tests: New file.
77352         * tests/test-ceilf.c: New file.
77354         * modules/ceilf: New file.
77355         * lib/ceil.c: New file.
77356         * lib/ceilf.c: New file.
77357         * m4/ceilf.m4: New file.
77358         * lib/math.in.h (ceilf): New declaration.
77359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
77360         HAVE_DECL_CEILF.
77361         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
77362         HAVE_DECL_CEILF.
77363         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
77365 2007-10-04  Bruno Haible  <bruno@clisp.org>
77367         * modules/floorl-tests: New file.
77368         * tests/test-floorl.c: New file.
77370         * modules/floorl: New file.
77371         * lib/floorl.c: Replace entire file.
77372         * m4/floorl.m4: New file.
77373         * lib/math.in.h (floorl): Replace declaration.
77374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
77375         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
77376         * doc/functions/floorl.texi: Mention the 'floorl' module.
77377         * modules/mathl (Files): Remove lib/floorl.c.
77378         (Depends-on): Add floorl.
77380 2007-10-04  Bruno Haible  <bruno@clisp.org>
77382         * modules/floorf-tests: New file.
77383         * tests/test-floorf.c: New file.
77385         * modules/floorf: New file.
77386         * lib/floor.c: New file.
77387         * lib/floorf.c: New file.
77388         * m4/floorf.m4: New file.
77389         * lib/math.in.h (floorf): New declaration.
77390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
77391         HAVE_DECL_FLOORF.
77392         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
77393         HAVE_DECL_FLOORF.
77394         * doc/functions/floorf.texi: Mention the 'floorf' module.
77396 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
77397             Bruno Haible  <bruno@clisp.org>
77399         Advertise for the Git server instead of the CVS server.
77400         * doc/gnulib-intro.texi (Steady Development): Mention the Git
77401         repository instead of the CVS one.
77402         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
77403         about all VCS systems generically.
77404         * doc/gnulib.texi (Introduction): Capitalize `Git'.
77406 2007-10-04  Bruno Haible  <bruno@clisp.org>
77408         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
77409         means.
77410         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
77412 2007-10-04  Bruno Haible  <bruno@clisp.org>
77414         * modules/truncl-tests: New file.
77415         * tests/test-truncl.c: New file.
77417         * modules/truncl: New file.
77418         * lib/truncl.c: New file.
77419         * m4/truncl.m4: New file.
77420         * lib/math.in.h (truncl): New declaration.
77421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
77422         HAVE_DECL_TRUNCL.
77423         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
77424         HAVE_DECL_TRUNCL.
77425         * doc/functions/truncl.texi: Mention the 'truncl' module.
77427 2007-10-04  Bruno Haible  <bruno@clisp.org>
77429         * modules/truncf-tests: New file.
77430         * tests/test-truncf.c: New file.
77432         * modules/truncf: New file.
77433         * lib/trunc.c: Make paramerizable through USE_* macros.
77434         * lib/truncf.c: New file.
77435         * m4/truncf.m4: New file.
77436         * lib/math.in.h (truncf): New declaration.
77437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
77438         HAVE_DECL_TRUNCF.
77439         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
77440         HAVE_DECL_TRUNCF.
77441         * doc/functions/truncf.texi: Mention the 'truncf' module.
77443 2007-10-03  Bruno Haible  <bruno@clisp.org>
77445         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
77446         augmentation also for tests modules.
77447         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
77448         * modules/atexit-tests (Makefile.am): Likewise.
77449         * modules/binary-io-tests (Makefile.am): Likewise.
77450         * modules/c-strcase-tests (Makefile.am): Likewise.
77451         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
77452         * modules/canonicalize-tests (Makefile.am): Likewise.
77453         * modules/closein-tests (Makefile.am): Likewise.
77454         * modules/fprintf-posix-tests (Makefile.am): Likewise.
77455         * modules/freadahead-tests (Makefile.am): Likewise.
77456         * modules/fseek-tests (Makefile.am): Likewise.
77457         * modules/fseeko-tests (Makefile.am): Likewise.
77458         * modules/ftell-tests (Makefile.am): Likewise.
77459         * modules/ftello-tests (Makefile.am): Likewise.
77460         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
77461         * modules/isnanl-tests (Makefile.am): Likewise.
77462         * modules/lseek-tests (Makefile.am): Likewise.
77463         * modules/mbscasecmp-tests (Makefile.am): Likewise.
77464         * modules/mbscasestr-tests (Makefile.am): Likewise.
77465         * modules/mbschr-tests (Makefile.am): Likewise.
77466         * modules/mbscspn-tests (Makefile.am): Likewise.
77467         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
77468         * modules/mbspbrk-tests (Makefile.am): Likewise.
77469         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
77470         * modules/mbsrchr-tests (Makefile.am): Likewise.
77471         * modules/mbsspn-tests (Makefile.am): Likewise.
77472         * modules/mbsstr-tests (Makefile.am): Likewise.
77473         * modules/printf-posix-tests (Makefile.am): Likewise.
77474         * modules/snprintf-posix-tests (Makefile.am): Likewise.
77475         * modules/sprintf-posix-tests (Makefile.am): Likewise.
77476         * modules/tsearch-tests (Makefile.am): Likewise.
77477         * modules/uniname/uniname-tests (Makefile.am): Likewise.
77478         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
77479         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
77480         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
77481         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
77482         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
77483         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
77484         * modules/vprintf-posix-tests (Makefile.am): Likewise.
77485         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
77486         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
77487         * modules/xstrtoimax-tests (Makefile.am): Likewise.
77488         * modules/xstrtol-tests (Makefile.am): Likewise.
77489         * modules/xstrtoumax-tests (Makefile.am): Likewise.
77490         * modules/yesno-tests (Makefile.am): Likewise.
77492 2007-10-03  Bruno Haible  <bruno@clisp.org>
77494         * modules/trunc-tests: New file.
77495         * tests/test-trunc.c: New file.
77497         * modules/trunc: New file.
77498         * lib/trunc.c: New file.
77499         * m4/trunc.m4: New file.
77500         * lib/math.in.h (trunc): New declaration.
77501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
77502         HAVE_DECL_TRUNC.
77503         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
77504         HAVE_DECL_TRUNC.
77505         * doc/functions/trunc.texi: Mention the 'trunc' module.
77507 2007-10-03  Bruno Haible  <bruno@clisp.org>
77509         * tests/test-fpending.c: New file, mostly copied
77510         from coreutils/lib/t-fpending.c.
77511         * modules/fpending-tests: New file.
77513 2007-10-03  Bruno Haible  <bruno@clisp.org>
77515         Port the stdio extensions to QNX (untested).
77516         * lib/fseterr.c (fseterr): Add support for QNX.
77517         * lib/fbufmode.c (fbufmode): Likewise.
77518         * lib/freadable.c (freadable): Likewise.
77519         * lib/fwritable.c (fwritable): Likewise.
77520         * lib/freading.c (freading): Likewise.
77521         * lib/fwriting.c (fwriting): Likewise.
77522         * lib/freadahead.c (freadahed): Likewise.
77523         * lib/fpurge.c (fpurge): Likewise.
77524         * lib/fseeko.c (rpl_fseeko): Likewise.
77526 2007-10-03  Bruno Haible  <bruno@clisp.org>
77527             Jim Meyering  <jim@meyering.net>
77528             Eric Blake  <ebb9@byu.net>
77530         * doc/relocatable.texi: Use @command instead of @program.
77532 2007-10-02  Jim Meyering  <jim@meyering.net>
77534         Perform one more "_.h" -> ".in.h" substitution.
77535         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
77536         instead of unistd_.h here, too.
77538 2007-10-01  Bruno Haible  <bruno@clisp.org>
77540         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
77541         Needed for the alloca-opt module.
77543 2007-09-30  Bruno Haible  <bruno@clisp.org>
77545         * lib/alloca.in.h: Renamed from lib/alloca_.h.
77546         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
77547         alloca_.h.
77548         * lib/argz.in.h: Renamed from lib/argz_.h.
77549         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
77550         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
77551         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
77552         byteswap_.h.
77553         * lib/dirent.in.h: Renamed from lib/dirent_.h.
77554         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
77555         dirent_.h.
77556         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
77557         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
77558         fcntl_.h.
77559         * lib/float.in.h: Renamed from lib/float_.h.
77560         * modules/float (Files, Makefile.am): Use float.in.h instead of
77561         float_.h.
77562         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
77563         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
77564         fnmatch_.h.
77565         * lib/getopt.in.h: Renamed from lib/getopt_.h.
77566         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
77567         getopt_.h.
77568         * lib/glob.in.h: Renamed from lib/glob_.h.
77569         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
77570         * lib/iconv.in.h: Renamed from lib/iconv_.h.
77571         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
77572         iconv_.h.
77573         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
77574         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
77575         inttypes_.h.
77576         * lib/locale.in.h: Renamed from lib/locale_.h.
77577         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
77578         locale_.h.
77579         * lib/math.in.h: Renamed from lib/math_.h.
77580         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
77581         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
77582         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
77583         of netinet_in_.h. Add dependency.
77584         * lib/poll.in.h: Renamed from lib/poll_.h.
77585         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
77586         * lib/search.in.h: Renamed from lib/search_.h.
77587         * modules/search (Files, Makefile.am): Use search.in.h instead of
77588         search_.h.
77589         * lib/signal.in.h: Renamed from lib/signal_.h.
77590         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
77591         _signal.h.
77592         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
77593         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
77594         stdbool_.h.
77595         * lib/stdint.in.h: Renamed from lib/stdint_.h.
77596         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
77597         stdint_.h.
77598         * lib/stdio.in.h: Renamed from lib/stdio_.h.
77599         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
77600         stdio_.h.
77601         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
77602         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
77603         stdlib_.h.
77604         * lib/string.in.h: Renamed from lib/string_.h.
77605         * modules/string (Files, Makefile.am): Use string.in.h instead of
77606         string_.h.
77607         * doc/gnulib-tool.texi (Initial import): Update.
77608         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
77609         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
77610         of sys_select_.h. Add dependency.
77611         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
77612         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
77613         of sys_socket_.h.
77614         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
77615         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
77616         sys_stat_.h.
77617         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
77618         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
77619         sys_time_.h.
77620         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
77621         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
77622         sysexits_.h.
77623         * lib/time.in.h: Renamed from lib/time_.h.
77624         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
77625         * lib/unistd.in.h: Renamed from lib/unistd_.h.
77626         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
77627         unistd_.h.
77628         * lib/wchar.in.h: Renamed from lib/wchar_.h.
77629         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
77630         wchar_.h.
77631         * lib/wctype.in.h: Renamed from lib/wctype_.h.
77632         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
77633         wctype_.h.
77634         * build-aux/bootstrap (slurp): Update.
77635         * lib/.cppi-disable: Update.
77637 2007-09-30  Bruno Haible  <bruno@clisp.org>
77639         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
77640         Needed on BeOS.
77642 2007-09-30  Bruno Haible  <bruno@clisp.org>
77644         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
77646 2007-09-29  Bruno Haible  <bruno@clisp.org>
77648         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
77650 2007-09-29  Bruno Haible  <bruno@clisp.org>
77652         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
77653         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
77654         * build-aux/install-reloc: Compile also areadlink.c.
77655         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
77657 2007-09-29  Bruno Haible  <bruno@clisp.org>
77659         * gnulib-tool (func_emit_initmacro_done): Indentation.
77661 2007-09-29  Bruno Haible  <bruno@clisp.org>
77663         * README: Add CVS checkout update instructions.
77664         Info from Bob Proulx <bob@proulx.com>.
77666 2007-09-28  Eric Blake  <ebb9@byu.net>
77668         Provide move-if-change.
77669         * build-aux/move-if-change: New file, based on best practice
77670         rather than any canonical upstream location.
77672 2007-09-28  Jim Meyering  <jim@meyering.net>
77674         Fix canonicalize loop-detection corner case.
77675         Do not attempt to stat the symlink values stored via seen_triple.
77676         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
77677         on linux-2.6.18, (but not 2.6.22).
77678         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
77679         triple_compare.  The former compares dev,ino,filename, while the latter
77680         would actually stat dirname(filename) when dev and ino were equal.
77681         * lib/hash-triple.c: Install <string.h>.
77682         (STREQ): Define.
77683         (triple_compare_ino_str): New function.
77684         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
77686 2007-09-28  Eric Blake  <ebb9@byu.net>
77688         Enforce that AC_REPLACE_FUNCS files exist.
77689         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
77690         override check for typos.
77692         Fix test-closein on Solaris 10.
77693         * tests/test-closein.c (main): Don't assume stdin can be inherited
77694         closed on all systems.
77695         * tests/test-closein.sh: Likewise.
77696         Reported by Piotr Tarnowski.
77698 2007-09-28  Jim Meyering  <jim@meyering.net>
77700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
77702 2007-09-27  Jim Meyering  <jim@meyering.net>
77704         canonicalize: Avoid a false-positive cycle failure.
77705         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
77706         Sort.  Remove cycle-check.
77707         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
77708         not cycle-check.h.
77709         (seen_triple): New function.
77710         (canonicalize_filename_mode): Use it instead of cycle-check.
77711         * tests/test-canonicalize.c: Add a test for this bug.
77712         * tests/test-canonicalize.sh: Set up and run the test.
77714         New module, file-set, from coreutils.
77715         * modules/file-set: Define it.
77716         * lib/file-set.c, lib/file-set.h: Implement.
77718         New module, hash-triple, from coreutils.
77719         * modules/hash-triple: Define it.
77720         * lib/hash-triple.c, lib/hash-triple.h: Implement.
77722 2007-09-25  Eric Blake  <ebb9@byu.net>
77724         Fix strerror on Interix.
77725         * lib/string_.h (strerror): Declare replacement.
77726         * doc/functions/strerror.texi (strerror): Document the Interix
77727         shortcoming.
77728         * modules/string (Makefile.am): Support new hooks.
77729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
77730         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
77731         gl_FUNC_STRERROR_SEPARATE.
77732         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
77733         * lib/strerror.c (rpl_strerror): Provide replacement.
77734         * modules/strerror (Depends-on): Add string.
77735         (configure.ac): Detect use of module.
77736         * tests/test-strerror.c: New file.
77737         * modules/strerror-tests: New test module.
77738         * modules/argp (Depends-on): Add strerror.
77739         * modules/error (Depends-on): Likewise.
77740         Reported by Martin Koeppe.
77742 2007-09-24  Bruno Haible  <bruno@clisp.org>
77744         * README: Update git instructions.
77746 2007-09-24  Eric Blake  <ebb9@byu.net>
77748         Revert fpending breakage from 2007-09-08.
77749         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
77750         __fpending.c.
77752 2007-09-24  Jim Meyering  <jim@meyering.net>
77754         filenamecat.c: Add a test.
77755         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
77756         showing how the function works when DIR is the empty string.
77758 2007-09-21  Simon Josefsson  <simon@josefsson.org>
77760         * tests/test-canonicalize.sh: Turn on executable bit.
77762 2007-09-19  Eric Blake  <ebb9@byu.net>
77764         * README: Update CVS instructions.
77766 2007-09-18  Bruno Haible  <bruno@clisp.org>
77768         * modules/areadlink: New file.
77769         * lib/areadlink.h (areadlink): New declaration.
77770         * lib/areadlink.c: New file, based on lib/xreadlink.c.
77772 2007-09-17  Jim Meyering  <jim@meyering.net>
77774         * lib/savewd.c (ESTALE) [!defined]: Define.
77775         Reported to be required on Interix by Martin Koeppe.
77777 2007-09-17  Bruno Haible  <bruno@clisp.org>
77779         * gnulib-tool (func_version): Use $version.
77781 2007-09-16  Bruno Haible  <bruno@clisp.org>
77783         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
77784         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
77785         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
77786         Reported by Greg Schafer <gschafer@zip.com.au>.
77788 2007-09-15  Bruno Haible  <bruno@clisp.org>
77790         * gnulib-tool (sed): Try a little harder to make bash understand the
77791         alias.
77792         Reported by Bruce Korb <bruce.korb@gmail.com>.
77794 2007-09-13  Eric Blake  <ebb9@byu.net>
77796         * ChangeLog: Remove conflict markers.
77798 2007-09-13  Simon Josefsson  <simon@josefsson.org>
77800         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
77801         Reported by Bruno Haible <bruno@clisp.org>.
77803 2007-09-12  Bruno Haible  <bruno@clisp.org>
77805         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
77806         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
77807         is not defined.
77809 2007-09-12  Eric Blake  <ebb9@byu.net>
77811         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
77812         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
77813         Autoconf definition.
77814         * modules/euidaccess (Depends-on): Add extensions, for
77815         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
77816         * modules/fnmatch (Depends-on): Likewise.
77817         * modules/getaddrinfo (Depends-on): Likewise.
77818         * modules/getdelim (Depends-on): Likewise.
77819         * modules/getline (Depends-on): Likewise.
77820         * modules/getsubopt (Depends-on): Likewise.
77821         * modules/gettext (Depends-on): Likewise.
77822         * modules/group-member (Depends-on): Likewise.
77823         * modules/mbchar (Depends-on): Likewise.
77824         * modules/memmem (Depends-on): Likewise.
77825         * modules/mempcpy (Depends-on): Likewise.
77826         * modules/memrchr (Depends-on): Likewise.
77827         * modules/pagealign_alloc (Depends-on): Likewise.
77828         * modules/readutmp (Depends-on): Likewise.
77829         * modules/stpcpy (Depends-on): Likewise.
77830         * modules/stpncpy (Depends-on): Likewise.
77831         * modules/strchrnul (Depends-on): Likewise.
77832         * modules/strndup (Depends-on): Likewise.
77833         * modules/strsep (Depends-on): Likewise.
77834         * modules/strverscmp (Depends-on): Likewise.
77835         * modules/vasprintf (Depends-on): Likewise.
77836         * modules/wcwidth (Depends-on): Likewise.
77837         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
77838         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
77839         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
77840         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
77841         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
77842         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
77843         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
77844         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77845         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
77846         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
77847         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
77848         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
77849         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
77850         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
77851         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
77852         * m4/readutmp.m4 (gl_READUTMP): Likewise.
77853         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
77854         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
77855         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
77856         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
77857         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
77858         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
77859         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
77860         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
77861         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
77862         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
77863         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
77864         so that lock.m4 can be used in gettext without extensions module.
77866 2007-09-11  Bruno Haible  <bruno@clisp.org>
77868         * m4/isc-posix.m4: Remove file.
77869         Suggested by Eric Blake.
77871 2007-09-11  Eric Blake  <ebb9@byu.net>
77873         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
77875 2007-09-10  Bruno Haible  <bruno@clisp.org>
77877         * posix-modules: Fix typo in error message.
77878         Reported by Matt <mkraai@beckman.com>.
77880 2007-09-09  Bruno Haible  <bruno@clisp.org>
77882         * doc/functions/getdelim.texi: Update list of platforms lacking the
77883         function.
77884         * doc/functions/getline.texi: Likewise.
77886 2007-09-09  Jim Meyering  <jim@meyering.net>
77888         * lib/hash.c (hash_initialize): Detect calloc failure.
77889         Reported by Bruno Haible.
77891 2007-09-09  Bruno Haible  <bruno@clisp.org>
77893         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
77894         malloc or realloc fails.
77896 2007-09-09  Bruno Haible  <bruno@clisp.org>
77898         * modules/getcwd (Depends-on): Add malloc-posix.
77899         * modules/glob (Depends-on): Likewise.
77900         * modules/putenv (Depends-on): Likewise.
77901         * modules/strdup (Depends-on): Likewise.
77902         * modules/getdelim (Depends-on): Add realloc-posix.
77903         * modules/read-file (Depends-on): Likewise.
77905 2007-09-09  Bruno Haible  <bruno@clisp.org>
77907         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
77908         (gl_FUNC_MALLOC_POSIX): Require it.
77909         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
77910         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
77911         * modules/realloc (Files): Add m4/malloc.m4.
77912         * modules/calloc (Files): Likewise.
77914 2007-09-09  Bruno Haible  <bruno@clisp.org>
77916         * modules/malloc-posix: New file.
77917         * modules/malloc (Depends-on): Add malloc-posix.
77918         * lib/malloc.c: Include errno.h.
77919         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
77920         and a POSIX-compatible malloc into a single function. Set ENOMEM
77921         when returning NULL.
77922         * m4/malloc.m4: New file.
77923         * doc/functions/malloc.texi: Mention the malloc-posix module.
77924         * lib/stdlib_.h (malloc): New declaration.
77925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
77926         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
77927         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
77928         and HAVE_MALLOC_POSIX.
77930 2007-09-09  Bruno Haible  <bruno@clisp.org>
77932         * modules/realloc-posix: New file.
77933         * modules/realloc (Depends-on): Add realloc-posix.
77934         * lib/realloc.c: Include errno.h.
77935         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
77936         and a POSIX-compatible realloc into a single function. Set ENOMEM
77937         when returning NULL.
77938         * m4/realloc.m4: New file.
77939         * doc/functions/realloc.texi: Mention the realloc-posix module.
77940         * lib/stdlib_.h (realloc): New declaration.
77941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
77942         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
77943         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
77944         and HAVE_REALLOC_POSIX.
77946 2007-09-09  Bruno Haible  <bruno@clisp.org>
77948         * modules/calloc-posix: New file.
77949         * modules/calloc (Depends-on): Add calloc-posix.
77950         * lib/calloc.c: Include errno.h.
77951         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
77952         and a POSIX-compatible calloc into a single function. Set ENOMEM
77953         when returning NULL.
77954         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
77955         * doc/functions/calloc.texi: Mention the calloc-posix module.
77956         * lib/stdlib_.h (calloc): New declaration.
77957         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
77958         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
77959         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
77960         and HAVE_CALLOC_POSIX.
77962 2007-09-09  Bruno Haible  <bruno@clisp.org>
77964         Allow for modules to show an arbitrary notice.
77965         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
77966         * gnulib-tool: New option --extract-notice.
77967         (func_usage): Document it.
77968         (sed_extract_prog): Update.
77969         (func_get_notice): New function.
77970         (func_modules_notice): New function.
77971         (func_import, func_create_testdir): Invoke it.
77972         Suggested by Jim Meyering.
77974 2007-09-09  Bruno Haible  <bruno@clisp.org>
77976         * gnulib-tool: New options --verbose, --quiet.
77977         (func_usage): Document them.
77978         (verbose): New variable.
77979         (func_execute_command): New function.
77980         (func_import): Don't show the module list and the file list if
77981         $verbose < 0.
77982         (func_create_testdir): Likewise. Use func_execute_command.
77983         (func_create_megatestdir): Use func_execute_command.
77985 2007-09-08  Bruno Haible  <bruno@clisp.org>
77987         * gnulib-tool (func_import): Prefer rsync over wget when available,
77988         for fetching the PO files.
77990 2007-09-08  Bruno Haible  <bruno@clisp.org>
77992         * posix-modules: New file. Portions copied from gnulib-tool.
77993         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
77995 2007-09-08  Jim Meyering  <jim@meyering.net>
77997         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
77998         * lib/fpending.h: Rename from __fpending.h.
77999         * lib/fpending.c: Rename from __fpending.c.
78000         Include "fpending.h", not "__fpending.h".
78001         * lib/__fpending.h, lib/__fpending.c: Remove files.
78002         * modules/fpending (Files): Reflect new file names.
78003         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
78005 2007-09-08  Bruno Haible  <bruno@clisp.org>
78007         * m4/inttypes-h.m4: Remove stub file.
78009 2007-09-07  Simon Josefsson  <simon@josefsson.org>
78011         * doc/headers/stdint.texi: Discuss #include_next issue.
78013 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78015         * build-aux/bootstrap: Remove obsolete comment about wget --help.
78017 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78019         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
78020         in variable name.
78022 2007-09-03  Jim Meyering  <jim@meyering.net>
78024         New module: git-version-gen.
78025         * modules/git-version-gen: New file.
78027         Import changes from coreutils for bootstrap script.
78029         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
78031         bootstrap: uses rsync to download the .po files
78032         * build-aux/bootstrap (po_download_command_format): New global.
78033         (download_po_files): Use rsync.
78034         (update_po_files): Don't remove .po files after download,
78035         so future rsync runs can take advantage of the copies.
78037         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
78039         Solve the unnecessary-.po-file-regeneration problem once and for all.
78040         * build-aux/bootstrap (download_po_files): New function, renamed from
78041         get_translations.  Now, downloads, but doesn't update LINGUAS.
78042         (update_po_files): New function.
78044         bootstrap: Ignore more.
78045         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
78046         uniwidth to e.g., lib/.gitignore.
78047         (slurp): Handle the sys_stat_.h -> sys mapping, too.
78049         * build-aux/bootstrap: New setting: vc_ignore.
78050         (insert_sorted_if_absent): Create $file if absent.
78051         Adapt to new, possibly empty, list: $vc_ignore.
78053         bootstrap: generate more ignorable names
78054         * build-aux/bootstrap (slurp): When generating ignorable names,
78055         also map .sin to .sed, .gperf to .c, and .y to .c.
78057 2007-09-03  Jim Meyering  <jim@meyering.net>
78059         * build-aux/git-version-gen: New file, from coreutils.  For details, see
78060         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
78062 2007-09-02  Bruno Haible  <bruno@clisp.org>
78064         Fix mis-recognition of 'mcs' on QNX 6.
78065         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
78066         output contains the string "Mono".
78067         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
78068         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
78070 2007-09-01  Bruno Haible  <bruno@clisp.org>
78072         Fix collision between uniwidth/* and linebreak modules.
78073         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
78074         u32_width): Remove declarations.
78075         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
78076         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
78077         streq3, streq2, streq1, streq0): Remove functions.
78078         (STREQ): Remove macro.
78079         (is_cjk_encoding): Remove function.
78080         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
78081         (uc_width, u8_width, u16_width, u32_width): Remove functions.
78082         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
78083         * NEWS: Document the change.
78085 2007-09-01  Bruno Haible  <bruno@clisp.org>
78087         * lib/streq.h: Add double-inclusion guard.
78089 2007-09-01  Karl Berry  <karl@gnu.org>
78091         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
78093 2007-08-28  Jim Meyering  <jim@meyering.net>
78095         Rename mreadlink_with_size to areadlink_with_size.
78096         * NEWS: Document the change.
78097         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
78098         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
78099         * lib/mreadlink.h: Rename this to...
78100         * lib/areadlink.h: ...this.
78101         * modules/mreadlink-with-size: Rename this to...
78102         * modules/areadlink-with-size: ...this.
78103         * lib/canonicalize.c: Reflect the renaming.
78104         * modules/canonicalize: Likewise.
78106 2007-08-26  Bruno Haible  <bruno@clisp.org>
78108         * gnulib-tool (func_import): When deciding which files to remove,
78109         consider also dangling symbolic links.
78110         Reported by Eric Blake.
78112 2007-08-26  Bruno Haible  <bruno@clisp.org>
78114         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
78116 2007-08-23  Simon Josefsson  <simon@josefsson.org>
78118         * lib/readline.c: Don't include getline.h, the prototype is now
78119         found in stdio.h.
78121 2007-08-23  Jim Meyering  <jim@meyering.net>
78123         Getdelim touchup.
78124         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
78125         around the funlockfile call, since funlockfile never sets errno.
78126         Don't set errno upon failed realloc.
78128 2007-08-22  Eric Blake  <ebb9@byu.net>
78130         Getline touchups.
78131         * lib/getdelim.c (getdelim): Revert regression that required *n to
78132         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
78133         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
78134         getdelim, rather than whether implementation is missing.
78135         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
78136         * lib/stdio_.h (getline): Also declare if replacement is
78137         required.
78138         * doc/functions/getdelim.texi: New file.
78139         * doc/functions/getline.texi: Likewise.
78140         * doc/gnulib.texi (Function Substitutes): Add new files.
78141         Reported by Bruno Haible.
78143 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
78145         * users.txt: Add Guile.
78147 2007-08-22  Eric Blake  <ebb9@byu.net>
78149         * tests/test-getdelim.c (main): Use remove, not unlink.
78150         * tests/test-getline.c (main): Likewise.
78152         Move getline and getdelim into stdio.h, per POSIX 200x.
78153         * modules/getline (Files): Remove getline.h.
78154         (Depends-on): Add stdio.
78155         (configure.ac): Add module indicator.
78156         * modules/getdelim (Files): Remove getdelim.h.
78157         (Depends-on): Add stdio.
78158         (configure.ac): Add module indicator.
78159         * modules/stdio (Makefile.am): Work with new indicators.
78160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
78161         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
78162         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
78163         * lib/getdelim.h: Delete.
78164         * lib/getline.h: Delete.
78165         * lib/stdio_.h (getdelim, getline): Declare.
78166         * modules/getdelim-tests: New module.
78167         * modules/getline-tests: Likewise.
78168         * tests/test-getdelim.c: New file.
78169         * tests/test-getline.c: Likewise.
78170         * NEWS: Document the change.
78171         * lib/getline.c: Update choice of header.
78172         * lib/csharpcomp.c: Likewise.
78173         * lib/getpass.c: Likewise.
78174         * lib/javacomp.c: Likewise.
78175         * lib/javaversion.c: Likewise.
78176         * lib/yesno.c: Likewise.
78177         * lib/getdelim.c: Likewise.
78178         (getdelim): Set errno on failure, and avoid memory leak.
78180 2007-08-19  Bruno Haible  <bruno@clisp.org>
78182         * modules/closein (Depends-on): Add freadahead.
78183         * lib/closein.c: Include freadahead.h.
78184         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
78185         is zero.
78187 2007-08-19  Bruno Haible  <bruno@clisp.org>
78189         * modules/freadahead-tests: New file.
78190         * tests/test-freadahead.sh: New file.
78191         * tests/test-freadahead.c: New file.
78193         * modules/freadahead: New file.
78194         * lib/freadahead.h: New file.
78195         * lib/freadahead.c: New file.
78196         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
78197         fbufmode, fpurge, freadable, fwritable.
78199 2007-08-19  Eric Blake  <ebb9@byu.net>
78201         Test yesno in combination with closein.
78202         * lib/yesno.c (yesno): Document use of stdin.
78203         * modules/yesno-tests (Files): New module.
78204         * tests/test-yesno.c (main): New file.
78205         * tests/test-yesno.sh: Likewise.
78207 2007-08-19  Bruno Haible  <bruno@clisp.org>
78209         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
78210         * lib/fseeko.c (rpl_fseeko): Likewise.
78211         * lib/fseterr.c (fseterr): Likewise.
78213 2007-08-19  Bruno Haible  <bruno@clisp.org>
78215         * tests/test-lseek.c (main): Disable a test for BeOS.
78216         * doc/functions/lseek.texi: Document the BeOS bug.
78218 2007-08-19  Bruno Haible  <bruno@clisp.org>
78219             Eric Blake  <ebb9@byu.net>
78221         * lib/lseek.c: Include <sys/stat.h>.
78222         (rpl_lseek): Add workaround code also for Unix platforms.
78223         Needed for BeOS.
78224         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
78225         * doc/functions/lseek.texi: Document BeOS definiency.
78227 2007-08-18  Bruno Haible  <bruno@clisp.org>
78229         * modules/fstrcmp-tests: New file.
78230         * tests/test-fstrcmp.c: New file.
78232 2007-08-18  Bruno Haible  <bruno@clisp.org>
78234         * modules/fstrcmp: New file, from GNU gettext with modifications.
78235         * lib/fstrcmp.h: New file, from GNU gettext.
78236         * lib/fstrcmp.c: New file, from GNU gettext.
78237         * MODULES.html.sh (String handling): Add fstrcmp.
78239 2007-08-18  Bruno Haible  <bruno@clisp.org>
78241         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
78242         'bool'.
78243         (diag, compareseq): Remove const from the ctxt argument.
78244         (USE_HEURISTIC): Undefine at the end.
78246 2007-08-18  Jim Meyering  <jim@meyering.net>
78248         New file: lib/idcache.h
78249         * NEWS: Mention the addition.
78250         * modules/idcache (Files): Add lib/idcache.h
78251         * lib/idcache.c: Include "idcache.h".
78252         Don't include <sys/types.h>.
78253         Add a FIXME comment.
78254         Move file-scoped "static" declarations to the top.
78255         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
78257 2007-08-17  Bruno Haible  <bruno@clisp.org>
78258         and Paul Eggert  <eggert@cs.ucla.edu>
78260         * MODULES.html.sh: Add diffseq.
78261         * modules/diffseq: New file.
78262         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
78263         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
78265 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78267         Import changes from coreutils for bootstrap script.
78269         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
78271         * build-aux/bootstrap (slurp): Work even in environments where
78272         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
78273         current code does not slurp files whose names start with ".", and
78274         this looks like it might be a troublesome area.
78276         2007-07-11  Jim Meyering  <jim@meyering.net>
78278         If there's a GPL vN copyright comment, require that N == 3.
78280         2007-07-08  Jim Meyering  <jim@meyering.net>
78282         Run the coreutils-specific code only if tests/Makefile.am.in exists.
78283         * build-aux/bootstrap (mam_template): Move definition out of loop.
78285         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
78287         * build-aux/bootstrap (symlink_to_dir): Rename function from
78288         symlink_to_gnulib.  Add a directory parameter.  Update all
78289         callers.
78290         (cp_mark_as_generated): Also check for -- and link to -- files in
78291         gl/.
78293         2007-07-08  Jim Meyering  <jim@meyering.net>
78295         Adapt to deeper hierarchy in gnulib.
78296         * build-aux/bootstrap (symlink_to_dir): If the destination
78297         directory doesn't exist, create it. This is required at least for
78298         "lib/uniwidth/cjk.h".
78300         2007-05-15  Jim Meyering  <jim@meyering.net>
78302         * build-aux/bootstrap: Now that generated Makefile.am files
78303         are no longer under version control, they must be created at
78304         bootstrap time.
78306 2007-08-14  Ben Pfaff  <blp@gnu.org>
78308         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
78310 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78312         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
78313         given the changes below.
78314         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
78315         even on hosts that have padding bits beyond the supported 64.
78317 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78319         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
78320         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
78321         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
78322         depends on it.
78323         (xstrtol_error): Remove.
78324         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
78325         but with a different signature.
78326         (ATTRIBUTE_NORETURN, __attribute__): New macros.
78327         * lib/xstrtol-error.c: Include exitfail.h.
78328         (xstrtol_fatal): New function, with a different signature from the
78329         old xstrtol_error, so that the caller need not worry about passing
78330         in an exit status, or about storage management of the option argument.
78331         (xstrtol_error): Now a static function.  Redo signature to
78332         implement xstrtol_fatal.  Output the correct number of hyphens in
78333         front of the option so that the caller need not worry about
78334         storage management.
78335         (N_): New macro.
78336         (_): Remove; not used now.
78337         * modules/xstrtol: Depend on getopt.
78338         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
78339         of old STRTOL_FATAL_ERROR macro.
78340         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
78341         of test program.
78342         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
78343         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
78345 2007-08-08  Eric Blake  <ebb9@byu.net>
78347         * lib/xstrtol-error.c: Add missing include.
78349         Move xstrtol messages into gnulib domain, when --pobase is used.
78350         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
78351         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
78352         * modules/xstrtol (Files): Distribute new file.
78353         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
78354         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
78355         * tests/test-xstrtol.c: ...into new file.
78356         * tests/test-xstrtoul.c: Also test xstrtoul.
78357         * tests/test-xstrtoimax.c: Also test xstrtoimax.
78358         * tests/test-xstrtoumax.c: Also test xstrtoumax.
78359         * tests/test-xstrtol.sh: Drive the tests.
78360         * tests/test-xstrtoimax.sh: Likewise.
78361         * tests/test-xstrtoumax.sh: Likewise.
78362         * modules/xstrtol-tests: New module.
78363         * modules/xstrtoimax-tests: Likewise.
78364         * modules/xstrtoumax-tests: Likewise.
78366 2007-08-08  Jim Meyering  <jim@meyering.net>
78368         New function: mfile_name_concat.
78369         * lib/filenamecat.c (mfile_name_concat): New function, just like
78370         file_name_concat, but return NULL upon failure rather than exiting
78371         with a diagnostic.
78372         * lib/filenamecat.h: Declare it.
78374 2007-08-07  Bruno Haible  <bruno@clisp.org>
78376         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
78377         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
78378         warning from gcc.
78379         Reported by Eric Blake.
78381 2007-08-07  Simon Josefsson  <simon@josefsson.org>
78383         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
78384         * modules/crypto/arcfour (License): Likewise.
78385         * modules/crypto/des-tests (License): Likewise.
78386         * modules/crypto/gc-arctwo-tests (License): Likewise.
78387         * modules/crypto/gc-des-tests (License): Likewise.
78388         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
78389         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
78390         * modules/crypto/gc-md2-tests (License): Likewise.
78391         * modules/crypto/gc-md4-tests (License): Likewise.
78392         * modules/crypto/gc-md5-tests (License): Likewise.
78393         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
78394         * modules/crypto/gc-rijndael-tests (License): Likewise.
78395         * modules/crypto/gc-sha1-tests (License): Likewise.
78396         * modules/crypto/gc-tests (License): Likewise.
78397         * modules/crypto/hmac-md5 (License): Likewise.
78398         * modules/crypto/hmac-sha1 (License): Likewise.
78399         * modules/crypto/md2-tests (License): Likewise.
78400         * modules/crypto/md4-tests (License): Likewise.
78401         * modules/crypto/md5 (License): Likewise.
78402         * modules/crypto/rijndael (License): Likewise.
78403         * modules/crypto/sha1 (License): Likewise.
78404         * modules/memxor (License): Likewise.
78406 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78407         and Bruno Haible  <bruno@clisp.org>
78409         * NEWS: Describe interface changes to human, xstrtol.
78410         * lib/human.h: Include <xstrtol.h>.
78411         (human_options): Return enum strtol_error, not int.  Remove
78412         bool arg; take int * instead.
78413         * lib/human.c: Don't include "gettext.h".
78414         (_): Remove; no longer used.
78415         Don't include <xstrtol.h>, since human.h does it.
78416         (human_options): Adjust to abovementioned interface changes.
78417         Do not report error to stderr; that's now the caller's
78418         responsibility.
78419         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
78420         interface change.
78421         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
78422         Str, Argument_type_string.  All uses changed.  Put " argument"
78423         in diagnostics to make them clearer.  Change wording of suffix
78424         message for clarity.
78425         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
78426         Argument_type_string.
78427         (STRTOL_FATAL_WARN): Remove; no longer used.
78428         * modules/human (Depends-on): Remove gettext-h.
78430 2007-08-06  Simon Josefsson  <simon@josefsson.org>
78432         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
78434 2007-07-31  Bruno Haible  <bruno@clisp.org>
78436         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
78437         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
78438         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
78440 2007-07-31  Bruno Haible  <bruno@clisp.org>
78442         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
78443         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
78445 2007-07-30  Bruno Haible  <bruno@clisp.org>
78447         * modules/base64 (License): Use the synonymous term "LGPLv2+".
78448         * modules/c-ctype (License): Likewise.
78449         * modules/c-strcase (License): Likewise.
78450         * modules/check-version (License): Likewise.
78451         * modules/iconv (License): Likewise.
78452         * modules/iconv_open (License): Likewise.
78453         * modules/read-file (License): Likewise.
78454         * modules/striconv (License): Likewise.
78455         * modules/strverscmp (License): Likewise.
78456         * modules/vasprintf (License): Likewise.
78457         * modules/crypto/des (License): Likewise.
78458         * modules/crypto/gc (License): Likewise.
78459         * modules/crypto/gc-arcfour (License): Likewise.
78460         * modules/crypto/gc-arctwo (License): Likewise.
78461         * modules/crypto/gc-des (License): Likewise.
78462         * modules/crypto/gc-hmac-md5 (License): Likewise.
78463         * modules/crypto/gc-hmac-sha1 (License): Likewise.
78464         * modules/crypto/gc-md2 (License): Likewise.
78465         * modules/crypto/gc-md4 (License): Likewise.
78466         * modules/crypto/gc-md5 (License): Likewise.
78467         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
78468         * modules/crypto/gc-random (License): Likewise.
78469         * modules/crypto/gc-rijndael (License): Likewise.
78470         * modules/crypto/gc-sha1 (License): Likewise.
78471         * modules/crypto/md2 (License): Likewise.
78472         * modules/crypto/md4 (License): Likewise.
78474 2007-07-30  Jim Meyering  <jim@meyering.net>
78476         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
78477         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
78478         it has valid stat data.  This bug would cause du not to count the
78479         sizes of inaccessible directories.
78480         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
78481         in <http://bugzilla.redhat.com/250077>.
78483 2007-07-25  Peter O'Gorman  <peter@pogma.com>
78484             Bruno Haible  <bruno@clisp.org>
78486         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
78487         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
78488         #include_next, gives a diagnostic about it, but reports no error in
78489         the exit code.
78490         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
78492 2007-07-24  Ben Pfaff  <blp@gnu.org>
78494         Improve name: "count-one-bits" is better than "popcount".
78495         * MODULES.html.sh: Update name.
78496         * lib/popcount.h: Renamed lib/count-one-bits.h.
78497         (popcount): Renamed count_one_bits.
78498         (popcountl): Renamed count_one_bits_l.
78499         (popcountll): Renamed count_one_bits_ll.
78500         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
78501         * modules/popcount: Renamed module/count-one-bits.
78502         * modules/popcount-tests: Renamed module/count-one-bits-tests.
78503         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
78505 2007-07-23  Ben Pfaff  <blp@gnu.org>
78507         * lib/popcount.h (popcount32): Reduce size of constants, to allow
78508         better code generation, and add U to large constants to avoid
78509         warnings, in non-GCC case.
78510         Suggested by Bruno Haible.
78512 2007-07-23  Ben Pfaff  <blp@gnu.org>
78514         * lib/popcount.h: Use verify_true instead of if...abort.
78515         * modules/popcount: Depend on verify module.
78516         Suggested by Jim Meyering.
78518 2007-07-23  Bruno Haible  <bruno@clisp.org>
78520         * gnulib-tool (func_import): Create a .cvsignore file also when the
78521         directory is not yet in CVS but the toplevel directory is. When
78522         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
78523         Reported by Karl Berry.
78525 2007-07-22  Ben Pfaff  <blp@gnu.org>
78527         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
78528         case.
78529         Suggested by Eric Blake.
78531 2007-07-22  Ben Pfaff  <blp@gnu.org>
78533         New module: popcount.
78534         * MODULES.html.sh: Add popcount.
78535         * modules/popcount: New file.
78536         * modules/popcount-tests: New file.
78537         * tests/test-popcount.c: New file.
78538         * lib/popcount.h: New file.
78539         * m4/popcount.m4: New file.
78541 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78543         * build-aux/announce-gen: Update to GPLv3.
78545         * build-aux/config.guess: Update from config.
78547 2007-07-21  Bruno Haible  <bruno@clisp.org>
78549         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
78550         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
78552 2007-07-20  Jim Meyering  <jim@meyering.net>
78554         * check-module: Diagnose a self-dependency.
78556 2007-07-19  Bruno Haible  <bruno@clisp.org>
78558         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
78559         empty.
78560         Reported by Eric Blake.
78562 2007-07-18  Bruno Haible  <bruno@clisp.org>
78564         * gnulib-tool: New options --po-base, --po-domain.
78565         (func_usage): Document them.
78566         (pobase, po_domain): New variables.
78567         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
78568         DEFAULT_TEXT_DOMAIN.
78569         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
78570         (func_import): Consider pobase and po_domain. Create a po/ directory.
78571         (func_create_testdir): Set pobase and po_domain to empty.
78572         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
78573         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
78575 2007-07-18  Bruno Haible  <bruno@clisp.org>
78577         * gnulib-tool (func_get_automake_snippet): Synthesize also an
78578         EXTRA_DIST augmentation for files in build-aux/.
78580 2007-07-16  Bruno Haible  <bruno@clisp.org>
78582         * modules/lseek (License): Use the synonymous term "LGPLv2+".
78583         * modules/getdelim (License): Likewise.
78585 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78587         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
78588         * modules/d-type (License): Likewise.
78589         * modules/extensions (License): Likewise.
78590         * modules/fnmatch (License): Likewise.
78591         * modules/fseeko (License): Likewise.
78592         * modules/getaddrinfo (License): Likewise.
78593         * modules/getline (License): Likewise.
78594         * modules/getlogin_r (License): Likewise.
78595         * modules/getpass (License): Likewise.
78596         * modules/gettimeofday (License): Likewise.
78597         * modules/glob (License): Likewise.
78598         * modules/inet_ntop (License): Likewise.
78599         * modules/malloc (License): Likewise.
78600         * modules/malloca (License): Likewise.
78601         * modules/memmem (License): Likewise.
78602         * modules/mempcpy (License): Likewise.
78603         * modules/memset (License): Likewise.
78604         * modules/minmax (License): Likewise.
78605         * modules/mktime (License): Likewise.
78606         * modules/netinet_in (License): Likewise.
78607         * modules/pathmax (License): Likewise.
78608         * modules/poll (License): Likewise.
78609         * modules/regex (License): Likewise.
78610         * modules/snprintf (License): Likewise.
78611         * modules/stdbool (License): Likewise.
78612         * modules/stdint (License): Likewise.
78613         * modules/stdio (License): Likewise.
78614         * modules/strcase (License): Likewise.
78615         * modules/strcasestr (License): Likewise.
78616         * modules/strdup (License): Likewise.
78617         * modules/string (License): Likewise.
78618         * modules/strndup (License): Likewise.
78619         * modules/strnlen (License): Likewise.
78620         * modules/strpbrk (License): Likewise.
78621         * modules/strptime (License): Likewise.
78622         * modules/strsep (License): Likewise.
78623         * modules/sys_select (License): Likewise.
78624         * modules/sys_socket (License): Likewise.
78625         * modules/sys_stat (License): Likewise.
78626         * modules/sys_time (License): Likewise.
78627         * modules/time (License): Likewise.
78628         * modules/time_r (License): Likewise.
78629         * modules/timegm (License): Likewise.
78630         * modules/unistd (License): Likewise.
78631         * modules/vsnprintf (License): Likewise.
78632         * modules/wctype (License): Likewise.
78634 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78636         * modules/argz (License): LGPLv2+.
78638 2007-07-15  Karl Berry  <karl@gnu.org>
78640         * doc/gnulib.texi: revise node structure per new fdl.texi.
78642 2007-07-14  Bruno Haible  <bruno@clisp.org>
78644         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
78645         the output file.
78646         * lib/uniname/uninames.h: Regenerated.
78648 2007-07-14  Karl Berry  <karl@gnu.org>
78650         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
78651         omitting sectioning and index commands.
78653 2007-07-13  Bruno Haible  <bruno@clisp.org>
78655         New gnulib-tool option --more-symlinks.
78656         * gnulib-tool (func_usage): Document --more-symlinks.
78657         (do_copyrights): New variable.
78658         Recognize option --more-symlinks.
78659         (func_import): Don't add a copyright notice transform to
78660         sed_transform_lib_file if do_copyrights is empty.
78662 2007-07-13  Bruno Haible  <bruno@clisp.org>
78664         * lib/vasnprintf.c (decimal_point_char): Define also if
78665         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
78666         && !NEED_PRINTF_DIRECTIVE_A.
78667         Reported by Clemens Koller <clemens.koller@anagramm.de> via
78668         Gary V. Vaughan <gary@gnu.org>.
78670 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
78672         * lib/inttypes_.h: Undo previous change, since it was fixed
78673         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
78675 2007-07-13  Bruno Haible  <bruno@clisp.org>
78677         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
78678         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
78680 2007-07-13  Jim Meyering  <jim@meyering.net>
78682         df: Don't fail for Tru64's "file-on-file mount".
78683         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
78684         so we fall through and use statfs instead.  Details here:
78685         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
78686         Reported by Albert Chin.
78688 2007-07-13  Bruno Haible  <bruno@clisp.org>
78690         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
78691         * modules/configmake (License): Likewise.
78692         * modules/gettext (License): Likewise.
78693         * modules/gettext-h (License): Likewise.
78694         * modules/include_next (License): Likewise.
78695         * modules/link-warning (License): Likewise.
78696         * modules/localcharset (License): Likewise.
78697         * modules/localename (License): Likewise.
78698         * modules/lock (License): Likewise.
78699         * modules/relocatable-lib-lgpl (License): Likewise.
78700         * modules/size_max (License): Likewise.
78701         * modules/vasnprintf (License): Likewise.
78702         * modules/wchar (License): Likewise.
78703         * modules/xsize (License): Likewise.
78705 2007-07-13  Bruno Haible  <bruno@clisp.org>
78707         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
78708         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
78710 2007-07-12  Bruno Haible  <bruno@clisp.org>
78712         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
78713         in the modules files.
78715 2007-07-11  Karl Berry  <karl@gnu.org>
78717         * MODULES.html.sh (func_module): use
78718          sed -e '\|^'"${includefile}"'$|d'
78719          instead of /.../d, to avoid errors on $includefile's containing /.
78721 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78723         * gnulib-tool (func_import): Avoid duplication of --avoid
78724         statements
78725         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
78726         names to `_' in variable names.
78728 2007-07-10  Eric Blake  <ebb9@byu.net>
78730         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
78731         * NEWS: Document this change.
78733 2007-07-08  Bruno Haible  <bruno@clisp.org>
78735         Update to Unicode 5.0.
78736         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
78737         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
78738         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
78739         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
78740         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
78741         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
78742         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
78743         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
78744         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
78745         U+10A3F, U+1D242..U+1D244.
78746         (nonspacing_table_ind): Update.
78747         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
78748         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
78750 2007-07-08  Bruno Haible  <bruno@clisp.org>
78752         Update to Unicode 5.0.
78753         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
78754         code transform. Extend the name index field of unicode_name_to_code and
78755         unicode_code_to_name from 16 to 24 bits.
78756         * lib/uniname/uniname.c (unicode_character_name,
78757         unicode_name_character): Add the range 0x12xxx to the code transform.
78758         * lib/uniname/uninames.h: Regenerated.
78759         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
78761 2007-07-07  Bruno Haible  <bruno@clisp.org>
78763         * modules/wcwidth-tests: New file.
78764         * tests/test-wcwidth.c: New file.
78766         Work around MacOS X wcwidth() bug.
78767         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
78768         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
78769         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
78770         original wcwidth in non-UTF-8 locales.
78771         * modules/wcwidth (Depends-on): Add localcharset, streq,
78772         uniwidth/width.
78773         * doc/functions/wcwidth.texi: Update.
78775 2007-07-07  Bruno Haible  <bruno@clisp.org>
78777         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
78778         (wcwidth): New declaration.
78779         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
78780         macros.
78781         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
78782         here. Prepare for creating <wchar.h> unconditionally.
78783         * modules/wchar (Depends-on): Add link-warning.
78784         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
78785         REPLACE_WCWIDTH, and GL_LINK_WARNING.
78786         * lib/wcwidth.h: Remove file.
78787         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
78788         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
78789         * modules/wcwidth (Files): Remove lib/wcwidth.h.
78790         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
78791         (Include): Replace wcwidth.h with <wchar.h>.
78792         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
78793         * lib/mbchar.h: Don't include wcwidth.h.
78794         * lib/mbswidth.c: Likewise.
78795         * NEWS: Mention the change.
78797 2007-07-07  Bruno Haible  <bruno@clisp.org>
78799         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
78800         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
78801         definition with an external declaration.
78802         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
78803         defined as a function. Remove AC_C_INLINE requirement.
78804         * modules/wcwidth (Files): Add lib/wcwidth.c.
78805         (Makefile.am): Remove redundant statement.
78807 2007-07-07  Bruno Haible  <bruno@clisp.org>
78809         * MODULES.html.sh (Unicode string functions): Add the new modules.
78811         * tests/uniwidth/test-u32-strwidth.c: New file.
78812         * modules/uniwidth/u32-strwidth-tests: New file.
78814         * lib/uniwidth/u32-strwidth.c: New file.
78815         * modules/uniwidth/u32-strwidth: New file.
78817         * tests/uniwidth/test-u16-strwidth.c: New file.
78818         * modules/uniwidth/u16-strwidth-tests: New file.
78820         * lib/uniwidth/u16-strwidth.c: New file.
78821         * modules/uniwidth/u16-strwidth: New file.
78823         * tests/uniwidth/test-u8-strwidth.c: New file.
78824         * modules/uniwidth/u8-strwidth-tests: New file.
78826         * lib/uniwidth/u8-strwidth.c: New file.
78827         * modules/uniwidth/u8-strwidth: New file.
78829         * tests/uniwidth/test-u32-width.c: New file.
78830         * modules/uniwidth/u32-width-tests: New file.
78832         * lib/uniwidth/u32-width.c: New file.
78833         * modules/uniwidth/u32-width: New file.
78835         * tests/uniwidth/test-u16-width.c: New file.
78836         * modules/uniwidth/u16-width-tests: New file.
78838         * lib/uniwidth/u16-width.c: New file.
78839         * modules/uniwidth/u16-width: New file.
78841         * tests/uniwidth/test-u8-width.c: New file.
78842         * modules/uniwidth/u8-width-tests: New file.
78844         * lib/uniwidth/u8-width.c: New file.
78845         * modules/uniwidth/u8-width: New file.
78847         * tests/uniwidth/test-uc_width.c: New file.
78848         * modules/uniwidth/width-tests: New file.
78850         * lib/uniwidth/width.c: New file, from GNU libiconv.
78851         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
78852         * modules/uniwidth/width: New file.
78854         * lib/uniwidth.h: New file, from GNU libiconv.
78855         * modules/uniwidth/base: New file.
78857 2007-07-07  Bruno Haible  <bruno@clisp.org>
78859         * lib/uniname.h: New file, from GNU gettext.
78860         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
78861         * lib/uniname/uninames.h: New file, from GNU gettext.
78862         * lib/uniname/uniname.c: New file, from GNU gettext.
78863         * tests/uniname/test-uninames.sh: New file.
78864         * tests/uniname/test-uninames.c: New file, from GNU gettext.
78865         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
78866         * modules/uniname/base: New file.
78867         * modules/uniname/uniname: New file.
78868         * modules/uniname/uniname-tests: New file.
78869         * MODULES.html.sh (Unicode string functions): Add the new modules.
78871 2007-07-06  Bruno Haible  <bruno@clisp.org>
78873         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
78875 2007-07-06  Bruno Haible  <bruno@clisp.org>
78877         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
78878         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
78879         includes <cygwin/sys_time.h> which includes <sys/select.h> which
78880         include <sys/time.h>.
78881         Reported by Eric Blake.
78883 2007-07-06  Eric Blake  <ebb9@byu.net>
78885         Fix testing canonicalize on cygwin.
78886         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
78887         Revert patch from 2007-06-19.
78888         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
78889         canonicalize module is also in use.
78890         * tests/test-canonicalize.c: New file.
78891         * tests/test-canonicalize.sh: Likewise.
78892         * modules/canonicalize-tests: Likewise.
78894 2007-07-06  Jim Meyering  <jim@meyering.net>
78896         * lib/getugroups.c (getugroups): Detect getgrent failure.
78897         Adjust comment to reflect reality: this function may return -1.
78899 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
78901         * build-aux/bootstrap (TP_URL,get_translations): Update to use
78902         the new TP address.
78903         (usage): Fix typo
78904         (gnulib_mk): New variable.
78906 2007-07-05  Jim Meyering  <jim@meyering.net>
78908         Don't let endgrent clobber errno, no matter how improbable.
78909         * lib/getugroups.c (getugroups): Save and restore errno around
78910         endgrent call.
78912         Close the group DB even when failing with 2^31 or more members.
78913         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
78915 2007-07-04  Jim Meyering  <jim@meyering.net>
78917         * lib/getugroups.h: New file.
78918         * lib/getugroups.c: Include "getugroups.h".
78919         Remove uses of "register" keyword.
78920         Move local variable, "cp", down into scope where used.
78921         Give "username" parameter the "const" attribute.
78922         * modules/getugroups (Files): Add lib/getugroups.h
78924 2007-07-04  Karl Berry  <karl@gnu.org>
78926         * MODULES.html.sh (func_all_modules): Complete rename of
78927         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
78929 2007-07-02  Bruno Haible  <bruno@clisp.org>
78931         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
78932         mode, when inttypes.h comes from gnulib.
78933         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
78935 2007-07-02  Simon Josefsson  <simon@josefsson.org>
78937         * NEWS: Mention lgpl module name change.
78939         * modules/lgpl-2.1: Renamed from lgpl.
78941         * NEWS: Mention gpl module name change.
78943         * modules/gpl-3.0: New file, based on gpl-2.0.
78945         * modules/gpl-2.0: Renamed from gpl.
78947         * modules/gpl: Fix filename, doc/gpl.texi is now found at
78948         doc/gpl-2.0.texi.
78950 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78952         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
78953         #define __STDC_LIMIT_MACROS temporarily while including
78954         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
78955         Problem reported by Joel E. Denny in
78956         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
78958 2007-07-01  Bruno Haible  <bruno@clisp.org>
78960         * lib/unistdio.h: New file.
78961         * lib/unistdio/u-asnprintf.h: New file.
78962         * lib/unistdio/u-asprintf.h: New file.
78963         * lib/unistdio/u-printf-args.c: New file.
78964         * lib/unistdio/u-printf-args.h: New file.
78965         * lib/unistdio/u-printf-parse.h: New file.
78966         * lib/unistdio/u-snprintf.h: New file.
78967         * lib/unistdio/u-sprintf.h: New file.
78968         * lib/unistdio/u-vasprintf.h: New file.
78969         * lib/unistdio/u-vsnprintf.h: New file.
78970         * lib/unistdio/u-vsprintf.h: New file.
78971         * lib/unistdio/ulc-asnprintf.c: New file.
78972         * lib/unistdio/ulc-asprintf.c: New file.
78973         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
78974         * lib/unistdio/ulc-printf-parse.c: New file.
78975         * lib/unistdio/ulc-snprintf.c: New file.
78976         * lib/unistdio/ulc-sprintf.c: New file.
78977         * lib/unistdio/ulc-vasnprintf.c: New file.
78978         * lib/unistdio/ulc-vasprintf.c: New file.
78979         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
78980         * lib/unistdio/ulc-vsnprintf.c: New file.
78981         * lib/unistdio/ulc-vsprintf.c: New file.
78982         * lib/unistdio/u8-asnprintf.c: New file.
78983         * lib/unistdio/u8-asprintf.c: New file.
78984         * lib/unistdio/u8-printf-parse.c: New file.
78985         * lib/unistdio/u8-snprintf.c: New file.
78986         * lib/unistdio/u8-sprintf.c: New file.
78987         * lib/unistdio/u8-vasnprintf.c: New file.
78988         * lib/unistdio/u8-vasprintf.c: New file.
78989         * lib/unistdio/u8-vsnprintf.c: New file.
78990         * lib/unistdio/u8-vsprintf.c: New file.
78991         * lib/unistdio/u8-u8-asnprintf.c: New file.
78992         * lib/unistdio/u8-u8-asprintf.c: New file.
78993         * lib/unistdio/u8-u8-snprintf.c: New file.
78994         * lib/unistdio/u8-u8-sprintf.c: New file.
78995         * lib/unistdio/u8-u8-vasnprintf.c: New file.
78996         * lib/unistdio/u8-u8-vasprintf.c: New file.
78997         * lib/unistdio/u8-u8-vsnprintf.c: New file.
78998         * lib/unistdio/u8-u8-vsprintf.c: New file.
78999         * lib/unistdio/u16-asnprintf.c: New file.
79000         * lib/unistdio/u16-asprintf.c: New file.
79001         * lib/unistdio/u16-printf-parse.c: New file.
79002         * lib/unistdio/u16-snprintf.c: New file.
79003         * lib/unistdio/u16-sprintf.c: New file.
79004         * lib/unistdio/u16-vasnprintf.c: New file.
79005         * lib/unistdio/u16-vasprintf.c: New file.
79006         * lib/unistdio/u16-vsnprintf.c: New file.
79007         * lib/unistdio/u16-vsprintf.c: New file.
79008         * lib/unistdio/u16-u16-asnprintf.c: New file.
79009         * lib/unistdio/u16-u16-asprintf.c: New file.
79010         * lib/unistdio/u16-u16-snprintf.c: New file.
79011         * lib/unistdio/u16-u16-sprintf.c: New file.
79012         * lib/unistdio/u16-u16-vasnprintf.c: New file.
79013         * lib/unistdio/u16-u16-vasprintf.c: New file.
79014         * lib/unistdio/u16-u16-vsnprintf.c: New file.
79015         * lib/unistdio/u16-u16-vsprintf.c: New file.
79016         * lib/unistdio/u32-asnprintf.c: New file.
79017         * lib/unistdio/u32-asprintf.c: New file.
79018         * lib/unistdio/u32-printf-parse.c: New file.
79019         * lib/unistdio/u32-snprintf.c: New file.
79020         * lib/unistdio/u32-sprintf.c: New file.
79021         * lib/unistdio/u32-vasnprintf.c: New file.
79022         * lib/unistdio/u32-vasprintf.c: New file.
79023         * lib/unistdio/u32-vsnprintf.c: New file.
79024         * lib/unistdio/u32-vsprintf.c: New file.
79025         * lib/unistdio/u32-u32-asnprintf.c: New file.
79026         * lib/unistdio/u32-u32-asprintf.c: New file.
79027         * lib/unistdio/u32-u32-snprintf.c: New file.
79028         * lib/unistdio/u32-u32-sprintf.c: New file.
79029         * lib/unistdio/u32-u32-vasnprintf.c: New file.
79030         * lib/unistdio/u32-u32-vasprintf.c: New file.
79031         * lib/unistdio/u32-u32-vsnprintf.c: New file.
79032         * lib/unistdio/u32-u32-vsprintf.c: New file.
79033         * tests/unistdio/test-ulc-asnprintf1.c: New file.
79034         * tests/unistdio/test-ulc-asnprintf1.h: New file.
79035         * tests/unistdio/test-ulc-printf1.h: New file.
79036         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
79037         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
79038         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
79039         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
79040         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
79041         * tests/unistdio/test-ulc-vasprintf1.c: New file.
79042         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
79043         * tests/unistdio/test-ulc-vsprintf1.c: New file.
79044         * tests/unistdio/test-u8-asnprintf1.c: New file.
79045         * tests/unistdio/test-u8-asnprintf1.h: New file.
79046         * tests/unistdio/test-u8-printf1.h: New file.
79047         * tests/unistdio/test-u8-vasnprintf1.c: New file.
79048         * tests/unistdio/test-u8-vasnprintf2.c: New file.
79049         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
79050         * tests/unistdio/test-u8-vasnprintf3.c: New file.
79051         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
79052         * tests/unistdio/test-u8-vasprintf1.c: New file.
79053         * tests/unistdio/test-u8-vsnprintf1.c: New file.
79054         * tests/unistdio/test-u8-vsprintf1.c: New file.
79055         * tests/unistdio/test-u16-asnprintf1.c: New file.
79056         * tests/unistdio/test-u16-asnprintf1.h: New file.
79057         * tests/unistdio/test-u16-printf1.h: New file.
79058         * tests/unistdio/test-u16-vasnprintf1.c: New file.
79059         * tests/unistdio/test-u16-vasnprintf2.c: New file.
79060         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
79061         * tests/unistdio/test-u16-vasnprintf3.c: New file.
79062         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
79063         * tests/unistdio/test-u16-vasprintf1.c: New file.
79064         * tests/unistdio/test-u16-vsnprintf1.c: New file.
79065         * tests/unistdio/test-u16-vsprintf1.c: New file.
79066         * tests/unistdio/test-u32-asnprintf1.c: New file.
79067         * tests/unistdio/test-u32-asnprintf1.h: New file.
79068         * tests/unistdio/test-u32-printf1.h: New file.
79069         * tests/unistdio/test-u32-vasnprintf1.c: New file.
79070         * tests/unistdio/test-u32-vasnprintf2.c: New file.
79071         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
79072         * tests/unistdio/test-u32-vasnprintf3.c: New file.
79073         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
79074         * tests/unistdio/test-u32-vasprintf1.c: New file.
79075         * tests/unistdio/test-u32-vsnprintf1.c: New file.
79076         * tests/unistdio/test-u32-vsprintf1.c: New file.
79077         * modules/unistdio/base: New file.
79078         * modules/unistdio/u-printf-args: New file.
79079         * modules/unistdio/ulc-asnprintf: New file.
79080         * modules/unistdio/ulc-asprintf: New file.
79081         * modules/unistdio/ulc-fprintf: New file.
79082         * modules/unistdio/ulc-printf-parse: New file.
79083         * modules/unistdio/ulc-snprintf: New file.
79084         * modules/unistdio/ulc-sprintf: New file.
79085         * modules/unistdio/ulc-vasnprintf: New file.
79086         * modules/unistdio/ulc-vasprintf: New file.
79087         * modules/unistdio/ulc-vfprintf: New file.
79088         * modules/unistdio/ulc-vsnprintf: New file.
79089         * modules/unistdio/ulc-vsprintf: New file.
79090         * modules/unistdio/u8-asnprintf: New file.
79091         * modules/unistdio/u8-asprintf: New file.
79092         * modules/unistdio/u8-printf-parse: New file.
79093         * modules/unistdio/u8-snprintf: New file.
79094         * modules/unistdio/u8-sprintf: New file.
79095         * modules/unistdio/u8-vasnprintf: New file.
79096         * modules/unistdio/u8-vasprintf: New file.
79097         * modules/unistdio/u8-vsnprintf: New file.
79098         * modules/unistdio/u8-vsprintf: New file.
79099         * modules/unistdio/u8-u8-asnprintf: New file.
79100         * modules/unistdio/u8-u8-asprintf: New file.
79101         * modules/unistdio/u8-u8-snprintf: New file.
79102         * modules/unistdio/u8-u8-sprintf: New file.
79103         * modules/unistdio/u8-u8-vasnprintf: New file.
79104         * modules/unistdio/u8-u8-vasprintf: New file.
79105         * modules/unistdio/u8-u8-vsnprintf: New file.
79106         * modules/unistdio/u8-u8-vsprintf: New file.
79107         * modules/unistdio/u16-asnprintf: New file.
79108         * modules/unistdio/u16-asprintf: New file.
79109         * modules/unistdio/u16-printf-parse: New file.
79110         * modules/unistdio/u16-snprintf: New file.
79111         * modules/unistdio/u16-sprintf: New file.
79112         * modules/unistdio/u16-vasnprintf: New file.
79113         * modules/unistdio/u16-vasprintf: New file.
79114         * modules/unistdio/u16-vsnprintf: New file.
79115         * modules/unistdio/u16-vsprintf: New file.
79116         * modules/unistdio/u16-u16-asnprintf: New file.
79117         * modules/unistdio/u16-u16-asprintf: New file.
79118         * modules/unistdio/u16-u16-snprintf: New file.
79119         * modules/unistdio/u16-u16-sprintf: New file.
79120         * modules/unistdio/u16-u16-vasnprintf: New file.
79121         * modules/unistdio/u16-u16-vasprintf: New file.
79122         * modules/unistdio/u16-u16-vsnprintf: New file.
79123         * modules/unistdio/u16-u16-vsprintf: New file.
79124         * modules/unistdio/u32-asnprintf: New file.
79125         * modules/unistdio/u32-asprintf: New file.
79126         * modules/unistdio/u32-printf-parse: New file.
79127         * modules/unistdio/u32-snprintf: New file.
79128         * modules/unistdio/u32-sprintf: New file.
79129         * modules/unistdio/u32-vasnprintf: New file.
79130         * modules/unistdio/u32-vasprintf: New file.
79131         * modules/unistdio/u32-vsnprintf: New file.
79132         * modules/unistdio/u32-vsprintf: New file.
79133         * modules/unistdio/u32-u32-asnprintf: New file.
79134         * modules/unistdio/u32-u32-asprintf: New file.
79135         * modules/unistdio/u32-u32-snprintf: New file.
79136         * modules/unistdio/u32-u32-sprintf: New file.
79137         * modules/unistdio/u32-u32-vasnprintf: New file.
79138         * modules/unistdio/u32-u32-vasprintf: New file.
79139         * modules/unistdio/u32-u32-vsnprintf: New file.
79140         * modules/unistdio/u32-u32-vsprintf: New file.
79141         * modules/unistdio/ulc-asnprintf-tests: New file.
79142         * modules/unistdio/ulc-vasnprintf-tests: New file.
79143         * modules/unistdio/ulc-vasprintf-tests: New file.
79144         * modules/unistdio/ulc-vsnprintf-tests: New file.
79145         * modules/unistdio/ulc-vsprintf-tests: New file.
79146         * modules/unistdio/u8-asnprintf-tests: New file.
79147         * modules/unistdio/u8-vasnprintf-tests: New file.
79148         * modules/unistdio/u8-vasprintf-tests: New file.
79149         * modules/unistdio/u8-vsnprintf-tests: New file.
79150         * modules/unistdio/u8-vsprintf-tests: New file.
79151         * modules/unistdio/u16-asnprintf-tests: New file.
79152         * modules/unistdio/u16-vasnprintf-tests: New file.
79153         * modules/unistdio/u16-vasprintf-tests: New file.
79154         * modules/unistdio/u16-vsnprintf-tests: New file.
79155         * modules/unistdio/u16-vsprintf-tests: New file.
79156         * modules/unistdio/u32-asnprintf-tests: New file.
79157         * modules/unistdio/u32-vasnprintf-tests: New file.
79158         * modules/unistdio/u32-vasprintf-tests: New file.
79159         * modules/unistdio/u32-vsnprintf-tests: New file.
79160         * modules/unistdio/u32-vsprintf-tests: New file.
79161         * MODULES.html.sh (Unicode string functions): Add the new modules.
79163 2007-07-01  Bruno Haible  <bruno@clisp.org>
79165         * lib/sprintf.c (sprintf): Limit the available length estimation,
79166         to avoid address wraparound.
79167         * lib/vsprintf.c (vsprintf): Likewise.
79168         * modules/sprintf-posix (Dependencies): Add stdint.
79169         * modules/vsprintf-posix (Dependencies): Likewise.
79171 2007-07-01  Bruno Haible  <bruno@clisp.org>
79173         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
79174         Windows PATH as well. Conservative double-quoting. Comments.
79176 2007-07-01  Bruno Haible  <bruno@clisp.org>
79177             Eric Blake  <ebb9@byu.net>
79178             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79180         * gnulib-tool (self_abspathname): Fix algorithm to cope with
79181         empty components in $PATH, denoting '.'.
79183 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79185         * gnulib-tool: Fix indentation.
79186         (func_create_megatestdir): Likewise.
79187         Report by Bruno Haible.
79189 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79191         Sync from Automake.
79192         * build-aux/gnupload: Fix shell portability issues with for loops.
79193         Report by Karl Berry.
79195 2007-06-29  Simon Josefsson  <simon@josefsson.org>
79197         * build-aux/maint.mk (POURL): Use translationproject.org.
79199 2007-06-27  Simon Josefsson  <simon@josefsson.org>
79200             Bruno Haible  <bruno@clisp.org>
79202         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
79203         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
79204         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
79205         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
79206         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
79208 2007-06-27  Bruno Haible  <bruno@clisp.org>
79210         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
79211         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
79213 2007-06-26  Karl Berry  <karl@gnu.org>
79215         * MODULES.html.sh: remove xreadlink-with-size.
79217 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
79219         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
79220         method that I hope also handles the double-include problem noted
79221         by Bruno Haible in
79222         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
79224 2007-06-23  Bruno Haible  <bruno@clisp.org>
79226         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79227         Don't let the 'mostlyclean' target fail if the last subdirectory could
79228         not be removed.
79229         Reported by Karl Berry.
79231 2007-06-23  Bruno Haible  <bruno@clisp.org>
79233         * gnulib-tool (echo): Add a speedier workaround for ksh.
79234         * tests/test-echo.sh: Likewise.
79236 2007-06-23  Bruno Haible  <bruno@clisp.org>
79238         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
79239         * tests/test-echo.sh: Likewise.
79241 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79243         * gnulib-tool (IFS): Initialize early, so we don't set it to
79244         empty later.
79245         (self_abspathname): Rewrite algorithm to set it, reindent.
79246         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
79247         (func_create_megatestdir): Merge some sed scripts.
79249 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
79251         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
79252         exposed by Sun Studio 11 cc on Solaris 8.
79254 2007-06-22  Bruno Haible  <bruno@clisp.org>
79256         * gnulib-tool (echo): Ensure the echo primitive does not interpret
79257         backslashes.
79258         * tests/test-echo.sh: New file.
79260 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79262         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
79263         simplify `sed_replace_build_aux' scripts, they are portable but
79264         echoing them with `echo' is not.
79265         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
79267 2007-06-21  Karl Berry  <karl@gnu.org>
79269         * config/srclist.txt: guess we can't handle the licenses via
79270         srclist at the moment.
79272 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
79274         * MODULES.html.sh: Add include_next.
79275         * modules/include_next: New file.
79277 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
79279         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
79280         INCLUDE_NEXT.
79281         (gl_CHECK_NEXT_HEADERS): New macro.
79282         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
79283         the obsolescent gl_ABSOLUTE_HEADER.
79284         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
79285         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
79286         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
79287         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
79288         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
79289         * m4/math_h.m4 (gl_MATH_H): Likewise.
79290         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
79291         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
79292         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
79293         * m4/stdint.m4 (gl_STDINT_H): Likewise.
79294         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
79295         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
79296         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
79297         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
79298         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
79299         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
79300         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
79301         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
79302         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
79303         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
79304         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
79305         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
79306         * m4/inttypes.m4 (gl_INTTYPES_H): Define
79307         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
79308         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
79309         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
79310         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
79311         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
79312         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
79313         * lib/float_.h: Likewise.
79314         * lib/inttypes_.h: Likewise.
79315         * lib/math_.h: Likewise.
79316         * lib/search_.h: Likewise.
79317         * lib/signal_.h: Likewise.
79318         * lib/stdint_.h: Likewise.
79319         * lib/stdio_.h: Likewise.
79320         * lib/stdlib_.h: Likewise.
79321         * lib/string_.h: Likewise.
79322         * lib/sys_stat_.h: Likewise.
79323         * lib/sys_time_.h: Likewise.
79324         * lib/time_.h: Likewise.
79325         * lib/unistd_.h: Likewise.
79326         * lib/wchar_.h: Likewise.
79327         * lib/wctype_.h: Likewise.
79328         * lib/dirent_.h: Likewise.
79329         * lib/iconv_.h: Likewise.
79330         * lib/locale_.h: Likewise.
79331         * lib/netinet_in_.h: Likewise.
79332         * lib/sys_select_.h: Likewise.
79333         * lib/sys_socket_.h: Likewise.
79334         * lib/sysexits_.h: Likewise.
79335         * modules/fcntl (Depends-on): Depend on include_next, not
79336         absolute_header.
79337         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
79338         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
79339         * modules/fchdir: Likewise.
79340         * modules/float: Likewise.
79341         * modules/iconv_open: Likewise.
79342         * modules/inttypes: Likewise.
79343         * modules/locale: Likewise.
79344         * modules/math: Likewise.
79345         * modules/netinet_in: Likewise.
79346         * modules/search: Likewise.
79347         * modules/signal: Likewise.
79348         * modules/stdint: Likewise.
79349         * modules/stdio: Likewise.
79350         * modules/stdlib: Likewise.
79351         * modules/string: Likewise.
79352         * modules/sys_select: Likewise.
79353         * modules/sys_socket: Likewise.
79354         * modules/sys_stat: Likewise.
79355         * modules/sys_time: Likewise.
79356         * modules/sysexits: Likewise.
79357         * modules/time: Likewise.
79358         * modules/unistd: Likewise.
79359         * modules/wchar: Likewise.
79360         * modules/wctype: Likewise.
79361         * modules/sys_stat: Change maintainer to "all".
79362         * modules/unistd: Likewise.
79364 2007-06-20  Karl Berry  <karl@gnu.org>
79366         * config/srclist.txt: track www changes in license files.
79368 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
79370         * build-aux/bootstrap: Remove stray dot.
79371         Make sure build_aux settings are honored when linking
79372         gnulib_extra_files.
79374 2007-06-19  Eric Blake  <ebb9@byu.net>
79376         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
79377         Allow compilation on cygwin.
79379 2007-06-19  Jim Meyering  <jim@meyering.net>
79381         xreadlink-with-size: Remove module.  No longer used.
79382         Ex-callers now use xreadlink or mreadlink-with-size.
79383         * modules/xreadlink-with-size: Remove module.
79384         * lib/xreadlink-with-size.c: Remove file.
79385         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
79386         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
79387         just before the function definition *is* accurate.
79389         Eliminate one way canonicalize_filename_mode could exit.
79390         * lib/canonicalize.c (canonicalize_filename_mode):
79391         Use mreadlink_with_size, not xreadlink_with_size.
79393 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
79395         Detect porting problems to FreeBSD/arm, which has time_t wider than
79396         long int.  Original problem reported for GNU diff by Xin Li in
79397         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
79398         * modules/getdate (Depends-on): Add intprops, verify.
79399         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
79400         is an integer type no wider than long int.
79402 2007-06-18  Jim Meyering  <jim@meyering.net>
79404         New module: mreadlink-with-size.
79405         * MODULES.html.sh: Add mreadlink-with-size.
79406         * modules/mreadlink-with-size: New module
79407         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
79408         not xreadlink-with-size.
79409         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
79411 2007-06-16  Bruno Haible  <bruno@clisp.org>
79413         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
79414         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
79415         Reported by Gary V. Vaughan <gary@gnu.org>.
79417 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
79419         Revamp lchown so that it lives in unistd.h where it belongs.
79420         * lib/lchown.h: Remove.
79421         * lib/dirchownmod.c: Don't include lib/lchown.h.
79422         * lib/fchownat.c: Likewise.
79423         * lib/openat.c: Likewise.
79424         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
79425         does not follow symlinks.
79426         (EOPNOTSUPP): Define if not defined.
79427         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
79428         is defined to 0.
79429         (lchown): New decl.
79430         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
79431         Do not check for lchown decl.
79432         Set REPLACE_LCHOWN.
79433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
79434         REPLACE_LCHOWN.
79435         * modules/chown: Make it clear it follows symlinks.
79436         * modules/lchown: Make it clear it doesn't follow symlinks.
79437         (Files): Remove lib/lchown.h
79438         (Depends-on): Add unistd.
79439         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
79440         (Include): Include <unistd.h>, not "lchown.h".
79441         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
79442         REPLACE_LCHOWN.
79444 2007-06-15  Jim Meyering  <jim@meyering.net>
79446         Change license (GPL to LGPL) of fsusage and dependents.
79447         * modules/fsusage (License): Change to LGPL.
79448         * modules/full-read (License): Likewise.
79449         * modules/full-write (License): Likewise.
79450         * modules/safe-read (License): Likewise.
79451         * modules/safe-write (License): Likewise.
79453 2007-06-14  Ben Pfaff  <blp@gnu.org>
79455         Missing part of allocsa -> malloca transition.
79456         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
79457         gl_MALLOCA.
79459 2007-06-12  Bruno Haible  <bruno@clisp.org>
79461         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
79462         to ia64, x86_64, i386.
79463         Reported by Eric Blake.
79465 2007-06-12  Bruno Haible  <bruno@clisp.org>
79467         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
79468         cross-compiling to x86_64.
79470 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
79472         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
79473         glitch reported by Ralf Wildenhues in
79474         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
79476         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
79477         Vin Shelton.
79479 2007-06-11  Bruno Haible  <bruno@clisp.org>
79481         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
79482         replacement string.
79483         Reported by Eric Blake.
79485 2007-06-10  Bruno Haible  <bruno@clisp.org>
79487         Prepare vasnprintf code for use with Unicode strings.
79488         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
79489         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
79490         TYPE_U32_STRING.
79491         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
79492         a_u32_string variants.
79493         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
79494         * lib/printf-args.c: Don't include config.h and the specification
79495         header if PRINTF_FETCHARGS is already defined.
79496         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
79497         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
79498         TYPE_U16_STRING, TYPE_U32_STRING.
79499         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
79500         u16_directive, u16_directives, u32_directive, u32_directives): New
79501         types.
79502         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
79503         New declarations.
79504         * lib/printf-parse.c: Don't include config.h and the specification
79505         header if PRINTF_PARSE is already defined. Eliminate the set of
79506         parameters for WIDE_CHAR_VERSION; the user of this file must provide
79507         them now. Include c-ctype.h.
79508         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
79509         directive and CHAR_T_ONLY_ASCII.
79510         * lib/vasnprintf.c: Don't include config.h and the specification header
79511         if VASNPRINTF is already defined.
79512         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
79513         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
79514         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
79515         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
79516         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
79517         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
79518         code accordingly.
79519         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
79520         pad_ourselves also in this case, with the 'c' and 's' directives, and
79521         with a different notion of "width".
79522         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
79524 2007-06-10  Bruno Haible  <bruno@clisp.org>
79526         * modules/unistr/u32-mbsnlen: New file.
79527         * lib/unistr/u32-mbsnlen.c: New file.
79529         * modules/unistr/u16-mbsnlen: New file.
79530         * lib/unistr/u16-mbsnlen.c: New file.
79532         * modules/unistr/u8-mbsnlen: New file.
79533         * lib/unistr/u8-mbsnlen.c: New file.
79535         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
79536         declarations.
79538 2007-06-10  Bruno Haible  <bruno@clisp.org>
79540         * lib/string_.h (mbsnlen): New declaration.
79541         * lib/mbsnlen.c: New file.
79542         * m4/mbsnlen.m4: New file.
79543         * modules/mbsnlen: New file.
79544         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
79545         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
79546         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
79548 2007-06-10  Bruno Haible  <bruno@clisp.org>
79550         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
79552 2007-06-10  Bruno Haible  <bruno@clisp.org>
79554         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
79555         * lib/mbuiter.h: Likewise.
79557 2007-06-10  Bruno Haible  <bruno@clisp.org>
79559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
79560         declaration.
79562 2007-06-10  Karl Berry  <karl@gnu.org>
79564         * config/srclist.txt: remove gettext entries, Bruno prefers
79565         to update individually.
79567 2007-06-10  Bruno Haible  <bruno@clisp.org>
79569         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
79570         'maxlen'. Ensure only length + width bytes are allocated, not
79571         length + 1 + width.
79573 2007-06-09  Bruno Haible  <bruno@clisp.org>
79575         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
79576         (CHAR_T): Remove macro.
79577         (VASNPRINTF): Update.
79579 2007-06-09  Bruno Haible  <bruno@clisp.org>
79581         * MODULES.html.sh (Unicode string functions): Add the new modules.
79583         * modules/uniconv/u32-conv-to-enc: New file.
79584         * lib/uniconv/u32-conv-to-enc.c: New file.
79585         * modules/uniconv/u32-conv-to-enc-tests: New file.
79586         * tests/uniconv/test-u32-conv-to-enc.c: New file.
79588         * modules/uniconv/u16-conv-to-enc: New file.
79589         * lib/uniconv/u16-conv-to-enc.c: New file.
79590         * lib/uniconv/u-conv-to-enc.h: New file.
79591         * modules/uniconv/u16-conv-to-enc-tests: New file.
79592         * tests/uniconv/test-u16-conv-to-enc.c: New file.
79594         * modules/uniconv/u8-conv-to-enc: New file.
79595         * lib/uniconv/u8-conv-to-enc.c: New file.
79596         * modules/uniconv/u8-conv-to-enc-tests: New file.
79597         * tests/uniconv/test-u8-conv-to-enc.c: New file.
79599         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
79600         u32_conv_to_encoding): New declarations.
79602 2007-06-09  Bruno Haible  <bruno@clisp.org>
79604         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
79606 2007-06-09  Bruno Haible  <bruno@clisp.org>
79608         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
79609         * modules/malloca: Renamed from modules/allocsa, updated.
79610         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
79611         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
79612         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
79613         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
79614         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
79615         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
79616         * modules/xmalloca: Renamed from modules/xallocsa, updated.
79617         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
79618         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
79619         * modules/c-strcasestr (Depends-on): Update.
79620         * lib/c-strcasestr.c: Update.
79621         * modules/c-strstr (Depends-on): Update.
79622         * lib/c-strstr.c: Update.
79623         * modules/canonicalize-lgpl (Depends-on): Update.
79624         * lib/canonicalize-lgpl.c: Update.
79625         * modules/clean-temp (Depends-on): Update.
79626         * lib/clean-temp.c: Update.
79627         * modules/csharpcomp (Depends-on): Update.
79628         * lib/csharpcomp.c: Update.
79629         * modules/csharpexec (Depends-on): Update.
79630         * lib/csharpexec.c: Update.
79631         * modules/javacomp (Depends-on): Update.
79632         * lib/javacomp.c: Update.
79633         * modules/javaexec (Depends-on): Update.
79634         * lib/javaexec.c: Update.
79635         * modules/mbscasestr (Depends-on): Update.
79636         * lib/mbscasestr.c: Update.
79637         * modules/mbsstr (Depends-on): Update.
79638         * lib/mbsstr.c: Update.
79639         * modules/setenv (Depends-on): Update.
79640         * lib/setenv.c: Update.
79641         * modules/strcasestr (Depends-on): Update.
79642         * lib/strcasestr.c: Update.
79643         * modules/striconveha (Depends-on): Update.
79644         * lib/striconveha.c: Update.
79645         * modules/relocatable-prog-wrapper (Files): Update.
79646         * lib/relocwrapper.c: Update.
79647         * build-aux/install-reloc: Update.
79648         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
79650 2007-06-08  Bruno Haible  <bruno@clisp.org>
79652         Port to uClibc.
79653         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
79654         * lib/fpurge.c (fpurge): Likewise.
79655         * lib/freading.c (freading): Likewise.
79656         * lib/fseeko.c (rpl_fseeko): Likewise.
79657         * lib/fseterr.c (fseterr): Likewise.
79658         * lib/fwriting.c (fwriting): Likewise.
79659         * tests/test-fflush.c (main): Avoid a failure on uClibc.
79661 2007-06-08  Bruno Haible  <bruno@clisp.org>
79663         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
79664         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
79665         * modules/gettext (Files): Add m4/intlmacosx.m4.
79667 2007-06-07  Bruno Haible  <bruno@clisp.org>
79669         * modules/localename-tests: New file.
79670         * tests/test-localename.c: New file.
79672         New module 'localename'.
79673         * lib/localename.h: New file.
79674         * lib/localename.c: New file, from GNU gettext.
79675         * m4/localename.m4: New file.
79676         * modules/localename: New file.
79678 2007-06-07  Bruno Haible  <bruno@clisp.org>
79680         Work around the lack of <wchar.h> on some builds of uClibc.
79681         * doc/headers/wchar.texi: Update.
79682         * lib/wchar_.h: Include <wchar.h> only if it exists.
79683         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
79684         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
79685         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
79686         doesn't exist.
79687         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
79688         * modules/mbfile (Depends-on): Add wchar.
79689         * modules/mbiter (Depends-on): Likewise.
79690         * modules/mbuiter (Depends-on): Likewise.
79691         Reported by Simon Josefsson.
79693 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79695         Work around problem reported by Steven M. Schweda in
79696         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
79697         Tru64 5.1B with the Compaq compiler environment installed declares
79698         an 'isblank' function but does not define it in the C library.
79699         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
79700         * lib/regex_internal.h (isblank): Likewise.
79701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
79702         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
79704 2007-06-05  Bruno Haible  <bruno@clisp.org>
79706         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
79707         ia64.
79708         * modules/printf-safe: New file.
79709         * modules/fprintf-posix (Depends-on): Add printf-safe.
79710         * modules/printf-posix (Depends-on): Likewise.
79711         * modules/snprintf-posix (Depends-on): Likewise.
79712         * modules/sprintf-posix (Depends-on): Likewise.
79713         * modules/vasnprintf-posix (Depends-on): Likewise.
79714         * modules/vasprintf-posix (Depends-on): Likewise.
79715         * modules/vfprintf-posix (Depends-on): Likewise.
79716         * modules/vprintf-posix (Depends-on): Likewise.
79717         * modules/vsnprintf-posix (Depends-on): Likewise.
79718         * modules/vsprintf-posix (Depends-on): Likewise.
79719         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
79720         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
79721         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
79722         "no" on i386, x86_64, ia64.
79723         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
79724         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
79725         on i386, x86_64, ia64.
79726         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
79727         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
79728         on i386, x86_64, ia64.
79729         * tests/test-vasnprintf-posix.c: Include float.h.
79730         (LDBL80_WORDS): New macro.
79731         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
79732         on i386, x86_64, ia64.
79733         * tests/test-vasprintf-posix.c: Include float.h.
79734         (LDBL80_WORDS): New macro.
79735         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
79736         on i386, x86_64, ia64.
79737         * tests/test-snprintf-posix.c: Include float.h.
79738         * tests/test-sprintf-posix.c: Likewise.
79739         * tests/test-vsnprintf-posix.c: Likewise.
79740         * tests/test-vsprintf-posix.c: Likewise.
79742 2007-06-05  Bruno Haible  <bruno@clisp.org>
79744         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
79745         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
79746         non-IEEE numbers on i386, x86_64, ia64.
79747         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
79748         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
79749         * tests/test-isnanl.h: Include float.h.
79750         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
79752 2007-06-05  Bruno Haible  <bruno@clisp.org>
79754         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
79755         also the %a / %A. Handle the %a / %A code before this extra handling.
79757 2007-06-05  Bruno Haible  <bruno@clisp.org>
79759         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
79760         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
79762 2007-06-05  Bruno Haible  <bruno@clisp.org>
79764         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
79765         typo in variable name.
79767 2007-06-05  Eric Blake  <ebb9@byu.net>
79769         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
79770         Reported by Simon Josefsson.
79772 2007-06-04  Bruno Haible  <bruno@clisp.org>
79774         Avoid test failures on some PowerPC platforms.
79775         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
79776         Define differently for PowerPC.
79777         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
79778         Reported by Gary V. Vaughan <gary@gnu.org>.
79780 2007-06-02  Bruno Haible  <bruno@clisp.org>
79782         Fix test-stdint failure on FreeBSD/ia64.
79783         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
79784         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
79785         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
79786         * doc/headers/stdint.texi: Update.
79788 2007-06-01  Bruno Haible  <bruno@clisp.org>
79790         * tests/test-binary-io.c (main): Pass a third argument to open().
79791         Reported by Gary V. Vaughan <gary@gnu.org>.
79793 2007-06-01  Bruno Haible  <bruno@clisp.org>
79795         * doc/functions/frexpl.texi: Update for mingw.
79797 2007-06-01  Bruno Haible  <bruno@clisp.org>
79799         * tests/test-lseek.c (main): Disable test of errno for invalid third
79800         argument.
79801         * doc/functions/lseek.texi: Update.
79802         Reported by Gary V. Vaughan <gary@gnu.org>.
79804 2007-05-28  Bruno Haible  <bruno@clisp.org>
79806         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
79808 2007-05-31  Eric Blake  <ebb9@byu.net>
79810         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
79811         cross compiling.
79813 2007-05-30  Eric Blake  <ebb9@byu.net>
79814         and Bruno Haible  <bruno@clisp.org>
79816         Work around mingw test failures exposed by m4-1.4.9b.
79817         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
79818         * tests/test-unistd.c: Disable uid_t and git_t tests for the
79819         moment.
79821 2007-05-30  Bruno Haible  <bruno@clisp.org>
79823         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
79824         assuming that they are closed. Needed on HP-UX 11.
79826 2007-05-29  Bruno Haible  <bruno@clisp.org>
79828         Fix a problem with #include_next.
79829         * lib/dirent_.h: Split the double-inclusion guard.
79830         * lib/fcntl_.h: Likewise.
79831         * lib/float_.h: Likewise.
79832         * lib/iconv_.h: Likewise.
79833         * lib/inttypes_.h: Likewise.
79834         * lib/locale_.h: Likewise.
79835         * lib/math_.h: Likewise.
79836         * lib/netinet_in_.h: Likewise.
79837         * lib/search_.h: Likewise.
79838         * lib/signal_.h: Likewise.
79839         * lib/stdint_.h: Likewise.
79840         * lib/stdio_.h: Likewise.
79841         * lib/stdlib_.h: Likewise.
79842         * lib/string_.h: Likewise.
79843         * lib/sys_select_.h: Likewise.
79844         * lib/sys_socket_.h: Likewise.
79845         * lib/sys_stat_.h: Likewise.
79846         * lib/sys_time_.h: Likewise.
79847         * lib/sysexits_.h: Likewise.
79848         * lib/time_.h: Likewise.
79849         * lib/unistd_.h: Likewise.
79850         * lib/wchar_.h: Likewise.
79851         * lib/wctype_.h: Likewise.
79853 2007-05-29  Bruno Haible  <bruno@clisp.org>
79855         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
79856         for the moment.
79858 2007-05-29  Bruno Haible  <bruno@clisp.org>
79860         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
79861         invocation.
79862         Reported by Eric Blake.
79864 2007-05-29  Bruno Haible  <bruno@clisp.org>
79866         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
79867         compiling case.
79869 2007-05-29  Eric Blake  <ebb9@byu.net>
79870             Bruno Haible  <bruno@clisp.org>
79872         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
79873         cross compiles.
79875 2007-05-28  Eric Blake  <ebb9@byu.net>
79877         * modules/closein-tests (test_closein_LDADD): Support test on
79878         cygwin with libtool.
79880 2007-05-28  Bruno Haible  <bruno@clisp.org>
79882         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
79883         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
79884         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
79885         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
79886         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
79887         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
79888         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
79889         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
79890         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
79892 2007-05-28  Eric Blake  <ebb9@byu.net>
79894         Unconditionally include <config.h> in unit tests.
79895         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
79896         * tests/test-allocsa.c, tests/test-arcfour.c,
79897         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
79898         tests/test-array_list.c, tests/test-array_oset.c,
79899         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
79900         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
79901         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
79902         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
79903         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
79904         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
79905         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
79906         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
79907         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
79908         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
79909         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
79910         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
79911         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
79912         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
79913         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
79914         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
79915         test-md5.c, test-memmem.c, test-printf-posix.c,
79916         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
79917         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
79918         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
79919         test-strcasestr.c, test-striconv.c, test-striconveh.c,
79920         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
79921         test-vasnprintf-posix2.c, test-vasnprintf.c,
79922         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
79923         test-vfprintf-posix.c, test-vprintf-posix.c,
79924         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
79925         test-xvasprintf.c: Likewise.
79927 2007-05-28  Bruno Haible  <bruno@clisp.org>
79929         * gnulib-tool (func_import): Remember the --with-tests command-line
79930         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
79931         Reported by Eric Blake.
79933 2007-05-28  Bruno Haible  <bruno@clisp.org>
79935         * modules/ftell-tests: New file.
79936         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
79937         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
79939         * lib/ftell.c: New file.
79940         * modules/ftell: New file.
79941         * m4/ftell.m4: New file.
79942         * doc/functions/ftell.texi: Update.
79943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
79944         REPLACE_FTELL.
79945         * lib/stdio_.h (rpl_ftell): New declaration.
79946         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
79947         REPLACE_FTELL.
79949 2007-05-28  Eric Blake  <ebb9@byu.net>
79951         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
79953 2007-05-28  Bruno Haible  <bruno@clisp.org>
79955         * modules/fseek-tests: New file.
79956         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
79957         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
79959         * lib/fseek.c: New file.
79960         * modules/fseek: New file.
79961         * m4/fseek.m4: New file.
79962         * doc/functions/fseek.texi: Update.
79963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
79964         REPLACE_FSEEK.
79965         * lib/stdio_.h (rpl_fseek): New declaration.
79966         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
79967         REPLACE_FSEEK.
79969 2007-05-28  Bruno Haible  <bruno@clisp.org>
79971         * lib/stdio_.h (fflush): More comments.
79973 2007-05-28  Bruno Haible  <bruno@clisp.org>
79975         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
79976         runtime test.
79978 2007-05-28  Eric Blake  <ebb9@byu.net>
79980         Improve lseek module.
79981         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
79982         * lib/unistd_.h (lseek): Scale back link warning message.
79983         * tests/test-lseek.c: Beef up test.
79984         * tests/test-lseek.sh: Exercise more facets of lseek.
79985         Reported by Bruno Haible.
79987 2007-05-28  Bruno Haible  <bruno@clisp.org>
79989         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
79990         to define.
79992 2007-05-27  Bruno Haible  <bruno@clisp.org>
79994         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
79996 2007-05-27  Bruno Haible  <bruno@clisp.org>
79998         * modules/openmp: New file.
79999         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
80000         Noah Misch.
80002 2007-05-26  Bruno Haible  <bruno@clisp.org>
80004         * modules/chdir-long (Depends-on): Add fchdir.
80005         * modules/chdir-safer (Depends-on): Likewise.
80006         * modules/fts (Depends-on): Likewise.
80007         * modules/fts-lgpl (Depends-on): Likewise.
80008         * modules/openat (Depends-on): Likewise.
80009         * modules/savewd (Depends-on): Likewise.
80011 2007-05-24  Eric Blake  <ebb9@byu.net>
80013         Fix lseek on mingw.
80014         * modules/lseek: New module.
80015         * m4/lseek.m4: New file.
80016         * lib/lseek.c: New file.
80017         * modules/lseek-tests: New file.
80018         * tests/test-lseek.c: New file.
80019         * tests/test-lseek.sh: New file.
80020         * MODULES.html.sh: Document lseek module.
80021         * modules/fflush (Depends-on): Add lseek, fseeko.
80022         * modules/fseeko (Depends-on): Likewise.
80023         * modules/ftello (Depends-on): Likewise.
80024         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
80025         broken.
80026         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
80027         broken.
80028         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
80029         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
80030         * lib/ftello.c (rpl_ftello): Likewise.
80031         * tests/test-fseeko.c (main): Test this.
80032         * tests/test-fseeko.sh: Likewise.
80033         * tests/test-ftello.c (main): Likewise.
80034         * tests/test-ftello.sh: Likewise.
80035         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
80036         implies replacing fseek.
80037         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
80038         HAVE_FTELLO.
80039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
80040         * modules/unistd (Makefile.am): Likewise.
80041         * lib/unistd_.h (lseek): Declare a replacement.
80042         * doc/functions/lseek.texi (lseek): Document this fix.
80043         * doc/functions/fseek.texi (fseek): Likewise.
80044         * doc/functions/ftell.texi (ftell): Likewise.
80046 2007-05-24  Bruno Haible  <bruno@clisp.org>
80048         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
80049         in the printed representation of a NaN.
80050         * tests/test-vasprintf-posix.c (test_function): Likewise.
80051         * tests/test-snprintf-posix.h (test_function): Likewise.
80052         * tests/test-sprintf-posix.h (test_function): Likewise.
80053         Reported by Eric Blake.
80055 2007-05-23  Eric Blake  <ebb9@byu.net>
80057         Fix fseeko/ftello on cygwin 1.5.24.
80058         * doc/functions/fseeko.texi (fseeko): Document the fix.
80059         * doc/functions/ftello.texi (ftello): Document the fix.
80060         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
80061         * doc/functions/stdout.text (stdout): New file.
80062         * doc/functions/stderr.text (stderr): New file.
80063         * doc/gnulib.texi (Function Substitutes): Use new files.
80064         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
80065         prior to 1.7.0.
80066         * tests/test-ftello.c (main): Likewise for ftello.
80067         * tests/test-fseeko.sh: New file.
80068         * tests/test-ftello.sh: New file.
80069         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
80070         with seekable stdin.
80071         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
80072         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
80073         (gl_REPLACE_FSEEKO): New macro.
80074         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
80075         * modules/fseeko (Files): Distribute fseeko.c.
80076         * modules/ftello (Files): Distribute ftello.c.
80077         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
80078         mode.
80079         * lib/ftello.c (rpl_ftello): New file.
80080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
80081         fseeko, ftello.
80082         (gl_STDIN_LARGE_OFFSET): New macro.
80083         * modules/stdio (Makefile.am): Perform the replacement.
80084         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
80086 2007-05-23  Bruno Haible  <bruno@clisp.org>
80088         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
80089         GNULIB_POSIXCHECK is defined.
80091 2007-05-21  Bruno Haible  <bruno@clisp.org>
80093         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
80094         Check also the output for NaN arguments. When cross-compiling, guess
80095         no on IRIX.
80096         * lib/vasnprintf.c: Update comments.
80097         * tests/test-vasnprintf-posix.c (strisnan): New function.
80098         (test_function): Use it.
80099         * tests/test-vasprintf-posix.c (strisnan): New function.
80100         (test_function): Use it.
80101         * tests/test-snprintf-posix.h (strisnan): New function.
80102         (test_function): Use it.
80103         * tests/test-sprintf-posix.h (strisnan): New function.
80104         (test_function): Use it.
80105         Reported by Eric Blake.
80107 2007-05-20  Bruno Haible  <bruno@clisp.org>
80109         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
80110         numbers that fails on BeOS.
80111         * doc/functions/frexpl.texi: Update.
80113 2007-05-20  Jim Meyering  <jim@meyering.net>
80115         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
80116         forced upon us by glibc-2.6.
80118 2007-05-20  Bruno Haible  <bruno@clisp.org>
80120         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
80121         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
80122         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
80123         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
80124         NEED_PRINTF_INFINITE.
80125         (is_infinitel): New function.
80126         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
80127         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
80128         gl_PREREQ_VASNPRINTF_INFINITE.
80129         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
80130         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80131         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
80132         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
80133         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
80134         gl_PREREQ_VASNPRINTF_INFINITE.
80135         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80136         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80137         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80138         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80139         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80140         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80141         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80142         * doc/functions/fprintf.texi: Update.
80143         * doc/functions/printf.texi: Update.
80144         * doc/functions/snprintf.texi: Update.
80145         * doc/functions/sprintf.texi: Update.
80146         * doc/functions/vfprintf.texi: Update.
80147         * doc/functions/vprintf.texi: Update.
80148         * doc/functions/vsnprintf.texi: Update.
80149         * doc/functions/vsprintf.texi: Update.
80151 2007-05-20  Bruno Haible  <bruno@clisp.org>
80153         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
80154         was not found in libc.
80155         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
80157 2007-05-20  Bruno Haible  <bruno@clisp.org>
80159         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
80160         printed as "-nan" instead of "nan".
80161         * tests/test-vasprintf-posix.c (test_function): Likewise.
80162         * tests/test-snprintf-posix.h (test_function): Likewise.
80163         * tests/test-sprintf-posix.h (test_function): Likewise.
80164         Needed for HP-UX 11.
80166 2007-05-20  Jim Meyering  <jim@meyering.net>
80168         Fix buggy test for the fchownat-deref bug.
80169         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
80170         symlink required for the run-test.  Without it, this test would
80171         always declare that fchownat doesn't work, and client code would
80172         unnecessarily use the replacement function with fixed libc.
80173         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
80174         Reported by Greg Schafer.
80176 2007-05-19  Bruno Haible  <bruno@clisp.org>
80178         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
80179         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
80180         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
80181         Needed for IRIX 6.5 and Solaris 2.5.1.
80183 2007-05-19  Bruno Haible  <bruno@clisp.org>
80185         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
80186         (test_function): Skip tests involving -0.0 on platforms where
80187         -0.0 = 0.0.
80188         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
80189         (test_function): Skip tests involving -0.0 on platforms where
80190         -0.0 = 0.0.
80191         * tests/test-snprintf-posix.h (have_minus_zero): New function.
80192         (test_function): Skip tests involving -0.0 on platforms where
80193         -0.0 = 0.0.
80194         * tests/test-sprintf-posix.h (have_minus_zero): New function.
80195         (test_function): Skip tests involving -0.0 on platforms where
80196         -0.0 = 0.0.
80197         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
80198         tests.
80199         * tests/test-printf-posix.h (test_function): Likewise.
80200         * tests/test-printf-posix.output: Remove all -0.0 related results.
80201         Needed for IRIX 6.5.
80203 2007-05-19  Bruno Haible  <bruno@clisp.org>
80205         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
80206         printed as "nan0x7fffffff" instead of "nan".
80207         * tests/test-vasprintf-posix.c (test_function): Likewise.
80208         * tests/test-snprintf-posix.h (test_function): Likewise.
80209         * tests/test-sprintf-posix.h (test_function): Likewise.
80210         * tests/test-fprintf-posix.h (NaN): Remove macro.
80211         (test_function): Remove all NaN related tests.
80212         * tests/test-printf-posix.h (NaN): Remove macro.
80213         (test_function): Remove all NaN related tests.
80214         * tests/test-printf-posix.output: Remove all NaN related results.
80215         Needed for IRIX 6.5.
80217 2007-05-19  Bruno Haible  <bruno@clisp.org>
80219         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
80220         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
80222 2007-05-19  Bruno Haible  <bruno@clisp.org>
80224         * lib/float_.h: New file.
80225         * m4/float_h.m4: New file.
80226         * modules/float: New file.
80227         * modules/isnanl (Dependencies): Add float.
80228         * modules/isnanl-nolibm (Dependencies): Likewise.
80229         * modules/mathl (Dependencies): Likewise.
80230         * modules/printf-frexpl (Dependencies): Likewise.
80231         * modules/signbit (Dependencies): Likewise.
80232         * modules/vasnprintf (Dependencies): Likewise.
80233         * doc/headers/float.texi: Update.
80235 2007-05-19  Jim Meyering  <jim@meyering.net>
80237         * lib/utimens.c (gl_futimens): Rename from futimens,
80238         now that glibc-2.6 declares futimens.
80239         * lib/utimens.h: Likewise.
80241 2007-05-19  Bruno Haible  <bruno@clisp.org>
80243         Avoid test failures on mingw.
80244         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
80245         * tests/test-printf-posix.sh: Likewise.
80246         * tests/test-vfprintf-posix.sh: Likewise.
80247         * tests/test-vprintf-posix.sh: Likewise.
80249 2007-05-19  Bruno Haible  <bruno@clisp.org>
80251         Fix *printf result for NaN, Inf, -0.0 on mingw.
80252         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
80253         * lib/vasnprintf.c: Include math.h and isnan.h.
80254         (is_infinite_or_zero): New function.
80255         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
80256         values in the %f, %F, %e, %E, %g, %G directives.
80257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
80258         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80259         gl_PRINTF_INFINITE and test its result. Invoke
80260         gl_PREREQ_VASNPRINTF_INFINITE.
80261         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80262         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80263         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80264         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80265         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80266         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80267         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80268         * doc/functions/fprintf.texi: Update.
80269         * doc/functions/printf.texi: Update.
80270         * doc/functions/snprintf.texi: Update.
80271         * doc/functions/sprintf.texi: Update.
80272         * doc/functions/vfprintf.texi: Update.
80273         * doc/functions/vprintf.texi: Update.
80274         * doc/functions/vsnprintf.texi: Update.
80275         * doc/functions/vsprintf.texi: Update.
80277 2007-05-19  Bruno Haible  <bruno@clisp.org>
80279         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
80280         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
80281         Instead of multiplying with 10^k, set extra_zeroes to k.
80282         (scale10_round_long_double): Remove function.
80284 2007-05-18  Bruno Haible  <bruno@clisp.org>
80286         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
80287         introduced on 2007-05-06.
80289 2007-05-18  Bruno Haible  <bruno@clisp.org>
80291         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
80292         %g directives.
80293         * tests/test-vasprintf-posix.c (test_function): Likewise.
80294         * tests/test-snprintf-posix.h (test_function): Likewise.
80295         * tests/test-sprintf-posix.h (test_function): Likewise.
80297 2007-05-18  Bruno Haible  <bruno@clisp.org>
80299         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
80300         (strmatch): New function.
80301         (test_function): Test the %f directive on numbers of various exponents.
80302         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
80303         (strmatch): New function.
80304         (test_function): Test the %f directive on numbers of various exponents.
80305         * tests/test-snprintf-posix.h (strmatch): New function.
80306         (test_function): Test the %f directive on numbers of various exponents.
80307         * tests/test-sprintf-posix.h (strmatch): New function.
80308         (test_function): Test the %f directive on numbers of various exponents.
80309         * tests/test-snprintf-posix.c (SIZEOF): New macro.
80310         * tests/test-sprintf-posix.c (SIZEOF): New macro.
80311         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
80312         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
80314 2007-05-18  Bruno Haible  <bruno@clisp.org>
80316         Add support for 'long double' number output.
80317         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
80318         * lib/vasnprintf.c: Include math.h and float+.h.
80319         (mp_limb_t): New type.
80320         (GMP_LIMB_BITS): New macro.
80321         (mp_twolimb_t): New type.
80322         (GMP_TWOLIMB_BITS): New macro.
80323         (mpn_t): New type.
80324         (multiply, divide, convert_to_decimal, decode_long_double,
80325         scale10_round_long_double, scale10_round_decimal_long_double,
80326         floorlog10l): New functions.
80327         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
80328         for the %f, %F, %e, %E, %g, %G directives.
80329         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
80330         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80331         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
80332         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
80333         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80334         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80335         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80336         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80337         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80338         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80339         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80340         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
80341         * modules/snprintf-posix (Depends-on): Likewise.
80342         * modules/sprintf-posix (Depends-on): Likewise.
80343         * modules/vasnprintf-posix (Depends-on): Likewise.
80344         * modules/vasprintf-posix (Depends-on): Likewise.
80345         * modules/vfprintf-posix (Depends-on): Likewise.
80346         * modules/vsnprintf-posix (Depends-on): Likewise.
80347         * modules/vsprintf-posix (Depends-on): Likewise.
80348         * modules/vasnprintf (Files): Add lib/float+.h.
80349         * doc/functions/fprintf.texi: Update.
80350         * doc/functions/printf.texi: Update.
80351         * doc/functions/snprintf.texi: Update.
80352         * doc/functions/sprintf.texi: Update.
80353         * doc/functions/vfprintf.texi: Update.
80354         * doc/functions/vprintf.texi: Update.
80355         * doc/functions/vsnprintf.texi: Update.
80356         * doc/functions/vsprintf.texi: Update.
80358 2007-05-18  Bruno Haible  <bruno@clisp.org>
80360         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
80362 2007-05-18  Bruno Haible  <bruno@clisp.org>
80364         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
80365         for printing 64-bit integers. Needed for mingw.
80367 2007-05-18  Bruno Haible  <bruno@clisp.org>
80369         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
80370         gl_FUNC_FREXPL_WORKS.
80371         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
80373 2007-05-18  Bruno Haible  <bruno@clisp.org>
80375         * modules/frexpl-nolibm-tests: New file.
80377         * modules/frexpl-nolibm: New file.
80378         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
80380 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80382         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
80383         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
80384         GCC 4.2, which otherwise issues a lot of warnings.
80385         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
80386         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
80387         Likewise.
80388         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
80389         * modules/iconv_open (iconv.h): Likewise.
80390         * modules/locale (locale.h): Likewise.
80391         * modules/netinet_in (netinet/in.h): Likewise.
80392         * modules/sys_select (sys_select.h): Likewise.
80393         * modules/sys_socket (sys/socket.h): Likewise.
80394         * modules/sys_stat (sys/stat.h): Likewise.
80395         * modules/sysexits (sysexits.h): Likewise.
80396         * modules/unistd (unistd.h): Likewise.
80398 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80400         * modules/closein-tests (Makefile.am): Distribute
80401         `test-closein.sh'.
80403 2007-05-17  Bruno Haible  <bruno@clisp.org>
80405         * tests/test-printf-posix.output: Renamed from
80406         tests/test-fprintf-posix.out.
80407         * modules/fprintf-posix-tests: Update.
80408         * modules/printf-posix-tests: Update.
80409         * modules/vfprintf-posix-tests: Update.
80410         * modules/vprintf-posix-tests: Update.
80411         * tests/test-fprintf-posix.sh: Update.
80412         * tests/test-printf-posix.sh: Update.
80413         * tests/test-vfprintf-posix.sh: Update.
80414         * tests/test-vprintf-posix.sh: Update.
80415         Reported by Ralf Wildenhues.
80417 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80419         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
80420         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
80421         GCC 4.2, which otherwise issues a lot of warnings.
80422         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
80423         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
80424         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
80425         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
80426         it should no longer be needed.
80427         * lib/string_.h: Likewise.
80428         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
80429         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
80430         * modules/inttypes (inttypes.h): Likewise.
80431         * modules/math (math.h): Likewise.
80432         * modules/search (search.h): Likewise.
80433         * modules/signal (signal.h): Likewise.
80434         * modules/stdint (stdint.h): Likewise.
80435         * modules/stdio (stdio.h): Likewise.
80436         * modules/stdlib (stdlib.h): Likewise.
80437         * modules/string (string.h): Likewise.
80438         * modules/sys_time (sys/time.h): Likewise.
80439         * modules/time (time.h): Likewise.
80440         * modules/wchar (wchar.h): Likewise.
80441         * modules/wctype (wtype.h): Likewise.
80443 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
80445         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
80447 2007-05-13  Bruno Haible  <bruno@clisp.org>
80449         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
80450         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
80451         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
80452         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80453         (gl_PREREQ_STRTOK_R): Don't require it here.
80455 2007-05-13  Bruno Haible  <bruno@clisp.org>
80457         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
80458         when used in C++ mode.
80460 2007-05-12  Bruno Haible  <bruno@clisp.org>
80462         * lib/linebuffer.h: Tweak doc.
80463         * lib/linebuffer.c: Likewise.
80465 2007-05-12  James Youngman  <jay@gnu.org>
80467         * lib/linebuffer.c (readlinebuffer_delim): New function,
80468         like readlinebuffer, but use a caller-specified delimiter.
80469         (readlinebuffer): Just call readlinebuffer_delim with '\n'
80470         as the delimiter.
80471         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
80473 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80475         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
80476         * modules/openat (Files): Remove openat-die.c.
80477         (Depends-on): Add openat-die.
80478         * modules/openat-die: New module.
80480 2007-05-06  Bruno Haible  <bruno@clisp.org>
80482         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
80483         Update with info about Cygwin.
80484         * doc/functions/fprintf.texi: Update.
80485         * doc/functions/printf.texi: Update.
80486         * doc/functions/snprintf.texi: Update.
80487         * doc/functions/sprintf.texi: Update.
80488         * doc/functions/vfprintf.texi: Update.
80489         * doc/functions/vprintf.texi: Update.
80490         * doc/functions/vsnprintf.texi: Update.
80491         * doc/functions/vsprintf.texi: Update.
80492         Reported by Eric Blake.
80494 2007-05-06  Bruno Haible  <bruno@clisp.org>
80496         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
80497         padding ourselves for the floating-point directives.
80498         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
80499         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
80500         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
80501         gl_PRINTF_FLAG_ZERO and test its result. Invoke
80502         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
80503         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80504         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
80505         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80506         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80507         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80508         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80509         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80510         * tests/test-snprintf-posix.h (test_function): Also check the width
80511         and some flags in the %f directive.
80512         * tests/test-sprintf-posix.h (test_function): Likewise.
80513         * tests/test-vasnprintf-posix.c (test_function): Likewise.
80514         * tests/test-vasprintf-posix.c (test_function): Likewise.
80515         * doc/functions/fprintf.texi: Update.
80516         * doc/functions/printf.texi: Update.
80517         * doc/functions/snprintf.texi: Update.
80518         * doc/functions/sprintf.texi: Update.
80519         * doc/functions/vfprintf.texi: Update.
80520         * doc/functions/vprintf.texi: Update.
80521         * doc/functions/vsnprintf.texi: Update.
80522         * doc/functions/vsprintf.texi: Update.
80524 2007-05-06  Bruno Haible  <bruno@clisp.org>
80526         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
80527         pass the ' flag character to sprintf or snprintf.
80528         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
80529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
80530         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
80531         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
80532         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
80533         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80534         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
80535         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80536         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80537         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80538         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80539         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80540         * tests/test-snprintf-posix.h (test_function): Also check the grouping
80541         flag.
80542         * tests/test-sprintf-posix.h (test_function): Likewise.
80543         * tests/test-vasnprintf-posix.c (test_function): Likewise.
80544         * tests/test-vasprintf-posix.c (test_function): Likewise.
80545         * doc/functions/fprintf.texi: Update.
80546         * doc/functions/printf.texi: Update.
80547         * doc/functions/snprintf.texi: Update.
80548         * doc/functions/sprintf.texi: Update.
80549         * doc/functions/vfprintf.texi: Update.
80550         * doc/functions/vprintf.texi: Update.
80551         * doc/functions/vsnprintf.texi: Update.
80552         * doc/functions/vsprintf.texi: Update.
80554 2007-05-01  Bruno Haible  <bruno@clisp.org>
80556         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
80558 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
80560         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
80561         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
80563 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80565         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
80566         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
80567         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
80569 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
80571         * lib/argp-help.c (struct hol_entry): New member `ord'.
80572         (HOL_ENTRY_PTRCMP): Use ord for comparison
80573         (hol_sort): Initialize ord.
80575 2007-05-01  Bruno Haible  <bruno@clisp.org>
80577         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
80578         Reported by Eric Blake.
80579         * doc/gnulib.texi (Function Substitutes): Update.
80581 2007-05-01  Bruno Haible  <bruno@clisp.org>
80583         * doc/functions.texi: Remove file, now redundant through
80584         doc/functions/*.texi.
80586 2007-05-01  Bruno Haible  <bruno@clisp.org>
80588         * modules/argp (Depends-on): Add sleep.
80590 2007-05-01  Bruno Haible  <bruno@clisp.org>
80592         * modules/sleep-tests: New file.
80593         * tests/test-sleep.c: New file.
80595         * modules/sleep: New file.
80596         * lib/sleep.c: New file.
80597         * m4/sleep.m4: New file.
80598         * lib/unistd_.h (sleep): New declaration.
80599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
80600         HAVE_SLEEP.
80601         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
80602         * doc/functions/sleep.texi: Document the sleep module.
80604 2007-05-01  Bruno Haible  <bruno@clisp.org>
80606         * lib/sigprocmask.h: Remove file.
80607         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
80608         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
80609         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
80610         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
80611         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
80612         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
80613         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
80614         HAVE_SIGSET_T as a shell variable.
80615         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
80616         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
80617         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
80618         (Depends-on): Add signal. Remove verify.
80619         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
80620         (Include): Mention <signal.h> instead of sigprocmask.h.
80621         * NEWS: Mention the change.
80622         * lib/fatal-signal.c: Don't include sigprocmask.h.
80624 2007-05-01  Bruno Haible  <bruno@clisp.org>
80626         * modules/signal: New file.
80627         * lib/signal_.h: New file.
80628         * m4/signal_h.m4: New file.
80630 2007-05-01  Bruno Haible  <bruno@clisp.org>
80632         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
80633         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
80634         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
80635         HAVE_WCTYPE_CTMP_BUG into wctype.h.
80637 2007-05-01  Bruno Haible  <bruno@clisp.org>
80639         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
80640         configure time.
80641         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
80642         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
80643         * modules/sys_stat (Makefile.am): Substitute their values into
80644         sys/stat.h.
80646 2007-05-01  Bruno Haible  <bruno@clisp.org>
80648         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
80649         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
80650         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
80652 2007-05-01  Bruno Haible  <bruno@clisp.org>
80654         * doc/header/assert.texi: Undo last change: don't mention the gnulib
80655         'assert' module here.
80657 2007-05-01  Bruno Haible  <bruno@clisp.org>
80659         * doc/functions/*.texi: New files.
80660         * doc/functions/google-ranking.txt: New file.
80661         * doc/gnulib.texi (Function Substitutes): New chapter.
80662         (ctime, inet_ntoa): Remove sections.
80663         * doc/ctime.texi: Remove file.
80664         * doc/inet_ntoa.texi: Remove file.
80665         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
80666         dependencies.
80667         (%.info): New rule, specifying a --reference-limit.
80669 2007-05-01  Bruno Haible  <bruno@clisp.org>
80671         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
80673 2007-05-01  Bruno Haible  <bruno@clisp.org>
80675         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
80676         the portability of 'mkdir' to mingw systems.
80678 2007-05-01  Bruno Haible  <bruno@clisp.org>
80680         * doc/headers/google-ranking.txt: New file.
80682 2007-04-30  Eric Blake  <ebb9@byu.net>
80684         Prefer fseeko to fseek.
80685         * modules/getpass (Depends-on): Add fseeko.
80686         * lib/getpass.c (getpass): Use fseeko, not fseek.
80688 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
80690         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
80691         assumes the sorting is stable, while most qsort implementations
80692         are not.  Use argument addresses to ensure they never compare as
80693         equal.
80695         * tests/test-argp-2.sh (usage-indent test): Fix output
80696         (func_compare): Restore diff options
80697         * tests/test-argp.c: Restore #include "progname.h"
80699 2007-04-29  Bruno Haible  <bruno@clisp.org>
80701         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
80702         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
80703         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
80704         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80705         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
80706         (configure.ac): Define CHECK_SNPRINTF_POSIX.
80707         (TESTS, check_PROGRAMS): Add test-snprintf.
80708         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
80709         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
80710         (TESTS, check_PROGRAMS): Add test-vsnprintf.
80711         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
80712         assertions that fail on HP-UX, OSF/1, or IRIX.
80713         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
80715 2007-04-29  Bruno Haible  <bruno@clisp.org>
80717         * MODULES.html.sh (posix_functions): Remove 'contents'.
80719 2007-04-29  Karl Berry  <karl@gnu.org>
80721         * config/srclist.txt (gendocs_template_min): new entry.
80723 2007-04-29  Bruno Haible  <bruno@clisp.org>
80725         Work around fpurge bug on BSD systems.
80726         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
80727         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
80728         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
80729         fpurge to rpl_fpurge if the system already has this function.
80730         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
80731         the case where the system already has this function. Correct invariants
80732         on BSD systems.
80733         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
80734         BSD systems.
80736 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
80738         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
80739         proposed by Sven Verdoolaege.
80741         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
80742         options.
80743         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
80744         (usage and help tests): Update
80746 2007-04-29  Bruno Haible  <bruno@clisp.org>
80748         * tests/test-fflush.c (main): Use a file of size 17, not 10.
80749         Print more information in case of failure. Disable a test on BeOS.
80751 2007-04-29  Bruno Haible  <bruno@clisp.org>
80753         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
80754         This helps debugging on systems on which no gdb is available.
80756 2007-04-29  Bruno Haible  <bruno@clisp.org>
80758         * lib/freading.h: Improve comments.
80759         * lib/fwriting.h: Likewise.
80760         * tests/test-freading.c (main): Don't check freading immediately after
80761         repositioning. Needed for glibc.
80763 2007-04-29  Bruno Haible  <bruno@clisp.org>
80765         * lib/freading.c (freading): Trivial simplification.
80767 2007-04-28  Bruno Haible  <bruno@clisp.org>
80769         * tests/test-fwriting.c (main): Also test the interaction between
80770         fflush and fwriting.
80771         * modules/fwriting-tests (Depends-on): Add fflush.
80773         * tests/test-freading.c (main): Also test the interaction between
80774         fflush and freading.
80775         * modules/freading-tests (Depends-on): Add fflush.
80777 2007-04-28  Bruno Haible  <bruno@clisp.org>
80779         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
80780         fseeko and ftello.
80781         Suggested by Eric Blake.
80783 2007-04-28  Jim Meyering  <jim@meyering.net>
80785         Avoid false-negative in gl_STDINT_H's C99 conformance test.
80786         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
80787         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
80789 2007-04-27  Eric Blake  <ebb9@byu.net>
80791         * doc/headers/assert.texi (assert.h): Document assert module use.
80793 2007-04-27  Bruno Haible  <bruno@clisp.org>
80795         * doc/headers/*.texi: New files.
80796         * doc/gnulib.texi (Header File Substitutes): New chapter.
80797         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
80798         dependencies.
80799         (standards.info ,standards.html, standards.dvi): Update dependencies.
80800         (mostlyclean, clean): New targets.
80802 2007-04-27  Bruno Haible  <bruno@clisp.org>
80804         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
80805         * modules/sysexits (Files, Makefile.am): Update.
80807         * lib/sys_socket_.h: Renamed from lib/socket_.h.
80808         * modules/sys_socket (Files, Makefile.am): Update.
80810         * lib/sys_stat_.h: Renamed from lib/stat_.h.
80811         * modules/sys_stat (Files, Makefile.am): Update.
80813 2007-04-27  Eric Blake  <ebb9@byu.net>
80815         * lib/freading.h: Improve comments.
80816         * lib/fwriting.h: Likewise.
80817         * lib/fflush.c: Likewise.
80819         Fix closein for mingw.
80820         * modules/closein-tests: Add tests for closein.
80821         * tests/test-closein.c: New file.
80822         * tests/test-closein.sh: Likewise.
80823         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
80824         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
80826 2007-04-27  Bruno Haible  <bruno@clisp.org>
80828         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
80829         version is < 6.
80830         * lib/math_.h [__DECC]: Likewise.
80831         * lib/stdio_.h [__DECC]: Likewise.
80832         * lib/stdlib_.h [__DECC]: Likewise.
80833         * lib/string_.h [__DECC]: Likewise.
80834         * lib/time_.h [__DECC]: Likewise.
80835         * lib/wchar_.h [__DECC]: Likewise.
80836         * lib/wctype_.h [__DECC]: Likewise.
80838 2007-04-27  Bruno Haible  <bruno@clisp.org>
80840         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
80842 2007-04-27  Bruno Haible  <bruno@clisp.org>
80844         * lib/fflush.c: Add comments.
80845         * modules/fpurge-tests (Depends-on): Add fflush.
80846         * modules/freadable-tests (Depends-on): Likewise.
80847         * modules/fwritable-tests (Depends-on): Likewise.
80849 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
80851         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
80852         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
80853         Report by Bruno Haible <bruno@clisp.org>.
80855 2007-04-26  Eric Blake  <ebb9@byu.net>
80857         Fix fflush on mingw.
80858         * modules/fflush (Depends-on): Add freading.
80859         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
80860         but unread data.
80862 2007-04-26  Eric Blake  <ebb9@byu.net>
80863         and Bruno Haible  <bruno@clisp.org>
80865         Implement freading and fwriting.
80866         * lib/freading.c: New file.
80867         * lib/freading.h: Likewise.
80868         * m4/freading.m4: Likewise.
80869         * modules/freading: Likewise.
80870         * modules/freading-tests: Likewise.
80871         * tests/test-freading.c: Likewise.
80872         * lib/fwriting.c: New file.
80873         * lib/fwriting.h: Likewise.
80874         * m4/fwriting.m4: Likewise.
80875         * modules/fwriting: Likewise.
80876         * modules/fwriting-tests: Likewise.
80877         * tests/test-fwriting.c: Likewise.
80878         * MODULES.html.sh (File stream based Input/Output): Mention them.
80880 2007-04-26  Bruno Haible  <bruno@clisp.org>
80882         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
80883         'long' when we assume it.
80884         Suggested by Eric Blake.
80886 2007-04-26  Bruno Haible  <bruno@clisp.org>
80888         Ensure fseeko, ftello are declared on glibc systems.
80889         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
80890         * modules/fseeko (configure.ac-early): Likewise.
80891         * modules/ftello (configure.ac-early): Likewise.
80892         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
80893         AC_FUNC_FSEEKO for this.
80894         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
80895         (gl_CHECK_FSEEKO): Remove macro.
80897 2007-04-26  Bruno Haible  <bruno@clisp.org>
80899         * tests/test-fflush.c (main): Also check the ftell result after
80900         fflush and fseek/fseeko.
80901         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
80902         file descriptor position cache in the stream.
80903         * lib/fseeko.c (rpl_fseeko): Likewise.
80905 2007-04-26  Bruno Haible  <bruno@clisp.org>
80907         * modules/fflush-tests (Depends-on): Add fseeko.
80909 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
80910             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80912         * lib/argz_.h: ensure error_t definition is obtained in same
80913         mechanism system argz.h would have.
80914         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
80915         argz facilities are known bad.  Err on the side of caution if
80916         cross-compiling.
80918 2007-04-25  Eric Blake  <ebb9@byu.net>
80920         * lib/fpurge.c (includes): Use stdlib.h for free.
80921         * tests/test-fflush.c (main): Also test fflush-fseeko.
80923 2007-04-25  Bruno Haible  <bruno@clisp.org>
80925         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
80926         * lib/fseeko.c: New file.
80927         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
80928         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
80929         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
80930         gl_FUNC_FSEEKO.
80931         (gl_FUNC_FSEEKO): Invoke it.
80932         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
80933         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
80934         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
80936 2007-04-25  Bruno Haible  <bruno@clisp.org>
80938         * modules/fflush (Depends-on): Add ftello.
80940 2007-04-25  Bruno Haible  <bruno@clisp.org>
80942         * modules/ftello-tests: New file.
80943         * tests/test-ftello.c: New file.
80945         * modules/ftello: New file.
80946         * m4/ftello.m4: New file.
80947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
80948         HAVE_FTELLO.
80949         * lib/stdio_.h (ftello): New declaration.
80950         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
80951         HAVE_FTELLO.
80953 2007-04-25  Bruno Haible  <bruno@clisp.org>
80955         * modules/fseeko-tests: New file.
80956         * tests/test-fseeko.c: New file.
80958         * modules/fseeko: New file.
80959         * m4/fseeko.m4: New file.
80960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
80961         HAVE_FSEEKO.
80962         * lib/stdio_.h (fseeko): New declaration.
80963         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
80964         HAVE_FSEEKO.
80966 2007-04-25  Bruno Haible  <bruno@clisp.org>
80968         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
80970 2007-04-25  Bruno Haible  <bruno@clisp.org>
80972         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
80973         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
80974         * tests/test-unistd.c: Likewise.
80975         * tests/test-fcntl.c: Likewise.
80977 2007-04-23  Eric Blake  <ebb9@byu.net>
80979         * lib/fflush.c: Fix missing include.
80980         Reported by Bruno Haible.
80982 2007-04-23  Bruno Haible  <bruno@clisp.org>
80984         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
80985         Reported by Eric Blake.
80987 2007-04-23  Bruno Haible  <bruno@clisp.org>
80989         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
80991 2007-04-23  Bruno Haible  <bruno@clisp.org>
80993         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
80995 2007-04-23  Bruno Haible  <bruno@clisp.org>
80997         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
80998         Needed on HP-UX 11.
81000 2007-04-16  Eric Blake  <ebb9@byu.net>
81002         Make fflush rely on fpurge.
81003         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
81004         open coding all variants.
81005         * modules/fflush (Depends-on): Add fpurge and unistd.
81006         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
81007         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
81009         Fix --with-tests compilation on cygwin.
81010         * modules/argmatch-tests (Makefile.am): List gnulib library first
81011         in LDADD.
81012         * modules/argp-tests (Makefile.am): Likewise.
81013         * modules/array-list-tests (Makefile.am): Likewise.
81014         * modules/array-oset-tests (Makefile.am): Likewise.
81015         * modules/avltree-list-tests (Makefile.am): Likewise.
81016         * modules/avltree-oset-tests (Makefile.am): Likewise.
81017         * modules/avltreehash-list-tests (Makefile.am): Likewise.
81018         * modules/carray-list-tests (Makefile.am): Likewise.
81019         * modules/dirname-tests (Makefile.am): Likewise.
81020         * modules/frexp-tests (Makefile.am): Likewise.
81021         * modules/isnanl-tests (Makefile.am): Likewise.
81022         * modules/linked-list-tests (Makefile.am): Likewise.
81023         * modules/linkedhash-list-tests (Makefile.am): Likewise.
81024         * modules/lock-tests (Makefile.am): Likewise.
81025         * modules/rbtree-list-tests (Makefile.am): Likewise.
81026         * modules/rbtree-oset-tests (Makefile.am): Likewise.
81027         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
81028         * modules/tls-tests (Makefile.am): Likewise.
81029         * modules/tsearch-tests (Makefile.am): Likewise.
81030         * modules/xvasprintf-tests (Makefile.am): Likewise.
81032         Fix fpurge for cygwin.
81033         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
81034         value.
81035         * modules/fpurge-tests (Depends-on): Clean up trash.
81037 2007-04-16  Simon Josefsson  <simon@josefsson.org>
81039         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
81041         * m4/autobuild.m4: Re-indent.
81043 2007-04-13  Bruno Haible  <bruno@clisp.org>
81045         * modules/fpurge-tests: New file.
81046         * tests/test-fpurge.c: New file.
81048         * modules/fpurge: New file.
81049         * lib/fpurge.h: New file.
81050         * lib/fpurge.c: New file.
81051         * m4/fpurge.m4: New file.
81053 2007-04-13  Bruno Haible  <bruno@clisp.org>
81055         * modules/fbufmode-tests: New file.
81056         * tests/test-fbufmode.c: New file.
81058         * modules/fbufmode: New file.
81059         * lib/fbufmode.h: New file.
81060         * lib/fbufmode.c: New file.
81061         * m4/fbufmode.m4: New file.
81063 2007-04-13  Bruno Haible  <bruno@clisp.org>
81065         * modules/fwritable-tests: New file.
81066         * tests/test-fwritable.c: New file.
81068         * modules/fwritable: New file.
81069         * lib/fwritable.h: New file.
81070         * lib/fwritable.c: New file.
81071         * m4/fwritable.m4: New file.
81073 2007-04-13  Bruno Haible  <bruno@clisp.org>
81075         * modules/freadable-tests: New file.
81076         * tests/test-freadable.c: New file.
81078         * modules/freadable: New file.
81079         * lib/freadable.h: New file.
81080         * lib/freadable.c: New file.
81081         * m4/freadable.m4: New file.
81083 2007-04-13  Bruno Haible  <bruno@clisp.org>
81085         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
81086         MOSTLYCLEANFILES.
81088 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81090         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
81091         gzip bootstrap.conf to avoid dragging in i18n machinery.
81092         (gnulib_tool_option): Use it.
81094 2007-04-13  Bruno Haible  <bruno@clisp.org>
81096         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
81097         %F directives.
81098         * tests/test-vasprintf-posix.c (test_function): Likewise.
81099         * tests/test-snprintf-posix.h (test_function): Likewise.
81100         * tests/test-sprintf-posix.h (test_function): Likewise.
81101         * tests/test-fprintf-posix.h (test_function): Likewise.
81102         * tests/test-printf-posix.h (test_function): Likewise.
81103         * tests/test-fprintf-posix.out: Likewise.
81105 2007-04-13  Bruno Haible  <bruno@clisp.org>
81107         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
81108         * modules/tls-tests (configure.ac): Likewise.
81109         Reported by Arto C. Nirkko <anirkko@insel.ch>.
81111 2007-04-13  Bruno Haible  <bruno@clisp.org>
81113         * lib/tls.c (glthread_tls_get): Fix return type.
81114         Patch by Arto C. Nirkko <anirkko@insel.ch>.
81116 2007-04-12  Eric Blake  <ebb9@byu.net>
81118         * modules/gettime (Depends-on): Remove gettime.
81119         Reported by Dmitry V. Levin.
81121 2007-04-12  Bruno Haible  <bruno@clisp.org>
81123         * modules/fflush (Include): Mention <stdio.h>.
81124         * modules/strtoimax (Include): Mention <inttypes.h>.
81125         * modules/strtoumax (Include): Likewise.
81127 2007-04-12  Eric Blake  <ebb9@byu.net>
81129         * .cvsignore: New file.
81130         * .gitignore: Likewise.
81132 2007-04-12  Bruno Haible  <bruno@clisp.org>
81134         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
81135         not before, since $(LDADD) often contains libgnu.a.
81136         * modules/striconv-tests (test_striconv_LDADD): Likewise.
81137         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
81138         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
81139         Needed on Cygwin.
81141 2007-04-12  Eric Blake  <ebb9@byu.net>
81143         Work around glibc's failure to flush stdin on fclose.
81144         * lib/closein.c (close_stdin): Flush stdin before closing.
81146         Work around glibc's failure to reset seekable stdin on exit.
81147         * modules/closein: New module.
81148         * lib/closein.c: New file.
81149         * lib/closein.h: Likewise.
81150         * m4/closein.m4: Likewise.
81151         * MODULES.html.sh (File stream based Input/Output): Document it.
81153 2007-04-12  Simon Josefsson  <simon@josefsson.org>
81155         * gnulib-tool: Rename generated 'autobuild' script to
81156         'do-autobuild' in --create-megatestdir output.
81158         * doc/gnulib.texi (Build robot for gnulib): Fix.
81160 2007-04-12  Simon Josefsson  <simon@josefsson.org>
81162         * modules/sysexits (Depends-on): Add absolute-header.
81164 2007-04-12  Eric Blake  <ebb9@byu.net>
81166         No need to preserve errno on success.
81167         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
81168         Reported by Bruno Haible.
81170 2007-04-12  Simon Josefsson  <simon@josefsson.org>
81172         * MODULES.html.sh (Support for maintaining and releasing
81173         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
81175 2007-04-12  Simon Josefsson  <simon@josefsson.org>
81177         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
81179 2007-04-12  Simon Josefsson  <simon@josefsson.org>
81181         * modules/autobuild: New module.
81183         * m4/autobuild.m4: New file.
81185 2007-04-11  Bruno Haible  <bruno@clisp.org>
81187         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
81188         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
81189         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
81190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
81191         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81192         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81193         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81194         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
81195         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81196         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81197         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
81198         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81199         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81200         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
81201         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81202         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81203         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
81204         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81205         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81206         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
81207         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81208         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81209         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
81210         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81211         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81212         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
81213         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
81214         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
81215         Reported by Eric Blake.
81217 2007-04-11  Bruno Haible  <bruno@clisp.org>
81219         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
81221 2007-04-10  Bruno Haible  <bruno@clisp.org>
81223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
81224         for NaN and Infinity. Needed on FreeBSD 6.1.
81225         * tests/test-vasnprintf-posix.c (test_function): Undo last change
81226         regarding results for "%010a" of Infinity and NaN.
81227         * tests/test-vasprintf-posix.c (test_function): Likewise.
81228         * tests/test-snprintf-posix.h (test_function): Likewise.
81229         * tests/test-sprintf-posix.h (test_function): Likewise.
81230         * tests/test-fprintf-posix.h (test_function): Likewise.
81231         * tests/test-printf-posix.h (test_function): Likewise.
81232         * tests/test-fprintf-posix.out: Likewise.
81234 2007-04-10  Bruno Haible  <bruno@clisp.org>
81236         * modules/locale-tests: New file.
81237         * tests/test-locale.c: New file.
81239         * modules/locale: New file.
81240         * lib/locale_.h: New file.
81241         * m4/locale_h.m4: New file.
81243 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
81244             Bruno Haible  <bruno@clisp.org>
81246         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
81247         be determined, test for availability of the copysignf, copysign,
81248         copysignl functions.
81249         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
81250         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
81251         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
81253 2007-04-09  Eric Blake  <ebb9@byu.net>
81255         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
81256         * modules/stdio (Makefile.am): Support fflush.
81257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
81258         * modules/fflush: New file.
81259         * lib/fflush.c: Likewise.
81260         * m4/fflush.m4: Likewise.
81261         * modules/fflush-tests: New test.
81262         * tests/test-fflush.c: Likewise.
81263         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
81265 2007-04-06  Bruno Haible  <bruno@clisp.org>
81267         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
81268         (VASNPRINTF): Use signbit for faster determination whether to print a
81269         minus sign.
81270         * modules/vasnprintf (Files): Remove lib/float+.h.
81271         * modules/fprintf-posix (Depends-on): Add signbit.
81272         * modules/snprintf-posix (Depends-on): Likewise.
81273         * modules/sprintf-posix (Depends-on): Likewise.
81274         * modules/vasnprintf-posix (Depends-on): Likewise.
81275         * modules/vasprintf-posix (Depends-on): Likewise.
81276         * modules/vfprintf-posix (Depends-on): Likewise.
81277         * modules/vsnprintf-posix (Depends-on): Likewise.
81278         * modules/vsprintf-posix (Depends-on): Likewise.
81280 2007-04-06  Bruno Haible  <bruno@clisp.org>
81282         * tests/test-frexp.c (main): Test also the sign bit of zero results.
81283         * tests/test-frexpl.c (main): Likewise.
81284         * tests/test-ldexpl.c (main): Likewise.
81285         * modules/frexp-tests (Depends-on): Add signbit.
81286         * modules/frexpl-tests (Depdends-on): Likewise.
81287         * modules/ldexpl-tests (Depdends-on): Likewise.
81289 2007-04-06  Bruno Haible  <bruno@clisp.org>
81291         * modules/signbit-tests: New file.
81292         * tests/test-signbit.c: New file.
81294         * modules/signbit: New file.
81295         * lib/signbitf.c: New file.
81296         * lib/signbitd.c: New file.
81297         * lib/signbitl.c: New file.
81298         * m4/signbit.m4: New file.
81299         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
81300         (signbit): New macro.
81301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
81302         REPLACE_SIGNBIT.
81303         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
81304         REPLACE_FREXPL into math.h.
81306 2007-04-06  Bruno Haible  <bruno@clisp.org>
81308         * modules/isnanf-nolibm-tests: New file.
81309         * tests/test-isnanf.c: New file.
81311         * modules/isnanf-nolibm: New file.
81312         * lib/isnanf.h: New file.
81313         * lib/isnanf.c: New file.
81314         * lib/isnan.c: Consider the USE_FLOAT macro.
81315         * m4/isnanf.m4: New file.
81317 2007-04-06  Bruno Haible  <bruno@clisp.org>
81319         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
81320         (Link): New section.
81322         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
81324 2007-04-06  Bruno Haible  <bruno@clisp.org>
81326         Assume the 'long double' type.
81327         * m4/longdouble.m4: Remove file.
81328         * config/srclist.txt: Don't mention longdouble.m4.
81329         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
81330         * lib/float+.h: Likewise.
81331         * lib/frexp.c: Likewise.
81332         * lib/printf-args.h: Likewise.
81333         * lib/printf-args.c: Likewise.
81334         * lib/printf-frexp.c: Likewise.
81335         * lib/printf-parse.c: Likewise.
81336         * lib/vasnprintf.c: Likewise.
81337         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
81338         * m4/intl.m4: Likewise.
81339         * m4/isnanl.m4: Likewise.
81340         * m4/printf.m4: Likewise.
81341         * m4/printf-frexpl.m4: Likewise.
81342         * m4/vasnprintf.m4: Likewise.
81343         * modules/allocsa (Files): Remove m4/longdouble.m4.
81344         * modules/gettext (Files): Likewise.
81345         * modules/relocatable-prog-wrapper (Files): Likewise.
81346         * modules/vasnprintf (Files): Likewise.
81347         * modules/isnanl (Files): Likewise.
81348         (Include): Simplify.
81349         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
81350         (Include): Simplify.
81351         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
81352         (Include): Simplify.
81353         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
81354         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
81355         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
81356         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
81357         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
81358         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
81359         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
81360         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
81361         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
81362         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
81363         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
81364         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
81365         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
81366         * tests/test-isnanl.c: Likewise.
81367         * tests/test-snprintf-posix.h: Likewise.
81368         * tests/test-sprintf-posix.h: Likewise.
81369         * tests/test-vasnprintf-posix.c: Likewise.
81370         * tests/test-vasnprintf-posix2.c: Likewise.
81371         * tests/test-vasprintf-posix.c: Likewise.
81373 2007-04-06  Bruno Haible  <bruno@clisp.org>
81375         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
81376         * lib/math_.h [__DECC]: Include the overridden include file through
81377         #include_next, outside the double-inclusion guard.
81378         * lib/stdio_.h [__DECC]: Likewise.
81379         * lib/stdlib_.h [__DECC]: Likewise.
81380         * lib/string_.h [__DECC]: Likewise.
81381         * lib/time_.h [__DECC]: Likewise.
81382         * lib/wchar_.h [__DECC]: Likewise.
81383         * lib/wctype_.h [__DECC]: Likewise.
81384         * lib/inttypes_.h [__DECC]: Likewise.
81385         Reported by Albert Chin <china@thewrittenword.com> in
81386         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
81388 2007-04-04  Eric Blake  <ebb9@byu.net>
81390         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
81391         1.5.x.
81393 2007-04-04  Bruno Haible  <bruno@clisp.org>
81395         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
81396         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
81398 2007-04-04  Bruno Haible  <bruno@clisp.org>
81400         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
81401         results for "%010a" of Infinity and NaN.
81402         * tests/test-vasprintf-posix.c (test_function): Likewise.
81403         * tests/test-snprintf-posix.h (test_function): Likewise.
81404         * tests/test-sprintf-posix.h (test_function): Likewise.
81405         * tests/test-fprintf-posix.h (test_function): Remove these tests.
81406         * tests/test-printf-posix.h (test_function): Likewise.
81407         * tests/test-fprintf-posix.out: Update.
81408         Needed for FreeBSD 6.1.
81410 2007-04-04  Bruno Haible  <bruno@clisp.org>
81412         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
81413         directly used by the gnulib modules nor by gnulib-tool.
81415 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
81417         * DEPENDENCIES: Give overall description of version dependency
81418         desirability.  Use more-typical names for apps.
81419         Add shell, coreutils, diffutils, grep, tar, gzip.
81421 2007-04-04  Simon Josefsson  <simon@josefsson.org>
81423         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
81425 2007-04-04  Karl Berry  <karl@gnu.org>
81427         * MODULES.html.sh (func_module): missing '.
81429 2007-04-03  Bruno Haible  <bruno@clisp.org>
81431         * modules/argmatch-tests (Makefile.am): New variable
81432         test_argmatch_LDADD.
81433         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
81434         * modules/array-list-tests (Makefile.am): New variable
81435         test_array_list_LDADD.
81436         * modules/array-oset-tests (Makefile.am): New variable
81437         test_array_oset_LDADD.
81438         * modules/avltree-list-tests (Makefile.am): New variable
81439         test_avltree_list_LDADD.
81440         * modules/avltree-oset-tests (Makefile.am): New variable
81441         test_avltree_oset_LDADD.
81442         * modules/avltreehash-list-tests (Makefile.am): New variable
81443         test_avltreehash_list_LDADD.
81444         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
81445         test_canonicalize_lgpl_LDADD.
81446         * modules/carray-list-tests (Makefile.am): New variable
81447         test_carray_list_LDADD.
81448         * modules/dirname-tests (Makefile.am): New variable
81449         test_dirname_LDADD.
81450         * modules/linked-list-tests (Makefile.am): New variable
81451         test_linked_list_LDADD.
81452         * modules/linkedhash-list-tests (Makefile.am): New variable
81453         test_linkedhash_list_LDADD.
81454         * modules/rbtree-list-tests (Makefile.am): New variable
81455         test_rbtree_list_LDADD.
81456         * modules/rbtree-oset-tests (Makefile.am): New variable
81457         test_rbtree_oset_LDADD.
81458         * modules/rbtreehash-list-tests (Makefile.am): New variable
81459         test_rbtreehash_list_LDADD.
81460         * modules/xvasprintf-tests (Makefile.am): New variable
81461         test_xvasprintf_LDADD.
81462         Reported by Eric Blake.
81464 2007-04-03  Eric Blake  <ebb9@byu.net>
81466         * DEPENDENCIES: Weaken m4 requirements.
81468 2007-04-03  Bruno Haible  <bruno@clisp.org>
81470         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
81471         * modules/isnanl-tests (configure.ac): Likewise.
81473 2007-04-03  Ben Pfaff  <blp@gnu.org>
81475         * modules/iconv_open: Add $(srcdir)/ to source directory
81476         references in Makefile fragments that call gperf, to fix VPATH
81477         builds.
81479 2007-04-03  Bruno Haible  <bruno@clisp.org>
81481         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
81482         * lib/ldexpl.c: Undo last change.
81484 2007-04-03  Bruno Haible  <bruno@clisp.org>
81486         * modules/printf-frexpl (Depends-on): Undo last change.
81487         (Files): Add m4/ldexpl.m4.
81489 2007-04-03  Bruno Haible  <bruno@clisp.org>
81491         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
81492         * modules/isnanl (Link): New section.
81494         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
81495         * modules/frexp (Link): New section.
81497         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
81498         * modules/frexpl (Link): New section.
81500         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
81501         * modules/ldexpl (Link): New section.
81503 2007-04-03  Bruno Haible  <bruno@clisp.org>
81505         * modules/TEMPLATE-EXTENDED: New file.
81506         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
81508 2007-04-03  Bruno Haible  <bruno@clisp.org>
81510         * DEPENDENCIES: New file.
81511         Suggested by Simon Josefsson.
81513 2007-04-03  Bruno Haible  <bruno@clisp.org>
81515         * doc/gnulib.texi: Escape @.
81517 2007-04-03  James Youngman  <jay@gnu.org>
81518         and Paul Eggert  <eggert@cs.ucla.edu>
81520         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
81521         birthtime on all systems that have birthtime, not just those which
81522         use st_birthtimensec rather than st_birthtim.  Putting zero in
81523         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
81524         that the birth time is not available for files on an NFS mount.
81526 2007-04-03  Simon Josefsson  <simon@josefsson.org>
81528         * modules/memxor: Move back from crypto/, suggested by Bruno.
81529         * modules/crypto/hmac-sha1: Fix memxor dependency.
81531         * modules/crypto/gc: Moved from ../.
81533 2007-04-02  Eric Blake  <ebb9@byu.net>
81535         * lib/ldexpl.c (includes): Avoid libm.
81537         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
81539 2007-04-02  Bruno Haible  <bruno@clisp.org>
81541         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
81542         on IRIX.
81544 2007-04-02  Bruno Haible  <bruno@clisp.org>
81546         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
81547         x86 or x86_64 platforms running MacOS X.
81548         Reported by Ryan Schmidt <@ryandesign.com>.
81550 2007-04-02  Bruno Haible  <bruno@clisp.org>
81552         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
81553         i386.
81555 2007-04-01  Simon Josefsson  <simon@josefsson.org>
81557         * modules/crypto/arcfour: Moved from ../.
81558         * modules/crypto/arcfour-tests: Moved from ../.
81559         * modules/crypto/arctwo: Moved from ../.
81560         * modules/crypto/arctwo-tests: Moved from ../.
81561         * modules/crypto/des: Moved from ../.
81562         * modules/crypto/des-tests: Moved from ../.
81563         * modules/crypto/gc-arcfour: Moved from ../.
81564         * modules/crypto/gc-arcfour-tests: Moved from ../.
81565         * modules/crypto/gc-arctwo: Moved from ../.
81566         * modules/crypto/gc-arctwo-tests: Moved from ../.
81567         * modules/crypto/gc-des: Moved from ../.
81568         * modules/crypto/gc-des-tests: Moved from ../.
81569         * modules/crypto/gc-hmac-md5: Moved from ../.
81570         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
81571         * modules/crypto/gc-hmac-sha1: Moved from ../.
81572         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
81573         * modules/crypto/gc-md2: Moved from ../.
81574         * modules/crypto/gc-md2-tests: Moved from ../.
81575         * modules/crypto/gc-md4: Moved from ../.
81576         * modules/crypto/gc-md4-tests: Moved from ../.
81577         * modules/crypto/gc-md5: Moved from ../.
81578         * modules/crypto/gc-md5-tests: Moved from ../.
81579         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
81580         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
81581         * modules/crypto/gc-random: Moved from ../.
81582         * modules/crypto/gc-rijndael: Moved from ../.
81583         * modules/crypto/gc-rijndael-tests: Moved from ../.
81584         * modules/crypto/gc-sha1: Moved from ../.
81585         * modules/crypto/gc-sha1-tests: Moved from ../.
81586         * modules/crypto/gc-tests: Moved from ../.
81587         * modules/crypto/hmac-md5: Moved from ../.
81588         * modules/crypto/hmac-md5-tests: Moved from ../.
81589         * modules/crypto/hmac-sha1: Moved from ../.
81590         * modules/crypto/hmac-sha1-tests: Moved from ../.
81591         * modules/crypto/md2: Moved from ../.
81592         * modules/crypto/md2-tests: Moved from ../.
81593         * modules/crypto/md4: Moved from ../.
81594         * modules/crypto/md4-tests: Moved from ../.
81595         * modules/crypto/md5: Moved from ../.
81596         * modules/crypto/md5-tests: Moved from ../.
81597         * modules/crypto/memxor: Moved from ../.
81598         * modules/crypto/rijndael: Moved from ../.
81599         * modules/crypto/rijndael-tests: Moved from ../.
81600         * modules/crypto/sha1: Moved from ../.
81602 2007-03-30  James Youngman  <jay@gnu.org>
81604         * tests/test-stat-time.c (prepare_test): use chmod() rather than
81605         rename() to change the ctime of a file (because ctime is unaffected
81606         by rename on jfs2 on AIX 5.1).
81607         (main): Start by doing cleanup, in case a previous run failed leaving
81608         test files behind.
81610 2007-03-31  Bruno Haible  <bruno@clisp.org>
81612         Support old proprietary implementations of iconv.
81613         * modules/iconv_open: New file.
81614         * lib/iconv_.h: New file.
81615         * m4/iconv_h.m4: New file.
81616         * lib/iconv_open.c: New file.
81617         * lib/iconv_open-aix.gperf: New file.
81618         * lib/iconv_open-hpux.gperf: New file.
81619         * lib/iconv_open-irix.gperf: New file.
81620         * lib/iconv_open-osf.gperf: New file.
81621         * m4/iconv_open.m4: New file.
81622         * modules/linebreak (Depends-on): Add iconv_open.
81623         * modules/striconv (Depends-on): Likewise.
81624         * modules/striconveh (Depends-on): Likewise.
81625         * modules/unicodeio (Depends-on): Likewise.
81626         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
81627         (iconv_t)(-1).
81628         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
81629         conversion if cd is (iconv_t)(-1).
81630         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
81631         is not possible.
81633 2007-03-31  Bruno Haible  <bruno@clisp.org>
81635         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
81636         work on Solaris either. Protect also second use of "autodetect_jp".
81638 2007-03-31  Bruno Haible  <bruno@clisp.org>
81640         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
81641         the function is not present.
81643 2007-03-31  Bruno Haible  <bruno@clisp.org>
81645         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
81646         the function is not present.
81648 2007-03-31  Bruno Haible  <bruno@clisp.org>
81650         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
81651         a bug in HP-UX iconv_open().
81653 2007-03-31  Bruno Haible  <bruno@clisp.org>
81655         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
81656         (Mathematics <math.h>): New section, add fpieee.
81657         (Input/output <stdio.h>): Add fseterr.
81658         (Mathematics <math.h>): New section, add printf-frexp.
81659         (Container data structures): Add sublist.
81660         (Core language properties): Add fpucw, inline.
81661         (Functions for greatest-width integer types <inttypes.h>): Add
81662         imaxabs, imaxdiv, inttypes.
81663         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
81664         isnanl-nolibm, ldexp.
81665         (Mathematics <math.h>): New section, add printf-frexpl.
81666         (Support for systems lacking POSIX:2001): Add fprintf-posix,
81667         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
81668         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
81669         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
81670         (Unicode string functions): Add unistr/u*-mbtoucr.
81671         (Java): Add javacomp-script, javaexec-script.
81672         (C#): Add csharpcomp-script, csharpexec-script.
81673         (Support for building libraries and executables): Add havelib,
81674         relocatable-*.
81675         (Support for maintaining and releasing projects): Renamed from
81676         'Support for maintaining and release projects'. Add announce-gen.
81678 2007-03-31  Bruno Haible  <bruno@clisp.org>
81680         * README: Talk primarily about git.
81681         (git and CVS): Renamed from CVS.
81682         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
81683         gnulib is available through git.
81684         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
81686 2007-03-30  Bruno Haible  <bruno@clisp.org>
81688         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
81689         * lib/poll_.h: Likewise.
81690         * lib/stat_.h: Likewise.
81691         * lib/sys_time_.h: Likewise.
81692         * lib/sysexit_.h: Likewise.
81693         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
81694         * lib/stdbool_.h: Likewise.
81695         * lib/byteswap_.h: Add double-inclusion guard.
81697 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
81699         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
81701 2007-03-30  Karl Berry  <karl@gnu.org>
81703         * config/srclist-update: double space after USA in the license
81704         substitution, since that's how it's usually (?) written.
81706 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
81708         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
81709         reported by Bruno Haible.
81711 2007-03-29  Bruno Haible  <bruno@clisp.org>
81713         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
81714         a bug in AIX iconv().
81716 2007-03-29  Bruno Haible  <bruno@clisp.org>
81718         * modules/ldexpl-tests: New file.
81719         * tests/test-ldexpl.c: New file.
81721 2007-03-29  Bruno Haible  <bruno@clisp.org>
81723         * lib/ldexpl.c: Include fpucw.h.
81724         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
81725         multiplication.
81726         * modules/ldexpl (Depends-on): Add fpucw.
81728 2007-03-29  Bruno Haible  <bruno@clisp.org>
81730         * modules/ldexpl: New file.
81731         * m4/ldexpl.m4: New file.
81732         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
81733         set.
81734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
81735         REPLACE_LDEXPL.
81736         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
81737         REPLACE_LDEXPL.
81738         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
81739         gl_FUNC_LDEXPL_WORKS.
81740         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
81741         * modules/mathl (Files): Remove lib/ldexpl.c.
81742         (Depends-on): Add ldexpl.
81744 2007-03-29  Bruno Haible  <bruno@clisp.org>
81746         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
81748 2007-03-29  Bruno Haible  <bruno@clisp.org>
81750         * tests/test-striconveh.c (main): Don't assume that a direct conversion
81751         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
81752         and possibly also HP-UX.
81753         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
81754         work on AIX, IRIX, HP-UX, OSF/1.
81755         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
81756         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
81757         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
81758         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
81759         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
81760         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
81762 2007-03-29  Bruno Haible  <bruno@clisp.org>
81764         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
81766 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
81768         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
81769         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
81771 2007-03-29  Eric Blake  <ebb9@byu.net>
81773         * lib/acl-internal.h: Remove redundant include.
81774         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
81775         Cygwin when a file is locked.
81777 2007-03-29  Bruno Haible  <bruno@clisp.org>
81779         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
81780         file.
81781         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
81783 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
81785         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
81786         try to remove a parent directory if the child couldn't be removed
81787         (except for the first rmdir, which could fail because the child
81788         doesn't exist).  Problem reported by Jeff Blaine in
81789         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
81791 2007-03-28  Bruno Haible  <bruno@clisp.org>
81793         * lib/striconveh.c (utf8conv_carefully): New function.
81794         (mem_cd_iconveh_internal): Invoke it.
81796 2007-03-28  Bruno Haible  <bruno@clisp.org>
81798         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
81799         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
81800         input.
81801         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
81802         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
81803         unistr/u8-uctomb.
81805 2007-03-28  Bruno Haible  <bruno@clisp.org>
81807         * modules/unistr/u8-mbtoucr: New file.
81808         * lib/unistr/u8-mbtoucr.c: New file.
81809         * modules/unistr/u16-mbtoucr: New file.
81810         * lib/unistr/u16-mbtoucr.c: New file.
81811         * modules/unistr/u16-mbtoucr: New file.
81812         * lib/unistr/u16-mbtoucr.c: New file.
81813         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
81815 2007-03-27  Simon Josefsson  <simon@josefsson.org>
81816             Bruno Haible  <bruno@clisp.org>
81818         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
81819         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
81820         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
81822         * m4/stdio_h.m4: Add stubs for vasprintf too.
81824         * modules/stdio: Support vasprintf in sed command.
81826         * modules/vasprintf: Depend on stdio for prototypes.  Remove
81827         vasprintf.h.  Add stdio module indicator.
81829         * lib/stdio_.h: Declare asprintf and vasprintf, based on
81830         vasprintf.h.
81832         * lib/vasprintf.h: File removed.
81834         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
81835         * lib/vasprintf.c: Ditto.
81836         * lib/xvasprintf.c: Ditto.
81837         * tests/test-vasprintf-posix.c: Ditto.
81838         * tests/test-vasprintf.c: Ditto.
81840 2007-03-27  Bruno Haible  <bruno@clisp.org>
81842         Make vasnprintf multithread-safe.
81843         * lib/vasnprintf.c (decimal_point_char): New function.
81844         (VASNPRINTF): Use it.
81845         Suggested by Simon Josefsson.
81847 2007-03-27  Eric Blake  <ebb9@byu.net>
81849         Support sub-second birthtime on cygwin.
81850         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
81851         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
81852         (get_stat_birthtime): Also work with st_birthtim.
81854 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
81856         * lib/stat-time.h (USE_BIRTHTIME): Remove.
81857         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
81858         (get_stat_birthtime_ns): Do not try to use "spare" fields.
81859         (get_stat_birthtime_ns): Simplify compile-time tests.
81860         (get_stat_birthtime): Change the API to look like
81861         get_stat_mtime etc., except return a negative tv_nsec on error.
81862         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
81863         Don't check for "spare" fields.
81864         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
81865         or for struct stat.st_birthtime, as these tests aren't used.
81866         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
81868 2007-03-27  Bruno Haible  <bruno@clisp.org>
81870         * lib/stat-time.h: Include <sys/stat.h>.
81872 2007-03-27  James Youngman  <jay@gnu.org>
81874         * lib/stat-time.h (get_stat_birthtime): New function for
81875           retrieving st_birthtime as provided by UFS2 (hence *BSD).
81876         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
81877           and its variants.
81878         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
81879         * modules/stat-time-test: New file.
81880         * tests/test-stat-time.c: New test, devised by Bruno Haible.
81882 2007-03-26  Bruno Haible  <bruno@clisp.org>
81884         Better support of signalling NaNs.
81885         * lib/atanl.c: Include isnanl.h.
81886         (atanl): Perform test for NaN at the beginning of the function and
81887         through a call to isnanl.
81888         * lib/cosl.c: Include isnanl.h.
81889         (cosl): Perform test for NaN at the beginning of the function and
81890         through a call to isnanl.
81891         * lib/ldexpl.c: Include isnanl.h.
81892         (ldexpl): Perform test for NaN through a call to isnanl.
81893         * lib/logl.c: Include isnanl.h.
81894         (logl): Perform test for NaN at the beginning of the function and
81895         through a call to isnanl.
81896         * lib/sinl.c: Include isnanl.h.
81897         (sinl): Perform test for NaN at the beginning of the function and
81898         through a call to isnanl.
81899         * lib/sqrtl.c: Include isnanl.h.
81900         (sqrtl): Perform test for NaN at the beginning of the function and
81901         through a call to isnanl.
81902         * lib/tanl.c: Include isnanl.h.
81903         (tanl): Perform test for NaN at the beginning of the function and
81904         through a call to isnanl.
81905         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
81906         * modules/mathl (Depends-on): Add isnanl.
81908 2007-03-26  Eric Blake  <ebb9@byu.net>
81910         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
81911         regression in logic sense of previous patch.
81913 2007-03-26  Bruno Haible  <bruno@clisp.org>
81915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
81916         unportable shell command "if ! ...".
81917         Reported by Ralf Wildenhues.
81919 2007-03-25  Bruno Haible  <bruno@clisp.org>
81921         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
81922         <sysexits.h> file, and only add EX_CONFIG.
81923         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
81924         absolute file name and whether it is sufficient. Substitute also
81925         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
81926         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
81927         ABSOLUTE_SYSEXITS_H into sysexits.h.
81929 2007-03-25  Bruno Haible  <bruno@clisp.org>
81931         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
81932         hints is NULL.
81934 2007-03-25  Bruno Haible  <bruno@clisp.org>
81936         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
81937         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
81939 2007-03-25  Bruno Haible  <bruno@clisp.org>
81941         * lib/vasnprintf.c: Include langinfo.h.
81942         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
81943         multithread-safe.
81944         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
81945         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
81946         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81947         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81948         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81949         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81950         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81951         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
81952         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81953         Reported by Simon Josefsson.
81955 2007-03-25  Bruno Haible  <bruno@clisp.org>
81957         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
81958         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
81959         * modules/vasnprintf (Depends-on): Add stdint.
81961 2007-03-25  Bruno Haible  <bruno@clisp.org>
81963         * modules/fpieee: New file.
81964         * m4/fpieee.m4: New file.
81965         * modules/isnan-nolibm (Depends-on): Add fpieee.
81966         * modules/isnanl-nolibm (Depends-on): Add fpieee.
81967         * modules/isnanl (Depends-on): Add fpieee.
81969 2007-03-25  Bruno Haible  <bruno@clisp.org>
81971         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
81973 2007-03-25  Bruno Haible  <bruno@clisp.org>
81975         Avoid test failures on IRIX 6.5.
81976         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
81977         (main): Use it.
81978         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
81979         macros.
81980         (main): Use them.
81982 2007-03-25  Bruno Haible  <bruno@clisp.org>
81984         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
81985         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
81986         exists but doesn't work.
81987         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
81988         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
81989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
81990         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
81991         math.h.
81993 2007-03-25  Bruno Haible  <bruno@clisp.org>
81995         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
81996         returns inf. Needed on IRIX 6.5.
81998 2007-03-25  Bruno Haible  <bruno@clisp.org>
82000         * tests/test-frexpl.c: Include isnanl-nolibm.h.
82001         (main): Use isnanl instead of x != x idiom.
82002         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
82004         * tests/test-frexp.c: Include isnan.h.
82005         (main): Use isnan instead of x != x idiom.
82006         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
82008 2007-03-25  Bruno Haible  <bruno@clisp.org>
82010         * tests/test-frexp.c (NaN): New function/macro.
82011         (main): Use it instead of 0.0 / 0.0.
82012         * tests/test-isnan.c (NaN): New function/macro.
82013         (main): Use it instead of 0.0 / 0.0.
82014         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
82015         (test_function): Use it instead of 0.0 / 0.0.
82016         * tests/test-vasprintf-posix.c (NaN): New function/macro.
82017         (test_function): Use it instead of 0.0 / 0.0.
82018         * tests/test-snprintf-posix.h (NaN): New function/macro.
82019         (test_function): Use it instead of 0.0 / 0.0.
82020         * tests/test-sprintf-posix.h (NaN): New function/macro.
82021         (test_function): Use it instead of 0.0 / 0.0.
82022         * tests/test-fprintf-posix.h (NaN): New function/macro.
82023         (test_function): Use it instead of 0.0 / 0.0.
82024         * tests/test-printf-posix.h (NaN): New function/macro.
82025         (test_function): Use it instead of 0.0 / 0.0.
82027         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
82029 2007-03-25  Bruno Haible  <bruno@clisp.org>
82031         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
82033 2007-03-25  Bruno Haible  <bruno@clisp.org>
82035         * lib/regexec.c (merge_state_with_log): Make static.
82037 2007-03-25  Bruno Haible  <bruno@clisp.org>
82039         * lib/trigl.c (kernel_rem_pio2): Make static.
82041 2007-03-25  Bruno Haible  <bruno@clisp.org>
82043         * lib/sincosl.c (sincosl_table): Make static.
82045 2007-03-25  Bruno Haible  <bruno@clisp.org>
82047         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
82048         if the compiler does not support C99.
82050 2007-03-25  Bruno Haible  <bruno@clisp.org>
82052         * modules/time (Makefile.am): Ensure all rule action lines start with a
82053         tab.
82055 2007-03-24  Bruno Haible  <bruno@clisp.org>
82057         * modules/tsearch-tests: New file.
82058         * tests/test-tsearch.sh: New file.
82059         * tests/test-tsearch.c: New file, mostly copied from glibc.
82061         * modules/search-tests: New file.
82062         * tests/test-search.c: New file.
82064         * modules/search: New file.
82065         * lib/search_.h: New file, incorporating lib/tsearch.h.
82066         * m4/search_h.m4: New file.
82067         * lib/tsearch.h: Remove file.
82068         * lib/tsearch.c: Include search.h instead of tsearch.h.
82069         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
82070         HAVE_TSEARCH.
82071         * modules/tsearch (Files): Remove lib/tsearch.h.
82072         (Depends-on): Add search.
82073         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
82074         (Include): Change tsearch.h into search.h.
82076 2007-03-24  Bruno Haible  <bruno@clisp.org>
82078         * modules/fpucw: New file.
82079         * lib/fpucw.h: New file.
82080         * lib/frexp.c: Include fpucw.h.
82081         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
82082         (FUNC): Use them.
82083         * lib/printf-frexp.c: Include fpucw.h.
82084         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
82085         (FUNC): Use them.
82086         * lib/vasnprintf.c: Include fpucw.h.
82087         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
82088         'long double' calculations.
82089         * tests/test-frexpl.c: Include fpucw.h.
82090         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
82091         * tests/test-printf-frexpl.c: Include fpucw.h.
82092         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
82093         * modules/frexpl (Depends-on): Add fpucw.
82094         * modules/printf-frexpl (Depends-on): Likewise.
82095         * modules/fprintf-posix (Depends-on): Likewise.
82096         * modules/snprintf-posix (Depends-on): Likewise.
82097         * modules/sprintf-posix (Depends-on): Likewise.
82098         * modules/vasnprintf-posix (Depends-on): Likewise.
82099         * modules/vasprintf-posix (Depends-on): Likewise.
82100         * modules/vfprintf-posix (Depends-on): Likewise.
82101         * modules/vsnprintf-posix (Depends-on): Likewise.
82102         * modules/vsprintf-posix (Depends-on): Likewise.
82103         * modules/frexpl-tests (Depends-on): Likewise.
82104         * modules/printf-frexpl-tests (Depends-on): Likewise.
82106 2007-03-24  Bruno Haible  <bruno@clisp.org>
82108         * lib/float+.h: New file.
82109         * lib/isnan.c: Include float+.h.
82110         (SIZE): New macro.
82111         (FUNC): Compare only SIZE bytes of the value.
82112         * lib/vasnprintf.c: Include float+.h.
82113         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
82114         SIZEOF_LDBL or SIZEOF_DBL bytes.
82115         * modules/isnan-nolibm (Files): Add lib/float+.h.
82116         * modules/isnanl-nolibm (Files): Add lib/float+.h.
82117         * modules/isnanl (Files): Add lib/float+.h.
82118         * modules/vasnprintf (Files): Add lib/float+.h.
82120 2007-03-24  Bruno Haible  <bruno@clisp.org>
82122         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
82123         include isnanl-nolibm.h.
82125 2007-03-24  Bruno Haible  <bruno@clisp.org>
82127         * tests/test-read-file.c (main): Don't produce spurious output for
82128         expected situations. Make the test fail if it encountered unexpected
82129         results.
82131 2007-03-24  Bruno Haible  <bruno@clisp.org>
82133         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
82134         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
82136 2007-03-24  Bruno Haible  <bruno@clisp.org>
82138         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
82140 2007-03-24  Bruno Haible  <bruno@clisp.org>
82142         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
82143         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
82145         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
82146         * modules/utf8-ucs4: Turn into a symbolic link to module
82147         unistr/u8-mbtouc.
82149         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
82150         utf8-ucs4-unsafe.
82151         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
82152         unistr/u8-mbtouc-unsafe.
82154         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
82155         * modules/utf16-ucs4: Turn into a symbolic link to module
82156         unistr/u16-mbtouc.
82158         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
82159         utf16-ucs4-unsafe.
82160         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
82161         unistr/u16-mbtouc-unsafe.
82163         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
82164         * modules/ucs4-utf8: Turn into a symbolic link to module
82165         unistr/u8-ubtomb.
82167         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
82168         * modules/ucs4-utf16: Turn into a symbolic link to module
82169         unistr/u16-ubtomb.
82171 2007-03-24  Bruno Haible  <bruno@clisp.org>
82173         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
82174         Enable the function only if HAVE_INLINE.
82175         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
82176         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
82177         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
82178         Enable the function only if HAVE_INLINE.
82179         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
82180         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
82181         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
82182         Enable the function only if HAVE_INLINE.
82183         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
82184         Enable the function only if HAVE_INLINE.
82185         * modules/utf8-ucs4: Update.
82186         * modules/utf8-ucs4-unsafe: Update.
82187         * modules/utf16-ucs4: Update.
82188         * modules/utf16-ucs4-unsafe: Update.
82189         * modules/ucs4-utf8: Update.
82190         * modules/ucs4-utf16: Update.
82192 2007-03-24  Bruno Haible  <bruno@clisp.org>
82194         * lib/utf8-ucs4.h: Remove file.
82195         * lib/utf8-ucs4-unsafe.h: Remove file.
82196         * lib/utf16-ucs4.h: Remove file.
82197         * lib/utf16-ucs4-unsafe.h: Remove file.
82198         * lib/ucs4-utf8.h: Remove file.
82199         * lib/ucs4-utf16.h: Remove file.
82200         * lib/unistr.h: Include their previous contents.
82201         * m4/utf-ucs4.m4: Remove file.
82202         * m4/ucs4-utf.m4: Remove file.
82203         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
82204         (Depends-on): Add unistr/base.
82205         (configure.ac): Remove gl_UTF_UCS4.
82206         (Makefile.am): Update.
82207         (Include): Change to unistr.h.
82208         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
82209         (Depends-on): Add unistr/base.
82210         (configure.ac): Remove gl_UTF_UCS4.
82211         (Makefile.am): Update.
82212         (Include): Change to unistr.h.
82213         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
82214         (Depends-on): Add unistr/base.
82215         (configure.ac): Remove gl_UTF_UCS4.
82216         (Makefile.am): Update.
82217         (Include): Change to unistr.h.
82218         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
82219         (Depends-on): Add unistr/base.
82220         (configure.ac): Remove gl_UTF_UCS4.
82221         (Makefile.am): Update.
82222         (Include): Change to unistr.h.
82223         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
82224         (Depends-on): Add unistr/base.
82225         (configure.ac): Remove gl_UCS4_UTF.
82226         (Makefile.am): Update.
82227         (Include): Change to unistr.h.
82228         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
82229         (Depends-on): Add unistr/base.
82230         (configure.ac): Remove gl_UCS4_UTF.
82231         (Makefile.am): Update.
82232         (Include): Change to unistr.h.
82233         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
82234         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
82235         utf8-ucs4-unsafe.h.
82236         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
82237         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
82238         utf16-ucs4-unsafe.h.
82239         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
82240         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
82241         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
82242         * lib/unistr/u8-strchr.c: Likewise.
82243         * lib/unistr/u8-strrchr.c: Likewise.
82244         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
82245         * lib/unistr/u16-strchr.c: Likewise.
82246         * lib/unistr/u16-strrchr.c: Likewise.
82247         * lib/striconveh.c: Update.
82248         * lib/linebreak.c: Update.
82250 2007-03-24  Bruno Haible  <bruno@clisp.org>
82252         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
82253         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
82255 2007-03-22  Bruno Haible  <bruno@clisp.org>
82257         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
82259 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82261         * MODULES.html.sh (File system functions): New module write-any-file.
82262         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
82263         * m4/write-any-file.m4: New files.
82265 2007-03-23  Eric Blake  <ebb9@byu.net>
82267         * gnulib-tool: Rearrange space-tab sequences, since some editors
82268         like to eat them.
82270 2007-03-23  Eric Blake  <ebb9@byu.net>
82272         * lib/version-etc.c (version_etc_va): Update license wording to
82273         be more concise.  Recommended by Richard Stallman.
82275 2007-03-22  Bruno Haible  <bruno@clisp.org>
82277         * lib/poll.c (MSG_PEEK): New fallback definition.
82279 2007-03-22  Bruno Haible  <bruno@clisp.org>
82281         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
82282         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
82283         (main): Update.
82284         Fixes a compilation error on BeOS.
82286 2007-03-22  Bruno Haible  <bruno@clisp.org>
82288         * modules/frexpl-tests: New file.
82289         * tests/test-frexpl.c: New file.
82291         * modules/frexpl: New file.
82292         * m4/frexpl.m4: New file.
82293         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
82294         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
82295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
82296         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
82297         (Depends-on): Add frexpl. Remove isnanl-nolibm.
82298         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
82300 2007-03-22  Bruno Haible  <bruno@clisp.org>
82302         * lib/frexpl.c: Share code with lib/frexp.c.
82303         * modules/mathl (Files): Add lib/frexp.c.
82304         (Depends-on): Add isnanl-nolibm.
82306 2007-03-22  Bruno Haible  <bruno@clisp.org>
82308         * modules/printf-frexp (Files): Add m4/frexp.m4.
82309         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
82310         only if the found frexp function actually works.
82312 2007-03-22  Bruno Haible  <bruno@clisp.org>
82314         * lib/frexp.c: Remove older implementation that uses divisions.
82316 2007-03-21  Bruno Haible  <bruno@clisp.org>
82318         * modules/frexp-tests: New file.
82319         * tests/test-frexp.c: New file.
82321         * modules/frexp: New file.
82322         * lib/frexp.c: New file.
82323         * m4/frexp.m4: New file.
82324         * lib/math_.h (frexp): New declaration.
82325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
82326         REPLACE_FREXP.
82327         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
82329 2007-03-21  Bruno Haible  <bruno@clisp.org>
82331         * modules/isnanl-tests: New file.
82332         * tests/test-isnanl.c: New file.
82334         * modules/isnanl: New file.
82335         * lib/isnanl.h: New file.
82336         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
82337         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
82338         gl_FUNC_ISNANL_WORKS.
82339         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
82340         New macros.
82342 2007-03-21  Bruno Haible  <bruno@clisp.org>
82344         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
82345         lib/isnanl.h.
82346         (Include): Update.
82347         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
82348         * lib/vasnprintf.c: Update.
82349         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
82350         tests/test-isnanl.h, remove tests/test-isnanl.c.
82351         (Makefile.am): Update.
82352         * tests/test-isnanl-nolibm.c: New file.
82353         * tests/test-isnanl.h: New file.
82354         * tests/test-isnanl.c: Remove file.
82356 2007-03-21  Jim Meyering  <jim@meyering.net>
82358         When trying to open ".", treat ESTALE like EACCES.
82359         * lib/savewd.c (savewd_save): Resort to forking not just upon
82360         failure with EACCES, but also when errno is ESTALE.
82362 2007-03-20  Bruno Haible  <bruno@clisp.org>
82364         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
82365         Needed on AIX 5.1. Reported by Matthew Woehlke.
82367 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
82369         Suggestions by Bruno Haible:
82370         * lib/acl-internal.h: Include "gettext.h" rather than rolling
82371         our own.
82372         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
82373         * modules/acl (Depends-on): Add gettext.
82375 2007-03-19  Bruno Haible  <bruno@clisp.org>
82377         * modules/iconvme: Remove file.
82378         * lib/iconvme.h: Remove file.
82379         * lib/iconvme.c: Remove file.
82380         * m4/iconvme.m4: Remove file.
82382 2007-03-19  Bruno Haible  <bruno@clisp.org>
82384         * doc/relocatable-maint.texi: Break long shell script line.
82385         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
82387 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
82389         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
82390         handle file_has_acl.
82391         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
82392         * lib/acl.c: Move header inclusions and related macro defns into
82393         lib/acl-internal.h.
82394         (S_ISLNK): Remove defn, since that's now done for us.
82395         (file_has_acl): Move to lib/file-has-acl.c.
82396         Call acl_trivial if available.  This is the crucial part of the fix.
82397         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
82398         shared within the library.  Rewrite a bit, partly to make it compatible
82399         with the GNU coding style.
82400         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
82401         Remove unnecessary double-quotes.
82402         Don't test for acl_to_text; the build will catch that.
82403         Replace acl_entries if it doesn't exist and it is needed.
82404         Check for -lsec and acl_trivial (as used on Solaris 10).
82405         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
82406         lib/file-has-acl.c.
82407         (Depends-on): Add sys_stat, for S_ISLNK.
82409 2007-03-19  Ben Pfaff  <blp@gnu.org>
82411         * doc/gnulib.texi: Fix typos.
82412         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
82414 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
82416         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
82417         If size is zero here, buf must be zero.
82419 2007-03-19  Simon Josefsson  <simon@josefsson.org>
82421         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
82422         <bruno@clisp.org>.
82424 2007-03-18  Bruno Haible  <bruno@clisp.org>
82426         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
82427         Suggested by Eric Blake.
82429 2007-03-18  Ben Pfaff  <blp@gnu.org>
82431         * doc/relocatable.texi: Recommend using as prefix a directory
82432         that does not exist and will never be created.  Based on
82433         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
82434         and others.
82436 2007-03-17  Bruno Haible  <bruno@clisp.org>
82438         * lib/fchownat.c: Include lchown.h.
82440 2007-03-17  Bruno Haible  <bruno@clisp.org>
82442         Fix endless loop when the given allocated size was > INT_MAX.
82443         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
82444         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
82445         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
82446         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
82447         * lib/sprintf.c (sprintf): Likewise.
82449 2007-03-17  Bruno Haible  <bruno@clisp.org>
82451         * tests/test-argp-2.sh (func_compare): Output a context diff.
82453 2007-03-17  Bruno Haible  <bruno@clisp.org>
82455         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
82456         locale's decimal-point character.
82458 2007-03-17  Bruno Haible  <bruno@clisp.org>
82460         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
82461         before comparing it. Needed because on some platforms (e.g. x86) a
82462         'long double' occupies less bytes than sizeof (long double).
82464 2007-03-17  Bruno Haible  <bruno@clisp.org>
82466         * tests/test-crc.c (main): Make printf statements 64-bit clean.
82467         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
82468         * tests/test-getaddrinfo.c (simple): Likewise.
82469         * tests/test-read-file.c (main): Likewise.
82471 2007-03-17  Bruno Haible  <bruno@clisp.org>
82473         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
82475 2007-03-17  Bruno Haible  <bruno@clisp.org>
82477         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
82478         unused variable.
82480 2007-03-17  Bruno Haible  <bruno@clisp.org>
82482         * tests/test-c-strcasecmp.c: Include c-strcase.h.
82483         * tests/test-c-strncasecmp.c: Likewise.
82485 2007-03-17  Bruno Haible  <bruno@clisp.org>
82487         * modules/stdlib (Depends-on): Add unistd.
82488         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
82489         Needed for MacOS X 10.3.
82491 2007-03-17  Bruno Haible  <bruno@clisp.org>
82493         * lib/unistr/u-strdup.h: Include <stdlib.h>.
82495 2007-03-17  Bruno Haible  <bruno@clisp.org>
82497         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
82499 2007-03-17  Bruno Haible  <bruno@clisp.org>
82501         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
82502         to reflect files copied from gnulib (with or without modifications).
82503         Suggested by Jim Meyering.
82505 2007-03-17  Eric Blake  <ebb9@byu.net>
82507         * NEWS: Document stdlib change from 2007-02-18.
82509 2007-03-17  Jim Meyering  <jim@meyering.net>
82511         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
82512         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
82513         someone uses a name containing shell meta-characters.
82514         Reported by Alfred M. Szmidt.
82516         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
82518 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
82520         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
82521         and copy gettext configuration files only if configure.ac contains
82522         a use of AM_GNU_GETTEXT_VERSION.
82524 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
82526         * build-aux/bootstrap (gnulib_name): New variable.
82527         (gnulib_tool_options): Use it.
82529 2007-03-13  Simon Josefsson  <simon@josefsson.org>
82531         * tests/test-des.c: Use new namespace.
82533 2007-03-15  Bruno Haible  <bruno@clisp.org>
82535         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
82536         Reported by James Youngman <jay@gnu.org>.
82538 2007-03-15  Bruno Haible  <bruno@clisp.org>
82540         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
82541         declared prototype. Needed with cc on OSF/1 5.1.
82543 2007-03-15  Bruno Haible  <bruno@clisp.org>
82545         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
82546         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
82547         (struct gl_list_implementation): Add dispose_fn argument to the
82548         'create_empty', 'create' methods.
82549         (struct gl_list_impl_base): Add field 'dispose_fn'.
82550         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
82551         argument.
82552         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
82553         dispose_fn argument.
82554         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
82555         dispose_fn on the dropped values.
82556         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
82557         dispose_fn argument.
82558         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
82559         dropped values.
82560         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
82561         (gl_tree_remove_node): Call dispose_fn on the dropped value.
82562         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
82563         (gl_tree_remove_node): Call dispose_fn on the dropped value.
82564         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
82565         argument.
82566         (gl_tree_list_free): Call dispose_fn on the dropped values.
82567         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
82568         the dropped values.
82569         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
82570         Add dispose_fn argument.
82571         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
82572         Call dispose_fn on the dropped values.
82573         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
82574         Add dispose_fn argument.
82575         (gl_sublist_create): Initialize the 'dispose_fn' field.
82576         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
82577         * tests/test-array_list.c (main): Update.
82578         * tests/test-carray_list.c (main): Update.
82579         * tests/test-avltree_list.c (main): Update.
82580         * tests/test-rbtree_list.c (main): Update.
82581         * tests/test-avltreehash_list.c (main): Update.
82582         * tests/test-rbtreehash_list.c (main): Update.
82583         * tests/test-linked_list.c (main): Update.
82584         * tests/test-linkedhash_list.c (main): Update.
82585         * tests/test-array_oset.c (main): Update.
82587 2007-03-15  Bruno Haible  <bruno@clisp.org>
82589         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
82590         (gl_oset_create_empty): Add dispose_fn argument.
82591         (struct gl_oset_implementation): Add dispose_fn argument to
82592         'create_empty' method.
82593         (struct gl_oset_impl_base): Add dispose_fn field.
82594         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
82595         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
82596         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
82597         values.
82598         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
82599         (gl_tree_oset_free): Call dispose_fn on the dropped values.
82600         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
82601         dropped value.
82602         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
82603         dropped value.
82604         * tests/test-array_oset.c (main): Update.
82605         * tests/test-avltree_oset.c (main): Update.
82606         * tests/test-rbtree_oset.c (main): Update.
82607         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
82609 2007-03-13  Bruno Haible  <bruno@clisp.org>
82611         * tests/test-stdbool.c (i): Update after last patch.
82613 2007-03-12  Bruno Haible  <bruno@clisp.org>
82615         * lib/quotearg.c: Include <wctype.h> early, before the definition of
82616         the iswprint macro. Needed on Solaris 2.5.1.
82618 2007-03-12  Bruno Haible  <bruno@clisp.org>
82620         * tests/test-printf-frexp.c (main): Declare x as volatile.
82622 2007-03-12  Simon Josefsson  <simon@josefsson.org>
82624         * doc/gnulib.texi (Build robot for gnulib): New section.
82626 2007-03-12  Jim Meyering  <jim@meyering.net>
82628         * build-aux/bootstrap: New file.
82629         * build-aux/bootstrap.conf: New file, from coreutils.
82631 2007-03-11  Bruno Haible  <bruno@clisp.org>
82633         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
82635 2007-03-12  Simon Josefsson  <simon@josefsson.org>
82637         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
82638         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
82639         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
82641 2007-03-11  Bruno Haible  <bruno@clisp.org>
82643         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
82644         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
82646 2007-03-11  Bruno Haible  <bruno@clisp.org>
82648         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
82649         formula. Needed for SunPRO C 5.0.
82651 2007-03-11  Bruno Haible  <bruno@clisp.org>
82653         * modules/long-options (Depends-on): Add getopt.
82655 2007-03-11  Bruno Haible  <bruno@clisp.org>
82657         * modules/modechange (Depends-on): Add stdbool.
82659 2007-03-11  Bruno Haible  <bruno@clisp.org>
82661         * modules/i-ring (Depends-on): Add stdbool.
82663 2007-03-11  Bruno Haible  <bruno@clisp.org>
82665         * modules/gc-des (Depends-on): Add stdbool.
82667 2007-03-11  Bruno Haible  <bruno@clisp.org>
82669         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
82671 2007-03-11  Bruno Haible  <bruno@clisp.org>
82673         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
82675 2007-03-11  Bruno Haible  <bruno@clisp.org>
82677         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
82679 2007-03-11  Bruno Haible  <bruno@clisp.org>
82681         * lib/vasnprintf.c (sprintf): Undefine.
82683 2007-03-11  Bruno Haible  <bruno@clisp.org>
82685         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
82686         initializers in SunPRO C and Compaq C compilers.
82688 2007-03-11  Bruno Haible  <bruno@clisp.org>
82690         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
82691         decrementing code ANSI C compliant.
82693 2007-03-11  Bruno Haible  <bruno@clisp.org>
82695         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
82696         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
82698 2007-03-11  Bruno Haible  <bruno@clisp.org>
82700         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
82701         <stdbool.h> substitute doesn't pass.
82703 2007-03-11  Bruno Haible  <bruno@clisp.org>
82705         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
82707 2007-03-11  Bruno Haible  <bruno@clisp.org>
82709         * gnulib-tool (func_create_megatestdir): Create also an autobuild
82710         script, for submission to autobuild.josefsson.org.
82712 2007-03-10  Bruno Haible  <bruno@clisp.org>
82714         * modules/canonicalize-lgpl-tests: New file.
82715         * tests/test-canonicalize-lgpl.sh: New file.
82716         * tests/test-canonicalize-lgpl.c: New file.
82718         * modules/c-strcase-tests: New file.
82719         * tests/test-c-strcase.sh: New file.
82720         * tests/test-c-strcasecmp.c: New file.
82721         * tests/test-c-strncasecmp.c: New file.
82723         * modules/atexit-tests: New file.
82724         * tests/test-atexit.sh: New file.
82725         * tests/test-atexit.c: New file.
82727 2007-03-10  Bruno Haible  <bruno@clisp.org>
82729         * tests/test-binary-io.sh: Use temporary filenames that are not so
82730         likely to clash with those of other tests (in a parallel make).
82731         * tests/test-binary-io.c: Likewise.
82733 2007-03-10  Bruno Haible  <bruno@clisp.org>
82735         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
82736         fallback; use #error instead.
82737         Suggested by Simon Josefsson.
82739 2007-03-10  Bruno Haible  <bruno@clisp.org>
82741         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
82742         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
82743         first and the last.
82745 2007-03-10  Bruno Haible  <bruno@clisp.org>
82747         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
82749 2007-03-10  Bruno Haible  <bruno@clisp.org>
82751         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
82752         "make distcheck".
82753         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
82754         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
82755         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
82757 2007-03-10  Bruno Haible  <bruno@clisp.org>
82759         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
82760         variable.
82761         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
82762         variable.
82764 2007-03-09  Eric Blake  <ebb9@byu.net>
82765         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
82767         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
82768         types are not being provided by gnulib.
82769         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
82770         types are supported.
82772 2007-03-10  Bruno Haible  <bruno@clisp.org>
82774         * lib/stdio_.h (__attribute__): New macro.
82775         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
82776         vsprintf): Specify __attribute__ __format__ for GCC.
82777         Suggested by Eric Blake.
82779 2007-03-09  Bruno Haible  <bruno@clisp.org>
82781         * modules/printf-posix-tests: New file.
82782         * tests/test-printf-posix.sh: New file.
82783         * tests/test-printf-posix.c: New file.
82785         * modules/printf-posix: New file.
82786         * lib/printf.c: New file.
82787         * m4/printf-posix-rpl.m4: New file.
82788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
82789         REPLACE_PRINTF.
82790         * lib/stdio_.h (printf): New declaration.
82791         (format, __format__, ____printf____, ____scanf____, ____strftime____,
82792         ____strfmon____): New macros.
82793         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
82794         REPLACE_PRINTF.
82796 2007-03-09  Bruno Haible  <bruno@clisp.org>
82798         * tests/test-vasnprintf-posix2.sh: New file.
82799         * tests/test-vasnprintf-posix2.c: New file.
82800         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
82801         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
82802         (Makefile.am): Activate test-vasnprintf-posix2.sh.
82804         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
82805         a locale dependent decimal point, rather than always '.'.
82807 2007-03-09  Eric Blake  <ebb9@byu.net>
82809         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
82810         spite of platforms like Tandem/NSK that define it to -1.
82812 2007-03-08  Bruno Haible  <bruno@clisp.org>
82814         * modules/vprintf-posix-tests: New file.
82815         * tests/test-vprintf-posix.sh: New file.
82816         * tests/test-vprintf-posix.c: New file.
82817         * tests/test-printf-posix.h: New file.
82819         * modules/vprintf-posix: New file.
82820         * lib/vprintf.c: New file.
82821         * m4/vprintf-posix.m4: New file.
82822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
82823         REPLACE_VPRINTF.
82824         * lib/stdio_.h (vprintf): New declaration.
82825         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
82826         REPLACE_VPRINTF.
82828 2007-03-08  Bruno Haible  <bruno@clisp.org>
82830         * modules/fprintf-posix-tests: New file.
82831         * tests/test-fprintf-posix.sh: New file.
82832         * tests/test-fprintf-posix.c: New file.
82834         * modules/fprintf-posix: New file.
82835         * lib/fprintf.c: New file.
82836         * m4/fprintf-posix.m4: New file.
82837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
82838         REPLACE_FPRINTF.
82839         * lib/stdio_.h (fprintf): New declaration.
82840         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
82841         REPLACE_FPRINTF.
82843 2007-03-08  Bruno Haible  <bruno@clisp.org>
82845         * modules/vfprintf-posix-tests: New file.
82846         * tests/test-vfprintf-posix.sh: New file.
82847         * tests/test-vfprintf-posix.c: New file.
82848         * tests/test-fprintf-posix.h: New file.
82849         * tests/test-fprintf-posix.out: New file.
82851         * modules/vfprintf-posix: New file.
82852         * lib/vfprintf.c: New file.
82853         * m4/vfprintf-posix.m4: New file.
82854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
82855         REPLACE_VFPRINTF.
82856         * lib/stdio_.h (vfprintf): New declaration.
82857         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
82858         REPLACE_VFPRINTF.
82860 2007-03-08  Bruno Haible  <bruno@clisp.org>
82862         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
82864 2007-03-08  Bruno Haible  <bruno@clisp.org>
82866         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
82867         instead of 'expr' invocations.
82868         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82869         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82870         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82871         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82872         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82873         Suggested by Paul Eggert.
82875 2007-03-08  Bruno Haible  <bruno@clisp.org>
82877         * modules/fseterr-tests: New file.
82878         * tests/test-fseterr.c: New file.
82880         * modules/fseterr: New file.
82881         * lib/fseterr.h: New file.
82882         * lib/fseterr.c: New file.
82884 2007-03-08  Bruno Haible  <bruno@clisp.org>
82886         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
82887         * lib/getopt_.h: Likewise.
82888         * lib/mbswidth.h: Likewise.
82889         * lib/setenv.h: Likewise.
82890         * lib/vasnprintf.h: Likewise.
82891         * lib/vasprintf.h: Likewise.
82892         * lib/verror.h: Likewise.
82893         * lib/xsetenv.h: Likewise.
82894         * lib/xvasprintf.h: Likewise.
82896 2007-03-08  Jim Meyering  <jim@meyering.net>
82898         * users.txt: Add parted.
82900         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
82902 2007-03-07  Bruno Haible  <bruno@clisp.org>
82904         * m4/printf.m4: Make the shell script snippets copy&pastable.
82906 2007-03-02  Bruno Haible  <bruno@clisp.org>
82908         * lib/netinet_in_.h: New file.
82909         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
82910         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
82911         * modules/netinet_in (Files): Add lib/netinet_in_.h.
82912         (Depends-on): Add absolute-header.
82913         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
82914         into netinet/in.h.
82916 2007-03-03  Bruno Haible  <bruno@clisp.org>
82918         * lib/sys_select_.h: New file.
82919         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
82920         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
82921         * modules/sys_select (Files): Add lib/sys_select_.h.
82922         (Depends-on): Add absolute-header.
82923         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
82924         into sys/select.h.
82926 2007-03-02  Bruno Haible  <bruno@clisp.org>
82928         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
82929         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
82930         values.
82931         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
82932         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
82933         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
82934         * modules/sys_socket (Depends-on): Add absolute-header.
82935         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
82936         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
82937         (Include): Remove requirement of inclusion of <sys/types.h>.
82939 2007-03-02  Bruno Haible  <bruno@clisp.org>
82941         * lib/byteswap_.h (bswap_32): Fix formula.
82943 2007-03-06  Bruno Haible  <bruno@clisp.org>
82945         * modules/sprintf-posix-tests: New file.
82946         * tests/test-sprintf-posix.c: New file.
82948         * modules/sprintf-posix: New file.
82949         * lib/sprintf.c: New file.
82950         * m4/sprintf-posix.m4: New file.
82951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
82952         REPLACE_SPRINTF.
82953         * lib/stdio_.h (sprintf): New declaration.
82954         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
82955         REPLACE_SPRINTF.
82957 2007-03-06  Bruno Haible  <bruno@clisp.org>
82959         * modules/vsprintf-posix-tests: New file.
82960         * tests/test-vsprintf-posix.c: New file.
82961         * tests/test-sprintf-posix.h: New file.
82963         * modules/vsprintf-posix: New file.
82964         * lib/vsprintf.c: New file.
82965         * m4/vsprintf-posix.m4: New file.
82966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
82967         REPLACE_VSPRINTF.
82968         * lib/stdio_.h (vsprintf): New declaration.
82969         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
82970         REPLACE_VSPRINTF.
82972 2007-03-06  Bruno Haible  <bruno@clisp.org>
82974         * modules/vsnprintf (Depend-on): Remove minmax.
82976 2007-03-06  Bruno Haible  <bruno@clisp.org>
82978         * modules/snprintf-posix-tests: New file.
82979         * tests/test-snprintf-posix.c: New file.
82981         * modules/snprintf-posix: New file.
82982         * m4/snprintf-posix.m4: New file.
82983         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
82984         gl_FUNC_SNPRINTF.
82985         (gl_FUNC_SNPRINTF): Invoke it.
82986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
82987         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
82988         is set.
82989         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
82991 2007-03-06  Bruno Haible  <bruno@clisp.org>
82993         * modules/vsnprintf-posix-tests: New file.
82994         * tests/test-vsnprintf-posix.c: New file.
82995         * tests/test-snprintf-posix.h: New file.
82997         * modules/vsnprintf-posix: New file.
82998         * m4/vsnprintf-posix.m4: New file.
82999         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
83000         gl_FUNC_VSNPRINTF.
83001         (gl_FUNC_VSNPRINTF): Invoke it.
83002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
83003         * lib/stdio_.h (vsnprintf): Define as a replacement if
83004         REPLACE_VSNPRINTF is set.
83005         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
83007 2007-03-06  Bruno Haible  <bruno@clisp.org>
83009         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
83010         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
83012 2007-03-06  Bruno Haible  <bruno@clisp.org>
83014         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
83015         (asinl): Declare also if HAVE_DECL_ASINL is set.
83016         (atanl): Declare also if HAVE_DECL_ATANL is set.
83017         (ceill): Declare also if HAVE_DECL_CEILL is set.
83018         (cosl): Declare also if HAVE_DECL_COSL is set.
83019         (expl): Declare also if HAVE_DECL_EXPL is set.
83020         (floorl): Declare also if HAVE_DECL_FLOORL is set.
83021         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
83022         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
83023         (logl): Declare also if HAVE_DECL_LOGL is set.
83024         (sinl): Declare also if HAVE_DECL_SINL is set.
83025         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
83026         (tanl): Declare also if HAVE_DECL_TANL is set.
83027         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
83028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
83029         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
83030         declaration of frexpl, ldexpl.
83031         * modules/printf-frexpl (Depends-on): Add math.
83032         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
83034 2007-03-05  Bruno Haible  <bruno@clisp.org>
83036         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
83037         frexpl and ldexpl are declared.
83038         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
83040 2007-03-05  Bruno Haible  <bruno@clisp.org>
83042         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
83043         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
83045 2007-03-05  Bruno Haible  <bruno@clisp.org>
83047         * lib/stdio_.h: Include <stddef.h>.
83049 2007-03-05  Bruno Haible  <bruno@clisp.org>
83051         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
83053 2007-03-05  Bruno Haible  <bruno@clisp.org>
83055         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
83056         NetBSD 4, from Ralf Wildenhues.
83058 2007-03-04  Bruno Haible  <bruno@clisp.org>
83060         * lib/vasprintf.h: Update #if logic for the case when the functions
83061         exist but are overridden.
83063 2007-03-04  Bruno Haible  <bruno@clisp.org>
83065         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
83066         implementations: glibc-2.4 and MacOS X 10.3.
83067         * tests/test-vasnprintf-posix.c (test_function): Test also the case
83068         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
83069         * tests/test-vasprintf-posix.c (test_function): Likewise.
83071 2007-03-04  Bruno Haible  <bruno@clisp.org>
83073         * modules/vasprintf-posix-tests: New file.
83074         * tests/test-vasprintf-posix.c: New file.
83076         * modules/vasprintf-posix: New file.
83077         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
83078         defined.
83079         * m4/vasprintf-posix.m4: New file.
83080         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
83081         gl_FUNC_VASPRINTF.
83082         (gl_FUNC_VASPRINTF): Invoke it.
83083         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
83084         here.
83085         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
83087 2007-03-04  Bruno Haible  <bruno@clisp.org>
83089         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
83090         REPLACE_GETTIMEOFDAY.
83091         * modules/sys_time (Makefile.am): Likewise.
83092         * m4/sys_time_h.m4: Likewise.
83093         * m4/gettimeofday.m4: Likewise.
83095 2007-03-04  Bruno Haible  <bruno@clisp.org>
83097         * modules/vasnprintf-posix-tests: New file.
83098         * tests/test-vasnprintf-posix.c: New file.
83100         * modules/vasnprintf-posix: New file.
83101         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
83102         printf-frexpl.h.
83103         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
83104         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
83105         REPLACE_VASNPRINTF is defined.
83106         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
83107         gl_FUNC_VASNPRINTF.
83108         (gl_FUNC_VASNPRINTF): Invoke it.
83109         * m4/vasnprintf-posix.m4: New file.
83110         * m4/printf.m4: New file.
83112 2007-03-04  Bruno Haible  <bruno@clisp.org>
83114         Compile progreloc.c only if --enable-relocatable is specified.
83115         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
83116         if --enable-relocatable was specified.
83117         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
83118         lib_SOURCES.
83120 2007-03-04  Jim Meyering  <jim@meyering.net>
83122         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
83123         Use it consistently, rather than enumerating errno constants.
83125 2007-03-04  Bruno Haible  <bruno@clisp.org>
83127         * modules/xvasprintf-tests: New file.
83128         * tests/test-xvasprintf.c: New file.
83130         * modules/vasprintf-tests: New file.
83131         * tests/test-vasprintf.c: New file.
83133         * modules/vasnprintf-tests: New file.
83134         * tests/test-vasnprintf.c: New file.
83136         * modules/vsnprintf-tests: New file.
83137         * tests/test-vsnprintf.c: New file.
83139         * modules/snprintf-tests: New file.
83140         * tests/test-snprintf.c: New file.
83142 2007-03-04  Bruno Haible  <bruno@clisp.org>
83144         Compile relocatable.c only if --enable-relocatable is specified.
83145         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
83146         gl_RELOCATABLE_LIBRARY.
83147         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
83148         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
83149         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
83150         gl_RELOCATABLE_LIBRARY.
83151         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
83152         (Makefile.am): Remove lib_SOURCES.
83153         * modules/relocatable-lib-lgpl (configure.ac): Invoke
83154         gl_RELOCATABLE_LIBRARY.
83155         (Makefile.am): Remove lib_SOURCES.
83156         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
83157         always.
83158         * modules/relocatable-prog-wrapper (configure.ac): Invoke
83159         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
83161 2007-03-04  Bruno Haible  <bruno@clisp.org>
83163         * modules/argmatch-tests: New file.
83164         * tests/test-argmatch.c: New file.
83166         * tests/test-allocsa.c (main): Halve the number of loop runs.
83168         * modules/alloca-opt-tests: New file.
83169         * tests/test-alloca-opt.c: New file.
83171 2007-03-04  Jim Meyering  <jim@meyering.net>
83173         Work around difference between Linux ACLs and Solaris 10 ZFS.
83174         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
83175         for EINVAL.
83177 2007-03-03  Bruno Haible  <bruno@clisp.org>
83179         * modules/relocatable-prog (Depends-on): Add back progreloc's
83180         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
83182 2007-03-03  Bruno Haible  <bruno@clisp.org>
83184         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
83185         * modules/relocatable-lib: New file.
83187 2007-03-03  Bruno Haible  <bruno@clisp.org>
83189         * modules/relocatable-prog: Renamed from modules/relocatable.
83190         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
83192 2007-03-03  Bruno Haible  <bruno@clisp.org>
83194         * modules/relocatable-script (Files): Add doc/relocatable.texi,
83195         m4/relocatable-lib.m4.
83196         (Depends-on): Remove 'relocatable'.
83197         (configure.ac): Add gl_RELOCATABLE_NOP.
83199 2007-03-03  Bruno Haible  <bruno@clisp.org>
83201         * modules/relocatable-prog-wrapper: New file.
83202         * modules/relocatable (Depends-on): Add it. Remove all other
83203         dependencies except progname.
83204         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
83206         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
83207         (gl_FUNC_STRERROR): Nop.
83208         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
83210         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
83211         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
83213         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
83214         (gl_FUNC_READLINK): Update.
83216         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
83218 2007-03-03  Bruno Haible  <bruno@clisp.org>
83220         * lib/xreadlink.c: Include <unistd.h> unconditionally.
83221         * modules/xreadlink (Depends-on): Add unistd.
83222         * modules/xreadlink-with-size (Depends-on): Likewise.
83224 2007-03-03  Bruno Haible  <bruno@clisp.org>
83226         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
83227         extracted from gt_FUNC_SETENV.
83228         (gt_FUNC_SETENV): Remove macro.
83229         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
83230         remove gt_FUNC_SETENV.
83232 2007-03-03  Bruno Haible  <bruno@clisp.org>
83234         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
83235         ENABLE_RELOCATABLE here.
83236         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
83238 2007-03-03  Bruno Haible  <bruno@clisp.org>
83240         * modules/rbtreehash-list-tests (Depends-on): Add progname.
83241         * tests/test-rbtreehash_list.c: Include progname.h.
83242         (main): Call set_program_name.
83244         * modules/rbtree-oset-tests (Depends-on): Add progname.
83245         * tests/test-rbtree_oset.c: Include progname.h.
83246         (main): Call set_program_name.
83248         * modules/rbtree-list-tests (Depends-on): Add progname.
83249         * tests/test-rbtree_list.c: Include progname.h.
83250         (main): Call set_program_name.
83252         * modules/linked-list-tests (Depends-on): Add progname.
83253         * tests/test-linked_list.c: Include progname.h.
83254         (main): Call set_program_name.
83256 2007-03-03  Bruno Haible  <bruno@clisp.org>
83258         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
83259         All uses of __restrict changed to _Restrict_.
83260         * lib/glob_.h (__restrict): Remove macro.
83262 2007-03-02  Bruno Haible  <bruno@clisp.org>
83264         * modules/gettext (configure.ac): Require gettext infrastructure
83265         from version 0.16.1.
83267 2007-03-02  Bruno Haible  <bruno@clisp.org>
83269         * modules/linkedhash-list-tests (Depends-on): Add progname.
83270         * tests/test-linkedhash_list.c: Include progname.h.
83271         (main): Call set_program_name.
83273         * modules/carray-list-tests (Depends-on): Add progname.
83274         * tests/test-carray_list.c: Include progname.h.
83275         (main): Call set_program_name.
83277         * modules/avltreehash-list-tests (Depends-on): Add progname.
83278         * tests/test-avltreehash_list.c: Include progname.h.
83279         (main): Call set_program_name.
83281         * modules/avltree-oset-tests (Depends-on): Add progname.
83282         * tests/test-avltree_oset.c: Include progname.h.
83283         (main): Call set_program_name.
83285         * modules/avltree-list-tests (Depends-on): Add progname.
83286         * tests/test-avltree_list.c: Include progname.h.
83287         (main): Call set_program_name.
83289         * modules/array-oset-tests (Depends-on): Add progname.
83290         * tests/test-array_oset.c: Include progname.h.
83291         (main): Call set_program_name.
83293         * modules/array-list-tests (Depends-on): Add progname.
83294         * tests/test-array_list.c: Include progname.h.
83295         (main): Call set_program_name.
83297         * modules/argp-tests (Depends-on): Add progname.
83298         * tests/test-argp.c: Include argp.h first. Include progname.h.
83299         (main): Call set_program_name.
83301 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
83303         * doc/gnulib-tool.texi (Initial import): Reword description of
83304         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
83305         limited effect even if defined after the first system include.
83307 2007-03-01  Bruno Haible  <bruno@clisp.org>
83309         * build-aux/config.libpath: Update to libtool-1.5.22.
83310         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83312 2007-03-01  Bruno Haible  <bruno@clisp.org>
83314         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
83315         foo_CFLAGS.
83316         Reported by Ralf Wildenhues.
83318 2007-03-01  Bruno Haible  <bruno@clisp.org>
83320         * build-aux/install-reloc: Remove object files left over by some
83321         compilers.
83322         Reported by Ralf Wildenhues.
83324 2007-03-01  Bruno Haible  <bruno@clisp.org>
83326         * build-aux/install-reloc: Break long lines.
83328 2007-03-01  Bruno Haible  <bruno@clisp.org>
83330         * doc/relocatable.texi: Document that it may not work on OpenBSD.
83331         Reported by Ralf Wildenhues.
83333 2007-03-01  Bruno Haible  <bruno@clisp.org>
83335         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
83336         include ordering constraints.
83338 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83340         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
83341         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
83342         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
83343         as another example.
83344         * lib/time_.h: Fix misspelling.
83345         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
83346         Require gl_HEADER_TIME_H_DEFAULTS.
83347         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
83348         * m4/time_r.m4 (gl_TIME_R): Likewise.
83349         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
83351 2007-03-01  Bruno Haible  <bruno@clisp.org>
83353         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
83354         * m4/utimens.m4 (gl_UTIMENS): Likewise.
83356 2007-03-01  Jim Meyering  <jim@meyering.net>
83358         * modules/xreadlink (Maintainer): Add my name.
83359         * modules/xreadlink-with-size (Depends-on): Alphabetize.
83361 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
83362             Bruno Haible  <bruno@clisp.org>
83364         * build-aux/install-reloc: Compile also c-ctype.c.
83365         * build-aux/relocatable.sh.in: New file.
83366         * doc/relocatable.texi: New file.
83367         * doc/relocatable-maint.texi: New file.
83368         * doc/gnulib.texi: Include relocatable-maint.texi.
83369         * lib/progreloc.c: Include unistd.h unconditionally.
83370         * lib/relocwrapper.c: Include unistd.h unconditionally.
83371         Include c-ctype.h.
83372         (add_dotbin): Use c_tolower.
83373         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
83374         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
83375         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
83376         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
83377         to m4/relocatable-lib.m4.
83378         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
83379         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
83380         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
83381         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
83382         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
83383         * modules/relocatable: New file.
83384         * modules/relocatable-lib: New file.
83385         * modules/relocatable-script: New file.
83387 2007-02-28  Bruno Haible  <bruno@clisp.org>
83389         Import --enable-relocatable infrastructure.
83390         * build-aux/config.libpath: New file, from GNU gettext.
83391         * build-aux/install-reloc: New file, from GNU gettext.
83392         * build-aux/reloc-ldflags: New file, from GNU gettext.
83393         * lib/relocatable.h: New file, from GNU gettext.
83394         * lib/relocatable.c: New file, from GNU gettext.
83395         * lib/relocwrapper.c: New file, from GNU gettext.
83396         * m4/relocatable.m4: New file, from GNU gettext.
83398 2007-02-28  Bruno Haible  <bruno@clisp.org>
83400         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
83402         * modules/xreadlink: New file, from GNU gettext with modifications.
83403         * lib/xreadlink.c: New file, from GNU gettext.
83404         * lib/xreadlink.h: Add comments.
83405         (xreadlink): New declaration.
83407         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
83408         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
83409         lib/xreadlink-with-size.c.
83410         (configure.ac): Remove gl_XREADLINK invocation.
83411         (Makefile.am): Augment lib_SOURCES.
83412         * m4/xreadlink.m4: Remove file.
83413         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
83414         (xreadlink_with_size): Renamed from xreadink.
83415         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
83416         * modules/canonicalize (Depends-on): Replace xreadlink with
83417         xreadlink-with-size.
83418         * lib/canonicalize.c (canonicalize_filename_mode): Update.
83420 2007-02-25  Jim Meyering  <jim@meyering.net>
83422         * build-aux/announce-gen: When complaining about excess arguments,
83423         list them.
83425 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83427         * README: Document signed integer overflow situation more
83428         accurately.
83430 2007-02-25  Bruno Haible  <bruno@clisp.org>
83432         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
83433         'a' or 'A' conversion.
83435 2007-02-25  Bruno Haible  <bruno@clisp.org>
83437         * modules/filename: Renamed from modules/pathname.
83438         (Files): Replace lib/pathname.h with lib/filename.h. Replace
83439         lib/concatpath.c with lib/concat-filename.c.
83440         (Makefile.am): Update.
83441         (Include): Replace pathname.h with filename.h.
83442         * lib/filename.h: Renamed from lib/pathname.h.
83443         (concatenated_filename): Renamed from concatenated_pathname.
83444         * lib/concat-filename.c: Renamed from lib/concatpath.c.
83445         (concatenated_filename): Renamed from concatenated_pathname.
83446         * lib/findprog.c: Include filename.h instead of pathname.h.
83447         (find_in_path): Update.
83448         * lib/javacomp.c: Include filename.h instead of pathname.h.
83449         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
83450         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
83451         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
83452         is_oldgcj_14_13_usable, is_javac_usable): Update.
83453         * lib/javaexec.c: Include filename.h instead of pathname.h.
83454         (execute_java_class): Update.
83455         * modules/findprog: Update.
83456         * modules/javacomp: Update.
83457         * modules/javaexec: Update.
83458         * MODULES.html.sh (File system functions): Add 'filename', remove
83459         'pathname'.
83461 2007-02-25  Bruno Haible  <bruno@clisp.org>
83463         * modules/printf-frexpl-tests: New file.
83464         * tests/test-printf-frexpl.c: New file.
83466         * modules/printf-frexpl: New file.
83467         * lib/printf-frexpl.h: New file.
83468         * lib/printf-frexpl.c: New file.
83469         * m4/printf-frexpl.m4: New file.
83471 2007-02-25  Bruno Haible  <bruno@clisp.org>
83473         * modules/printf-frexp-tests: New file.
83474         * tests/test-printf-frexp.c: New file.
83476         * modules/printf-frexp: New file.
83477         * lib/printf-frexp.h: New file.
83478         * lib/printf-frexp.c: New file.
83479         * m4/printf-frexp.m4: New file.
83481 2007-02-25  Bruno Haible  <bruno@clisp.org>
83483         Assume automake >= 1.10 for the tests.
83484         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
83485         * modules/arctwo-tests: Likewise.
83486         * modules/argp-tests: Likewise.
83487         * modules/avltree-list-tests: Likewise.
83488         * modules/avltree-oset-tests: Likewise.
83489         * modules/avltreehash-list-tests: Likewise.
83490         * modules/carray-list-tests: Likewise.
83491         * modules/crc-tests: Likewise.
83492         * modules/des-tests: Likewise.
83493         * modules/gc-arcfour-tests: Likewise.
83494         * modules/gc-arctwo-tests: Likewise.
83495         * modules/gc-des-tests: Likewise.
83496         * modules/gc-hmac-md5-tests: Likewise.
83497         * modules/gc-hmac-sha1-tests: Likewise.
83498         * modules/gc-md2-tests: Likewise.
83499         * modules/gc-md4-tests: Likewise.
83500         * modules/gc-md5-tests: Likewise.
83501         * modules/gc-pbkdf2-sha1-tests: Likewise.
83502         * modules/gc-rijndael-tests: Likewise.
83503         * modules/gc-sha1-tests: Likewise.
83504         * modules/gc-tests: Likewise.
83505         * modules/getaddrinfo-tests: Likewise.
83506         * modules/hmac-md5-tests: Likewise.
83507         * modules/hmac-sha1-tests: Likewise.
83508         * modules/linked-list-tests: Likewise.
83509         * modules/linkedhash-list-tests: Likewise.
83510         * modules/lock-tests: Likewise.
83511         * modules/md2-tests: Likewise.
83512         * modules/md4-tests: Likewise.
83513         * modules/md5-tests: Likewise.
83514         * modules/rbtree-list-tests: Likewise.
83515         * modules/rbtree-oset-tests: Likewise.
83516         * modules/rbtreehash-list-tests: Likewise.
83517         * modules/read-file-tests: Likewise.
83518         * modules/rijndael-tests: Likewise.
83519         * modules/stdint-tests: Likewise.
83520         * modules/tls-tests: Likewise.
83522 2007-02-24  Bruno Haible  <bruno@clisp.org>
83524         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
83525         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
83526         function; instead check whether isnan with a double argument links.
83527         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
83528         function; instead check whether isnan with a 'long double' argument
83529         links.
83530         Reported by Eric Blake <ebb9@byu.net>.
83532 2007-02-24  Bruno Haible  <bruno@clisp.org>
83534         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
83535         defined.
83536         * lib/isnanl.c: Remove all code. Just include isnan.c.
83537         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
83539 2007-02-25  Jim Meyering  <jim@meyering.net>
83541         Avoid conflicting types for 'unsetenv' on FreeBSD.
83542         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
83543         conflicting with FreeBSD's (5.0 and 6.1) function declaration
83544         in stdlib.h.
83546 2007-02-24  Bruno Haible  <bruno@clisp.org>
83548         * modules/isnanl-nolibm-tests: New file.
83549         * tests/test-isnanl.c: New file.
83551         * modules/isnanl-nolibm: New file.
83552         * lib/isnanl.h: New file.
83553         * lib/isnanl.c: New file.
83554         * m4/isnanl.m4: New file.
83556 2007-02-24  Bruno Haible  <bruno@clisp.org>
83558         * modules/isnan-nolibm-tests: New file.
83559         * tests/test-isnan.c: New file.
83561         * modules/isnan-nolibm: New file.
83562         * lib/isnan.h: New file.
83563         * lib/isnan.c: New file.
83564         * m4/isnan.m4: New file.
83566 2007-02-24  Bruno Haible  <bruno@clisp.org>
83568         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
83569         assume that an exponent fits in 20 bits.
83571 2007-02-24  Jim Meyering  <jim@meyering.net>
83573         * m4/regex.m4: Update the description of the configure-time option,
83574         --without-included-regex, to state accurately what the defaults are,
83575         and perhaps to give people an idea why using this option is risky.
83577 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
83580         loops on small arguments.  This attempts to avoid the problem
83581         Bruno Haible reported for AIX 4.3.2 in
83582         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
83584 2007-02-23  Bruno Haible  <bruno@clisp.org>
83586         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
83587         Needed for help2man.
83589 2007-02-23  Karl Berry  <karl@gnu.org>
83591         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
83592         exists, foo.h should be cvs-ignored, not committed.
83594 2007-02-23  Eric Blake  <ebb9@byu.net>
83596         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
83597         * lib/stat-time.h (includes): Likewise.
83598         * lib/utimecmp.c (includes): Likewise.
83599         * lib/utimens.h (includes): Likewise.
83600         * lib/getdate.y (includes): Also include "timespec.h" for use
83601         internal to the module.
83602         * modules/utimens (Depends-on): Revert yesterday's patch.
83603         * modules/nanosleep (Depends-on): Add missing dependency.
83605 2007-02-22  Bruno Haible  <bruno@clisp.org>
83607         * lib/glob.c: Don't include getlogin_r.h.
83609 2007-02-22  Jim Meyering  <jim@meyering.net>
83611         * modules/utimens (Depends-on): Add timespec, required for
83612         utimens.h's inclusion of timespec.h.
83614 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
83616         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
83617         long unreadable paths in GNU/Linux.  Problem reported by Andreas
83618         Schwab in
83619         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
83620         I'll try to think of a better way to fix the Solaris problem.
83622         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
83623         like glibc; on Solaris 10, it fails with errno == EINVAL.
83624         POSIX says the behavior is unspecified if the first argument is NULL,
83625         so play it safe and never pass NULL to the system getcwd.
83627 2007-02-21  Jim Meyering  <jim@meyering.net>
83629         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
83630         of gettimeofday.  It would conflict with the one now always
83631         provided via sys_time_.h.  Reported by Matthew Woehlke, as
83632         an IRIX 6.5 build failure.
83634 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83636         Minor fixups to port to Solaris 10 with Sun C 5.8.
83637         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
83638         * modules/getcwd (Depends-on): Add dirfd.
83639         * lib/putenv.c (putenv): #undef it.
83640         (rpl_putenv): New decl.
83641         (malloc, free): Include <stdlib.h> rather than prototyping separately.
83643 2007-02-20  Bruno Haible  <bruno@clisp.org>
83645         * modules/stdio-tests: New file.
83646         * tests/test-stdio.c: New file.
83648         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
83649         (Depends-on): Add stdio.
83650         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
83651         (Include): Use <stdio.h> instead of vsnprintf.h.
83652         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
83653         HAVE_DECL_VSNPRINTF.
83654         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
83656         * modules/snprintf (Files): Remove lib/snprintf.h.
83657         (Depends-on): Add stdio.
83658         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
83659         (Include): Use <stdio.h> instead of snprintf.h.
83660         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
83661         HAVE_DECL_SNPRINTF.
83662         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
83663         * lib/getaddrinfo.c: Likewise.
83665         * modules/stdio: New file.
83666         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
83667         * lib/snprintf.h: Remove file.
83668         * lib/vsnprintf.h: Remove file.
83669         * lib/.cppi-disable: Remove snprintf.h.
83670         * m4/stdio_h.m4: New file.
83671         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
83673 2007-02-20  Jim Meyering  <jim@meyering.net>
83675         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
83676         used by e.g., mingw.  From Bruno Haible.
83678 2007-02-19  Bruno Haible  <bruno@clisp.org>
83680         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
83681         warnings.
83682         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83684 2007-02-19  Bruno Haible  <bruno@clisp.org>
83686         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
83687         from mingw users.
83689 2007-02-19  Bruno Haible  <bruno@clisp.org>
83691         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
83692         warnings.
83693         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
83695 2007-02-19  Jim Meyering  <jim@meyering.net>
83697         Don't use FD after a successful "fdopendir (fd)".
83698         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
83699         Reset it by calling dirfd on the just-obtained DIR*.
83701         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
83702         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
83704 2007-02-18  Bruno Haible  <bruno@clisp.org>
83706         * lib/readlink.c: Include <unistd.h>.
83707         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
83708         HAVE_READLINK.
83709         * modules/readlink (Depends-on): Add unistd.
83710         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
83711         (Include): Add <unistd.h>.
83713         * lib/getlogin_r.h: Remove file.
83714         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
83715         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
83716         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
83717         HAVE_DECL_GETLOGIN_R.
83718         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
83719         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
83720         (Include): Use <unistd.h> instead of getlogin_r.h.
83722         * lib/getcwd.h: Remove file.
83723         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
83724         * lib/xgetcwd.c: Likewise.
83725         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
83726         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
83727         * modules/getcwd (Files): Remove lib/getcwd.h.
83728         (Depends-on): Add unistd.
83729         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
83730         (Include): Use <unistd.h> instad of getcwd.h.
83732         * lib/ftruncate.c: Include <unistd.h> first.
83733         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
83734         Set HAVE_FTRUNCATE.
83735         * modules/ftruncate (Depends-on): Add unistd.
83736         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
83738         * lib/fchdir.c: Include <unistd.h> first.
83739         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
83740         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
83741         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
83742         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
83743         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
83745         * lib/dup2.c: Include <unistd.h> first.
83746         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
83747         HAVE_DUP2.
83748         * modules/dup2 (Depends-on): Add unistd.
83749         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
83751         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
83752         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
83753         REPLACE_CHOWN. Don't define chown as a macro here.
83754         * modules/chown (Depends-on): Add unistd.
83755         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
83757         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
83758         Add definition for GL_LINK_WARNING.
83759         (chown, dup2): New declarations.
83760         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
83761         link warning.
83762         (ftruncate): New declaration.
83763         (getcwd): New declaration, taken from old getcwd.h.
83764         (getlogin_r): New declaration, taken from old getlogin_r.h.
83765         (readlink): New declaration.
83766         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
83767         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
83768         (gl_PREREQ_UNISTD): Remove macro.
83769         (gl_UNISTD_MODULE_INDICATOR): New macro.
83770         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
83771         many new variables. Don't set UNISTD_H.
83772         * modules/unistd (Description): Change.
83773         (Depends-on): Add link-warning.
83774         (configure.ac): Update.
83775         (Makefile.am): Create unistd.h always. Substitute many new variables
83776         into it.
83778 2007-02-18  Bruno Haible  <bruno@clisp.org>
83780         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
83781         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
83782         HAVE_GETSUBOPT.
83783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
83784         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
83785         * lib/getsubopt.h: Remove file.
83786         * modules/getsubopt (Files): Remove lib/getsubopt.h.
83787         (Depends-on): Add stdlib.
83788         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83789         (Includes): Use <stdlib.h> instead of getsubopt.h.
83790         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
83791         Set HAVE_GETSUBOPT.
83792         * lib/getsubopt.c: Don't include getsubopt.h.
83794 2007-02-18  Bruno Haible  <bruno@clisp.org>
83796         * modules/fchdir (Depends-on): Add dup2.
83798 2007-02-18  Bruno Haible  <bruno@clisp.org>
83800         * lib/stdlib_.h: Handle glibc's special invocation convention
83801         specially.
83803 2007-02-18  Bruno Haible  <bruno@clisp.org>
83805         * modules/stdlib-tests: New file.
83806         * tests/test-stdlib.c: New file.
83808         * modules/mkstemp (Files): Remove lib/mkstemp.h.
83809         (Depends-on): Add stdlib.
83810         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83811         (Includes): Use <stdlib.h> instead of mkstemp.h.
83812         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
83813         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
83814         * lib/mkstemp.c: Don't include mkstemp.h.
83815         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
83816         * lib/stdlib--.h: Don't include mkstemp.h.
83818         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
83819         (Depends-on): Add stdlib.
83820         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83821         (Includes): Use <stdlib.h> instead of mkdtemp.h.
83822         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
83823         HAVE_MKDTEMP.
83824         * lib/mkdtemp.c: Don't include mkdtemp.h.
83825         * lib/clean-temp.c: Don't include mkdtemp.h.
83827         * modules/exit (Files): Remove lib/exit.h.
83828         (Depends-on): Add stdlib.
83829         (Makefile.am): Remove lib_SOURCES.
83830         (Include): Use <stdlib.h> instead of exit.h.
83831         * lib/argmatch.c: Don't include exit.h.
83832         * lib/execute.c: Likewise.
83833         * lib/pagealign_alloc.c: Likewise.
83834         * lib/pipe.c: Likewise.
83835         * lib/wait-process.c: Likewise.
83836         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
83837         * lib/exitfail.c: Likewise.
83838         * lib/savewd.c: Likewise.
83839         * lib/xsetenv.c: Likewise.
83841         * modules/stdlib: New file.
83842         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
83843         and extra comments about mkstemp().
83844         * lib/exit.h: Remove file.
83845         * lib/mkdtemp.h: Remove file.
83846         * lib/mkstemp.h: Remove file.
83847         * m4/stdlib_h.m4: New file.
83848         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
83850 2007-02-18  Bruno Haible  <bruno@clisp.org>
83852         * modules/math-tests: New file.
83853         * tests/test-math.c: New file.
83855         * modules/math: New file.
83856         * modules/mathl (Files): Remove lib/mathl.h.
83857         (Depends-on): Add math.
83858         (Makefile.am): Don't mention mathl.h.
83859         (Include): Use <math.h> instead of mathl.h.
83860         * lib/math_.h: New file.
83861         * lib/mathl.h: Remove file.
83862         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
83863         mathl.h.
83864         * lib/asinl.c: Likewise.
83865         * lib/atanl.c: Likewise.
83866         * lib/ceill.c: Likewise.
83867         * lib/cosl.c: Likewise.
83868         * lib/expl.c: Likewise.
83869         * lib/floorl.c: Likewise.
83870         * lib/frexpl.c: Likewise.
83871         * lib/ldexpl.c: Likewise.
83872         * lib/logl.c: Likewise.
83873         * lib/sincosl.c: Likewise.
83874         * lib/sinl.c: Likewise.
83875         * lib/sqrtl.c: Likewise.
83876         * lib/tanl.c: Likewise.
83877         * lib/trigl.c: Likewise.
83878         * m4/math_h.m4: New file.
83879         * MODULES.html.sh (Mathematics): Add math.
83881 2007-02-17  Bruno Haible  <bruno@clisp.org>
83883         * modules/wctype-tests: New file.
83884         * tests/test-wctype.c: New file.
83886         * modules/wchar-tests: New file.
83887         * tests/test-wchar.c: New file.
83889         * modules/unistd-tests: New file.
83890         * tests/test-unistd.c: New file.
83892         * modules/time-tests: New file.
83893         * tests/test-time.c: New file.
83895         * modules/sysexits-tests: New file.
83896         * tests/test-sysexits.c: New file.
83898         * modules/sys_time-tests: New file.
83899         * tests/test-sys_time.c: New file.
83901         * modules/sys_stat-tests: New file.
83902         * tests/test-sys_stat.c: New file.
83904         * modules/sys_socket-tests: New file.
83905         * tests/test-sys_socket.c: New file.
83907         * modules/sys_select-tests: New file.
83908         * tests/test-sys_select.c: New file.
83910         * modules/string-tests: New file.
83911         * tests/test-string.c: New file.
83913         * modules/stdbool-tests: New file.
83914         * tests/test-stdbool.c: New file.
83916         * modules/netinet_in-tests: New file.
83917         * tests/test-netinet_in.c: New file.
83919         * modules/inttypes-tests: New file.
83920         * tests/test-inttypes.c: New file.
83922         * modules/fcntl-tests: New file.
83923         * tests/test-fcntl.c: New file.
83925         * modules/byteswap-tests: New file.
83926         * tests/test-byteswap.c: New file.
83928         * modules/arpa_inet-tests: New file.
83929         * tests/test-arpa_inet.c: New file.
83931 2007-02-17  Bruno Haible  <bruno@clisp.org>
83933         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
83934         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
83935         if the corresponding module is not enabled. Emit link warnings if
83936         the function is used nevertheless.
83937         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
83938         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
83939         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
83940         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
83941         * modules/inttypes (Depends-on): Add link-warning.
83942         (Makefile.am): Copy the contents of build-aux/link-warning.h into
83943         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
83944         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
83945         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
83946         * modules/imaxdiv (configure.ac): Likewise.
83947         * modules/strtoimax (configure.ac): Likewise.
83948         * modules/strtoumax (configure.ac): Likewise.
83950 2007-02-17  Bruno Haible  <bruno@clisp.org>
83952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
83953         gl_STRING_MODULE_INDICATOR_DEFAULTS.
83954         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
83955         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
83957 2007-02-17  Bruno Haible  <bruno@clisp.org>
83959         * modules/link-warning: New file.
83960         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
83961         * lib/string_.h (GL_LINK_WARNING): Remove definition.
83962         * modules/string (Depends-on): Add link-warning.
83963         (Makefile.am): Copy the contents of build-aux/link-warning.h into
83964         string.h.
83965         * MODULES.html.sh (Support for building libraries and executables): Add
83966         link-warning.
83968 2007-02-17  Bruno Haible  <bruno@clisp.org>
83970         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
83971         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
83972         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
83973         long lines.
83975 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
83976             Bruno Haible  <bruno@clisp.org>
83978         * modules/tmpfile: New file.
83979         * lib/tmpfile.c: New file.
83980         * m4/tmpfile.m4: New file.
83981         * MODULES.html.sh (func_all_modules): New section "Input/output".
83983 2007-02-15  Bruno Haible  <bruno@clisp.org>
83985         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
83986         (supports_delete_on_close): New function.
83987         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
83989 2007-02-14  Bruno Haible  <bruno@clisp.org>
83991         * modules/mbspcasecmp-tests: New file.
83992         * tests/test-mbspcasecmp.sh: New file.
83993         * tests/test-mbspcasecmp.c: New file.
83995         New module mbspcasecmp.
83996         * modules/mbspcasecmp: New file.
83997         * lib/mbspcasecmp.c: New file.
83998         * lib/string_.h (strncasecmp): Change warning message.
83999         (mbspcasecmp): New declaration.
84000         * m4/mbspcasecmp.m4: New file.
84001         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
84002         GNULIB_MBSPCASECMP.
84003         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
84004         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
84006 2007-02-14  Bruno Haible  <bruno@clisp.org>
84008         * modules/mbsncasecmp-tests: New file.
84009         * tests/test-mbsncasecmp.sh: New file.
84010         * tests/test-mbsncasecmp.c: New file.
84012         New module mbsncasecmp.
84013         * modules/mbsncasecmp: New file.
84014         * lib/mbsncasecmp.c: New file.
84015         * lib/string_.h (mbsncasecmp): New declaration.
84016         * m4/mbsncasecmp.m4: New file.
84017         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
84018         GNULIB_MBSNCASECMP.
84019         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
84020         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
84022 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
84024         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
84025         Verify that it doesn't overlap with our flags.
84026         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
84027         do not have the desired effect in multibyte locales; instead, use
84028         mbscasecmp.
84029         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
84030         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
84031         we don't require GNU fnmatch ourselves (if our users require it, they
84032         should do so explicitly).
84034         Fix regex code so it doesn't rely on strcasecmp.
84035         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
84036         Otherwise, include gnulib's langinfo.h.
84037         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
84038         undesirable behavior in non-C locales.  Instead, rely on localecharset.
84039         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
84040         * modules/regex (FILES): Remove m4/codeset.m4.
84041         (Depends-on): Add localcharset.  Remove strcase.
84043 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84045         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
84046         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
84048 2007-02-13  Bruno Haible  <bruno@clisp.org>
84050         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
84051         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84053 2007-02-12  Bruno Haible  <bruno@clisp.org>
84055         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
84056         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
84057         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
84058         time warning rather than a link error.
84060 2007-02-12  Bruno Haible  <bruno@clisp.org>
84062         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
84063         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
84064         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84066 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
84068         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
84069         args, not 2.
84071 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
84073         New module 'time', so that apps can include <time.h> as per
84074         POSIX and GNU instead of separate include files like time_r.h
84075         and timegm.h.  This implementation tries out a simpler approach
84076         for replacing decls in standard include files (as compared to
84077         the string module), somewhat as an experiment.
84079         * config/srclist.txt: Comment out mktime.c for now.
84080         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
84081         since it doesn't apply any more.  Use generic wording instead.
84082         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
84083         'time'.
84084         * lib/time_.h, m4/time_h.m4, modules/time: New files.
84085         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
84086         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
84087         Don't include <sys/types.h>; no longer needed since we assume C89.
84088         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
84089         * lib/strftime.c: Likewise.
84090         * lib/time_r.c: Likewise.
84091         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
84092         * lib/nanosleep.c: Include <time.h> first, to check interface.
84093         * lib/strptime.c: Likewise.
84094         * lib/time_r.c: Likewise.
84095         * lib/timegm.c: Likewise.
84096         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
84097         needed.
84098         * lib/timegm.c: Don't include timegm.h; no longer needed.
84099         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
84100         time.h now handles any problems in that area.
84101         (struct timespec, nanosleep): Remove; time.h now arranges for these.
84102         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
84103         that time.h defines struct timespec.
84104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
84105         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
84106         handles that.
84107         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
84108         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
84109         needed.  Set REPLACE_LOCALTIME.
84110         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
84111         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
84112         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
84113         nanosleep; time_h.m4 now does that.  Don't require
84114         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
84115         module handles this now.
84116         * modules/getdate (Depends-on): Remove timespec.  Add time.
84117         * modules/nanosleep (Depends-on): Likewise.
84118         * modules/stat-time (Depends-on): Likewise.
84119         * modules/nanosleep (Include): Include time.h, not timespec.h.
84120         * modules/strptime (Files): Remove lib/strptime.h.
84121         (Depends-on): Add extensions, time.
84122         (Include): Include time.h, not strptime.h.
84123         * modules/time_r (Files): Remove lib/time_r.h.
84124         (Depends-on): Add time.
84125         (Include): Include time.h, not time_r.h.
84126         * modules/timegm: Likewise.
84127         * modules/timespec (Description): Now does timespec-related decls
84128         of our own, instead of struct timespec itself.
84129         (Depends-on): Add time; remove extensions.
84130         (Maintainer): Add self.
84131         * modules/utimecmp (Depends-on): Add time; remove timespec.
84132         * modules/utimens (Depends-on): Likewise.
84133         * modules/xnanosleep (Depends-on): Likewise.
84135 2007-02-11  Bruno Haible  <bruno@clisp.org>
84137         * lib/c-strstr.c: Include allocsa.h.
84138         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
84139         * lib/c-strcasestr.c: Include allocsa.h.
84140         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
84141         * lib/strcasestr.c: Include allocsa.h.
84142         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
84143         * lib/mbsstr.c: Include allocsa.h.
84144         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
84145         allocsa/freesa instead of malloc/free.
84146         * lib/mbscasestr.c: Include allocsa.h.
84147         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
84148         allocsa/freesa instead of malloc/free.
84149         * modules/c-strstr (Depends-on): Add allocsa.
84150         * modules/c-strcasestr (Depends-on): Likewise.
84151         * modules/strcasestr (Depends-on): Likewise.
84152         * modules/mbsstr (Depends-on): Likewise.
84153         * modules/mbscasestr (Depends-on): Likewise.
84155 2007-02-11  Bruno Haible  <bruno@clisp.org>
84157         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
84159         * modules/mbsspn-tests: New file.
84160         * tests/test-mbsspn.sh: New file.
84161         * tests/test-mbsspn.c: New file.
84163 2007-02-11  Bruno Haible  <bruno@clisp.org>
84165         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
84167         * modules/mbspbrk-tests: New file.
84168         * tests/test-mbspbrk.sh: New file.
84169         * tests/test-mbspbrk.c: New file.
84171 2007-02-11  Bruno Haible  <bruno@clisp.org>
84173         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
84174         unneeded cast.
84176         * modules/mbscspn-tests: New file.
84177         * tests/test-mbscspn.sh: New file.
84178         * tests/test-mbscspn.c: New file.
84180 2007-02-11  Bruno Haible  <bruno@clisp.org>
84182         * modules/mbscasecmp-tests: New file.
84183         * tests/test-mbscasecmp.sh: New file.
84184         * tests/test-mbscasecmp.c: New file.
84186 2007-02-11  Bruno Haible  <bruno@clisp.org>
84188         Ensure O(n) worst-case complexity of mbscasestr.
84189         * lib/mbscasestr.c: Include stdbool.h.
84190         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
84191         functions.
84192         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
84193         the bookkeeping indicates that it's worth it.
84194         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
84196         * modules/mbscasestr-tests: New file.
84197         * tests/test-mbscasestr1.c: New file.
84198         * tests/test-mbscasestr2.sh: New file.
84199         * tests/test-mbscasestr2.c: New file.
84200         * tests/test-mbscasestr3.sh: New file.
84201         * tests/test-mbscasestr3.c: New file.
84202         * tests/test-mbscasestr4.sh: New file.
84203         * tests/test-mbscasestr4.c: New file.
84204         * m4/locale-tr.m4: New file.
84206 2007-02-11  Bruno Haible  <bruno@clisp.org>
84208         Ensure O(n) worst-case complexity of mbsstr.
84209         * lib/mbsstr.c: Include stdbool.h.
84210         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
84211         functions.
84212         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
84213         bookkeeping indicates that it's worth it.
84214         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
84216         * modules/mbsstr-tests: New file.
84217         * tests/test-mbsstr1.c: New file.
84218         * tests/test-mbsstr2.sh: New file.
84219         * tests/test-mbsstr2.c: New file.
84220         * tests/test-mbsstr3.sh: New file.
84221         * tests/test-mbsstr3.c: New file.
84222         * m4/locale-fr.m4: New file.
84224 2007-02-11  Bruno Haible  <bruno@clisp.org>
84226         * lib/mbsrchr.c (mbsrchr): Fix bug.
84228         * modules/mbsrchr-tests: New file.
84229         * tests/test-mbsrchr.sh: New file.
84230         * tests/test-mbsrchr.c: New file.
84232 2007-02-11  Bruno Haible  <bruno@clisp.org>
84234         * lib/mbschr.c (mbschr): Fix bug.
84236         * modules/mbschr-tests: New file.
84237         * tests/test-mbschr.sh: New file.
84238         * tests/test-mbschr.c: New file.
84239         * m4/locale-zh.m4: New file.
84241 2007-02-11  Bruno Haible  <bruno@clisp.org>
84243         Support for copying multibyte string iterators.
84244         * lib/mbiter.h: Include <string.h>.
84245         (mbiter_multi_copy): New function.
84246         (mbi_copy): New macro.
84247         * lib/mbuiter.h: Include <string.h>.
84248         (mbuiter_multi_copy): New function.
84249         (mbui_copy): New macro.
84251 2007-02-11  Bruno Haible  <bruno@clisp.org>
84253         New module mbslen.
84254         * modules/mbslen: New file.
84255         * lib/mbslen.c: New file.
84256         * lib/string_.h (mbslen): New declaration.
84257         * m4/mbslen.m4: New file.
84258         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
84259         GNULIB_MBSLEN.
84260         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
84261         * MODULES.html.sh (Internationalization functions): Add mbslen.
84263 2007-02-11  Bruno Haible  <bruno@clisp.org>
84265         Ensure O(n) worst-case complexity of strcasestr substitute.
84266         * lib/strcasestr.c: Include stdbool.h.
84267         (knuth_morris_pratt): New function.
84268         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
84269         bookkeeping indicates that it's worth it.
84270         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
84272         * modules/strcasestr-tests: New file.
84273         * tests/test-strcasestr.c: New file.
84275 2007-02-11  Bruno Haible  <bruno@clisp.org>
84277         Ensure O(n) worst-case complexity of c_strcasestr.
84278         * lib/c-strcasestr.c: Include stdbool.h, string.h.
84279         (knuth_morris_pratt): New function.
84280         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
84281         the bookkeeping indicates that it's worth it.
84282         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
84284         * modules/c-strcasestr-tests: New file.
84285         * tests/test-c-strcasestr.c: New file.
84287 2007-02-11  Bruno Haible  <bruno@clisp.org>
84289         Ensure O(n) worst-case complexity of c_strstr.
84290         * lib/c-strstr.c: Include stdbool.h, string.h.
84291         (knuth_morris_pratt): New function.
84292         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
84293         bookkeeping indicates that it's worth it.
84294         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
84296         * lib/c-strstr.c: Complete rewrite for maintainability.
84298         * modules/c-strstr-tests: New file.
84299         * tests/test-c-strstr.c: New file.
84301 2007-02-11  Bruno Haible  <bruno@clisp.org>
84303         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
84304         5.2.1 and earlier, whereby \055 was treated just like the range
84305         delimiter '-'.
84306         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
84308 2007-02-08  Bruno Haible  <bruno@clisp.org>
84310         * modules/regex (Depends-on): Add stdbool.
84311         Reported by Dalibor Topic <robilad@kaffe.org>.
84313 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
84315         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
84316         Prefer returning from main to exiting from it.
84317         Remove unnecessary parens after sizeof.
84319 2007-02-05  Bruno Haible  <bruno@clisp.org>
84321         New module mbssep.
84322         * modules/mbssep: New file.
84323         * lib/mbssep.c: New file.
84324         * lib/string_.h (strsep): Add a conditional link warning.
84325         (mbssep): New declaration.
84326         * m4/mbssep.m4: New file.
84327         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
84328         GNULIB_MBSSEP.
84329         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
84330         * MODULES.html.sh (Internationalization functions): Add mbssep.
84332 2007-02-05  Bruno Haible  <bruno@clisp.org>
84334         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
84335         Optimize search in case of 1 delimiter.
84337 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
84339         * lib/acl.h: Include sys/types.h before sys/acl.h.
84341 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
84343         Merge upstream fix for glibc bugzilla #3957:
84345         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
84347         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
84348         bit for RE_HAT_LISTS_NOT_NEWLINE.
84349         (build_charclass_op): Remove bogus comment.
84351 2007-02-05  Simon Josefsson  <simon@josefsson.org>
84353         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
84355 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
84357         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
84358         * lib/memmem.c [!defined _LIBC]: Include config.h.
84360 2007-02-04  Bruno Haible  <bruno@clisp.org>
84362         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
84363         warning message.
84365 2007-02-04  Bruno Haible  <bruno@clisp.org>
84367         New module mbstok_r.
84368         * modules/mbstok_r: New file.
84369         * lib/mbstok_r.c: New file.
84370         * lib/string_.h (strtok_r): Change argument names to match the
84371         comments. Add a conditional link warning.
84372         (mbstok_r): New declaration.
84373         * m4/mbstok_r.m4: New file.
84374         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
84375         GNULIB_MBSTOK_R.
84376         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
84377         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
84379 2007-02-04  Bruno Haible  <bruno@clisp.org>
84381         New module mbsspn.
84382         * modules/mbsspn: New file.
84383         * lib/mbsspn.c: New file.
84384         * lib/string_.h (strspn): Add a conditional link warning.
84385         (mbsspn): New declaration.
84386         * m4/mbsspn.m4: New file.
84387         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
84388         GNULIB_MBSSPN.
84389         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
84390         * MODULES.html.sh (Internationalization functions): Add mbsspn.
84392 2007-02-04  Bruno Haible  <bruno@clisp.org>
84394         New module mbspbrk.
84395         * modules/mbspbrk: New file.
84396         * lib/mbspbrk.c: New file.
84397         * lib/string_.h (strpbrk): Add a conditional link warning.
84398         (mbspbrk): New declaration.
84399         * m4/mbspbrk.m4: New file.
84400         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
84401         GNULIB_MBSPBRK.
84402         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
84403         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
84405 2007-02-04  Bruno Haible  <bruno@clisp.org>
84407         New module mbscspn.
84408         * modules/mbscspn: New file.
84409         * lib/mbscspn.c: New file.
84410         * lib/string_.h (strcspn): Add a conditional link warning.
84411         (mbscspn): New declaration.
84412         * m4/mbscspn.m4: New file.
84413         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
84414         GNULIB_MBSCSPN.
84415         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
84416         * MODULES.html.sh (Internationalization functions): Add mbscspn.
84418 2007-02-04  Bruno Haible  <bruno@clisp.org>
84420         New module mbscasestr, reduced goal of strcasestr.
84421         * modules/mbscasestr: New file.
84422         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
84423         (mbscasestr): Renamed from strcasestr.
84424         * lib/strcasestr.c: Don't include mbuiter.h.
84425         (strcasestr): Remove support for multibyte locales.
84426         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
84427         Change the conditional link warning.
84428         (mbscasestr): New declaration.
84429         * m4/mbscasestr.m4: New file.
84430         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
84431         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
84432         REPLACE_STRCASESTR.
84433         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
84434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
84435         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
84436         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
84437         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
84438         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
84439         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
84440         (Depends-on): Remove mbuiter.
84441         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
84443 2007-02-04  Bruno Haible  <bruno@clisp.org>
84445         Simplify handling of strncasecmp.
84446         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
84447         the conditional link warning.
84448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
84449         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
84450         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
84451         * modules/strcase (configure.ac): Don't invoke
84452         gl_STRING_MODULE_INDICATOR.
84453         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
84455 2007-02-04  Bruno Haible  <bruno@clisp.org>
84457         New module mbscasecmp, reduced goal of strcasecmp.
84458         * modules/mbscasecmp: New file.
84459         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
84460         (mbscasecmp): Renamed from strcasecmp.
84461         * lib/strcasecmp.c: Don't include mbuiter.h.
84462         (strcasecmp): Remove support for multibyte locales.
84463         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
84464         Change the conditional link warning.
84465         (mbscasecmp): New declaration.
84466         * m4/mbscasecmp.m4: New file.
84467         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
84468         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
84469         REPLACE_STRCASECMP.
84470         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
84471         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
84472         GNULIB_MBSCASECMP.
84473         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
84474         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
84475         * modules/strcase (Files): Remove m4/mbrtowc.m4.
84476         (Depends-on): Remove mbuiter.
84477         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
84479 2007-02-04  Bruno Haible  <bruno@clisp.org>
84481         New module mbsstr. Remove module strstr.
84482         * modules/mbsstr: New file.
84483         * modules/strstr: Remove file.
84484         * lib/mbsstr.c: Renamed from lib/strstr.c.
84485         (mbsstr): Renamed from strstr.
84486         * lib/string_.h (strstr): Remove declaration. Change the conditional
84487         link warning.
84488         (mbsstr): New declaration.
84489         * m4/mbsstr.m4: New file.
84490         * m4/strstr.m4: Remove file.
84491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
84492         REPLACE_STRSTR.
84493         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
84494         Don't initialize GNULIB_STRSTR.
84495         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
84496         substitute GNULIB_STRSTR and REPLACE_STRSTR.
84497         * MODULES.html.sh (Internationalization functions): Add mbsstr.
84498         (Support for systems lacking ANSI C 89): Remove strstr.
84500 2007-02-04  Bruno Haible  <bruno@clisp.org>
84502         New module mbsrchr.
84503         * modules/mbsrchr: New file.
84504         * lib/mbsrchr.c: New file.
84505         * lib/string_.h (strrchr): Add a conditional link warning.
84506         (mbsrchr): New declaration.
84507         * m4/mbsrchr.m4: New file.
84508         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
84509         GNULIB_MBSRCHR.
84510         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
84511         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
84513 2007-02-04  Bruno Haible  <bruno@clisp.org>
84515         New module mbschr.
84516         * modules/mbschr: New file.
84517         * lib/mbschr.c: New file.
84518         * lib/string_.h (strchr): Add a conditional link warning.
84519         (mbschr): New declaration.
84520         * m4/mbschr.m4: New file.
84521         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
84522         GNULIB_MBSCHR.
84523         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
84524         * MODULES.html.sh (Internationalization functions): Add mbschr.
84526 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
84528         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
84530         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
84532 2007-02-04  Bruno Haible  <bruno@clisp.org>
84534         New module description section 'configure.ac-early'.
84535         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
84536         (func_get_autoconf_early_snippet): New function.
84537         (func_import, func_create_testdir): Use it. Remove special cases for
84538         modules 'extensions' and 'lock'.
84539         * modules/extensions (configure.ac-early): Require
84540         gl_USE_SYSTEM_EXTENSIONS.
84541         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
84543 2007-02-04  Bruno Haible  <bruno@clisp.org>
84545         Make use of gcj-4.3's -fsource and -ftarget option.
84546         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
84547         and if so try the options -fsource and -ftarget.
84548         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
84549         source_version, ftarget_option, target_version arguments.
84550         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
84551         (is_envjavac_oldgcj_14_14_usable): Renamed from
84552         is_envjavac_gcj_14_14_usable.
84553         (is_envjavac_oldgcj_14_13_usable): Renamed from
84554         is_envjavac_gcj_14_13_usable.
84555         (is_gcj_present): Update.
84556         (is_gcj_43, is_gcj43_usable): New functions.
84557         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
84558         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
84559         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
84560         try the options -fsource and -ftarget.
84562 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84564         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
84565         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
84566         larger value.
84568 2007-02-03  Jim Meyering  <jim@meyering.net>
84570         Give tools a better chance to allocate space for very large buffers.
84571         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
84573         Make pwd and readlink work also when run with an unreadable parent dir
84574         on systems with openat support.
84575         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
84576         provided getcwd function, even when we have openat support.
84577         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
84579 2007-02-02  Bruno Haible  <bruno@clisp.org>
84581         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
84582         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
84583         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
84584         portability problems if one of these functions is only used on specific
84585         platforms.
84586         Reported by Paul Eggert.
84588 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
84590         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
84591         is causing more trouble than it's curing.
84592         * lib/regex_internal.h (__mempcpy): Remove.
84593         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
84594         (and make the code a tad smaller to boot).
84595         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
84597 2007-02-02  Jim Meyering  <jim@meyering.net>
84599         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
84600         section, not in the Makefile.am: one.
84602 2007-02-02  Eric Blake  <ebb9@byu.net>
84604         * lib/strchrnul.c: Always include config.h first.
84606         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
84607         gnulib strstr is not necessary here.
84609 2007-02-02  Simon Josefsson  <simon@josefsson.org>
84611         * m4/socklen.m4: Fix typo.
84613 2007-02-02  Eric Blake  <ebb9@byu.net>
84615         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
84616         * modules/netinet_in (Makefile.am): Likewise.
84618 2007-02-01  Bruno Haible  <bruno@clisp.org>
84620         * lib/string_.h (GL_LINK_WARNING): New macro.
84621         (strcasecmp, strstr, strcasestr): If provided by the system,
84622         conditionally define as a macro that leads to a warning instead of to
84623         an error.
84624         (strncasecmp): Conditionally define as a macro that leads to a warning.
84626 2007-02-01  Karl Berry  <karl@gnu.org>
84628         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
84630 2007-02-01  Bruno Haible  <bruno@clisp.org>
84632         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
84633         renamings.
84635 2007-02-01  Eric Blake  <ebb9@byu.net>
84637         * modules/regex (Depends-on): Revert dependence on mempcpy.
84638         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
84639         module's definition of mempcpy.
84640         Reported by Paul Eggert.
84642 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84644         * lib/string_.h: If the gnulib module XYZ is not present, undefine
84645         the symbol XYZ before redefining it.  This fixes a problem with
84646         programs that don't use XYZ, when compiled on systems that define
84647         XYZ to something else.
84649 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
84651         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
84652         occurs when "mkdir -m foo" creates a setgid directory that is (1)
84653         writeable to group or other and (2) is intended to have a special
84654         mode bit that is set or cleared.  In such a case, the directory
84655         should be neither group- nor other-writeable until the special
84656         mode bits are right.
84658 2007-01-31  Eric Blake  <ebb9@byu.net>
84660         * modules/mountlist (Depends-on): Add strstr.
84662         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
84663         bug.
84664         * modules/string (Makefile.am): Remove redundant replacement.
84665         * modules/regex (Depends-on): Add mempcpy.
84667 2007-01-31  Bruno Haible  <bruno@clisp.org>
84669         New module description field 'Link'.
84670         * gnulib-tool (func_usage): Document --extract-link-directive.
84671         (sed_extract_prog): Recognize 'Link' directive.
84672         (func_get_link_directive): New function.
84673         (func_import): Show summary of link directives.
84674         Handle --extract-link-directive option.
84675         * modules/acl (Link): New section.
84676         * modules/clock-time (Link): New section.
84677         * modules/euidaccess (Link): New section.
84678         * modules/gettext (Link): New section.
84679         * modules/iconv (Link): New section.
84680         * modules/lock (Link): New section.
84681         * modules/nanosleep (Link): New section.
84682         * modules/readline (Link): New section.
84684 2007-01-27  Bruno Haible  <bruno@clisp.org>
84686         Enforce the use of gnulib modules for unportable <string.h> functions.
84687         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
84688         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
84689         (gl_HEADER_STRING_H_BODY): Require it.
84690         * lib/string_.h: If the gnulib module XYZ is not present, redefine
84691         the symbol XYZ to one that gives a link error.
84692         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
84693         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
84694         * modules/mempcpy (configure.ac): Likewise.
84695         * modules/memrchr (configure.ac): Likewise.
84696         * modules/stpcpy (configure.ac): Likewise.
84697         * modules/stpncpy (configure.ac): Likewise.
84698         * modules/strcase (configure.ac): Likewise.
84699         * modules/strcasestr (configure.ac): Likewise.
84700         * modules/strchrnul (configure.ac): Likewise.
84701         * modules/strdup (configure.ac): Likewise.
84702         * modules/strndup (configure.ac): Likewise.
84703         * modules/strnlen (configure.ac): Likewise.
84704         * modules/strpbrk (configure.ac): Likewise.
84705         * modules/strsep (configure.ac): Likewise.
84706         * modules/strstr (configure.ac): Likewise.
84707         * modules/strtok_r (configure.ac): Likewise.
84709 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
84711         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
84713 2007-01-30  Jim Meyering  <jim@meyering.net>
84715         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
84717 2007-01-29  Bruno Haible  <bruno@clisp.org>
84719         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
84720         * lib/execute.c: Likewise.
84721         * lib/pipe.c: Likewise.
84722         * lib/printf-args.h: Likewise.
84723         * lib/printf-args.c: Likewise.
84724         * lib/printf-parse.c: Likewise.
84725         * lib/vasnprintf.c: Likewise.
84727 2007-01-29  Eric Blake  <ebb9@byu.net>
84729         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
84730         declaration.
84732 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
84734         * lib/strptime.h (strptime): Use 'restrict' for args where
84735         POSIX requires this.
84736         * lib/strptime.c (strptime): Likewise.
84737         Change license notice from LGPL to GPL, since gnulib-tool will
84738         change this as needed.
84739         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
84740         defined.
84741         Include "strptime.h" first, to check interface.
84742         Do not #undef _LIBC and _NL_CURRENT.
84743         Do not include <stdlib.h>; no longer needed.
84744         Include "time_r.h" and declare ptime_locale_status
84745         only if _LIBC is not defined.
84746         (__P): Remove unused macro.
84747         (match_string): Bring back glibc version, but use it only if _LIBC
84748         is defined.
84749         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
84750         Remove unnecessary assertion and abort() call.
84751         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
84752         * m4/strptime.m4: Fix serial number comment.
84753         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
84754         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
84755         (Depends-on): Add time_r.
84757 2007-01-29  Bruno Haible  <bruno@clisp.org>
84759         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84760         strptime.
84761         * modules/strptime (Depends-on): Add stdbool.
84762         * lib/strptime.h: Include <time.h> always. Add comments.
84764 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84766         * modules/strptime: New file.
84767         * lib/strptime.h: New file.
84768         * lib/strptime.c: New file.
84769         * m4/strptime.m4: New file.
84771 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84773         * MODULES.html.sh: New module mpsort.
84774         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
84776         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
84777         a circularity problem with HP-UX ia64 reported by Bob Proulx in
84778         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
84779         All uses changed.
84780         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
84781         All uses changed.
84782         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
84783         to _Restrict_.
84784         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
84785         the parameter matches the prototype.
84787 2007-01-28  Jim Meyering  <jim@meyering.net>
84789         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
84790         sys/time.h here, reverting that part of the previous patch:
84791         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
84793 2007-01-28  Bruno Haible  <bruno@clisp.org>
84795         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
84796         value of $(SYS_TIME_H).
84797         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
84798         remove it conditionally, too. [added by Jim Meyering]
84799         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
84800         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
84801         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
84802         GETTIMEOFDAY_REPLACEMENT to 1.
84804 2007-01-28  Bruno Haible  <bruno@clisp.org>
84806         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
84807         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
84808         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
84809         Set UNISTD_H instead of UNISTD_H2.
84810         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
84812 2007-01-28  Bruno Haible  <bruno@clisp.org>
84814         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
84815         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
84817 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84819         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
84820         (func_create_testdir): Ensure C locale for `grep' and `tr'
84821         character ranges.
84822         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
84823         ACLOCAL_AMFLAGS parsing state machine.
84825 2007-01-27  Bruno Haible  <bruno@clisp.org>
84827         * modules/unistr/base: Update.
84829 2007-01-27  Bruno Haible  <bruno@clisp.org>
84831         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
84832         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
84833         * modules/unistr/u32-mbtouc-unsafe: Renamed from
84834         modules/unistr/u32-mbtouc.
84835         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
84836         * lib/unistr.h: Update.
84837         * lib/linebreak.c: Update.
84838         * modules/unistr/u32-mbtouc: Renamed from
84839         modules/unistr/u32-mbtouc-safe.
84840         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
84841         * lib/unistr.h: Update.
84842         * lib/unistr/u32-to-u8.c: Update.
84843         * lib/unistr/u32-to-u16.c: Update.
84845 2007-01-27  Bruno Haible  <bruno@clisp.org>
84847         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
84848         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
84849         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
84850         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
84851         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
84852         * modules/unistr/u16-mbtouc-unsafe: Renamed from
84853         modules/unistr/u16-mbtouc.
84854         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
84855         * lib/unistr.h: Update.
84856         * lib/linebreak.c: Update.
84857         * modules/linebreak: Update.
84858         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
84859         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
84860         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
84861         * modules/unistr/u16-mbtouc: Renamed from
84862         modules/unistr/u16-mbtouc-safe.
84863         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
84864         * lib/unistr.h: Update.
84865         * lib/unistr/u16-to-u8.c: Update.
84866         * modules/unistr/u16-to-u8: Update.
84867         * lib/unistr/u16-to-u32.c: Update.
84868         * modules/unistr/u16-to-u32: Update.
84870 2007-01-27  Bruno Haible  <bruno@clisp.org>
84872         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
84873         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
84874         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
84875         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
84876         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
84877         * modules/unistr/u8-mbtouc-unsafe: Renamed from
84878         modules/unistr/u8-mbtouc.
84879         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
84880         * lib/unistr.h: Update.
84881         * lib/striconveh.c: Update.
84882         * modules/striconveh: Update.
84883         * lib/linebreak.c: Update.
84884         * modules/linebreak: Update.
84885         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
84886         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
84887         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
84888         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
84889         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
84890         * lib/unistr.h: Update.
84891         * lib/striconveh.c: Update.
84892         * modules/striconveh: Update.
84893         * lib/unistr/u8-to-u16.c: Update.
84894         * modules/unistr/u8-to-u16: Update.
84895         * lib/unistr/u8-to-u32.c: Update.
84896         * modules/unistr/u8-to-u32: Update.
84898 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84900         Sync from Libtool.
84901         * lib/argz.c: Do not include strings.h nor memory.h, include
84902         string.h unconditionally.  Patch by Simon Josefsson.
84904 2007-01-27  Bruno Haible  <bruno@clisp.org>
84906         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
84907         from gl_HEADER_STRING_H_BODY.
84908         (gl_HEADER_STRING_H_BODY): Require it.
84909         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
84910         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
84911         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
84912         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
84913         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
84914         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
84915         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
84916         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
84917         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
84918         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
84919         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
84920         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
84921         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
84922         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
84923         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
84925 2007-01-27  Bruno Haible  <bruno@clisp.org>
84927         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
84928         check_PROGRAMS into noinst_PROGRAMS.
84929         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
84930         check_PROGRAMS in this case.
84931         (func_import): Set for_test to false.
84932         (func_create_testdir): Set for_test to true.
84934 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
84935             Bruno Haible  <bruno@clisp.org>
84937         * modules/strcasestr (Files): Remove lib/strcasestr.h.
84938         (Depends-on): Add string.
84939         (Includes): Use <string.h> instead of strcasestr.h.
84940         * modules/string (Makefile.am): Also substitute the value of
84941         REPLACE_STRCASESTR.
84942         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
84943         assume strcasestr is declared in <string.h> not <strings.h>. Also
84944         set REPLACE_STRCASESTR.
84945         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
84946         REPLACE_STRCASESTR.
84947         * lib/strcasestr.h: Remove file.
84948         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
84949         * lib/string_.h (strcasestr): New declaration.
84951 2007-01-27  Bruno Haible  <bruno@clisp.org>
84953         * lib/string_.h: Use 'extern'.
84955 2007-01-27  Jim Meyering  <jim@meyering.net>
84957         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
84958         of set-but-not-used local, "q".
84960         * lib/mempcpy.c: Include <config.h> before <string.h>.
84961         This fixes a compilation error on HP-UX, due to the system's
84962         "restrict"-using mempcpy prototype.
84964 2007-01-26  Bruno Haible  <bruno@clisp.org>
84966         Small optimization.
84967         * lib/javacomp.c: Include c-strstr.h.
84968          (is_envjavac_gcj): Use c_strstr instead of strstr.
84969         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
84971 2007-01-26  Bruno Haible  <bruno@clisp.org>
84973         * MODULES.html.sh (Unicode string functions): Add the new modules.
84975         * modules/uniconv/u32-strconv-to-locale: New file.
84976         * lib/uniconv/u32-strconv-to-locale.c: New file.
84978         * modules/uniconv/u16-strconv-to-locale: New file.
84979         * lib/uniconv/u16-strconv-to-locale.c: New file.
84981         * modules/uniconv/u8-strconv-to-locale: New file.
84982         * lib/uniconv/u8-strconv-to-locale.c: New file.
84984         * modules/uniconv/u32-strconv-from-locale: New file.
84985         * lib/uniconv/u32-strconv-from-locale.c: New file.
84987         * modules/uniconv/u16-strconv-from-locale: New file.
84988         * lib/uniconv/u16-strconv-from-locale.c: New file.
84990         * modules/uniconv/u8-strconv-from-locale: New file.
84991         * lib/uniconv/u8-strconv-from-locale.c: New file.
84993         * modules/uniconv/u32-strconv-to-enc: New file.
84994         * lib/uniconv/u32-strconv-to-enc.c: New file.
84995         * modules/uniconv/u32-strconv-to-enc-tests: New file.
84996         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
84998         * modules/uniconv/u16-strconv-to-enc: New file.
84999         * lib/uniconv/u16-strconv-to-enc.c: New file.
85000         * lib/uniconv/u-strconv-to-enc.h: New file.
85001         * modules/uniconv/u16-strconv-to-enc-tests: New file.
85002         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
85004         * modules/uniconv/u8-strconv-to-enc: New file.
85005         * lib/uniconv/u8-strconv-to-enc.c: New file.
85006         * modules/uniconv/u8-strconv-to-enc-tests: New file.
85007         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
85009         * modules/uniconv/u32-strconv-from-enc: New file.
85010         * lib/uniconv/u32-strconv-from-enc.c: New file.
85011         * modules/uniconv/u32-strconv-from-enc-tests: New file.
85012         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
85014         * modules/uniconv/u16-strconv-from-enc: New file.
85015         * lib/uniconv/u16-strconv-from-enc.c: New file.
85016         * modules/uniconv/u16-strconv-from-enc-tests: New file.
85017         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
85019         * modules/uniconv/u8-strconv-from-enc: New file.
85020         * lib/uniconv/u8-strconv-from-enc.c: New file.
85021         * lib/uniconv/u-strconv-from-enc.h: New file.
85022         * modules/uniconv/u8-strconv-from-enc-tests: New file.
85023         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
85025         * modules/uniconv/u32-conv-from-enc: New file.
85026         * lib/uniconv/u32-conv-from-enc.c: New file.
85027         * modules/uniconv/u32-conv-from-enc-tests: New file.
85028         * tests/uniconv/test-u32-conv-from-enc.c: New file.
85030         * modules/uniconv/u16-conv-from-enc: New file.
85031         * lib/uniconv/u16-conv-from-enc.c: New file.
85032         * lib/uniconv/u-conv-from-enc.h: New file.
85033         * modules/uniconv/u16-conv-from-enc-tests: New file.
85034         * tests/uniconv/test-u16-conv-from-enc.c: New file.
85036         * modules/uniconv/u8-conv-from-enc: New file.
85037         * lib/uniconv/u8-conv-from-enc.c: New file.
85038         * modules/uniconv/u8-conv-from-enc-tests: New file.
85039         * tests/uniconv/test-u8-conv-from-enc.c: New file.
85041         * modules/uniconv/base: New file.
85042         * lib/uniconv.h: New file.
85044 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
85046         * doc/gnulib-tool.texi (Initial import): Update to match current
85047         behavior with strdup module.
85048         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
85049         * lib/memmem.h: Remove; all uses removed.  This is now done
85050         by <string.h>.
85051         * lib/mempcpy.h: Likewise.
85052         * lib/memrchr.h: Likewise.
85053         * lib/stpcpy.h: Likewise.
85054         * lib/stpncpy.h: Likewise.
85055         * lib/strcase.h: Likewise.
85056         * lib/strchrnul.h: Likewise.
85057         * lib/strdup.h: Likewise.
85058         * lib/strndup.h: Likewise.
85059         * lib/strnlen.h: Likewise.
85060         * lib/strpbrk.h: Likewise.
85061         * lib/strsep.h: Likewise.
85062         * lib/strstr.h: Likewise.
85063         * lib/strtok_r.h: Likewise.
85064         * lib/string_.h: New file.
85065         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
85066         Rely on <string.h> instead.
85067         * lib/canon-host.c: Likewise.
85068         * lib/chdir-long.c: Likewise.
85069         * lib/concatpath.c: Likewise.
85070         * lib/exclude.c: Likewise.
85071         * lib/fchdir.c: Likewise.
85072         * lib/getaddrinfo.c: Likewise.
85073         * lib/getcwd.c: Likewise.
85074         * lib/getsubopt.c: Likewise.
85075         * lib/glob.c: Likewise.
85076         * lib/hard-locale.c: Likewise.
85077         * lib/iconvme.c: Likewise.
85078         * lib/javacomp.c: Likewise.
85079         * lib/mempcpy.c: Likewise.
85080         * lib/memrchr.c: Likewise.
85081         * lib/regex_internal.h: Likewise.
85082         * lib/stpncpy.c: Likewise.
85083         * lib/strcasecmp.c: Likewise.
85084         * lib/strchrnul.c: Likewise.
85085         * lib/strdup.c: Likewise.
85086         * lib/striconv.c: Likewise.
85087         * lib/striconveh.c: Likewise.
85088         * lib/striconveha.c: Likewise.
85089         * lib/strncasecmp.c: Likewise.
85090         * lib/strndup.c: Likewise.
85091         * lib/strnlen.c: Likewise.
85092         * lib/strsep.c: Likewise.
85093         * lib/strstr.c: Likewise.
85094         * lib/strtok_r.c: Likewise.
85095         * lib/userspec.c: Likewise.
85096         * lib/w32spawn.h: Likewise.
85097         * lib/xstrndup.c: Likewise.
85098         * lib/mountlist.c (strstr): Remove decl.
85099         * m4/string_h.m4: New file.
85100         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
85101         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
85102         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
85103         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
85104         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
85105         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
85106         Set REPLACE_STRCASECMP if necessary.
85107         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
85108         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
85109         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
85110         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
85111         HAVE_DECL_STRDUP if necessary.
85112         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
85113         since gl_FUNC_STRNDUP does that now.
85114         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
85115         Check for decl here...
85116         (gl_PREREQ_STRNLEN): ... not here.
85117         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
85118         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
85119         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
85120         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
85121         necessary.
85122         * modules/string: New file.
85123         * modules/memmem (Files): Remove special-purpose include file.
85124         (Depends-on): Add string.
85125         (Include): Include <string.h>, not the removed file.
85126         * modules/mempcpy: Likewise.
85127         * modules/memrchr: Likewise.
85128         * modules/stpcpy: Likewise.
85129         * modules/stpncpy: Likewise.
85130         * modules/strcase: Likewise.
85131         * modules/strchrnul: Likewise.
85132         * modules/strdup: Likewise.
85133         * modules/strndup: Likewise.
85134         * modules/strnlen: Likewise.
85135         * modules/strpbrk: Likewise.
85136         * modules/strsep: Likewise.
85137         * modules/strstr: Likewise.
85138         * modules/strtok_r: Likewise.
85139         * tests/test-dirname.c: Don't include "strdup.h", since
85140         <string.h> now suffices.
85141         * tests/test-memmem.c: Don't include "memmem.h", since
85142         <string.h> now suffices.
85144 2007-01-25  Bruno Haible  <bruno@clisp.org>
85146         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
85147         *resultp is 0.
85149         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
85150         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
85151         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
85152         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
85154         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
85155         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
85156         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
85157         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
85158         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
85159         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
85161 2007-01-24  Bruno Haible  <bruno@clisp.org>
85163         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
85164         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
85165         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
85166         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
85167         gl_FUNC_FTS_CORE.
85168         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
85169         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
85170         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85171         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
85172         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
85173         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
85174         gl_FUNC_FCHOWNAT.
85175         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
85176         gl_FUNC_STRFTIME.
85177         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
85178         Reported by Ralf Wildenhues.
85180 2007-01-24  Bruno Haible  <bruno@clisp.org>
85182         Drop AC_REQUIRE calls that are redundant with the module dependencies.
85183         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
85184         gl_GETADDRINFO.
85185         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
85186         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
85187         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
85189 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
85191         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
85192         Don't use 'exit'; just return from 'main'.
85193         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
85195         * lib/fnmatch_.h: Readjust white space and comments to match
85196         glibc, to avoid spurious diffs.
85198 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85200         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
85201         2004-12-01 change by Jakub Jelinek, since this code won't compile
85202         if !LIBC.  Problem reported by Bob Proulx.
85204 2007-01-23  Bruno Haible  <bruno@clisp.org>
85206         * lib/striconveh.c: Include c-strcaseeq.h.
85207         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
85208         * modules/striconveh (Depends-on): Add c-strcaseeq.
85210 2007-01-23  Bruno Haible  <bruno@clisp.org>
85212         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
85214         * modules/c-strcaseeq: New file.
85215         * lib/c-strcaseeq.h: New file.
85217         * modules/streq: New file.
85218         * lib/streq.h: New file.
85220 2007-01-23  Bruno Haible  <bruno@clisp.org>
85222         * modules/striconveha-tests: New file.
85223         * tests/test-striconveha.c: New file.
85225         * lib/striconveha.h: Include <stdbool.h>.
85226         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
85227         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
85228         (mem_iconveha_notranslit): Renamed from mem_iconveha.
85229         (mem_iconveha): New function.
85230         (str_iconveha_notranslit): Renamed from str_iconveha.
85231         (str_iconveha): New function.
85232         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
85233         c-strcase.
85235 2007-01-23  Bruno Haible  <bruno@clisp.org>
85237         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
85238         encodings without forgiving before trying any encoding with handler.
85239         (str_iconveha): Try all encodings without forgiving before trying any
85240         encoding with handler.
85242 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85244         Import the following changes from libc.
85246         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
85248         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
85250         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85252         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
85253         normal_bracket label.
85255         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
85257         [BZ #361]
85258         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
85259         to normal_bracket after fetching the next character.
85261 2007-01-22  Bruno Haible  <bruno@clisp.org>
85263         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
85264         argument.
85265         * lib/striconveh.c (iconv_carefully_1): New function.
85266         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
85267         argument.
85268         (str_cd_iconveh): Update.
85269         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
85270         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
85271         * tests/test-striconveh.c (MAGIC): New macro.
85272         (new_offsets): New function.
85273         (main): Test call with and without offsets.
85275 2007-01-22  Bruno Haible  <bruno@clisp.org>
85277         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
85278         * modules/sys_select (Makefile.am): Likewise.
85279         * modules/sys_socket (Makefile.am): Likewise.
85280         * modules/sys_time (Makefile.am): Likewise.
85282 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
85284         * modules/gettimeofday (License): Change from GPL to LGPL, since
85285         gettimeofday is a library function.
85287 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85289         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
85291 2007-01-21  Bruno Haible  <bruno@clisp.org>
85293         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
85295 2007-01-21  Bruno Haible  <bruno@clisp.org>
85297         * modules/striconveha: New file.
85298         * lib/striconveha.h: New file.
85299         * lib/striconveha.c: New file.
85300         * MODULES.html.sh (Internationalization functions): Add striconveha.
85301         * lib/striconv.c (str_iconv): Optimize the case of an empty input
85302         string.
85303         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
85305 2007-01-21  Bruno Haible  <bruno@clisp.org>
85307         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
85308         * lib/striconveh.c (str_iconveh): Likewise.
85310 2007-01-21  Bruno Haible  <bruno@clisp.org>
85312         * lib/striconveh.h (mem_iconveh): New declaration.
85313         * lib/striconveh.c (mem_iconveh): New function.
85314         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
85316 2007-01-21  Bruno Haible  <bruno@clisp.org>
85318         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
85320         * lib/striconveh.h (mem_cd_iconveh): Change specification.
85321         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
85322         original result buffer.
85323         (str_cd_iconveh): Update.
85324         * tests/test-striconveh.c (main): Update.
85326         * lib/striconv.h (mem_cd_iconv): Change specification.
85327         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
85328         result buffer.
85329         (str_cd_iconv): Update.
85330         * tests/test-striconv.c (main): Update.
85332 2007-01-21  Bruno Haible  <bruno@clisp.org>
85334         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
85336 2007-01-20  Jim Meyering  <jim@meyering.net>
85338         * lib/userspec.c (parse_with_separator): If a user or group string
85339         starts with "+", skip the corresponding name-to-ID look-up, since
85340         such a look-up must fail: user and group names may not include "+".
85342 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
85344         * lib/poll.c: Include sys/time.h and time.h unconditionally,
85345         since we now assume the sys_time module.
85346         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
85347         check for sys/time.h; no longer needed.
85348         * modules/poll (Depends-on): Depend on sys_time.
85350 2007-01-18  Bruno Haible  <bruno@clisp.org>
85352         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
85353         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
85355         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
85356         gettimeofday.
85358         * tests/test-gettimeofday.c: Include <time.h>.
85359         (dummy): Remove variable.
85361         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
85362         gl_HEADER_SYS_TIME_H.
85363         (gl_HEADER_SYS_TIME_H): New macro.
85365         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
85366         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
85367         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
85368         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
85369         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
85370         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
85371         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
85372         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
85373         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
85374         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
85375         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
85377         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
85378         last change; it caused a compilation error when cross-compiling to
85379         Cygwin.
85381 2007-01-18  Jim Meyering  <jim@meyering.net>
85383         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
85384         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
85385         than the race-prone "test -d sys || mkdir sys".
85386         (configure.ac): Use AC_PROG_MKDIR_P.
85387         * modules/sys_select: Likewise.
85388         * modules/sys_socket: Likewise.
85389         * modules/sys_time: Likewise.
85391 2007-01-18  Eric Blake  <ebb9@byu.net>
85393         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
85394         replace gettimeofday.
85395         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
85396         name, to avoid infinite recursion.
85398 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
85400         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
85401         module sys_time.
85402         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
85403         assume timespec.h defines struct timeval.
85404         * lib/settime.c: Likewise.
85405         * lib/utimens.c: Likewise.
85406         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
85407         since we now assume the gettimeofday module.
85408         * lib/tempname.c (__gen_tempname): Likewise.
85409         * lib/gettimeofday.h: Remove.
85410         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
85411         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
85412         Include <time.h>, for 'time()'.
85413         (localtime_buffer_addr): Also use this workaround if
85414         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
85415         to simplify the uses.  All uses changed.
85416         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
85417         that #undef is inside {}, and 'const' follows type name consistently.
85418         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
85419         (gettimeofday): Do not use the maximum possible value for
85420         tv->tv_usec, since that might break usages other than ls.c.
85421         Instead, we'll leave ls.c alone.  This undoes today's patch
85422         by Bruno.  Add a compile-time warning for 1s-clock resolution;
85423         we've never observed the problem but might as well keep the
85424         canary.
85425         * lib/nanosleep.c: Include timespec.h first, for interface check.
85426         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
85427         now assume the sys_time module.
85428         * lib/tempname.c: Likewise.
85429         * lib/timespec.h: Likewise.
85430         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
85431         needed.
85432         * lib/strftime.c: Likewise.
85433         * lib/timespec.h: Likewise.
85434         * lib/posixtm.c: Include posixtm.h first, for interface check.
85435         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
85436         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
85437         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
85438         * lib/sys_time_.h: New file.
85439         * lib/timespec.h (struct timespec): Use long int, not long.
85440         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
85441         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
85442         Remove obsolescent call to AC_HEADER_TIME.
85443         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
85444         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
85445         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
85446         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
85447         Likewise.
85448         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
85449         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
85450         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
85451         into the sys_time module.  Check for gettimeofday just once.
85452         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
85453         for gettimeofday signature to just check the signature.  Merely
85454         compile it, since linking doesn't test signature.  Improve test for
85455         whether gettimeofday.o is actually needed.
85456         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
85457         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
85458         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
85459         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
85460         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
85461         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
85462         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
85463         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
85464         than worrying about sys/time.h.
85465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
85466         Don't bother worrying about TIME_WITH_SYS_TIME.
85467         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
85468         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
85469         * m4/sys_time_h.m4: New file.
85470         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
85471         Don't include sys/time.h.  Return from main rather than exiting.
85472         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
85473         all uses changed.
85474         * modules/gethrxtime (Depends-on): Add sys_time.
85475         * modules/gettime (Depends-on): Likewise.
85476         * modules/gettimeofday (Depends-on): Likewise.
85477         * modules/nanosleep (Depends-on): Likewise.
85478         * modules/settime (Depends-on): Likewise.
85479         * modules/tempname (Depends-on): Likewise.
85480         * modules/utimens (Depends-on): Likewise.
85481         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
85482         (Include): Change back to <sys/time.h>.
85483         (Maintainer): Add self.
85484         * modules/sys_time: New file.
85485         * modules/tempname (Depends-on): Add gettimeofday.
85486         * tests/test-gettimeofday.c: Include <sys/time.h>
85487         rather than gettimeofday.h.
85489 2007-01-17  Bruno Haible  <bruno@clisp.org>
85491         * gnulib-tool (func_get_license): Revert last patch. Instead, let
85492         the license default to GPL.
85493         (func_create_testdir): Don't complain if a module is LGPL and its
85494         tests module depends on GPLed modules.
85496 2007-01-17  Bruno Haible  <bruno@clisp.org>
85498         * lib/gettimeofday.c (gettimeofday): Add code for the case
85499         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
85500         maximum possible value for tv->tv_usec, rather than the minimum one.
85502 2005-10-08  Martin Lambers  <marlam@marlam.de>
85503 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
85504 2007-01-16  Bruno Haible  <bruno@clisp.org>
85506         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
85507         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
85508         gl_FUNC_GETTIMEOFDAY.
85509         (Include): Add gettimeofday.h.
85510         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
85511         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
85512         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
85513         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
85514         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
85515         * lib/gettimeofday.h: New file.
85516         * lib/gettimeofday.c: Include <sys/timeb.h>.
85517         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
85518         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
85519         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
85520         fall back on time().
85522         * tests/test-gettimeofday.c: New file.
85523         * modules/gettimeofday-tests: New file.
85525 2007-01-16  Eric Blake  <ebb9@byu.net>
85527         * modules/fnmatch (Depends-on): Depend on wchar.
85528         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
85529         * m4/fnmatch.m4: Likewise.
85530         * modules/mbchar (Makefile.am): Assume <wchar.h>.
85531         * m4/mbchar.m4: Likewise.
85532         * modules/mbswidth (Depends-on): Depend on wchar.
85533         * lib/mbswidth.c: Assume <wchar.h>.
85534         * m4/mbswidth.m4: Likewise.
85535         * modules/quotearg (Depends-on): Depend on wchar.
85536         * lib/quotearg.c: Assume <wchar.h>.
85537         * m4/quotearg.m4: Likewise.
85538         * modules/regex (Depends-on): Depend on wchar.
85539         * lib/regex_internal.h: Assume <wchar.h>.
85540         * m4/regex.m4: Likewise.
85541         * modules/stdint (Depends-on): Depend on wchar.
85542         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
85543         * m4/stdint.m4: Likewise.
85544         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
85545         * modules/strftime (Depends-on): Depend on wchar.
85546         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
85547         * modules/strtol (Depends-on): Depend on wchar.
85548         * lib/strtol.c: Assume <wchar.h>.
85549         * modules/wcwidth (Depends-on): Depend on wchar.
85550         * lib/wcwidth.h: Assume <wchar.h>.
85551         * m4/wcwidth.m4: Likewise.
85553 2007-01-16  Bruno Haible  <bruno@clisp.org>
85555         * modules/csharpexec-script: New, created from...
85556         * modules/csharpexec: ... this.
85558 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
85560         * modules/javaexec-script: New, created from...
85561         * modules/javaexec: ... this.
85563 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85565         * modules/poll (Dependencies): Add sys_select.
85567 2007-01-15  Jim Meyering  <jim@meyering.net>
85569         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
85570         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
85571         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
85572         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
85574 2007-01-15  Bruno Haible  <bruno@clisp.org>
85576         * modules/striconveh: New file.
85577         * lib/striconveh.h: New file.
85578         * lib/striconveh.c: New file.
85579         * MODULES.html.sh (Internationalization functions): Add striconveh.
85581         * modules/striconveh-tests: New file.
85582         * tests/test-striconveh.c: New file.
85584 2007-01-15  Bruno Haible  <bruno@clisp.org>
85586         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
85587         not from GNU libiconv or GNU libc.
85589 2007-01-15  Bruno Haible  <bruno@clisp.org>
85591         * doc/gnulib-intro.texi (Copyright): Explain the different license
85592         terms for module descriptions, autoconf macros, tests, documentation.
85594 2007-01-14  Bruno Haible  <bruno@clisp.org>
85596         * modules/striconv-tests: New file.
85597         * tests/test-striconv.c: New file.
85599 2007-01-14  Bruno Haible  <bruno@clisp.org>
85601         * modules/iconv-tests: New file.
85602         * tests/test-iconv.c: New file.
85604 2007-01-14  Bruno Haible  <bruno@clisp.org>
85606         * gnulib-tool (func_get_license): For test modules, use the license of
85607         the main module.
85609 2007-01-14  Bruno Haible  <bruno@clisp.org>
85611         * modules/iconv (Include): Clarify that <iconv.h> can only be included
85612         if iconv is found to exist.
85614 2007-01-14  Bruno Haible  <bruno@clisp.org>
85616         * modules/c-ctype-tests: New file.
85617         * tests/test-c-ctype.c: New file.
85619 2007-01-14  Bruno Haible  <bruno@clisp.org>
85621         * modules/binary-io-tests: New file.
85622         * tests/test-binary-io.sh: New file.
85623         * tests/test-binary-io.c: New file.
85625 2007-01-14  Bruno Haible  <bruno@clisp.org>
85627         * modules/array-oset-tests: New file.
85628         * tests/test-array_oset.c: New file.
85630 2007-01-14  Bruno Haible  <bruno@clisp.org>
85632         * modules/array-list-tests: New file.
85633         * tests/test-array_list.c: New file.
85635 2007-01-14  Bruno Haible  <bruno@clisp.org>
85637         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
85638         and make.
85639         Reported by Simon Josefsson in
85640         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
85642 2007-01-14  Bruno Haible  <bruno@clisp.org>
85644         * modules/allocsa-tests: New file.
85645         * tests/test-allocsa.c: New file.
85647 2007-01-14  Bruno Haible  <bruno@clisp.org>
85649         * modules/fchdir (Depends-on): Add absolute-header.
85650         * modules/unistd (Depends-on): Likewise.
85652 2006-12-30  Bruno Haible  <bruno@clisp.org>
85654         * modules/fchdir: New file.
85655         * modules/unistd (Files): Add lib/unistd_.h.
85656         (Makefile.am): Generate unistd.h from unistd_.h.
85657         * lib/fchdir.c: New file.
85658         * lib/dirent_.h: New file.
85659         * lib/unistd_.h: New file.
85660         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
85661         * m4/fchdir.m4: New file.
85662         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
85663         (gl_HEADER_UNISTD): Invoke it.
85664         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
85665         function.
85666         * lib/backupfile.c (opendir, closedir): Undefine.
85667         * lib/chown.c (open, close): Undefine.
85668         * lib/clean-temp.c (open, close): Undefine.
85669         * lib/copy-file.c (open, close): Undefine.
85670         * lib/execute.c (open, close): Undefine.
85671         * lib/fsusage.c (open, close): Undefine.
85672         * lib/gc-gnulib.c (open, close): Undefine.
85673         * lib/getcwd.c (opendir, closedir): Undefine.
85674         * lib/glob.c (opendir, closedir): Undefine.
85675         * lib/javacomp.c (open, close): Undefine.
85676         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
85677         * lib/openat-proc.c (open, close): Undefine.
85678         * lib/pagealign_alloc.c (open, close): Undefine.
85679         * lib/pipe.c (open, close): Undefine.
85680         * lib/progreloc.c (open, close): Undefine.
85681         * lib/savedir.c (opendir, closedir): Undefine.
85682         * lib/utime.c (open, close): Undefine.
85683         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
85685 2007-01-10  Bruno Haible  <bruno@clisp.org>
85687         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
85689 2007-01-12  Eric Blake  <ebb9@byu.net>
85691         Provide a robust <wchar.h>.  Further simplifications are now
85692         possible in other modules, but not included here.
85693         * modules/wchar: New module.
85694         * m4/wchar.m4: New file.
85695         * lib/wchar_.h: Likewise.
85696         * modules/mbchar (Depends-on): Depend on wchar, as the first use
85697         of the new module.
85698         * MODULES.html.sh (Extended multibyte and wide character utilities):
85699         New section.
85701 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
85703         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
85704         to a reasonable default for memory allocation.
85705         (xreadlink): Don't allocate a huge buffer, to work around a buggy
85706         file system that reports garbage st_size values for symlinks.
85707         Problem reported by Liyang Hu.
85709 2007-01-11  Simon Josefsson  <simon@josefsson.org>
85711         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
85712         Emacs .#* auto-save files).
85714 2007-01-11  Bruno Haible  <bruno@clisp.org>
85716         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
85717         directory.
85719 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
85721         Use @...@ consistently in lib/wctype_.h.
85722         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
85723         on it being set to 1 or 0.
85724         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
85725         go back to AC_SUBSTing it.
85726         * modules/wctype (Makefile.am): Undo previous change.
85728 2007-01-10  Eric Blake  <ebb9@byu.net>
85730         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
85731         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
85732         * modules/wctype (Makefile.am): Likewise.
85733         Reported by Chris McGuire.
85735 2007-01-10  Jim Meyering  <jim@meyering.net>
85737         fts.c: a small readability/maintainability improvement
85738         * lib/fts.c (fts_read): Make this code slightly more readable and
85739         maintainable by hoisting the "sp->fts_cur = p" assignments to
85740         immediately follow the statements that set P.  Derived from
85741         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
85743 2007-01-10  Eric Blake  <ebb9@byu.net>
85745         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
85746         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
85747         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
85748         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
85749         Reported by Chris McGuire.
85751 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85753         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
85754         in sed script.
85756 2007-01-09  Bruno Haible  <bruno@clisp.org>
85758         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
85759         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
85760         variables.
85761         (func_module): Use them.
85763 2007-01-09  Bruno Haible  <bruno@clisp.org>
85765         * modules/unistr/base: New file.
85766         * lib/unistr.h: New file.
85768         * modules/unistr/u8-to-u16: New file.
85769         * lib/unistr/u8-to-u16.c: New file.
85771         * modules/unistr/u8-to-u32: New file.
85772         * lib/unistr/u8-to-u32.c: New file.
85774         * modules/unistr/u16-to-u8: New file.
85775         * lib/unistr/u16-to-u8.c: New file.
85777         * modules/unistr/u16-to-u32: New file.
85778         * lib/unistr/u16-to-u32.c: New file.
85780         * modules/unistr/u32-to-u8: New file.
85781         * lib/unistr/u32-to-u8.c: New file.
85783         * modules/unistr/u32-to-u16: New file.
85784         * lib/unistr/u32-to-u16.c: New file.
85786         * modules/unistr/u8-check: New file.
85787         * modules/unistr/u16-check: New file.
85788         * modules/unistr/u32-check: New file.
85789         * lib/unistr/u8-check.c: New file.
85790         * lib/unistr/u16-check.c: New file.
85791         * lib/unistr/u32-check.c: New file.
85793         * modules/unistr/u8-chr: New file.
85794         * modules/unistr/u16-chr: New file.
85795         * modules/unistr/u32-chr: New file.
85796         * lib/unistr/u8-chr.c: New file.
85797         * lib/unistr/u16-chr.c: New file.
85798         * lib/unistr/u32-chr.c: New file.
85800         * modules/unistr/u8-cmp: New file.
85801         * modules/unistr/u16-cmp: New file.
85802         * modules/unistr/u32-cmp: New file.
85803         * lib/unistr/u8-cmp.c: New file.
85804         * lib/unistr/u16-cmp.c: New file.
85805         * lib/unistr/u32-cmp.c: New file.
85807         * modules/unistr/u8-cpy: New file.
85808         * modules/unistr/u16-cpy: New file.
85809         * modules/unistr/u32-cpy: New file.
85810         * lib/unistr/u8-cpy.c: New file.
85811         * lib/unistr/u16-cpy.c: New file.
85812         * lib/unistr/u32-cpy.c: New file.
85813         * lib/unistr/u-cpy.h: New file.
85815         * modules/unistr/u8-cpy-alloc: New file.
85816         * modules/unistr/u16-cpy-alloc: New file.
85817         * modules/unistr/u32-cpy-alloc: New file.
85818         * lib/unistr/u8-cpy-alloc.c: New file.
85819         * lib/unistr/u16-cpy-alloc.c: New file.
85820         * lib/unistr/u32-cpy-alloc.c: New file.
85821         * lib/unistr/u-cpy-alloc.h: New file.
85823         * modules/unistr/u8-endswith: New file.
85824         * modules/unistr/u16-endswith: New file.
85825         * modules/unistr/u32-endswith: New file.
85826         * lib/unistr/u8-endswith.c: New file.
85827         * lib/unistr/u16-endswith.c: New file.
85828         * lib/unistr/u32-endswith.c: New file.
85829         * lib/unistr/u-endswith.h: New file.
85831         * modules/unistr/u8-mblen: New file.
85832         * modules/unistr/u16-mblen: New file.
85833         * modules/unistr/u32-mblen: New file.
85834         * lib/unistr/u8-mblen.c: New file.
85835         * lib/unistr/u16-mblen.c: New file.
85836         * lib/unistr/u32-mblen.c: New file.
85838         * modules/unistr/u8-mbtouc: New file.
85839         * modules/unistr/u16-mbtouc: New file.
85840         * modules/unistr/u32-mbtouc: New file.
85841         * lib/unistr/u8-mbtouc.c: New file.
85842         * lib/unistr/u16-mbtouc.c: New file.
85843         * lib/unistr/u32-mbtouc.c: New file.
85845         * modules/unistr/u8-mbtouc-safe: New file.
85846         * modules/unistr/u16-mbtouc-safe: New file.
85847         * modules/unistr/u32-mbtouc-safe: New file.
85848         * lib/unistr/u8-mbtouc-safe.c: New file.
85849         * lib/unistr/u16-mbtouc-safe.c: New file.
85850         * lib/unistr/u32-mbtouc-safe.c: New file.
85852         * modules/unistr/u8-move: New file.
85853         * modules/unistr/u16-move: New file.
85854         * modules/unistr/u32-move: New file.
85855         * lib/unistr/u8-move.c: New file.
85856         * lib/unistr/u16-move.c: New file.
85857         * lib/unistr/u32-move.c: New file.
85858         * lib/unistr/u-move.h: New file.
85860         * modules/unistr/u8-next: New file.
85861         * modules/unistr/u16-next: New file.
85862         * modules/unistr/u32-next: New file.
85863         * lib/unistr/u8-next.c: New file.
85864         * lib/unistr/u16-next.c: New file.
85865         * lib/unistr/u32-next.c: New file.
85867         * modules/unistr/u8-prev: New file.
85868         * modules/unistr/u16-prev: New file.
85869         * modules/unistr/u32-prev: New file.
85870         * lib/unistr/u8-prev.c: New file.
85871         * lib/unistr/u16-prev.c: New file.
85872         * lib/unistr/u32-prev.c: New file.
85874         * modules/unistr/u8-set: New file.
85875         * modules/unistr/u16-set: New file.
85876         * modules/unistr/u32-set: New file.
85877         * lib/unistr/u8-set.c: New file.
85878         * lib/unistr/u16-set.c: New file.
85879         * lib/unistr/u32-set.c: New file.
85880         * lib/unistr/u-set.h: New file.
85882         * modules/unistr/u8-startswith: New file.
85883         * modules/unistr/u16-startswith: New file.
85884         * modules/unistr/u32-startswith: New file.
85885         * lib/unistr/u8-startswith.c: New file.
85886         * lib/unistr/u16-startswith.c: New file.
85887         * lib/unistr/u32-startswith.c: New file.
85888         * lib/unistr/u-startswith.h: New file.
85890         * modules/unistr/u8-stpcpy: New file.
85891         * modules/unistr/u16-stpcpy: New file.
85892         * modules/unistr/u32-stpcpy: New file.
85893         * lib/unistr/u8-stpcpy.c: New file.
85894         * lib/unistr/u16-stpcpy.c: New file.
85895         * lib/unistr/u32-stpcpy.c: New file.
85896         * lib/unistr/u-stpcpy.h: New file.
85898         * modules/unistr/u8-stpncpy: New file.
85899         * modules/unistr/u16-stpncpy: New file.
85900         * modules/unistr/u32-stpncpy: New file.
85901         * lib/unistr/u8-stpncpy.c: New file.
85902         * lib/unistr/u16-stpncpy.c: New file.
85903         * lib/unistr/u32-stpncpy.c: New file.
85904         * lib/unistr/u-stpncpy.h: New file.
85906         * modules/unistr/u8-strcat: New file.
85907         * modules/unistr/u16-strcat: New file.
85908         * modules/unistr/u32-strcat: New file.
85909         * lib/unistr/u8-strcat.c: New file.
85910         * lib/unistr/u16-strcat.c: New file.
85911         * lib/unistr/u32-strcat.c: New file.
85912         * lib/unistr/u-strcat.h: New file.
85914         * modules/unistr/u8-strchr: New file.
85915         * modules/unistr/u16-strchr: New file.
85916         * modules/unistr/u32-strchr: New file.
85917         * lib/unistr/u8-strchr.c: New file.
85918         * lib/unistr/u16-strchr.c: New file.
85919         * lib/unistr/u32-strchr.c: New file.
85921         * modules/unistr/u8-strcmp: New file.
85922         * modules/unistr/u16-strcmp: New file.
85923         * modules/unistr/u32-strcmp: New file.
85924         * lib/unistr/u8-strcmp.c: New file.
85925         * lib/unistr/u16-strcmp.c: New file.
85926         * lib/unistr/u32-strcmp.c: New file.
85928         * modules/unistr/u8-strcpy: New file.
85929         * modules/unistr/u16-strcpy: New file.
85930         * modules/unistr/u32-strcpy: New file.
85931         * lib/unistr/u8-strcpy.c: New file.
85932         * lib/unistr/u16-strcpy.c: New file.
85933         * lib/unistr/u32-strcpy.c: New file.
85934         * lib/unistr/u-strcpy.h: New file.
85936         * modules/unistr/u8-strcspn: New file.
85937         * modules/unistr/u16-strcspn: New file.
85938         * modules/unistr/u32-strcspn: New file.
85939         * lib/unistr/u8-strcspn.c: New file.
85940         * lib/unistr/u16-strcspn.c: New file.
85941         * lib/unistr/u32-strcspn.c: New file.
85942         * lib/unistr/u-strcspn.h: New file.
85944         * modules/unistr/u8-strdup: New file.
85945         * modules/unistr/u16-strdup: New file.
85946         * modules/unistr/u32-strdup: New file.
85947         * lib/unistr/u8-strdup.c: New file.
85948         * lib/unistr/u16-strdup.c: New file.
85949         * lib/unistr/u32-strdup.c: New file.
85950         * lib/unistr/u-strdup.h: New file.
85952         * modules/unistr/u8-strlen: New file.
85953         * modules/unistr/u16-strlen: New file.
85954         * modules/unistr/u32-strlen: New file.
85955         * lib/unistr/u8-strlen.c: New file.
85956         * lib/unistr/u16-strlen.c: New file.
85957         * lib/unistr/u32-strlen.c: New file.
85958         * lib/unistr/u-strlen.h: New file.
85960         * modules/unistr/u8-strmblen: New file.
85961         * modules/unistr/u16-strmblen: New file.
85962         * modules/unistr/u32-strmblen: New file.
85963         * lib/unistr/u8-strmblen.c: New file.
85964         * lib/unistr/u16-strmblen.c: New file.
85965         * lib/unistr/u32-strmblen.c: New file.
85967         * modules/unistr/u8-strmbtouc: New file.
85968         * modules/unistr/u16-strmbtouc: New file.
85969         * modules/unistr/u32-strmbtouc: New file.
85970         * lib/unistr/u8-strmbtouc.c: New file.
85971         * lib/unistr/u16-strmbtouc.c: New file.
85972         * lib/unistr/u32-strmbtouc.c: New file.
85974         * modules/unistr/u8-strncat: New file.
85975         * modules/unistr/u16-strncat: New file.
85976         * modules/unistr/u32-strncat: New file.
85977         * lib/unistr/u8-strncat.c: New file.
85978         * lib/unistr/u16-strncat.c: New file.
85979         * lib/unistr/u32-strncat.c: New file.
85980         * lib/unistr/u-strncat.h: New file.
85982         * modules/unistr/u8-strncmp: New file.
85983         * modules/unistr/u16-strncmp: New file.
85984         * modules/unistr/u32-strncmp: New file.
85985         * lib/unistr/u8-strncmp.c: New file.
85986         * lib/unistr/u16-strncmp.c: New file.
85987         * lib/unistr/u32-strncmp.c: New file.
85989         * modules/unistr/u8-strncpy: New file.
85990         * modules/unistr/u16-strncpy: New file.
85991         * modules/unistr/u32-strncpy: New file.
85992         * lib/unistr/u8-strncpy.c: New file.
85993         * lib/unistr/u16-strncpy.c: New file.
85994         * lib/unistr/u32-strncpy.c: New file.
85995         * lib/unistr/u-strncpy.h: New file.
85997         * modules/unistr/u8-strnlen: New file.
85998         * modules/unistr/u16-strnlen: New file.
85999         * modules/unistr/u32-strnlen: New file.
86000         * lib/unistr/u8-strnlen.c: New file.
86001         * lib/unistr/u16-strnlen.c: New file.
86002         * lib/unistr/u32-strnlen.c: New file.
86003         * lib/unistr/u-strnlen.h: New file.
86005         * modules/unistr/u8-strpbrk: New file.
86006         * modules/unistr/u16-strpbrk: New file.
86007         * modules/unistr/u32-strpbrk: New file.
86008         * lib/unistr/u8-strpbrk.c: New file.
86009         * lib/unistr/u16-strpbrk.c: New file.
86010         * lib/unistr/u32-strpbrk.c: New file.
86011         * lib/unistr/u-strpbrk.h: New file.
86013         * modules/unistr/u8-strrchr: New file.
86014         * modules/unistr/u16-strrchr: New file.
86015         * modules/unistr/u32-strrchr: New file.
86016         * lib/unistr/u8-strrchr.c: New file.
86017         * lib/unistr/u16-strrchr.c: New file.
86018         * lib/unistr/u32-strrchr.c: New file.
86020         * modules/unistr/u8-strspn: New file.
86021         * modules/unistr/u16-strspn: New file.
86022         * modules/unistr/u32-strspn: New file.
86023         * lib/unistr/u8-strspn.c: New file.
86024         * lib/unistr/u16-strspn.c: New file.
86025         * lib/unistr/u32-strspn.c: New file.
86026         * lib/unistr/u-strspn.h: New file.
86028         * modules/unistr/u8-strstr: New file.
86029         * modules/unistr/u16-strstr: New file.
86030         * modules/unistr/u32-strstr: New file.
86031         * lib/unistr/u8-strstr.c: New file.
86032         * lib/unistr/u16-strstr.c: New file.
86033         * lib/unistr/u32-strstr.c: New file.
86034         * lib/unistr/u-strstr.h: New file.
86036         * modules/unistr/u8-strtok: New file.
86037         * modules/unistr/u16-strtok: New file.
86038         * modules/unistr/u32-strtok: New file.
86039         * lib/unistr/u8-strtok.c: New file.
86040         * lib/unistr/u16-strtok.c: New file.
86041         * lib/unistr/u32-strtok.c: New file.
86042         * lib/unistr/u-strtok.h: New file.
86044         * modules/unistr/u8-uctomb: New file.
86045         * modules/unistr/u16-uctomb: New file.
86046         * modules/unistr/u32-uctomb: New file.
86047         * lib/unistr/u8-uctomb.c: New file.
86048         * lib/unistr/u16-uctomb.c: New file.
86049         * lib/unistr/u32-uctomb.c: New file.
86051         * MODULES.html.sh (Unicode string functions): Add the new modules.
86053 2007-01-08  Bruno Haible  <bruno@clisp.org>
86055         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
86056         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
86057         subdirectories.
86059 2007-01-08  Karl Berry  <karl@gnu.org>
86061         * doc/error.texi: mention that main() fns must set program_name
86062         when progname is used.
86064 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
86066         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
86067         WCTYPE_H is empty, for the benefit of builds from non-distclean
86068         directories.  Problem reported by Eric Blake in
86069         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
86071 2007-01-08  Bruno Haible  <bruno@clisp.org>
86073         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
86074         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
86075         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
86076         PROVIDE_CANONICALIZE_FILENAME_MODE.
86077         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
86079 2007-01-08  Bruno Haible  <bruno@clisp.org>
86081         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
86082         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
86083         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
86084         * lib/fts.c: Likewise.
86085         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
86087 2006-12-25  Bruno Haible  <bruno@clisp.org>
86089         * modules/utf8-ucs4-safe: New file.
86090         * lib/utf8-ucs4-safe.h: New file.
86091         * lib/unistr/utf8-ucs4-safe.c: New file.
86093         * modules/utf16-ucs4-safe: New file.
86094         * lib/utf16-ucs4-safe.h: New file.
86095         * lib/unistr/utf16-ucs4-safe.c: New file.
86097         * MODULES.html.sh (Unicode string functions): Add the new modules.
86099 2007-01-08  Bruno Haible  <bruno@clisp.org>
86101         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
86102         (Depends-on): Add unitypes.
86103         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
86104         (u8_mbtouc_aux): Move out to separate file.
86105         (u8_mbtouc): Use ucs4_t, uint8_t types.
86106         * lib/unistr/utf8-ucs4.c: New file.
86108         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
86109         (Depends-on): Add unitypes.
86110         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
86111         (u16_mbtouc_aux): Move out to separate file.
86112         (u16_mbtouc): Use ucs4_t, uint16_t types.
86113         * lib/unistr/utf16-ucs4.c: New file.
86115         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
86116         (Depends-on): Add unitypes.
86117         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
86118         (u8_uctomb_aux): Move out to separate file.
86119         (u8_uctomb): Use ucs4_t, uint8_t types.
86120         * lib/unistr/ucs4-utf8.c: New file.
86122         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
86123         (Depends-on): Add unitypes.
86124         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
86125         (u16_uctomb_aux): Move out to separate file.
86126         (u16_uctomb): Use ucs4_t, uint16_t types.
86127         * lib/unistr/ucs4-utf16.c: New file.
86129 2006-12-25  Bruno Haible  <bruno@clisp.org>
86131         * modules/unitypes: New file.
86132         * lib/unitypes.h: New file.
86133         * MODULES.html.sh (func_all_modules): New section "Unicode string
86134         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
86135         this section. Add unitypes.
86137 2007-01-08  Bruno Haible  <bruno@clisp.org>
86139         Avoid variable names that conflict with those from libtool.
86140         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
86141         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
86142         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
86143         library_names_spec to acl_library_names_spec, hardcode_* to
86144         acl_hardcode_*.
86145         Reported by Ralf Wildenhues.
86147 2007-01-08  Bruno Haible  <bruno@clisp.org>
86149         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
86150         definition.
86151         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
86152         definition.
86153         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
86154         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
86155         definition.
86156         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
86157         definition.
86158         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
86159         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
86160         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
86161         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
86162         definition.
86163         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
86164         definition.
86165         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
86166         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
86167         GC_USE_<algorithm>.
86168         * lib/gc-libgcrypt.c: Likewise.
86169         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
86170         * modules/gc-arctwo (configure.ac): Likewise.
86171         * modules/gc-des (configure.ac): Likewise.
86172         * modules/gc-hmac-md5 (configure.ac): Likewise.
86173         * modules/gc-hmac-sha1 (configure.ac): Likewise.
86174         * modules/gc-md2 (configure.ac): Likewise.
86175         * modules/gc-md4 (configure.ac): Likewise.
86176         * modules/gc-md5 (configure.ac): Likewise.
86177         * modules/gc-random (configure.ac): Likewise.
86178         * modules/gc-rijndael (configure.ac): Likewise.
86179         * modules/gc-sha1 (configure.ac): Likewise.
86181 2007-01-08  Bruno Haible  <bruno@clisp.org>
86183         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
86184         macro definition.
86185         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
86186         definition.
86187         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
86188         definition.
86189         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
86190         * modules/fcntl-safer (configure.ac): Likewise.
86191         * modules/fopen-safer (configure.ac): Likewise.
86192         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
86193         GNULIB_FWRITEERROR macro definition.
86195 2007-01-08  Bruno Haible  <bruno@clisp.org>
86197         * m4/gnulib-common.m4: New file.
86198         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
86199         (func_get_filelist): Add m4/gnulib-common.m4.
86201 2007-01-08  Bruno Haible  <bruno@clisp.org>
86203         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
86204         command.
86206 2007-01-08  Jim Meyering  <jim@meyering.net>
86208         Use a more robust test for a "can't happen" condition.
86209         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
86210         narrowed the st_size value.  Presuming the "can't happen" condition
86211         is true, that narrowing could conceivably convert an invalid st_size
86212         value into a valid one.  Instead, use a change based on Matthew
86213         Woehlke's original patch.
86215         Slight readability improvement: use an assert-like macro
86216         in place of literal "abort ()" uses.
86217         * lib/fts.c (fts_assert): Define.
86218         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
86219         Use this macro instead of a bare 'abort'.
86221 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
86223         Don't worry about using IRIX 5.3's wctype.h broken definitions;
86224         simply work around them.
86225         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
86226         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
86227         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
86228         declaring.
86229         Don't bother to define as macros, since the standard doesn't require it.
86230         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
86231         longer worry about IRIX 5.3.
86232         (HAVE_WCTYPE_CTMP_BUG): Remove.
86234 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
86236         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
86237         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
86238         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
86239         Problems reported by Georg Schwarz for IRIX 5.3.
86241         * gnulib-tool (autoconf_minversion): Take the maximum version number
86242         found, not the minimum.  Problem reported by James Youngman.
86244 2007-01-03  Karl Berry  <karl@gnu.org>
86246         * doc/error.texi: new file, explaining interaction with progname.
86247         * doc/gnulib.texi: include it.  Update copyright.
86249 2007-01-03  Simon Josefsson  <simon@josefsson.org>
86251         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
86252         AC_CANONICAL_HOST, to improve autobuild outputs.
86254 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
86255             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
86257         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
86258         sockets, server sockets, and other file descriptors.  Count errors
86259         to compute the return value.  Reorder the code a bit to be easier
86260         to follow.  Don't set event bits that were not requested (except
86261         POLLERR and POLLHUP).
86263 2007-01-01  Bruno Haible  <bruno@clisp.org>
86265         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
86267 2007-01-03  Jim Meyering  <jim@meyering.net>
86269         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
86271 2007-01-02  Bruno Haible  <bruno@clisp.org>
86273         * modules/settime (Include): Require timespec.h.
86274         * modules/nanosleep (Include): Likewise.
86276 2007-01-01  Bruno Haible  <bruno@clisp.org>
86278         * gnulib-tool (func_emit_copyright_notice): Bump year.
86279         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
86281 2007-01-01  Bruno Haible  <bruno@clisp.org>
86283         Improve support for OpenBSD.
86284         * build-aux/config.rpath (libname_spec): Export.
86285         (library_names_spec): New variable. Export.
86286         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
86287         library_names_spec from the config.rpath output. Locate shared library
86288         through the name pattern in library_names_spec.
86290 2007-01-01  Eric Blake  <ebb9@byu.net>
86292         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
86294 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
86296         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
86297         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
86298         assume the C locale, and avoid an "eval" that could cause trouble.
86299         Problem with SORT reported by Bob Proulx.
86301         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
86302         Define.  Trivial patch from Henning Nielsen Lund, originally
86303         sent to bug-grep@gnu.org today.
86305 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
86307         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
86308         struct stat.  Problem reported by Henning Nielsen Lund.
86309         * lib/acl.c: Include acl.h first, to check interface.  Don't
86310         bother to include sys/types.h and sys/stat.h again.
86312 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86314         Import the following change from libc; problem reported by
86315         Sven Verdoolaege.
86317         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
86319         [BZ #1373]
86320         * lib/argp.h: Remove __NTH for __argp_usage inline function.
86322 2006-12-28  Jim Meyering  <jim@meyering.net>
86324         * build-aux/announce-gen: Do not assume that the package
86325         builds any of tar.gz, tar.bz2, and .xdelta files.
86326         Suggestion from Simon Josefsson.
86328 2006-12-28  Simon Josefsson  <simon@josefsson.org>
86330         * modules/announce-gen: New file.
86332 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
86334         * lib/mbchar.h: Just include <wctype.h>; the wctype module
86335         handles its gotchas now.
86336         * lib/mbswidth.c: Likewise.
86337         * lib/wcwidth.h: Likewise.
86338         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
86339         and iswcntrl; the wctype module does this stuff now.
86340         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
86341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
86342         * modules/mbchar (Depends-on): Add wctype.
86343         * modules/mbswidth (Depends-on): Likewise.
86344         * modules/wcwidth (Depends-on): Likewise.
86346 2006-12-27  Eric Blake  <ebb9@byu.net>
86348         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
86349         module uses more than what <wctype.h> is required to provide.
86351 2006-12-26  Eric Blake  <ebb9@byu.net>
86353         * gnulib-tool (sed_extract_prog): Avoid space-tab.
86355 2006-12-26  Eric Blake  <ebb9@byu.net>
86357         * modules/absolute-header: New module.
86358         * modules/fcntl (Depends-on): Depend on it.
86359         * modules/inttypes (Depends-on): Likewise.
86360         * modules/stdint (Depends-on): Likewise.
86361         * modules/sys_stat (Depends-on): Likewise.
86362         * modules/wctype (Depends-on): Likewise.
86363         * MODULES.html.sh (Support for building libraries and
86364         executables): Document it.
86366 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
86368         * gnulib-tool (SED): Remove, undoing previous change.
86369         The problem was that it broke coreutils on Solaris, because
86370         "sed --posix" leaked into a makefile.
86371         (sed): New alias, if 'alias' and GNU sed.
86373 2006-12-24  Jim Meyering  <jim@meyering.net>
86375         Work around an fchownat bug in glibc-2.4:
86376         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
86377         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
86378         in spite of the -P option.
86379         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
86380         New macros.
86381         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
86382         * modules/openat (Files): Add lib/fchownat.c.
86383         * lib/openat.c (fchownat): Don't define here.  Move to...
86384         * lib/fchownat.c: ...this new file.
86386 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86388         Fix bug reported by Bruno Haible in
86389         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
86390         where quotearg.c didn't compile on Mac OS X 10.2 because it
86391         lacks <wchar.h> and wint_t.
86392         * lib/wctype_.h (__wctype_wint_t): New type.
86393         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
86394         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
86395         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
86396         Arg is now of type __wctype_wint_t, not wint_t.
86397         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
86398         substitute HAVE_WINT_T.
86399         * modules/wctype (Files): Add m4/wint_t.m4.
86400         (wctype.h): Substitute HAVE_WINT_T.
86402 2006-12-23  Bruno Haible  <bruno@clisp.org>
86404         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
86406 2006-12-23  Bruno Haible  <bruno@clisp.org>
86408         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
86409         S_ISLNK.
86410         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
86411         mingw.
86413 2006-12-22  Bruno Haible  <bruno@clisp.org>
86415         * lib/copy-file.c: Include acl.h.
86416         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
86417         Close the file descriptors only after being done with copy_acl.
86418         * modules/copy-file (Depends-on): Add acl.
86420 2006-12-22  Bruno Haible  <bruno@clisp.org>
86422         * gnulib-tool (SED): New variable.
86423         Use $SED instead of sed everywhere.
86425 2006-12-22  Bruno Haible  <bruno@clisp.org>
86427         * modules/no-c++: New file.
86428         * m4/no-c++.m4: New file.
86429         * MODULES.html.sh (Support for building libraries and executables):
86430         Add no-c++.
86432 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
86434         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
86435         Include <limits.h>, and use its INT_MAX to rewrite the
86436         j loop so that it does not overflow 'int'.  Problem reported by
86437         Ralf Wildenhues in
86438         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
86439         Play it safe by shifting left by 1 rather than multiplying by 2,
86440         as GCC is less likely to optimize this away when the value
86441         is signed (when it assumes overflow leads to undefined behavior).
86442         Also, don't assume time_t uses two's complement.
86444 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
86446         * MODULES.html.sh: New module wctype.
86447         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
86448         * lib/fnmatch.c: Don't bother to include <wchar.h> before
86449         <wctype.h>, since the new wctype module should fix this.
86450         * lib/quotearg.c: Include <wctype.h> unconditionally, since
86451         the wctype module should arrange for it.
86452         * lib/regex_internal.h: Likewise.
86453         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
86454         since the wctype module should handle this now.
86455         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
86456         * modules/fnmatch (Depends-on): Add wctype.
86457         * modules/quotearg (Depends-on): Likewise.
86458         * modules/regex (Depends-on): Likewise.
86460 2006-12-19  Bruno Haible  <bruno@clisp.org>
86462         * lib/strdup.h [C++]: Wrap definitions in extern "C".
86463         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
86465 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86467         * modules/savewd (Depends-on): Fix dependency on fcntl.
86469 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
86471         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
86472         conforms to C99, rather than relying on the user's environment
86473         setting of STDINT_H.
86475 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
86476         and Eric Blake  <ebb9@byu.net>
86478         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
86479         This is more consistent with the other defines here.
86480         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
86481         Port to z/OS.  Problem reported by Paul Gilmartin.
86482         Change local vars to use gl_ prefix rather than ac_.
86483         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
86484         with other defines.
86485         * modules/double-slash-root: New module.
86486         * modules/dirname (Files): Remove m4/double-slash-root.m4.
86487         (Depends-on): Add double-slash-root.
86488         * MODULES.html.sh (File system functions): Mention new module.
86490 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
86492         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
86493         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
86494         This is for the benefit of gzip, which doesn't do i18n.
86496 2006-12-12  Jim Meyering  <jim@meyering.net>
86498         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
86499         Reported by Andreas Schwab <schwab@suse.de>.
86501 2006-12-12  Bruno Haible  <bruno@clisp.org>
86503         Merge these changes.
86504         2006-09-05  Bruno Haible  <bruno@clisp.org>
86505         * lib/iconvme.c (iconv_string): No need to save and restore errno when
86506         iconv_alloc succeeded.
86507         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
86508         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
86509         test for " && dest " at the end - dest is always != NULL there. Call
86510         iconv with 4xNULL arguments initially, to reset the state. Call iconv
86511         with 2xNULL arguments, also to flush the state storage. Handle the
86512         IRIX iconv behaviour. Realloc the final result, to throw away unused
86513         memory.
86515 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
86517         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
86518         and fchmodat unconditionally, since glibc 2.4 has them.
86519         Problem reported by Arkadiusz Miskiewicz.
86521 2006-12-10  Bruno Haible  <bruno@clisp.org>
86523         * gnulib-tool (func_import): Show the include files only for those
86524         modules that are copied and specified.
86525         Reported by Karl Berry.
86527 2006-12-08  Jim Meyering  <jim@meyering.net>
86529         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
86530         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
86532         * build-aux/announce-gen: Add two new options, both optional:
86533         --bootstrap-tools=TOOL_LIST
86534               a comma-separated list of tools, e.g.,
86535               autoconf,automake,bison,gnulib
86536         --gnulib-snapshot-date=DATE
86537               if gnulib is in the bootstrap tool list,
86538               then report this as the snapshot date.
86539               If not specified, use the current date/time.
86540               If you specify a date here, be sure it's UTC.
86542 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86544         * tests/test-argp-2.sh: Fix test to match actual output.
86545         (func_compare): Fix sed script to be portable.
86547 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
86549         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
86550         workaround for this case.  It is not autoconfigured now; offhand
86551         it's hard to see how to autoconfigure it.
86553 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
86555         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
86556         a directory that is about to be chowned.  Such a directory's
86557         initial file permissions should permit the owner only and this
86558         should not be changed until after the chown, since the group and
86559         other bits would be incorrect if they granted permission before
86560         the chown.
86562         Fix porting problem for iswctype reported by Georg Schwarz in:
86563         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
86564         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
86565         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
86566         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
86567         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
86569 2006-12-03  Jim Meyering  <jim@meyering.net>
86571         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
86572         p->fts_statp may not yet be defined.
86573         (fts_read): Instead, set it in the caller, once p->fts_statp is
86574         sure to be defined, and corresponds to a top-level directory.
86575         This bug made du -x fail.  Here's the coreutils test case:
86576         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
86577         Reported by Mike Frysinger.
86579 2006-12-01  Jim Meyering  <jim@meyering.net>
86581         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
86582         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
86583         Reported by Simon Josefsson.
86585 2006-11-30  Jim Meyering  <jim@meyering.net>
86587         * m4/warning.m4: Use the all-permissive copyright notice
86588         recommended by RMS (rather than LGPL).
86589         * m4/vararrays.m4: Likewise.
86590         * m4/flexmember.m4: Likewise.
86592 2006-11-29  Bruno Haible  <bruno@clisp.org>
86594         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
86595         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
86596         using +=.
86597         Reported by Simon Josefsson <simon@josefsson.org>.
86599 2006-11-28  James Youngman <jay@gnu.org>
86601         * README: Advise users that they might find the bug-gnulib@gnu.org
86602         and autotools-announce@gnu.org mailing lists useful.
86604 2006-11-28  Bruno Haible  <bruno@clisp.org>
86606         * m4/ptrdiff_max.m4: Remove file.
86608 2006-11-21  Bruno Haible  <bruno@clisp.org>
86610         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
86611         _AC_COMPUTE_INT.
86612         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
86613         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
86614         _AC_COMPUTE_INT.
86615         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
86616         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
86617         _AC_COMPUTE_INT.
86618         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
86620 2006-11-28  Jim Meyering  <jim@meyering.net>
86622         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
86623         warning from "gcc -Wshadow" about shadowing the builtin.
86625 2006-11-27  Bruno Haible  <bruno@clisp.org>
86627         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
86628         _AC_COMPUTE_INT.
86629         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
86631 2006-11-27  Bruno Haible  <bruno@clisp.org>
86632             Paul Eggert  <eggert@cs.ucla.edu>
86634         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
86636 2006-11-26  Bruno Haible  <bruno@clisp.org>
86638         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
86639         noinst_LTLIBRARIES.
86641 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
86642             Bruno Haible  <bruno@clisp.org>
86644         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
86645         if compiling with "gcc -ansi".
86647 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
86649         Fix some incompatibilities with gcc -ansi -pedantic.
86650         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
86651         if compiling pedantically with GCC, unless it's C99 or later.
86652         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
86653         it mishandles gcc -ansi -pedantic as well.
86654         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
86655         if gcc -pedantic.
86656         * lib/regexec.c (check_node_accept_bytes): Don't use auto
86657         initializers for struct if -pedantic, unless it's C99 or later.
86659 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
86661         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
86662         Don't close an fd more than once. Identical atimes indicate
86663         success, not failure.
86665 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
86667         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
86669 2006-11-23  Jim Meyering  <jim@meyering.net>
86671         * build-aux/announce-gen: New file.  From coreutils.
86673 2006-11-22  Jim Meyering  <jim@meyering.net>
86675         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
86676         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
86677         (fts_read): Use a temporary to narrow the overused st_size member
86678         before using it in a switch statement.  Reported by Matthew Woehlke.
86680         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
86681         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
86683 2006-11-20  Bruno Haible  <bruno@clisp.org>
86685         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
86686         changequote instead of pairs of brackets.
86687         Reported by Andreas Schwab <schwab@suse.de>.
86689 2006-11-21  Jim Meyering  <jim@meyering.net>
86691         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
86692         so as to remain compatible with older compilers.
86693         Patch from Michael Deutschmann.
86695 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
86697         * MODULES.html.sh (File system functions): Add openat.
86699         * lib/openat.h (rpl_fstatat): New macro, if
86700         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
86701         (fstatat): Define to rpl_fstatat under the same conditions,
86702         unless COMPILING_FSTATAT.
86703         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
86704         seems to have the bug.
86705         * lib/fstatat.c: New file.
86706         * modules/openat (Files): Add it.
86708 2006-11-20  Bruno Haible  <bruno@clisp.org>
86710         * Makefile: New file.
86712 2006-11-20  Jim Meyering  <jim@meyering.net>
86714         The beginnings of syntax-related checks for gnulib.
86715         * lib/Makefile: New file.
86716         * lib/t-idcache: New script.  Ensure that the two halves of
86717         idcache.c stay in sync.
86719         * lib/idcache.c: Adjust comments in user- and group- portions to
86720         be more accurate, and to be consistent with one another.
86722 2006-11-20  Jim Meyering  <jim@meyering.net>
86724         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
86725         continue using the flexible array member (thus, this module performs
86726         half as many malloc calls), with the addition that...
86727         (getgroup, getuser): Consistently record a non-match via an empty
86728         "name" string, and map an empty string match to a NULL return value.
86729         * modules/idcache (Depends-on): Re-add flexmember.
86731         * lib/idcache.c (getuser): Remove all uses of the register keyword.
86732         (getuidbyname, getgroup, getgidbyname): Likewise.
86734         Use cleaner syntax: NULL rather than 0.
86735         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
86737 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
86739         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
86740         It mishandled the case where the group was missing.
86741         Problem reported by Greg Schafer.
86742         * modules/idcache: Likewise.
86744 2006-11-18  Jim Meyering  <jim@meyering.net>
86746         * check-module (%exempt_header): Add exception for some
86747         conditionally-included headers.
86749         * modules/i-ring (Depends-on): Add verify.
86750         (License): Change to LGPL.
86752 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86754         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
86755         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
86756         and inttostr.h.  Use snprintf rather than uinttostr, so that
86757         LGPLed code doesn't depend on GPLed.
86759 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86761         * modules/inline (License): Change from GPL to LGPL.
86763 2006-11-17  Jim Meyering  <jim@meyering.net>
86765         * modules/d-type (License): Switch to LGPL.
86767 2006-11-15  Bruno Haible  <bruno@clisp.org>
86769         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
86771 2006-11-15  Eric Blake  <ebb9@byu.net>
86773         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
86774         the module dependency.
86776 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86777             Bruno Haible  <bruno@clisp.org>
86779         * gnulib-tool (func_create_testdir): Add license consistency check.
86781 2006-11-15  Eric Blake  <ebb9@byu.net>
86783         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
86784         random "(cached)" in configure output.
86786 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86788         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
86789         test for conforming inttypes.h is both announced and cached.
86791         * MODULES.html.sh (seen_modules, seen_files): New variables.
86792         (func_module): Rewrite to use a few less gnulib-tool and sed
86793         invocations.  Avoid a couple of quadratic algorithms for ...
86794         (missed_modules, missed_files): ... these, with ...
86795         (func_append, func_tmpdir): ... these new functions, from
86796         gnulib-tool.  Analogously, install traps for cleanup.
86798         * tests/test-gc.c (main): Remove unused variables.
86799         * tests/test-read-file.c: Include stdlib.h, for 'free'.
86801 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
86803         * modules/inttostr (License): Change to LGPL.
86805 2006-11-14  Eric Blake  <ebb9@byu.net>
86807         * modules/tempname (License): Change to LGPL.
86809 2006-11-14  Eric Blake  <ebb9@byu.net>
86811         * doc/functions.texi (Function Portability): *printf functions on
86812         Cygwin now understand all POSIX size specifiers.
86814 2006-11-14  Bruno Haible  <bruno@clisp.org>
86816         * modules/c-ctype (License): Change to LGPL.
86818 2006-11-12  Bruno Haible  <bruno@clisp.org>
86820         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
86821         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
86822         for GNOME libraries, for which the include files are installed in
86823         subdirectories of $prefix/include.
86825 2006-11-12  Bruno Haible  <bruno@clisp.org>
86827         * m4/lib-link.m4: Require at least autoconf-2.54.
86828         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
86829         name to underscores for the --with option.
86831 2006-11-13  Bruno Haible  <bruno@clisp.org>
86833         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
86834         the tests directory.
86835         Reported by Ralf Wildenhues.
86837 2006-11-13  Bruno Haible  <bruno@clisp.org>
86839         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
86840         (func_emit_initmacro_end): Undo the override here.
86841         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
86842         Works around the famous automake error in coreutils.
86844 2006-11-13  Eric Blake  <ebb9@byu.net>
86846         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
86847         element, not its node.
86849 2006-11-12  Bruno Haible  <bruno@clisp.org>
86851         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
86852         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
86854 2006-11-12  Bruno Haible  <bruno@clisp.org>
86856         * gnulib-tool: New option --local-symlink.
86857         (func_usage): Document it.
86858         (lsymbolic): New variable.
86859         (func_import, func_create_testdir): If --symlink was not specified,
86860         test whether --local-symlink was specified and the file comes from
86861         the local_gnulib_dir.
86863 2006-11-12  Bruno Haible  <bruno@clisp.org>
86865         * gnulib-tool (func_ln): New function.
86866         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
86868 2006-11-12  Bruno Haible  <bruno@clisp.org>
86870         Finish support for source files in subdirectories.
86871         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
86872         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
86873         AUTOMAKE_OPTIONS.
86874         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
86876 2006-11-12  Bruno Haible  <bruno@clisp.org>
86878         * gnulib-tool (func_get_automake_snippet): Synthesize also an
86879         EXTRA_lib_SOURCES augmentation.
86880         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
86882 2006-11-12  Jim Meyering  <jim@meyering.net>
86884         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
86885         file descriptors.  This also averts a failure on systems with
86886         native openat support when a traversed directory lacks "x" access.
86887         * lib/fts_.h: Include "i-ring.h"
86888         (struct FTS) [fts_fd_ring]: New member.
86889         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
86890         (FCHDIR): Add parentheses.
86891         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
86892         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
86893         When descending, rather than simply closing the previous
86894         fts_cwd_fd value, push that file descriptor onto the ring.
86895         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
86896         (fts_open): Initialize the new fd_ring member.
86897         (fts_close): Clear the ring.
86898         (fts_safe_changedir): When possible, use our new fd_ring to skip
86899         the diropen and fstat and dev/ino comparison that would normally
86900         accompany a virtual `chdir ("..")'.
86902         * modules/fts (Depends-on): Add i-ring.
86903         * modules/i-ring: New module.
86904         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
86905         * m4/i-ring.m4: New file.
86907 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86909         * gnulib-tool (func_create_testdir): Fix replacement of
86910         `build-aux' in configure.ac.  Run autotools in gltests
86911         subdirectory.
86912         (func_create_testdir, func_create_megatestdir, test): There is
86913         no need for '--force' in most autotool invocations in a new
86914         tree.  Actually fail the whole test if any of the tools, or the
86915         configure or make stages fail.
86917         Sync from Automake.
86918         * build-aux/gnupload: Revert last change.  Add pointer to upload
86919         instructions of the GNU Maintenance Instructions.
86920         Suggestion by Karl Berry.
86922 2006-11-10  Jim Meyering  <jim@meyering.net>
86924         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
86926 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86928         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
86929         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
86930         (bind_textdomain_codeset) [! ENABLE_NLS]:
86931         Evaluate all the arguments.  That way, callers get compatible behavior
86932         if the arguments have side effects.  Also, it avoids some GCC
86933         diagnostics in some cases; Joel E. Denny reported problems when Bison
86934         was configured with --enable-gcc-warnigs.
86936 2006-11-10  Jim Meyering  <jim@meyering.net>
86938         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
86939         relevant options in CFLAGS (like -O, -fno-inline) are taken into
86940         account.
86942 2006-11-10  Jim Meyering  <jim@meyering.net>
86944         * modules/inline: New file/module.
86945         * modules/xalloc (Files): Remove m4/inline.m4.
86946         (Depends-on): Add inline, instead.
86947         * modules/oset: Likewise.
86948         * modules/list: Likewise.
86950 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86952         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
86953         Problem reported by Matthew Woehlke.
86955 2006-11-09  Bruno Haible  <bruno@clisp.org>
86957         * lib/tempname.c (gen_tempname): Remove variant that invokes
86958         __gen_tempname.
86959         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
86960         __gen_tempname.
86962 2006-11-08  Bruno Haible  <bruno@clisp.org>
86964         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
86965         to 'yes' instead of 'cross-compiling'.
86967 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
86969         * lib/quotearg.h (quotearg_free): New decl.
86970         * lib/quotearg.c (quotearg_free): New function.
86971         (slot0, nslots, slotvec0, slotvec):
86972         Now file-scope so that quotearg_free can get at them.
86974 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86976         Sync from Automake.
86977         * build-aux/gnupload: Add missing 'gnu' to example URL.
86978         Report by Karl Berry.
86980 2006-11-08  Bruno Haible  <bruno@clisp.org>
86982         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
86983         Suggested by Paul Eggert.
86985 2006-11-08  Jim Meyering  <jim@meyering.net>
86987         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
86988         It's already included if !_LIBC.
86989         (fts_safe_changedir): Add a comment.
86991 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
86993         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
86994         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
86995         Matthew Woehlke.
86997         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
86998         definitions up, to avoid colliding with change below.
86999         (static_inline) [HAVE_INLINE]: New macro.
87000         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
87001         Provide extern decls when !HAVE_INLINE.  Do not define unless
87002         static_inline is defined, either by us or by xmalloc.c.  Use
87003         static_inline rather than static inline.
87004         (XCALLOC): Optimize sizeof(T) = 1 case.
87005         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
87007 2006-11-07  Bruno Haible  <bruno@clisp.org>
87009         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
87010         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
87011         AC_C_INLINE.
87012         * modules/xalloc (Files): Add m4/inline.m4.
87014 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87016         * README: Fix typo.
87017         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
87018         (Miscellanous Notes): ...from this.
87020 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
87022         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
87023         Mention that offsetof should be used instead of sizeof.
87024         From Bruno Haible.
87026 2006-11-07  Bruno Haible  <bruno@clisp.org>
87028         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
87030 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
87032         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
87033         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
87034         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
87035         (gl_tree_add_before, gl_tree_add_after):
87036         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
87037         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
87038         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
87039         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
87040         (gl_linked_add_after, gl_linked_add_at): Likewise.
87041         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
87042         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
87043         (gl_tree_add_before, gl_tree_add_after): Likewise.
87044         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
87045         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
87046         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
87048 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87050         * lib/gl_oset.h: Use C comment style, not C++ comment style.
87052 2006-11-06  Bruno Haible  <bruno@clisp.org>
87054         * m4/inline.m4: New file.
87055         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
87056         * modules/list (Files): Add m4/inline.m4.
87057         * modules/oset (Files): Likewise.
87059 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
87061         * lib/idcache.c: Include <stddef.h>, for offsetof.
87062         (struct userid.name): Change from char * to a flexible array member.
87063         All uses changed.
87064         * modules/idcache (Depends-on): Add flexmember.
87066         * MODULES.html.sh (Core language properties): New module flexmember.
87067         * modules/flexmember, m4/flexmember.m4: New files.
87069         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
87070         inline functions that are identical with the old xnmalloc_inline,
87071         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
87072         that we can avoid some unnecessary integer multiplications and
87073         divisions in the common case where the element size is known at
87074         compile time.
87075         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
87076         needed.
87077         (xnboundedmalloc): Remove.
87078         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
87079         arguments, for consistency with rest of this header.
87080         (xcharalloc): Rewrite using XNMALLOC.
87081         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
87082         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
87083         versions have been moved to lib/xalloc.h and renamed to be the
87084         non-*_inline versions.
87085         (xmalloc, xrealloc): Implement without reference to the xnmalloc
87086         and xnrealloc functions, since those functions are now inline and
87087         now call us.
87088         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
87089         renaming described above.
87090         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
87091         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
87092         captures the dependency in AC_C_INLINE.
87094         New module canonicalize-lgpl, proposed by Charles Wilson in
87095         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
87096         with a few small changes afterwards.
87097         * MODULES.html.sh (File system functions): New module
87098         canonicalize-lgpl.
87099         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
87100         and canonicalize_file_name.
87101         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
87102         * modules/canonicalize-lgpl: New files.
87104 2006-11-05  Bruno Haible  <bruno@clisp.org>
87106         * gnulib-tool (func_import, func_create_testdir): Create directories
87107         also for files in subdirectories of lib/.
87109 2006-11-05  Bruno Haible  <bruno@clisp.org>
87111         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
87112         ANSI C compliant.
87114 2006-11-03  Bruno Haible  <bruno@clisp.org>
87116         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
87117         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
87118         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
87119         (xnboundedmalloc): New inline function.
87120         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
87121         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
87122         xmalloc.
87123         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
87124         xmalloc.
87125         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
87126         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
87127         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
87128         xmalloc.
87129         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
87130         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
87131         xmalloc.
87132         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
87133         gl_tree_add_after): Use XMALLOC instead of xmalloc.
87134         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
87135         xmalloc.
87136         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
87137         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
87138         gl_tree_add_after): Use XMALLOC instead of xmalloc.
87139         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
87140         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
87141         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
87142         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
87144 2006-11-03  Bruno Haible  <bruno@clisp.org>
87146         * lib/c-ctype.h [C++]: Define functions without name mangling.
87147         * lib/fwriteerror.h [C++]: Likewise.
87148         * lib/gcd.h [C++]: Likewise.
87149         * lib/linebreak.h [C++]: Likewise.
87151 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87153         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
87154         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
87155         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
87156         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
87157         Check for functions and headers just once.
87158         Check for declaration of canonicalize_file_name.
87159         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
87161 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
87163         * gnulib-tool (func_import): Fix typo in actioncmd.
87165 2006-11-02  Bruno Haible  <bruno@clisp.org>
87167         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
87168         newline sequence in the Makefile.am snippet as a space, like "make"
87169         does.
87170         Reported by Roger Persson <perrog@gmail.com>.
87172 2006-11-01  Bruno Haible  <bruno@clisp.org>
87174         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
87175         already declared in <string.h>.
87176         * lib/strcase.h (strncasecmp): Don't declare it if yes.
87178 2006-11-01  Bruno Haible  <bruno@clisp.org>
87180         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
87181         * lib/strcase.h: Include <string.h>.
87182         (strcasecmp): Define to rpl_strcasecmp here.
87184 2006-11-01  Bruno Haible  <bruno@clisp.org>
87186         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
87188 2006-11-01  Eric Blake  <ebb9@byu.net>
87190         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
87192         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
87194 2006-10-29  Bruno Haible  <bruno@clisp.org>
87196         Make it compile in C++ mode.
87197         * lib/full-write.c (full_rw): Add a cast.
87199 2006-11-01  Bruno Haible  <bruno@clisp.org>
87201         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
87202         be POSIX compliant.
87203         Reported by Roger Persson <perrog@gmail.com>.
87205 2006-11-01  Eric Blake  <ebb9@byu.net>
87207         * lib/getopt_.h: Fix comments.
87209 2006-10-31  Eric Blake  <ebb9@byu.net>
87211         * modules/tmpdir (Depends-on): Add sys_stat.
87212         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
87213         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
87214         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
87215         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
87216         tempname.
87218 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
87220         Avoid some C++ diagnostics reported by Bruno Haible.
87221         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
87222         xmalloc.
87223         (quotearg_alloc): Use xcharalloc rather than xmalloc.
87224         (struct slotvec): Move to top level.
87225         (quotearg_n_options): Rewrite to avoid xmalloc.
87226         * lib/xalloc.h (xcharalloc): New function.
87227         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
87228         [defined __cplusplus]: Add function template that provides result
87229         type propagation.  This part of the change is from Bruno Haible.
87231 2006-10-29  Bruno Haible  <bruno@clisp.org>
87233         Make it compile in C++ mode.
87234         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
87235         * lib/strnlen1.c (strnlen1): Cast memchr result.
87236         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
87237         * lib/clean-temp.c (string_equals, string_hash): Add casts.
87238         (create_temp_dir): Rename local variable 'template'.
87239         (compile_csharp_using_sscli): Add cast.
87240         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
87241         * lib/findprog.c (find_in_path): Likewise.
87242         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
87243         * lib/wait-process.c (register_slave_subprocess): Likewise.
87245 2006-10-22  Bruno Haible  <bruno@clisp.org>
87247         * modules/tsearch: New file.
87248         * lib/tsearch.h: New file.
87249         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
87250         * m4/tsearch.m4: New file.
87251         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
87253 2006-10-29  Eric Blake  <ebb9@byu.net>
87255         * lib/arcfour.c: Assume config.h.
87256         * lib/arctwo.c: Likewise.
87257         * lib/base64.c: Likewise.
87258         * lib/check-version.c: Likewise.
87259         * lib/crc.c: Likewise.
87260         * lib/des.c: Likewise.
87261         * lib/gc-gnulib.c: Likewise.
87262         * lib/gc-libgcrypt.c: Likewise.
87263         * lib/gc-pbkdf2-sha1.c: Likewise.
87264         * lib/getaddrinfo.c: Likewise.
87265         * lib/getdelim.c: Likewise.
87266         * lib/getline.c: Likewise.
87267         * lib/hmac-md5.c: Likewise.
87268         * lib/hmac-sha1.c: Likewise.
87269         * lib/iconvme.c: Likewise.
87270         * lib/md2.c: Likewise.
87271         * lib/md4.c: Likewise.
87272         * lib/memxor.c: Likewise.
87273         * lib/read-file.c: Likewise.
87274         * lib/readline.c: Likewise.
87275         * lib/rijndael-alg-fst.c: Likewise.
87276         * lib/rijndael-api-fst.c: Likewise.
87277         * lib/xgetdomainname.c: Likewise.
87279 2006-10-28  Eric Blake  <ebb9@byu.net>
87281         * lib/xstrndup.c: Assume config.h.
87283 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
87285         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
87286         stat-macros.h is now for our own macros, whereas stat_h is for
87287         macros in the <sys/stat.h> name space.
87288         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
87289         (STAT_MACROS_H): Remove.
87290         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
87291         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
87292         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
87293         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
87294         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
87295         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
87296         Move these macros to ...
87297         * lib/stat_.h: here.  Don't include stat-macros.h.
87298         * lib/canonicalize.c: Don't include stat-macros.h.
87299         * lib/chown.c: Likewise.
87300         * lib/euidaccess.c: Likewise.
87301         * lib/file-type.c: Likewise.
87302         * lib/filemode.c: Likewise.
87303         * lib/glob.c: Likewise.
87304         * lib/isapipe.c: Likewise.
87305         * lib/lchown.c: Likewise.
87306         * lib/lstat.c: Likewise.
87307         * lib/mkdir-p.c: Likewise.
87308         * lib/rmdir.c: Likewise.
87309         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
87310         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
87311         unless mkdir isn't declared, to speed up 'configure'.
87312         Always create sys/stat.h, since it's unlikely any real sys/stat.h
87313         would define all the S_* symbols.
87314         * modules/canonicalize (Depends-on):
87315         Depend on sys_stat, not stat-macros.
87316         * modules/chown: Likewise.
87317         * modules/euidaccess: Likewise.
87318         * modules/filemode: Likewise.
87319         * modules/file-type: Likewise.
87320         * modules/glob: Likewise.
87321         * modules/isapipe: Likewise.
87322         * modules/lchown: Likewise.
87323         * modules/lstat: Likewise.
87324         * modules/mkancesdirs: Likewise.
87325         * modules/rmdir: Likewise.
87326         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
87327         * modules/modechange: Likewise.
87328         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
87329         (configure.ac): Remove gl_STAT_MACROS.
87330         * modules/sys_stat (Depends-on): Remove stat-macros.
87332 2006-10-27  Bruno Haible  <bruno@clisp.org>
87334         * m4/signed.m4: Remove file.
87335         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
87336         invocation.
87337         * modules/vasnprintf (Files): Remove m4/signed.m4.
87339 2006-10-27  Bruno Haible  <bruno@clisp.org>
87341         Update to GNU gettext 0.16.
87342         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
87343         m4/inttypes-h.m4, m4/signed.m4.
87344         * m4/gettext.m4: Update to GNU gettext 0.16.
87345         * m4/intl.m4: New file, from GNU gettext.
87346         * m4/intldir.m4: New file, from GNU gettext.
87347         * config/srclist.txt: Update
87349 2006-10-27  Eric Blake  <ebb9@byu.net>
87351         * MODULES.html.sh: Document tempname.
87352         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
87353         dependencies.
87354         (Files): Move lib/tempname.c...
87355         * modules/tempname: ...to this new module.
87356         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
87357         (gl_PREREQ_TEMPNAME): Move...
87358         * m4/tempname.m4: ...to this new file.
87359         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
87360         * modules/sys_stat (Depends-on): Add stat-macros.
87361         * lib/stat_.h (includes): Pick up stat macros.
87362         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
87363         if stat macros are broken.
87364         * lib/tempname.c (includes): No need to include "stat-macros.h".
87365         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
87366         (direxists, __path_search) [!_LIBC]: Don't compile these in
87367         gnulib; the tmpdir module covers that.
87368         * lib/tempname.h: New file.
87370 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
87372         * COPYING: Explain how gnulib-tool converts licence headers.
87373         Almost all wording by Eric Blake.
87375 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
87377         * lib/mbchar.h (is_basic_table): Make read-only.
87378         * lib/mbchar.c (is_basic_table): Likewise.
87379         Reported by John Darrington.
87381 2006-10-25  Bruno Haible  <bruno@clisp.org>
87383         * lib/progname.h (set_program_name): Undefine before defining.
87385 2006-10-25  Bruno Haible  <bruno@clisp.org>
87387         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
87388         false for non-gcc C++ compilers.
87389         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
87391 2006-10-24  Bruno Haible  <bruno@clisp.org>
87393         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
87394         iconv implementations like Irix iconv.
87396 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87398         * modules/vararrays: New file.
87399         * m4/vararrays.m4: New file, taken from diffutils.
87400         * MODULES.html.sh: New module vararrays.
87402 2006-10-24  Karl Berry  <karl@gnu.org>
87404         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
87405         Don't call GNU Unix.
87407 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87409         * users.txt: Add Libtool.
87411         Sync from Libtool:
87413         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87415         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
87416         to gnulib's policy of including config.h unconditionally.
87418 2006-10-24  Bruno Haible  <bruno@clisp.org>
87420         * modules/wcwidth (Files): Add m4/wint_t.m4.
87421         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
87422         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
87424 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87426         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
87427         to pacify GCC with some -W flags enabled.  Problem reported by
87428         Bruno Haible.
87430 2006-10-24  Jim Meyering  <jim@meyering.net>
87432         * MODULES.html.sh: Remove uinttostr.  It's not a module.
87433         Reported by Karl Berry.
87435 2006-10-23  Bruno Haible  <bruno@clisp.org>
87437         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
87439 2006-10-24  Bruno Haible  <bruno@clisp.org>
87441         * lib/gl_list.h: Use C comment style, not C++ comment style.
87443 2006-10-23  Eric Blake  <ebb9@byu.net>
87445         * lib/getaddrinfo.c (includes): Add missing include.
87447 2006-10-23  Bruno Haible  <bruno@clisp.org>
87448             Paul Eggert  <eggert@cs.ucla.edu>
87450         Ability to rename obstack_free.
87451         * lib/obstack.h (__obstack_free): New macro. Declare instead of
87452         obstack_free.
87453         (obstack_free): Invoke the __obstack_free macro.
87454         * lib/obstack.c (obstack_free): Use __obstack_free macro.
87456 2006-10-23  Bruno Haible  <bruno@clisp.org>
87457             Paul Eggert  <eggert@cs.ucla.edu>
87459         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
87460         __argc, __argv from the declaration. (They are defined as macros on
87461         mingw.)
87463 2006-10-22  Bruno Haible  <bruno@clisp.org>
87465         * doc/gnulib-intro.texi: New file.
87466         * doc/gnulib.texi: Include it.
87468 2006-10-21  Bruno Haible  <bruno@clisp.org>
87470         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
87471         "Introduction", "Miscellanous Notes", "Particular Modules".
87473 2006-10-21  Bruno Haible  <bruno@clisp.org>
87475         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
87476         Change mostlyclean-local rule to avoid sh syntax error from bash
87477         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
87479 2006-10-23  Jim Meyering  <jim@meyering.net>
87481         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
87482         in place of snprintf.
87484         * modules/inttostr (Files): Add lib/uinttostr.c.
87485         * lib/uinttostr.c (inttostr): New file/function.
87486         * lib/inttostr.h (uinttostr): Declare.
87487         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
87488         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
87489         Add uinttostr.
87490         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
87492 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
87494         * lib/canonicalize.c (ELOOP): Define if not already defined.
87495         Problem reported by Bruno Haible in
87496         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
87498 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
87500         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
87501         Problem reported by Perry Smith and Ville Laurikari.
87503         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
87504         uses.
87506 2006-10-19  Bruno Haible  <bruno@clisp.org>
87508         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
87509         for mingw.
87511 2006-10-19  Bruno Haible  <bruno@clisp.org>
87513         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
87514         Needed for mingw.
87516 2006-10-19  Bruno Haible  <bruno@clisp.org>
87518         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
87520 2006-10-19  Bruno Haible  <bruno@clisp.org>
87522         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
87523         it.
87525 2006-10-19  Bruno Haible  <bruno@clisp.org>
87527         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
87528         invocation.
87530 2006-10-19  Bruno Haible  <bruno@clisp.org>
87532         * gnulib-tool (func_create_testdir): Don't include ftruncate and
87533         mountlist by default.
87535 2006-10-16  Bruno Haible  <bruno@clisp.org>
87537         * lib/c-strstr.c: Include c-strstr.h.
87539 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
87541         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
87542         in a slash.
87544 2006-10-18  Bruno Haible  <bruno@clisp.org>
87546         * lib/lock.h [C++]: Wrap definitions in extern "C".
87548 2006-10-18  Bruno Haible  <bruno@clisp.org>
87550         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
87551         gl_LIBOBJS list.
87553 2006-10-18  Bruno Haible  <bruno@clisp.org>
87555         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
87557 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
87559         * lib/xstrtol.h: Include gettext.h.
87560         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
87561         Problem reported by Eric Blake.
87562         * modules/xstrtol (Depends-on): Add gettext-h.
87564 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
87566         * lib/strftime.c (advance): New macro.
87567         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
87568         incomplete type, so you can't add 0 to it.  Problem and patch
87569         reported by Eelco Dolstra for dietlibc.
87571 2006-10-18  Jim Meyering  <jim@meyering.net>
87573         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
87574         type for a local, and rename it: s/up/user_proc/.
87576 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
87578         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
87579         READ_UTMP_USER_PROCESS.
87580         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
87582 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
87584         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
87585         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
87587 2006-10-17  Eric Blake  <ebb9@byu.net>
87589         * lib/sigprocmask.c (sigprocmask): Fix typo.
87591         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
87593         * modules/clean-temp (Makefile.am): Don't add to make output...
87594         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
87595         config.h.
87597 2006-10-17  Bruno Haible  <bruno@clisp.org>
87599         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
87600         differently if DEFAULT_TEXT_DOMAIN is set.
87602 2006-10-16  Bruno Haible  <bruno@clisp.org>
87604         * lib/clean-temp.c: Include fwriteerror.h.
87606 2006-10-16  Bruno Haible  <bruno@clisp.org>
87608         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
87610 2006-10-16  Bruno Haible  <bruno@clisp.org>
87612         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
87613         * lib/sigprocmask.h: Include <sys/types.h>.
87614         (sigset_t): Use the system's definition if present.
87616 2006-10-17  Eric Blake  <ebb9@byu.net>
87618         * lib/xvasprintf.c (includes): Assume config.h.
87619         * lib/xasprintf.c (includes): Likewise.
87621 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
87623         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
87624         at least as wide as intmax_t.
87626 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
87628         (Imported from Automake.)
87629         * build-aux/gnupload: Update to version 1.1 of directive file.
87631 2006-10-16  Eric Blake  <ebb9@byu.net>
87633         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
87634         match Automake 1.10a.
87636 2006-10-14  Bruno Haible  <bruno@clisp.org>
87638         * modules/sigprocmask: New file.
87639         * lib/sigprocmask.h: New file.
87640         * lib/sigprocmask.c: New file.
87641         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
87642         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
87643         request sigprocmask.o.
87644         (gl_PREREQ_SIGPROCMASK): New macro.
87645         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
87646         (Depends-on): Add sigprocmask.
87647         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
87648         gt_SIGNALBLOCKING. Test for 'raise' only once.
87649         * lib/fatal-signal.c: Include sigprocmask.h.
87650         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
87651         unblock_fatal_signals): Define always.
87652         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87653         sigprocmask.
87655 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
87657         Sync from Automake.
87658         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
87659         which incorrectly sets the mode of an existing destination
87660         directory.  In some cases the unpatched install-sh could do the
87661         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
87662         system.  We hope this is rare in practice, but it's clearly worth
87663         fixing.  Problem reported by Alex Unleashed in
87664         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
87665         Also, don't bother to check for -m bugs unless we're using -m;
87666         suggested by Stepan Kasal.
87668 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87670         Sync from Automake.
87671         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
87672         `-c' flag, so they appear at the same position as in %FASTDEP%
87673         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
87674         which ignores unknown options only after the first non-option.
87675         Bug report against M4 by Nelson H. F. Beebe.
87677 2006-10-13  Jim Meyering  <jim@meyering.net>
87679         Fix a bug in yesterday's change.
87680         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
87681         p->fts_statp->st_dev would be used uninitialized.
87682         Ensures that we always call fts_stat on the very first entry.
87683         Miklos Szeredi reported that find -xdev stopped working.
87685 2006-10-12  Bruno Haible  <bruno@clisp.org>
87687         * gnulib-tool (func_get_automake_snippet): Append an automatically
87688         computed EXTRA_DIST augmentation.
87689         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
87690         * modules/alloca-opt (Makefile.am): Likewise.
87691         * modules/allocsa (Makefile.am): Likewise.
87692         * modules/arcfour (Makefile.am): Likewise.
87693         * modules/arctwo (Makefile.am): Likewise.
87694         * modules/argmatch (Makefile.am): Likewise.
87695         * modules/argz (Makefile.am): Likewise.
87696         * modules/atexit (Makefile.am): Likewise.
87697         * modules/backupfile (Makefile.am): Likewise.
87698         * modules/byteswap (Makefile.am): Likewise.
87699         * modules/c-strtod (Makefile.am): Likewise.
87700         * modules/c-strtold (Makefile.am): Likewise.
87701         * modules/calloc (Makefile.am): Likewise.
87702         * modules/canon-host (Makefile.am): Likewise.
87703         * modules/canonicalize (Makefile.am): Likewise.
87704         * modules/chdir-long (Makefile.am): Likewise.
87705         * modules/chdir-safer (Makefile.am): Likewise.
87706         * modules/check-version (Makefile.am): Likewise.
87707         * modules/chown (Makefile.am): Likewise.
87708         * modules/cloexec (Makefile.am): Likewise.
87709         * modules/close-stream (Makefile.am): Likewise.
87710         * modules/closeout (Makefile.am): Likewise.
87711         * modules/crc (Makefile.am): Likewise.
87712         * modules/csharpexec (Makefile.am): Likewise.
87713         * modules/cycle-check (Makefile.am): Likewise.
87714         * modules/des (Makefile.am): Likewise.
87715         * modules/dev-ino (Makefile.am): Likewise.
87716         * modules/dirfd (Makefile.am): Likewise.
87717         * modules/dirname (Makefile.am): Likewise.
87718         * modules/dup2 (Makefile.am): Likewise.
87719         * modules/eealloc (Makefile.am): Likewise.
87720         * modules/error (Makefile.am): Likewise.
87721         * modules/euidaccess (Makefile.am): Likewise.
87722         * modules/exclude (Makefile.am): Likewise.
87723         * modules/exitfail (Makefile.am): Likewise.
87724         * modules/fcntl-safer (Makefile.am): Likewise.
87725         * modules/fcntl (Makefile.am): Likewise.
87726         * modules/file-type (Makefile.am): Likewise.
87727         * modules/fileblocks (Makefile.am): Likewise.
87728         * modules/filemode (Makefile.am): Likewise.
87729         * modules/filenamecat (Makefile.am): Likewise.
87730         * modules/fnmatch (Makefile.am): Likewise.
87731         * modules/fopen-safer (Makefile.am): Likewise.
87732         * modules/fpending (Makefile.am): Likewise.
87733         * modules/fprintftime (Makefile.am): Likewise.
87734         * modules/free (Makefile.am): Likewise.
87735         * modules/fsusage (Makefile.am): Likewise.
87736         * modules/ftruncate (Makefile.am): Likewise.
87737         * modules/fts (Makefile.am): Likewise.
87738         * modules/gc-arcfour (Makefile.am): Likewise.
87739         * modules/gc-des (Makefile.am): Likewise.
87740         * modules/gc-hmac-md5 (Makefile.am): Likewise.
87741         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
87742         * modules/gc-md4 (Makefile.am): Likewise.
87743         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
87744         * modules/gc-sha1 (Makefile.am): Likewise.
87745         * modules/gc (Makefile.am): Likewise.
87746         * modules/getaddrinfo (Makefile.am): Likewise.
87747         * modules/getcwd (Makefile.am): Likewise.
87748         * modules/getdelim (Makefile.am): Likewise.
87749         * modules/getdomainname (Makefile.am): Likewise.
87750         * modules/getgroups (Makefile.am): Likewise.
87751         * modules/gethostname (Makefile.am): Likewise.
87752         * modules/gethrxtime (Makefile.am): Likewise.
87753         * modules/getline (Makefile.am): Likewise.
87754         * modules/getloadavg (Makefile.am): Likewise.
87755         * modules/getlogin_r (Makefile.am): Likewise.
87756         * modules/getndelim2 (Makefile.am): Likewise.
87757         * modules/getopt (Makefile.am): Likewise.
87758         * modules/getpagesize (Makefile.am): Likewise.
87759         * modules/getpass-gnu (Makefile.am): Likewise.
87760         * modules/getpass (Makefile.am): Likewise.
87761         * modules/getsubopt (Makefile.am): Likewise.
87762         * modules/gettime (Makefile.am): Likewise.
87763         * modules/gettimeofday (Makefile.am): Likewise.
87764         * modules/getugroups (Makefile.am): Likewise.
87765         * modules/getusershell (Makefile.am): Likewise.
87766         * modules/glob (Makefile.am): Likewise.
87767         * modules/group-member (Makefile.am): Likewise.
87768         * modules/hard-locale (Makefile.am): Likewise.
87769         * modules/hash (Makefile.am): Likewise.
87770         * modules/hmac-md5 (Makefile.am): Likewise.
87771         * modules/hmac-sha1 (Makefile.am): Likewise.
87772         * modules/human (Makefile.am): Likewise.
87773         * modules/idcache (Makefile.am): Likewise.
87774         * modules/imaxabs (Makefile.am): Likewise.
87775         * modules/imaxdiv (Makefile.am): Likewise.
87776         * modules/inet_ntop (Makefile.am): Likewise.
87777         * modules/inet_pton (Makefile.am): Likewise.
87778         * modules/intprops (Makefile.am): Likewise.
87779         * modules/inttostr (Makefile.am): Likewise.
87780         * modules/inttypes (Makefile.am): Likewise.
87781         * modules/isapipe (Makefile.am): Likewise.
87782         * modules/javaversion (Makefile.am): Likewise.
87783         * modules/lchmod (Makefile.am): Likewise.
87784         * modules/lchown (Makefile.am): Likewise.
87785         * modules/localcharset (Makefile.am): Likewise.
87786         * modules/long-options (Makefile.am): Likewise.
87787         * modules/lstat (Makefile.am): Likewise.
87788         * modules/malloc (Makefile.am): Likewise.
87789         * modules/mathl (Makefile.am): Likewise.
87790         * modules/mbchar (Makefile.am): Likewise.
87791         * modules/md2 (Makefile.am): Likewise.
87792         * modules/md4 (Makefile.am): Likewise.
87793         * modules/md5 (Makefile.am): Likewise.
87794         * modules/memcasecmp (Makefile.am): Likewise.
87795         * modules/memchr (Makefile.am): Likewise.
87796         * modules/memcmp (Makefile.am): Likewise.
87797         * modules/memcoll (Makefile.am): Likewise.
87798         * modules/memcpy (Makefile.am): Likewise.
87799         * modules/memmem (Makefile.am): Likewise.
87800         * modules/memmove (Makefile.am): Likewise.
87801         * modules/mempcpy (Makefile.am): Likewise.
87802         * modules/memrchr (Makefile.am): Likewise.
87803         * modules/memset (Makefile.am): Likewise.
87804         * modules/memxor (Makefile.am): Likewise.
87805         * modules/mkancesdirs (Makefile.am): Likewise.
87806         * modules/mkdir-p (Makefile.am): Likewise.
87807         * modules/mkdir (Makefile.am): Likewise.
87808         * modules/mkdtemp (Makefile.am): Likewise.
87809         * modules/mkstemp (Makefile.am): Likewise.
87810         * modules/mktime (Makefile.am): Likewise.
87811         * modules/modechange (Makefile.am): Likewise.
87812         * modules/mountlist (Makefile.am): Likewise.
87813         * modules/nanosleep (Makefile.am): Likewise.
87814         * modules/obstack (Makefile.am): Likewise.
87815         * modules/openat (Makefile.am): Likewise.
87816         * modules/pagealign_alloc (Makefile.am): Likewise.
87817         * modules/pathmax (Makefile.am): Likewise.
87818         * modules/physmem (Makefile.am): Likewise.
87819         * modules/poll (Makefile.am): Likewise.
87820         * modules/posixtm (Makefile.am): Likewise.
87821         * modules/posixver (Makefile.am): Likewise.
87822         * modules/putenv (Makefile.am): Likewise.
87823         * modules/quote (Makefile.am): Likewise.
87824         * modules/quotearg (Makefile.am): Likewise.
87825         * modules/raise (Makefile.am): Likewise.
87826         * modules/read-file (Makefile.am): Likewise.
87827         * modules/readline (Makefile.am): Likewise.
87828         * modules/readlink (Makefile.am): Likewise.
87829         * modules/readtokens (Makefile.am): Likewise.
87830         * modules/readutmp (Makefile.am): Likewise.
87831         * modules/realloc (Makefile.am): Likewise.
87832         * modules/regex (Makefile.am): Likewise.
87833         * modules/rename-dest-slash (Makefile.am): Likewise.
87834         * modules/rename (Makefile.am): Likewise.
87835         * modules/rijndael (Makefile.am): Likewise.
87836         * modules/rmdir (Makefile.am): Likewise.
87837         * modules/rpmatch (Makefile.am): Likewise.
87838         * modules/safe-read (Makefile.am): Likewise.
87839         * modules/safe-write (Makefile.am): Likewise.
87840         * modules/same-inode (Makefile.am): Likewise.
87841         * modules/same (Makefile.am): Likewise.
87842         * modules/save-cwd (Makefile.am): Likewise.
87843         * modules/savedir (Makefile.am): Likewise.
87844         * modules/setenv (Makefile.am): Likewise.
87845         * modules/settime (Makefile.am): Likewise.
87846         * modules/sha1 (Makefile.am): Likewise.
87847         * modules/sig2str (Makefile.am): Likewise.
87848         * modules/snprintf (Makefile.am): Likewise.
87849         * modules/stat-macros (Makefile.am): Likewise.
87850         * modules/stat-time (Makefile.am): Likewise.
87851         * modules/stdbool (Makefile.am): Likewise.
87852         * modules/stdint (Makefile.am): Likewise.
87853         * modules/stdlib-safer (Makefile.am): Likewise.
87854         * modules/stpcpy (Makefile.am): Likewise.
87855         * modules/stpncpy (Makefile.am): Likewise.
87856         * modules/strcase (Makefile.am): Likewise.
87857         * modules/strcasestr (Makefile.am): Likewise.
87858         * modules/strchrnul (Makefile.am): Likewise.
87859         * modules/strcspn (Makefile.am): Likewise.
87860         * modules/strdup (Makefile.am): Likewise.
87861         * modules/strerror (Makefile.am): Likewise.
87862         * modules/strftime (Makefile.am): Likewise.
87863         * modules/strndup (Makefile.am): Likewise.
87864         * modules/strnlen (Makefile.am): Likewise.
87865         * modules/strpbrk (Makefile.am): Likewise.
87866         * modules/strsep (Makefile.am): Likewise.
87867         * modules/strstr (Makefile.am): Likewise.
87868         * modules/strtod (Makefile.am): Likewise.
87869         * modules/strtoimax (Makefile.am): Likewise.
87870         * modules/strtok_r (Makefile.am): Likewise.
87871         * modules/strtol (Makefile.am): Likewise.
87872         * modules/strtoll (Makefile.am): Likewise.
87873         * modules/strtoul (Makefile.am): Likewise.
87874         * modules/strtoull (Makefile.am): Likewise.
87875         * modules/strtoumax (Makefile.am): Likewise.
87876         * modules/strverscmp (Makefile.am): Likewise.
87877         * modules/sys_socket (Makefile.am): Likewise.
87878         * modules/sys_stat (Makefile.am): Likewise.
87879         * modules/sysexits (Makefile.am): Likewise.
87880         * modules/time_r (Makefile.am): Likewise.
87881         * modules/timegm (Makefile.am): Likewise.
87882         * modules/timespec (Makefile.am): Likewise.
87883         * modules/tmpfile-safer (Makefile.am): Likewise.
87884         * modules/trim (Makefile.am): Likewise.
87885         * modules/unistd-safer (Makefile.am): Likewise.
87886         * modules/unlinkdir (Makefile.am): Likewise.
87887         * modules/unlocked-io (Makefile.am): Likewise.
87888         * modules/userspec (Makefile.am): Likewise.
87889         * modules/utime (Makefile.am): Likewise.
87890         * modules/utimecmp (Makefile.am): Likewise.
87891         * modules/utimens (Makefile.am): Likewise.
87892         * modules/vasnprintf (Makefile.am): Likewise.
87893         * modules/vasprintf (Makefile.am): Likewise.
87894         * modules/vsnprintf (Makefile.am): Likewise.
87895         * modules/xalloc (Makefile.am): Likewise.
87896         * modules/xgetcwd (Makefile.am): Likewise.
87897         * modules/xnanosleep (Makefile.am): Likewise.
87898         * modules/xreadlink (Makefile.am): Likewise.
87899         * modules/xstrtod (Makefile.am): Likewise.
87900         * modules/xstrtol (Makefile.am): Likewise.
87901         * modules/xstrtold (Makefile.am): Likewise.
87902         * modules/yesno (Makefile.am): Likewise.
87903         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
87905 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
87907         * modules/error (Makefile.am): Distribute files through
87908         EXTRA_DIST, not lib_SOURCES.
87910 2006-10-12  Eric Blake  <ebb9@byu.net>
87912         * modules/error (Makefile.am): Distribute files in /lib.
87913         * modules/obstack (Makefile.am): Likewise.
87915 2006-10-12  Bruno Haible  <bruno@clisp.org>
87917         * modules/acl (Makefile.am): Distribute all files in lib/ through
87918         EXTRA_DIST.
87919         * modules/arcfour (Makefile.am): Likewise.
87920         * modules/arctwo (Makefile.am): Likewise.
87921         * modules/argmatch (Makefile.am): Likewise.
87922         * modules/argz (Makefile.am): Likewise.
87923         * modules/atexit (Makefile.am): Likewise.
87924         * modules/backupfile (Makefile.am): Likewise.
87925         * modules/c-strtod (Makefile.am): Likewise.
87926         * modules/c-strtold (Makefile.am): Likewise.
87927         * modules/calloc (Makefile.am): Likewise.
87928         * modules/canon-host (Makefile.am): Likewise.
87929         * modules/canonicalize (Makefile.am): Likewise.
87930         * modules/chdir-long (Makefile.am): Likewise.
87931         * modules/chdir-safer (Makefile.am): Likewise.
87932         * modules/check-version (Makefile.am): Likewise.
87933         * modules/chown (Makefile.am): Likewise.
87934         * modules/cloexec (Makefile.am): Likewise.
87935         * modules/close-stream (Makefile.am): Likewise.
87936         * modules/closeout (Makefile.am): Likewise.
87937         * modules/crc (Makefile.am): Likewise.
87938         * modules/cycle-check (Makefile.am): Likewise.
87939         * modules/des (Makefile.am): Likewise.
87940         * modules/dirfd (Makefile.am): Likewise.
87941         * modules/dirname (Makefile.am): Likewise.
87942         * modules/dup2 (Makefile.am): Likewise.
87943         * modules/euidaccess (Makefile.am): Likewise.
87944         * modules/exclude (Makefile.am): Likewise.
87945         * modules/exitfail (Makefile.am): Likewise.
87946         * modules/fcntl-safer (Makefile.am): Likewise.
87947         * modules/file-type (Makefile.am): Likewise.
87948         * modules/fileblocks (Makefile.am): Likewise.
87949         * modules/filemode (Makefile.am): Likewise.
87950         * modules/filenamecat (Makefile.am): Likewise.
87951         * modules/fnmatch (Makefile.am): Likewise.
87952         * modules/fopen-safer (Makefile.am): Likewise.
87953         * modules/fpending (Makefile.am): Likewise.
87954         * modules/fprintftime (Makefile.am): Likewise.
87955         * modules/free (Makefile.am): Likewise.
87956         * modules/fsusage (Makefile.am): Likewise.
87957         * modules/ftruncate (Makefile.am): Likewise.
87958         * modules/fts (Makefile.am): Likewise.
87959         * modules/gc (Makefile.am): Likewise.
87960         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
87961         * modules/getaddrinfo (Makefile.am): Likewise.
87962         * modules/getcwd (Makefile.am): Likewise.
87963         * modules/getdelim (Makefile.am): Likewise.
87964         * modules/getdomainname (Makefile.am): Likewise.
87965         * modules/getgroups (Makefile.am): Likewise.
87966         * modules/gethostname (Makefile.am): Likewise.
87967         * modules/gethrxtime (Makefile.am): Likewise.
87968         * modules/getline (Makefile.am): Likewise.
87969         * modules/getloadavg (Makefile.am): Likewise.
87970         * modules/getlogin_r (Makefile.am): Likewise.
87971         * modules/getopt (Makefile.am): Likewise.
87972         * modules/getpass (Makefile.am): Likewise.
87973         * modules/getpass-gnu (Makefile.am): Likewise.
87974         * modules/getsubopt (Makefile.am): Likewise.
87975         * modules/gettime (Makefile.am): Likewise.
87976         * modules/gettimeofday (Makefile.am): Likewise.
87977         * modules/getugroups (Makefile.am): Likewise.
87978         * modules/getusershell (Makefile.am): Likewise.
87979         * modules/glob (Makefile.am): Likewise.
87980         * modules/group-member (Makefile.am): Likewise.
87981         * modules/hard-locale (Makefile.am): Likewise.
87982         * modules/hash (Makefile.am): Likewise.
87983         * modules/hmac-md5 (Makefile.am): Likewise.
87984         * modules/hmac-sha1 (Makefile.am): Likewise.
87985         * modules/human (Makefile.am): Likewise.
87986         * modules/idcache (Makefile.am): Likewise.
87987         * modules/imaxabs (Makefile.am): Likewise.
87988         * modules/imaxdiv (Makefile.am): Likewise.
87989         * modules/inet_ntop (Makefile.am): Likewise.
87990         * modules/inet_pton (Makefile.am): Likewise.
87991         * modules/inttostr (Makefile.am): Likewise.
87992         * modules/isapipe (Makefile.am): Likewise.
87993         * modules/lchown (Makefile.am): Likewise.
87994         * modules/long-options (Makefile.am): Likewise.
87995         * modules/lstat (Makefile.am): Likewise.
87996         * modules/malloc (Makefile.am): Likewise.
87997         * modules/mathl (Makefile.am): Likewise.
87998         * modules/mbchar (Makefile.am): Likewise.
87999         * modules/md2 (Makefile.am): Likewise.
88000         * modules/md4 (Makefile.am): Likewise.
88001         * modules/md5 (Makefile.am): Likewise.
88002         * modules/memcasecmp (Makefile.am): Likewise.
88003         * modules/memchr (Makefile.am): Likewise.
88004         * modules/memcmp (Makefile.am): Likewise.
88005         * modules/memcoll (Makefile.am): Likewise.
88006         * modules/memcpy (Makefile.am): Likewise.
88007         * modules/memmem (Makefile.am): Likewise.
88008         * modules/memmove (Makefile.am): Likewise.
88009         * modules/mempcpy (Makefile.am): Likewise.
88010         * modules/memrchr (Makefile.am): Likewise.
88011         * modules/memset (Makefile.am): Likewise.
88012         * modules/memxor (Makefile.am): Likewise.
88013         * modules/mkancesdirs (Makefile.am): Likewise.
88014         * modules/mkdir (Makefile.am): Likewise.
88015         * modules/mkdir-p (Makefile.am): Likewise.
88016         * modules/mkdtemp (Makefile.am): Likewise.
88017         * modules/mkstemp (Makefile.am): Likewise.
88018         * modules/mktime (Makefile.am): Likewise.
88019         * modules/modechange (Makefile.am): Likewise.
88020         * modules/mountlist (Makefile.am): Likewise.
88021         * modules/nanosleep (Makefile.am): Likewise.
88022         * modules/openat (Makefile.am): Likewise.
88023         * modules/pagealign_alloc (Makefile.am): Likewise.
88024         * modules/physmem (Makefile.am): Likewise.
88025         * modules/poll (Makefile.am): Likewise.
88026         * modules/posixtm (Makefile.am): Likewise.
88027         * modules/posixver (Makefile.am): Likewise.
88028         * modules/putenv (Makefile.am): Likewise.
88029         * modules/quote (Makefile.am): Likewise.
88030         * modules/quotearg (Makefile.am): Likewise.
88031         * modules/raise (Makefile.am): Likewise.
88032         * modules/read-file (Makefile.am): Likewise.
88033         * modules/readline (Makefile.am): Likewise.
88034         * modules/readlink (Makefile.am): Likewise.
88035         * modules/readtokens (Makefile.am): Likewise.
88036         * modules/readutmp (Makefile.am): Likewise.
88037         * modules/realloc (Makefile.am): Likewise.
88038         * modules/regex (Makefile.am): Likewise.
88039         * modules/rename (Makefile.am): Likewise.
88040         * modules/rename-dest-slash (Makefile.am): Likewise.
88041         * modules/rijndael (Makefile.am): Likewise.
88042         * modules/rmdir (Makefile.am): Likewise.
88043         * modules/rpmatch (Makefile.am): Likewise.
88044         * modules/safe-read (Makefile.am): Likewise.
88045         * modules/safe-write (Makefile.am): Likewise.
88046         * modules/same (Makefile.am): Likewise.
88047         * modules/save-cwd (Makefile.am): Likewise.
88048         * modules/savedir (Makefile.am): Likewise.
88049         * modules/setenv (Makefile.am): Likewise.
88050         * modules/settime (Makefile.am): Likewise.
88051         * modules/sha1 (Makefile.am): Likewise.
88052         * modules/sig2str (Makefile.am): Likewise.
88053         * modules/snprintf (Makefile.am): Likewise.
88054         * modules/stdlib-safer (Makefile.am): Likewise.
88055         * modules/stpcpy (Makefile.am): Likewise.
88056         * modules/stpncpy (Makefile.am): Likewise.
88057         * modules/strcase (Makefile.am): Likewise.
88058         * modules/strcasestr (Makefile.am): Likewise.
88059         * modules/strchrnul (Makefile.am): Likewise.
88060         * modules/strcspn (Makefile.am): Likewise.
88061         * modules/strdup (Makefile.am): Likewise.
88062         * modules/strerror (Makefile.am): Likewise.
88063         * modules/strftime (Makefile.am): Likewise.
88064         * modules/strndup (Makefile.am): Likewise.
88065         * modules/strnlen (Makefile.am): Likewise.
88066         * modules/strpbrk (Makefile.am): Likewise.
88067         * modules/strsep (Makefile.am): Likewise.
88068         * modules/strstr (Makefile.am): Likewise.
88069         * modules/strtod (Makefile.am): Likewise.
88070         * modules/strtoimax (Makefile.am): Likewise.
88071         * modules/strtok_r (Makefile.am): Likewise.
88072         * modules/strtol (Makefile.am): Likewise.
88073         * modules/strtoll (Makefile.am): Likewise.
88074         * modules/strtoul (Makefile.am): Likewise.
88075         * modules/strtoull (Makefile.am): Likewise.
88076         * modules/strtoumax (Makefile.am): Likewise.
88077         * modules/strverscmp (Makefile.am): Likewise.
88078         * modules/time_r (Makefile.am): Likewise.
88079         * modules/timegm (Makefile.am): Likewise.
88080         * modules/tmpfile-safer (Makefile.am): Likewise.
88081         * modules/unistd-safer (Makefile.am): Likewise.
88082         * modules/unlinkdir (Makefile.am): Likewise.
88083         * modules/userspec (Makefile.am): Likewise.
88084         * modules/utime (Makefile.am): Likewise.
88085         * modules/utimecmp (Makefile.am): Likewise.
88086         * modules/utimens (Makefile.am): Likewise.
88087         * modules/vasnprintf (Makefile.am): Likewise.
88088         * modules/vasprintf (Makefile.am): Likewise.
88089         * modules/vsnprintf (Makefile.am): Likewise.
88090         * modules/xalloc (Makefile.am): Likewise.
88091         * modules/xgetcwd (Makefile.am): Likewise.
88092         * modules/xnanosleep (Makefile.am): Likewise.
88093         * modules/xreadlink (Makefile.am): Likewise.
88094         * modules/xstrtod (Makefile.am): Likewise.
88095         * modules/xstrtol (Makefile.am): Likewise.
88096         * modules/xstrtold (Makefile.am): Likewise.
88097         * modules/yesno (Makefile.am): Likewise.
88099 2006-10-12  Jim Meyering  <jim@meyering.net>
88101         * m4/getloadavg.m4: Revert the change below.
88103         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
88104         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
88105         fail with a symlink, which is what coreutils' ./bootstrap now
88106         creates by default.
88108 2006-10-12  Bruno Haible  <bruno@clisp.org>
88110         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
88111         mingw.
88112         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
88113         MSVC and mingw explicitly.
88115 2006-10-11  Simon Josefsson  <jas@extundo.com>
88116             Bruno Haible  <bruno@clisp.org>
88118         Add support for multiple gnulib-tool invocations in the scope of a
88119         single configure.ac file.
88120         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
88121         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
88122         with the same contents as the _LIBADD variable.
88123         (func_emit_initmacro_start, func_emit_initmacro_end,
88124         func_emit_initmacro_done): New functions.
88125         (func_import, func_create_testdir): Invoke them. Allow the identifiers
88126         gl_LIBOBJS and gl_LTLIBOBJS.
88128 2006-10-11  Bruno Haible  <bruno@clisp.org>
88130         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
88131         (func_create_testdir): Don't create po/Makefile.am, don't invoke
88132         autoreconf. Instead, invoke autopoint explicitly but move back the
88133         *.m4 files from gnulib.
88135 2006-10-11  Bruno Haible  <bruno@clisp.org>
88137         * gnulib-tool (func_usage): Make module names after --create-testdir
88138         optional.
88139         (func_create_testdir): If no module was specified, use nearly all
88140         modules.
88142 2006-10-12  Jim Meyering  <jim@meyering.net>
88144         Big performance improvement for fts-based tools that use FTS_NOSTAT.
88145         Avoid spurious inode-mismatch problems on non-POSIX file systems.
88146         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
88147         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
88148         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
88149         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
88150         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
88151         (fts_set_stat_required): New function.
88152         (fts_open): Defer the calls to fts_stat, if possible or requested.
88153         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
88154         into fts_stat itself.
88155         (fts_read): Perform any required (deferred) fts_stat call.
88156         (fts_build): Likewise, for the directory we're about to open and read.
88157         In the readdir loop, carefully decide whether each entry will require
88158         an eventual call to fts_stat, using dirent.d_type info if available.
88159         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
88160         a command line argument into this function.  Update all callers.
88161         Map a return value of FTS_DOT to FTS_D for a command line argument.
88162         * modules/fts (Depends-on): Add d-type.  Alphabetize.
88163         Thanks to Miklos Szeredi for his tenacity and for the initial
88164         bug report about "find" failing on a FUSE-based file system.
88166         * lib/fts.c (fts_open): Use consistent indentation.
88168 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
88170         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
88171         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
88172         reported by Jim Meyering.  All uses of cache variables renamed
88173         to match Autoconf's.
88174         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
88175         the other one.
88177         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
88178         Fix misspelling in diagnostic.
88180 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
88182         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
88183         defined.  Problem reported by Matthew Woehlke.
88185         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
88186         Add support for Tandem NonStop R series.
88187         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
88188         Use new macro.
88190         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
88191         (has_trailing_slash): Omit size arg; all callers changed.
88192         Omit 'inline', since it doesn't help performance and we'd
88193         need to configure it.
88194         Don't count //, ///, etc. as having a trailing slash.
88195         As a side effect, this removes a C99ism reported by Matthew Woehlke.
88196         (rpl_rename_dest_slash): On failure, use rename's errno rather
88197         than (in some cases) an incorrect or junk errno.
88198         Simplify code by removing need to compute length; this does
88199         cause it to make two passes instead of one over the file name,
88200         but it's worth it.
88202         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
88203         change, since Autoconf's version may no longer be appropriate now
88204         that we are using CVS Autoconf's version.  Add support for Tandem.
88206 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
88207             Bruno Haible  <bruno@clisp.org>
88209         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
88210         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
88211         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
88212         gl_AC_TYPE_LONG_LONG.
88214         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
88215         instead of HAVE_LONG_LONG.
88216         * lib/printf-args.c (printf_fetchargs): Likewise.
88217         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
88218         * lib/vasnprintf.c (VASNPRINTF): Likewise.
88219         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
88220         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
88221         gl_AC_TYPE_LONG_LONG.
88223 2006-10-11  Bruno Haible  <bruno@clisp.org>
88225         * m4/longlong.m4: Add comments.
88226         * m4/ulonglong.m4: Likewise.
88228 2006-10-10  Bruno Haible  <bruno@clisp.org>
88230         Make it possible to #define stpcpy, strdup to aliases.
88231         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
88232         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
88234 2006-10-10  Bruno Haible  <bruno@clisp.org>
88236         Make it possible to #define gcd to an alias.
88237         * lib/gcd.c: Include config.h.
88239 2006-10-10  Bruno Haible  <bruno@clisp.org>
88241         Make it possible to #define c_isascii to an alias.
88242         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
88243         defined. Undefine the macros before defining them, to avoid gcc
88244         warnings.
88245         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
88246         define NO_C_CTYPE_MACROS early.
88248 2006-10-10  Bruno Haible  <bruno@clisp.org>
88250         Make it possible to #define set_program_name to an alias.
88251         * lib/progname.c: Don't undefine set_program_name; instead, undefine
88252         ENABLE_RELOCATABLE early.
88254 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88256         Port to Tandem NSK OSS, which has 64-bit signed int but at most
88257         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
88258         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
88259         More generally, don't assume that 64-bit signed int is available
88260         if unsigned int is, and vice versa.
88261         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
88262         unsigned symbols, not on their signed counterparts.
88263         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
88264         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
88265         (UINT64_C, UINTMAX_C):
88266         Likewise.
88267         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
88268         unsigned counterparts.
88269         (Have_long_long, Unsigned): New macros.
88270         (Int): Renamed from INT.
88271         (strtoimax): Use the new macros.
88272         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
88273         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
88274         * modules/inttypes (inttypes.h): Substitute
88275         HAVE_UNSIGNED_LONG_LONG_INT.
88276         * modules/stdint (stdint.h): Likewise.
88277         (Files): Add m4/ulonglong.m4.
88279 2006-10-10  Bruno Haible  <bruno@clisp.org>
88281         Fix a gcc -Wshadow warning.
88282         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
88283         to 'bucket'.
88284         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
88285         gl_linked_indexof_from_to): Likewise.
88286         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
88287         Likewise.
88288         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
88289         Likewise.
88290         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
88291         Reported by Eric Blake.
88293 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
88295         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
88296         for NetBSD.  Problem reported by Bruno Haible.
88298 2006-10-09  Jim Meyering  <jim@meyering.net>
88300         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
88301         Patch from Bruno Haible.
88303 2006-10-09  Jim Meyering  <jim@meyering.net>
88305         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
88306         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
88307         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
88309 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
88311         Don't include <config.h> twice; this doesn't work in some cases,
88312         e.g., when config.h has "#define intmax_t long long int" and
88313         we include <config.h>, <inttypes.h>, <config.h> in that order.
88314         Problem reported by Matthew Woehlke in:
88315         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
88316         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
88317         * lib/fts-cycle.c: Don't include config.h.
88318         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
88319         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
88320         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
88321         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
88322         inttypes.h.
88323         * lib/xstrtoumax.c: Likewise.
88324         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
88325         __strtol and the like, so that this module is more like its siblings.
88326         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
88327         Remove; no longer needed now that we assume gnulib inttypes.h.
88329 2006-10-08  Bruno Haible  <bruno@clisp.org>
88331         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
88332         option.
88334 2006-10-07  Jim Meyering  <jim@meyering.net>
88336         * modules/inttypes (inttypes.h): Revert what seems to have been
88337         an inadvertent part of today's change: use "|", not "/" in the
88338         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
88340 2006-10-07  Bruno Haible  <bruno@clisp.org>
88342         * modules/sublist: New file.
88344 2006-10-07  Bruno Haible  <bruno@clisp.org>
88346         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
88347         * modules/argz (argz.h): Likewise.
88348         * modules/arpa_inet (arpa/inet.h): Likewise.
88349         * modules/byteswap (byteswap.h): Likewise.
88350         * modules/configmake (configmake.h): Likewise.
88351         * modules/fcntl (fcntl.h): Likewise.
88352         * modules/fnmatch (fnmatch.h): Likewise.
88353         * modules/getopt (getopt.h): Likewise.
88354         * modules/glob (glob.h): Likewise.
88355         * modules/inttypes (inttypes.h): Likewise.
88356         * modules/netinet_in (netinet/in.h): Likewise.
88357         * modules/poll (poll.h): Likewise.
88358         * modules/stdbool (stdbool.h): Likewise.
88359         * modules/stdint (stdint.h): Likewise.
88360         * modules/sys_select (sys/select.h): Likewise.
88361         * modules/sys_socket (sys/socket.h): Likewise.
88362         * modules/sys_stat (sys/stat.h): Likewise.
88363         * modules/sysexits (sysexits.h): Likewise.
88364         * modules/unistd (unistd.h): Likewise.
88365         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
88366         Add a "DO NOT EDIT" comment to the generated file.
88367         (func_import): Likewise for gnulib-comp.m4.
88369 2006-10-07  Bruno Haible  <bruno@clisp.org>
88371         * lib/gl_sublist.h: New file.
88372         * lib/gl_sublist.c: New file.
88374 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88376         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
88377         name (relative to the original working directory) and the file
88378         name component (relative to the temporary working directory).  All
88379         callers changed.
88380         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
88381         * lib/mkdir-p.c (make_dir_parents): Likewise.
88382         * lib/mkdir-p.h (make_dir_parents): Likewise.
88384 2006-10-06  Eric Blake  <ebb9@byu.net>
88386         Define several macros for use by the clean-temp module.
88387         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
88388         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
88389         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
88391         * lib/clean-temp.h (close_stream_temp): New declaration.
88392         * lib/clean-temp.c (includes): Pull in headers according to what
88393         other modules are in use.
88394         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
88396 2006-10-06  Bruno Haible  <bruno@clisp.org>
88398         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
88399         instead of fopen, fwriteerror.
88401 2006-10-06  Bruno Haible  <bruno@clisp.org>
88403         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
88404         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
88405         int.
88406         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
88407         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
88408         Return an error indicator.
88409         Suggested by Eric Blake.
88411 2006-10-06  Bruno Haible  <bruno@clisp.org>
88413         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
88414         Reported by Eric Blake.
88416 2006-10-06  Bruno Haible  <bruno@clisp.org>
88418         * modules/closeout (Description): Mention stderr too.
88420 2006-10-06  Bruno Haible  <bruno@clisp.org>
88421         and Paul Eggert  <eggert@cs.ucla.edu>
88423         * lib/closeout.c (close_stdout): Also close stderr.
88424         * lib/closeout.h: Update comment.
88426 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
88428         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
88429         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
88430         * lib/dirchownmod.c: Include lchown.h.
88431         * lib/lchown.c: Don't include files that lchown.h now includes.
88432         Don't declare chown, since lchown.h now does that.
88433         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
88434         (lchown): Define to rpl_chown if lchown is declared but
88435         does not exist.  Declare using a prototype if lchown is not
88436         declared.  Add a copyright notice.
88437         * lib/mkstemp.h: Include <unistd.h>.
88438         * lib/openat.c: Include lchown.h.
88440         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
88441         we now test for that separately.
88442         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
88443         rather than O_NOFOLLOW, when testing whether it's possible to
88444         avoid a race condition reliably.
88445         * lib/savewd.c (savewd_chdir): Likewise.
88447         Remove macros that are no longer needed now that stdint.h is
88448         reliable.
88449         * lib/fsusage.c (UINTMAX_MAX): Remove.
88450         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
88451         * lib/utimecmp.c (SIZE_MAX): Remove.
88453         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
88455         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
88456         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
88457         O_NOATIME works.
88459 2006-10-05  Bruno Haible  <bruno@clisp.org>
88461         * lib/gl_list.h (gl_sortedlist_search_from_to,
88462         gl_sortedlist_indexof_from_to): New declarations.
88463         (gl_list_implementation): New fields sortedlist_search_from_to,
88464         sortedlist_indexof_from_to.
88465         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
88466         inline functions.
88467         * lib/gl_list.c (gl_sortedlist_search_from_to,
88468         gl_sortedlist_indexof_from_to): New functions.
88469         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
88470         function.
88471         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
88472         (gl_array_sortedlist_search_from_to): New function.
88473         (gl_array_list_implementation): Update.
88474         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
88475         function.
88476         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
88477         (gl_carray_sortedlist_search_from_to): New function.
88478         (gl_carray_list_implementation): Update.
88479         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
88480         gl_linked_sortedlist_indexof_from_to): New functions.
88481         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
88482         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
88483         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
88484         gl_tree_sortedlist_indexof_from_to): New functions.
88485         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
88486         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
88487         Update.
88488         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
88489         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
88490         Update.
88492 2006-10-05  Bruno Haible  <bruno@clisp.org>
88494         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
88495         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
88496         (struct gl_list_implementation): Add fields search_from_to,
88497         indexof_from_to. Remove fields search, indexof.
88498         (gl_list_search): Use the search_from_to method.
88499         (gl_list_search_from, gl_list_search_from_to): New functions.
88500         (gl_list_indexof): Use the indexof_from_to method.
88501         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
88502         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
88503         (gl_list_search_from, gl_list_search_from_to): New functions.
88504         (gl_list_indexof): Use the indexof_from_to method.
88505         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
88506         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
88507         gl_array_indexof. Add start_index, end_index arguments.
88508         (gl_array_search_from_to): Renamed from gl_array_search. Add
88509         start_index, end_index arguments.
88510         (gl_array_remove, gl_array_list_implementation): Update.
88511         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
88512         gl_carray_indexof. Add start_index, end_index arguments.
88513         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
88514         start_index, end_index arguments.
88515         (gl_carray_remove, gl_carray_list_implementation): Update.
88516         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
88517         gl_linked_search. Add start_index, end_index arguments.
88518         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
88519         start_index, end_index arguments.
88520         (gl_linked_remove): Update.
88521         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
88522         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
88523         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
88524         field to 'size_t'.
88525         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
88526         gl_tree_search. Add start_index, end_index arguments.
88527         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
88528         start_index, end_index arguments.
88529         (gl_tree_remove): Update.
88530         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
88531         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
88532         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
88533         function.
88534         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
88535         gl_tree_search. Add start_index, end_index arguments.
88536         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
88537         start_index, end_index arguments.
88538         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
88539         Update.
88540         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
88542 2006-10-05  Bruno Haible  <bruno@clisp.org>
88544         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
88546         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
88547         fwriteerror_temp): New declarations.
88548         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
88549         (descriptors): New variable.
88550         (cleanup): First, close the descriptors.
88551         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
88552         fclose_temp, fwriteerror_temp): New functions.
88554 2006-10-04  Jim Meyering  <jim@meyering.net>
88556         * lib/fts.c (fts_open): Tiny comment change.
88558 2006-10-04  Bruno Haible  <bruno@clisp.org>
88560         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
88561         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
88562         gl_LOCK_BODY.
88563         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
88564         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
88565         gl_LOCK_EARLY_BODY.
88566         (gl_LOCK): Require gl_LOCK_BODY.
88568 2006-10-04  Bruno Haible  <bruno@clisp.org>
88570         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
88571         (gl_oset_search_atleast): New declaration.
88572         (struct gl_oset_implementation): Add field 'search_atleast'.
88573         (gl_oset_search_atleast): New inline function.
88574         * lib/gl_oset.c (gl_oset_search_atleast): New function.
88575         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
88576         (gl_array_oset_implementation): Update.
88577         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
88578         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
88579         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
88581 2006-10-04  Bruno Haible  <bruno@clisp.org>
88583         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
88585 2006-10-03  Bruno Haible  <bruno@clisp.org>
88587         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
88588         from gl_avltreehash_list_implementation.
88590 2006-10-03  Bruno Haible  <bruno@clisp.org>
88592         * lib/gl_oset.c (gl_oset_add): Fix return type.
88594 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
88596         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
88598 2006-10-02  Eric Blake  <ebb9@byu.net>
88600         * modules/strnlen (Depends-on): Add extensions.
88602 2006-10-02  Eric Blake  <ebb9@byu.net>
88604         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
88605         definition in 2.60+.
88607 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
88609         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
88610         checks.
88612 2006-10-02  Bruno Haible  <bruno@clisp.org>
88614         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
88615         to the AUTOMAKE_OPTIONS.
88616         Reported by Jim Meyering.
88618 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
88620         Work around bug in Solaris 10 /proc file system:
88621         /proc/self/fd/NNN/.. isn't the parent directory of
88622         the directory whose file descriptor is NNN.  This needs to
88623         be worked around at run time, not compile time, since a
88624         program might be built on Solaris 8, where things work, and
88625         run on Solaris 10.
88626         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
88627         to use the following interface instead:
88628         (OPENAT_BUFFER_SIZE): New macro.
88629         (openat_proc_name): New function.
88630         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
88631         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
88632         Likewise.
88633         * lib/openat-proc.c: New file.
88634         * modules/openat (Files): Add lib/openat-proc.c.
88635         (Depends-on): Add same-inode, stdbool.
88636         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
88638 2006-09-29  Bruno Haible  <bruno@clisp.org>
88640         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
88641         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
88642         argument. Set stdout_closed before testing for ferror, not after.
88643         (fwriteerror, fwriteerror_no_ebadf): New functions.
88645 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88647         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
88649 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
88651         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
88652         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
88654 2006-09-28  Jim Meyering  <jim@meyering.net>
88656         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
88657         Include <unistd.h>.
88659 2006-09-28  Bruno Haible  <bruno@clisp.org>
88661         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
88662         * modules/linkedhash-list (Depends-on): Likewise.
88663         * modules/rbtreehash-list (Depends-on): Likewise.
88665 2006-09-28  Bruno Haible  <bruno@clisp.org>
88667         * lib/strndup.h: Simplify the redefinition of strndup.
88668         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
88669         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
88671 2006-09-28  Bruno Haible  <bruno@clisp.org>
88673         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
88674         * lib/gl_linkedhash_list.c: Likewise.
88675         * lib/gl_rbtreehash_list.c: Likewise.
88677 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
88679         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
88680         getaddrinfo.
88682         * lib/__fpending.h: Don't include <stdio_ext.h> unless
88683         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
88684         it causes <stdio_ext.h> to cause a compile-time error.
88685         Problem reported by Nelson H. F. Beebe.
88686         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
88687         of HAVE_DECL___PENDING.
88689         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
88690         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
88691         declaration.
88693 2006-09-27  Jim Meyering  <jim@meyering.net>
88695         This file could end up with a definition for a function
88696         named __strndup, rather than rpl_strndup on a system with
88697         incomplete weak_alias support.
88698         * lib/strndup.c (strndup): Rename from __strndup.
88699         Remove #defines that used to map __strndup to strndup.
88700         Don't use K&R prototypes.
88701         Remove LIBC-related code, since this file is not sync'd with glibc.
88702         * lib/strndup.h: Revamp, accordingly.
88703         * m4/strndup.m4: Modernize.
88705 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
88707         * modules/savewd (Depends-on): Add 'raise'.
88708         * lib/savewd.c: Include <signal.h>, for 'raise'.
88710 2006-09-26  Jim Meyering  <jim@meyering.net>
88712         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
88713         when we detect Darwin 8.7.0's acl_get_file bug.
88714         Rearrange to perform the new (below) run-test while $LIBS
88715         contains any acl-related library.  Set USE_ACL at the end.
88716         (gl_ACL_GET_FILE): New function.
88718 2006-09-26  Eric Blake  <ebb9@byu.net>
88720         * lib/verror.c: Include <config.h> unconditionally.
88722 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
88724         * modules/clock-time (Maintainer): Add self.
88725         * modules/getlogin_r (Depends-on): Add extensions.
88727 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88729         * modules/clock-time: New module.
88730         * modules/nanosleep (Depends-on): Add clock-time.
88731         * modules/gethrxtime (Depends-on): Likewise.
88732         * modules/gettime (Depends-on): Likewise.
88733         * modules/settime (Depends-on): Likewise.
88735         * modules/fts-lgpl: Depend on openat.
88736         * modules/mkancesdirs: Depend on savewd.
88737         * modules/mkdir-p: Likewise.
88739 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88741         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
88743         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
88744         `gl_have_arbitrary_file_name_length_limit' to
88745         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
88746         actually works between configure runs.
88748 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88749             Bruno Haible  <bruno@clisp.org>
88751         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
88753 2006-09-25  Jim Meyering  <jim@meyering.net>
88755         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
88756         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
88758 2006-09-25  Eric Blake  <ebb9@byu.net>
88760         * gnulib-tool (func_import, func_create_testdir): Fix typos in
88761         exec's in 2006-09-18 patch when shuffling fds.
88763 2006-09-25  Bruno Haible  <bruno@clisp.org>
88765         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
88766         Reported by Jim Meyering.
88768 2006-09-24  Jim Meyering  <jim@meyering.net>
88770         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
88771         compare a pointer against a literal "0".  That caused failures with
88772         at least HP-UX's hpcc.
88774 2006-09-22  Simon Josefsson  <jas@extundo.com>
88776         * modules/gc-sha1:
88777         * modules/gc-md4:
88778         * modules/gc-hmac-sha1:
88779         * modules/gc-hmac-md5:
88780         * modules/gc-des:
88781         * modules/gc-arcfour: Distribute more files.
88783 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88785         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
88786         (gl_linked_iterator_from_to): Initialize struct completely.
88787         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
88788         (gl_tree_iterator_from_to): Likewise
88789         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
88790         * lib/gl_array_list.c [lint] (gl_array_iterator)
88791         (gl_array_iterator_from_to): Likewise.
88792         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
88793         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
88794         (gl_carray_iterator_from_to): Likewise.
88796         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
88797         * lib/md4.c (md4_process_block): Remove unused variable.
88798         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
88799         parentheses for clarity.
88801 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88803         * modules/bison-i18n (Depends-on): Add gettext.
88805 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88807         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
88808         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
88809         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
88810         also add missing comma that caused broken test.
88811         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
88812         stdlib.h, for `abort'.
88813         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
88814         variables.
88815         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
88816         include unistd.h if present, for `rmdir'.
88817         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
88818         variables.
88819         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
88820         in the process include standard headers for prototypes.
88821         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
88822         gets declared on GNU/Linux.
88823         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
88824         unistd.h, for `rmdir'.
88825         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
88827         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
88828         always true.
88829         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
88831         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
88833 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88835         * gnulib-tool (func_version): Create output all at once.  This
88836         may help avoid triggering unnecessary SIGPIPEs, and at any
88837         rate it doesn't hurt.
88839 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88840             Bruno Haible  <bruno@clisp.org>
88842         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
88843         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
88844         * m4/signed.m4 (bh_C_SIGNED): Likewise.
88846         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
88847         (gl_FUNC_VASPRINTF): Invoke it.
88849 2006-09-22  Bruno Haible  <bruno@clisp.org>
88851         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
88852         getloadavg.c as first argument.
88854 2006-09-22  Bruno Haible  <bruno@clisp.org>
88856         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
88857         at the beginning of the gl_INIT macro.
88858         * modules/getloadavg (configure.ac): Pass $gl_source_base to
88859         gl_GETLOADAVG.
88861 2006-09-22  Bruno Haible  <bruno@clisp.org>
88863         * gnulib-tool (func_create_megatestdir): Don't include the config-h
88864         module.
88865         Suggested by Ralf Wildenhues.
88867 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88869         Import this patch from libc:
88871         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
88873         * lib/regex_internal.c (re_string_reconstruct): Handle
88874         offset < pstr->valid_raw_len && pstr->offsets_needed case.
88875         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
88876         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
88877         re_string_context_at.
88879         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
88880         now requires it.
88881         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
88882         gl_REGEX now does it for us.
88883         (gl_REGEX): Add test taken from
88884         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
88886         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
88887         Check that large offsets work.  Modernize Autoconf usages.
88888         Prefer "yes" to mean a good thing rather than a bad.
88889         Don't put "#define mkstemp" in config.h, as this might interfere
88890         with standard system headers that "#define mkstemp mkstemp64".
88892         * modules/mkstemp (Depends-on): Add extensions, so that
88893         mkstemp is visible on some platforms.
88894         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
88895         (Include): Change to "mkstemp.h" from <stdlib.h>.
88896         (Files): Add mkstemp.h.
88898         * lib/mkstemp.h: New file, since some standard headers
88899         #define mkstemp.
88900         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
88901         Include "mkstemp.h".
88902         Make the _LIBC code resemble glibc original more,
88903         e.g., use K&R style.
88904         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
88905         (mkstemp): Remove, since mkstemp.h does this for us.
88906         * lib/stdlib--.h: Include mkstemp.h.
88908         Import this patch from libc:
88910         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
88912         * lib/tempname.c (__gen_tempname): Change attempts_min
88913         into a macro.  Use preprocessor to decide how to initialize
88914         attempts [Coverity CID 67].
88916 2006-09-20  Bruno Haible  <bruno@clisp.org>
88918         * lib/mkdtemp.c: Import from libc.
88919         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
88920                 * sysdeps/posix/tempname.c (__gen_tempname): Change
88921                 attempts_min into a macro.  Use preprocessor to decide how to
88922                 initialize attempts [Coverity CID 67].
88923         2001-11-27  Paul Eggert  <eggert@twinsun.com>
88924                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
88925                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
88927 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88929         * gnulib-tool (func_exit): New function, to allow to pass the
88930         exit status portably through the trap.  Use everywhere.
88931         (--help, --version): Signal a write error.
88932         (trap): catch SIGPIPE, for write errors.
88933         Exit at the end of the trap, with the correct exit status.
88935 2006-09-19  Karl Berry  <karl@gnu.org>
88937         * doc/gnulib.texi: note about the license texinfo files.
88939 2006-09-19  Eric Blake  <ebb9@byu.net>
88941         * gnulib-tool: Avoid space-tab.
88943 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
88945         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
88946         that prevented coreutils 6.1 from building.  Problem reported
88947         by Petter Reinholdtsen.
88949 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
88951         * gnulib-tool (avoidlist): Fix typo that broke options like
88952         --avoid=lock that are used by coreutils bootstrap.
88954 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
88956         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
88957         more systematically.
88959 2006-09-18  Jim Meyering  <jim@meyering.net>
88961         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
88963 2006-09-18  Bruno Haible  <bruno@clisp.org>
88965         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
88967 2006-09-18  Bruno Haible  <bruno@clisp.org>
88969         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
88970         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
88971         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
88972         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
88973         * m4/gettext.m4: Require autoconf >= 2.52.
88974         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
88975         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
88976         of gl_cv_header_inttypes_h.
88978 2006-09-18  Bruno Haible  <bruno@clisp.org>
88980         * lib/javaversion.c: Include configmake.h.
88982 2006-09-18  Bruno Haible  <bruno@clisp.org>
88984         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
88985         avoid that the while loops be executed in a subshell.
88987 2006-09-18  Bruno Haible  <bruno@clisp.org>
88989         * MODULES.html.sh (func_module): Break long lines.
88990         Suggested by Bruce Korb <bkorb@gnu.org>.
88992 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88994         Speed up by a factor of 1.12.
88995         * gnulib-tool (nl): New variable.
88996         (func_import): Rewrite include directive extraction to only read each
88997         directive once.
88999 2006-09-17  Bruno Haible  <bruno@clisp.org>
89001         * modules/javaversion (Makefile.am): Remove DEFS setting.
89002         (Depends-on): Add configmake, for PKGDATADIR definition.
89004 2006-09-17  Bruno Haible  <bruno@clisp.org>
89006         * gnulib-tool (func_create_testdir): Rewrite all files at once.
89008 2006-09-17  Bruno Haible  <bruno@clisp.org>
89010         * gnulib-tool (func_append): New function, stolen from libtool.m4.
89011         (func_modules_transitive_closure, func_modules_add_dummy,
89012         func_modules_to_filelist, func_import, func_create_testdir,
89013         func_create_megatestdir, ...): Use it wherever possible.
89014         Suggested by Ralf Wildenhues.
89016 2006-09-16  Karl Berry  <karl@gnu.org>
89018         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
89019         to avoid sectioning errors.
89020         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
89021         [ifinfo]: blank line after @center-ed titles.
89022         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
89023         Spell FSF address consistently with others.
89024         (These changes approved by rms.)
89026 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89028         Speed up by a factor of 1.61.
89029         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
89030         already checked module names again.
89032 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89034         Speed up by a factor of 1.13.
89035         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
89036         for new_files, and the input to func_add_or_update.
89038 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89040         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
89041         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
89043 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
89045         * modules/mkancesdirs (Depends-on): Add fcntl.
89046         * modules/savewd: New file.
89047         * MODULES.html.sh (File system functions): Add savewd.
89049         * modules/configmake (Makefile.am): Add support for the
89050         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
89052 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
89054         * m4/savewd.m4: New file.
89056 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
89058         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
89059         (dirchownmod): New arg FD.  All callers changed.
89060         Use FD rather than opening the directory ourself, as opening is
89061         now the caller's responsibility.
89062         * lib/dirchownmod.h: Likewise.
89063         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
89064         hosts that require <sys/types.h> before <sys/stat.h>.  Include
89065         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
89066         (test_dir): Remove.
89067         (mkancesdirs): Return length of prefix of FILE that has already
89068         been made, or -2 if there is a child doing the work.  Redo
89069         algorithm so that it is O(N) rather than O(N**2).  Optimize away
89070         ".", and treat ".." specially since it might stray back into
89071         already-created areas.  Use a subprocess if necessary.  New arg
89072         WD; all users changed.  MAKE_DIR function should now return 1
89073         if it creates a directory that is not readable.  Return -2 if
89074         a child process is spun off.
89075         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
89076         Adjust signature to match code.
89077         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
89078         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
89079         all users changed.
89080         * lib/savewd.c, lib/savewd.h: New files.
89082 2006-09-15  Jim Meyering  <jim@meyering.net>
89084         * modules/rename-dest-slash: New module.
89085         * MODULES.html.sh (posix_compat): Add it here.
89087         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
89089 2006-09-15  Jim Meyering  <jim@meyering.net>
89091         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
89092         file.
89094         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
89096 2006-09-15  Jim Meyering  <jim@meyering.net>
89098         * lib/rename-dest-slash.c (has_trailing_slash): Use
89099         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
89100         (rpl_rename_dest_slash): Perform the cheaper trailing slash
89101         test before testing whether SRC is a directory.
89102         Suggestions from Bruno Haible.
89104         Avoid a warning about an unused variable.
89105         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
89106         into the #ifdef block where it's used.
89108         * lib/rename-dest-slash.c: New file.
89110 2006-09-14  Bruno Haible  <bruno@clisp.org>
89112         * lib/allocsa.c: Include <config.h> unconditionally.
89113         * lib/asnprintf.c: Likewise.
89114         * lib/asprintf.c: Likewise.
89115         * lib/c-strcasecmp.c: Likewise.
89116         * lib/c-strcasestr.c: Likewise.
89117         * lib/c-strncasecmp.c: Likewise.
89118         * lib/c-strstr.c: Likewise.
89119         * lib/classpath.c: Likewise.
89120         * lib/clean-temp.c: Likewise.
89121         * lib/concatpath.c: Likewise.
89122         * lib/copy-file.c: Likewise.
89123         * lib/csharpcomp.c: Likewise.
89124         * lib/csharpexec.c: Likewise.
89125         * lib/execute.c: Likewise.
89126         * lib/fatal-signal.c: Likewise.
89127         * lib/findprog.c: Likewise.
89128         * lib/fwriteerror.c: Likewise.
89129         * lib/gl_array_list.c: Likewise.
89130         * lib/gl_array_oset.c: Likewise.
89131         * lib/gl_avltree_list.c: Likewise.
89132         * lib/gl_avltree_oset.c: Likewise.
89133         * lib/gl_avltreehash_list.c: Likewise.
89134         * lib/gl_carray_list.c: Likewise.
89135         * lib/gl_linked_list.c: Likewise.
89136         * lib/gl_linkedhash_list.c: Likewise.
89137         * lib/gl_list.c: Likewise.
89138         * lib/gl_oset.c: Likewise.
89139         * lib/gl_rbtree_list.c: Likewise.
89140         * lib/gl_rbtree_oset.c: Likewise.
89141         * lib/gl_rbtreehash_list.c: Likewise.
89142         * lib/imaxabs.c: Likewise.
89143         * lib/imaxdiv.c: Likewise.
89144         * lib/javacomp.c: Likewise.
89145         * lib/javaexec.c: Likewise.
89146         * lib/javaversion.c: Likewise.
89147         * lib/linebreak.c: Likewise.
89148         * lib/localcharset.c: Likewise.
89149         * lib/lock.c: Likewise.
89150         * lib/mbchar.c: Likewise.
89151         * lib/mbswidth.c: Likewise.
89152         * lib/mkdtemp.c: Likewise.
89153         * lib/pipe.c: Likewise.
89154         * lib/printf-args.c: Likewise.
89155         * lib/printf-parse.c: Likewise.
89156         * lib/progname.c: Likewise.
89157         * lib/progreloc.c: Likewise.
89158         * lib/readlink.c: Likewise.
89159         * lib/sh-quote.c: Likewise.
89160         * lib/stpcpy.c: Likewise.
89161         * lib/stpncpy.c: Likewise.
89162         * lib/strcasecmp.c: Likewise.
89163         * lib/strcasestr.c: Likewise.
89164         * lib/strcspn.c: Likewise.
89165         * lib/striconv.c: Likewise.
89166         * lib/strncasecmp.c: Likewise.
89167         * lib/strnlen1.c: Likewise.
89168         * lib/strstr.c: Likewise.
89169         * lib/strtok_r.c: Likewise.
89170         * lib/tls.c: Likewise.
89171         * lib/tmpdir.c: Likewise.
89172         * lib/unicodeio.c: Likewise.
89173         * lib/unsetenv.c: Likewise.
89174         * lib/vasnprintf.c: Likewise.
89175         * lib/vasprintf.c: Likewise.
89176         * lib/wait-process.c: Likewise.
89177         * lib/xallocsa.c: Likewise.
89178         * lib/xsetenv.c: Likewise.
89179         * lib/xstriconv.c: Likewise.
89181 2006-09-13  Simon Josefsson  <jas@extundo.com>
89183         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
89184         that internally, suggested by Ralf Wildenhues
89185         <Ralf.Wildenhues@gmx.de>.
89187 2006-09-13  Simon Josefsson  <jas@extundo.com>
89189         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
89190         @LIBOBJS@.
89191         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89193 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89195         * lib/_fpending.c: Include <config.h> unconditionally, since we no
89196         longer worry about uses that don't define HAVE_CONFIG_H.
89197         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
89198         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
89199         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
89200         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
89201         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
89202         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
89203         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
89204         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
89205         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
89206         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
89207         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
89208         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
89209         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
89210         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
89211         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
89212         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
89213         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
89214         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
89215         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
89216         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
89217         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
89218         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
89219         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
89220         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
89221         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
89222         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
89223         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
89224         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
89225         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
89226         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
89227         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
89228         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
89229         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
89230         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
89231         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
89232         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
89233         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
89234         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
89235         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
89236         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
89237         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
89238         Likewise.
89240 2006-09-13  Eric Blake  <ebb9@byu.net>
89242         * lib/getopt.c: Fix typo in last commit.
89244 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
89246         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
89247         dgettext.
89249 2006-09-12  Jim Meyering  <jim@meyering.net>
89251         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
89252         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
89253         Reported by Nelson H. F. Beebe.
89255 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
89257         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
89258         program_invocation_name and program_invocation_short_name are
89259         initialized.
89260         * lib/argp-namefrob.h: Move declarations of program_invocation_name
89261         and program_invocation_short_name to argp.h, so they are visible
89262         to user programs.
89263         * lib/argp.h: Likewise
89265 2006-09-10  Bruno Haible  <bruno@clisp.org>
89267         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
89268         m4/inttypes_h.m4, m4/uintmax_t.m4.
89270 2006-09-10  Bruno Haible  <bruno@clisp.org>
89272         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
89273         gl_AC_TYPE_UINTMAX_T.
89275 2006-09-10  Bruno Haible  <bruno@clisp.org>
89277         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
89279 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
89281         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
89282         convention.  Text proposed by Bruno Haible.
89283         (struct argp_option): Document the use of N_() wrappers.
89285         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
89286         '\v', and translate the two parts separately, instead of feeding
89287         the whole string to gettext.  This allows to exclude
89288         '\v' from the strings visible to the translator by writing doc
89289         strings as N_("..") "\v" N_("..").
89291 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
89293         * config/srclist.txt: Undo latest change; the bug was fixed.
89295 2006-09-09  Bruno Haible  <bruno@clisp.org>
89297         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
89298         assignments if building a library without libtool.
89299         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
89300         in func_emit_lib_Makefile_am.
89301         (func_import): When building a static library libfoo.a, arrange to
89302         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
89303         (func_create_testdir): Likewise.
89304         * modules/gc (configure.ac, Makefile.am): If building statically,
89305         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
89306         * modules/iconvme (configure.ac, Makefile.am): Likewise.
89307         * modules/striconv (configure.ac, Makefile.am): Likewise.
89308         Based on a suggestion by Ralf Wildenhues.
89310 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
89312         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
89313         Check for unistd.h too, since Autoconf doesn't assume POSIX.
89314         Also:
89316         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
89317         Add year_2050_test to catch glibc bug 2821
89318         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
89320         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
89321         Prefer #ifdef to #if.
89323         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
89324         Return from 'main' instead of calling 'exit'.
89326 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
89328         * lib/mktime.c (guess_time_tm): Fix bug where mktime
89329         returned the maximum time_t value rather than (time_t) -1.
89330         Problem originally reported by William Bardwell
89331         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
89333         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
89334         Moved to here ...
89335         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
89336         ... from here.
89338 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
89340         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
89341         2821 is fixed.
89343 2006-09-08  Jim Meyering  <jim@meyering.net>
89345         Don't make generated files read-only.  That would bother too many
89346         people.  However, do retain the ability to work when targets are
89347         read-only: remove the destination and temporary files before writing
89348         them (when generated via sed or echo), or by using the -f option for
89349         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
89350         * modules/alloca-opt, modules/argz, modules/arpa_inet:
89351         * modules/byteswap, modules/configmake, modules/fcntl:
89352         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
89353         * modules/localcharset, modules/netinet_in, modules/poll:
89354         * modules/stdbool, modules/stdint, modules/sys_select:
89355         * modules/sys_socket, modules/sys_stat, modules/sysexits:
89357 2006-09-08  Jim Meyering  <jim@meyering.net>
89359         Avoid new build failure on FreeBSD 6.0.
89360         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
89361         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
89362         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
89364 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89366         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
89368 2006-09-07  Jim Meyering  <jim@meyering.net>
89370         Fix global typo in last change: use chmod u-w, not chmod u-x.
89371         Spotted by Paul Eggert and Bruce Korb.
89372         * modules/alloca-opt, modules/argz, modules/arpa_inet:
89373         * modules/byteswap, modules/configmake, modules/fcntl:
89374         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
89375         * modules/localcharset, modules/netinet_in, modules/poll:
89376         * modules/stdbool, modules/stdint, modules/sys_select:
89377         * modules/sys_socket, modules/sys_stat, modules/sysexits:
89379 2006-09-06  Jim Meyering  <jim@meyering.net>
89381         Make generated files be read-only.
89382         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
89383         Ensure that each generated file is now read-only.
89384         * modules/argz: Likewise.
89385         * modules/arpa_inet: Likewise.
89386         * modules/byteswap: Likewise.
89387         * modules/configmake: Likewise.
89388         * modules/fcntl: Likewise.
89389         * modules/fnmatch: Likewise.
89390         * modules/getopt: Likewise.
89391         * modules/glob: Likewise.
89392         * modules/inttypes: Likewise.
89393         * modules/netinet_in: Likewise.
89394         * modules/poll: Likewise.
89395         * modules/stdbool: Likewise.
89396         * modules/stdint: Likewise.
89397         * modules/sys_select: Likewise.
89398         * modules/sys_socket: Likewise.
89399         * modules/sys_stat: Likewise.
89400         * modules/sysexits: Likewise.
89401         * modules/localcharset: Same as above, but continue using temporary
89402         file named "t-$@" (why different?) rather than the "$@-t" used
89403         everywhere else.
89405         * modules/sysexits (Makefile.am): Replace literal occurrences
89406         of "sysexit.h" more readable, and more consistent, "$@".
89408 2006-09-06  Bruno Haible  <bruno@clisp.org>
89410         * modules/striconv: New file.
89411         * modules/xstriconv: New file.
89412         * MODULES.html.sh (Internationalization functions): Add striconv,
89413         xstriconv.
89415 2006-09-06  Bruno Haible  <bruno@clisp.org>
89417         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
89418         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
89419         not using libtool correctly.
89421 2006-09-06  Bruno Haible  <bruno@clisp.org>
89423         * lib/striconv.h: New file.
89424         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
89425         iconvstring.c.
89426         * lib/xstriconv.h: New file.
89427         * lib/xstriconv.c: New file.
89429 2006-09-06  Bruno Haible  <bruno@clisp.org>
89431         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
89432         lib_..._LDFLAGS.
89434 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89436         * lib/argz_.h: Sync from Libtool.
89438         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
89439                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
89441         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
89443 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
89445         * modules/trim: New file.
89447 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
89449         * lib/trim.h: New file.
89450         * lib/trim.c: New file.
89452 2006-09-05  Bruno Haible  <bruno@clisp.org>
89454         * MODULES.html.sh (String handling): Add trim.
89456 2006-09-04  Karl Berry  <karl@gnu.org>
89458         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
89459         until next release.
89461 2006-09-03  Bruno Haible  <bruno@clisp.org>
89463         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
89464         correctly.
89466 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
89468         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
89469         not gl_GETLOADAVG.  Omit unneeded semicolons.
89470         Problems reported by Ralf Wildenhues in
89471         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
89472         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
89473         at the end, which is the usual gnulib style.
89475         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
89476         of doing all the work ourselves.
89477         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
89478         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
89480 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
89482         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
89483         Problem reported by Ralf Wildenhues in
89484         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
89486         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
89487         HAVE_STRUCT_STATFS_F_FSTYPENAME.
89489 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
89491         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
89492         yesterday's patch by changing test -n to test -z.
89494 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
89496         * modules/getloadavg (Files): Add m4/getloadavg.m4.
89497         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
89498         the former is now obsolescent.
89500         * modules/chdir-long (Depends-on): Add fcntl.
89502 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
89504         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
89505         obsolescent, and programs should use gnulib instead.
89506         * m4/getloadavg.m4: New file, with contents taken from Autoconf
89507         but with prefixes changed.
89509 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
89511         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
89512         or stdbool.h, because they might not exist while configuring.
89514         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
89515         Don't include unistd.h or limits.h; not needed, since chdir-long.h
89516         does that for us.
89517         (O_DIRECTORY): Remove.
89519 2006-08-31  Eric Blake  <ebb9@byu.net>
89521         * gnulib-tool: Don't let emacs change spaces to TAB.
89523 2006-08-31  Bruno Haible  <bruno@clisp.org>
89525         * gnulib-tool: When calling func_import more than once, do it in a
89526         subshell.
89527         Reported by Eric Blake <ebb9@byu.net>.
89529 2006-08-31  Bruno Haible  <bruno@clisp.org>
89531         * gnulib-tool (nl): Remove variable.
89532         (sed_transform_lib_file): Use more robust test for config-h module.
89533         (func_import): Fix typo in 2006-08-25 patch.
89535 2006-08-31  Bruno Haible  <bruno@clisp.org>
89537         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
89538         specified, augment Makefile.am variables instead of assigning them.
89540 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
89542         Work around a bug in both the Linux and SunOS 64-bit kernels:
89543         nanosleep mishandles sleeps for longer than 2**31 seconds.
89544         Problem reported by Frank v Waveren in
89545         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
89546         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
89547         Check for nanosleep bug.
89548         (LIB_NANOSLEEP): Append clock_gettime library if needed.
89550 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
89552         Work around a bug in both the Linux and SunOS 64-bit kernels:
89553         nanosleep mishandles sleeps for longer than 2**31 seconds.
89554         Problem reported by Frank v Waveren in
89555         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
89556         * lib/nanosleep.c (BILLION): New constant.
89557         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
89558         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
89559         implementation.
89561 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
89563         * modules/nanosleep (Depends-on): Add gettime.
89565 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
89566         and Simon Josefsson  <jas@extundo.com>
89567         and Oskar Liljeblad  <oskar@osk.mine.nu>
89569         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
89570         * gnulib-tool (func_import): New license type 'unmodifiable license
89571         text'.
89572         * modules/fdl: Use it.  Longer description.
89573         * module/gpl, module/lgpl: New files.
89575 2006-08-30  Jim Meyering  <jim@meyering.net>
89577         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
89578         shadowing the parameter.
89580 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89582         Sync from Libtool:
89584         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89586         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
89587         sharing with gnulib.  Report by Eric Blake.
89589 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
89591         * modules/isapipe: New file.
89592         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
89594 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
89596         * modules/configmake (Makefile.am): Add a comment, and omit
89597         the CONFIGMAKE_ prefix from generated macro names.  Suggested
89598         by Bruno Haible.
89600 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
89602         * m4/isapipe.m4: New file.
89604 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
89606         * lib/isapipe.c, lib/isapipe.h: New files.
89608 2006-08-29  Jim Meyering  <jim@meyering.net>
89610         * modules/configmake (Makefile.am): Make configmake.h depend on
89611         Makefile.  Otherwise, a stale configmake.h could hang around.
89613 2006-08-29  Eric Blake  <ebb9@byu.net>
89615         * lib/error.c (error_at_line, print_errno_message): Match libc, after
89616         resolution of upstream bug 3044.
89618 2006-08-29  Bruno Haible  <bruno@clisp.org>
89620         * modules/localcharset (Depends-on): Add configmake.
89621         (Makefile.am): Remove setting of LIBDIR through DEFS.
89623 2006-08-29  Bruno Haible  <bruno@clisp.org>
89625         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
89626         defined.
89628 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
89630         * modules/fcntl: New file.
89631         * modules/chdir-safer (Depends-on): Add fcntl.
89632         * modules/fts: Likewise.
89633         * modules/mkdir-p: Likewise.
89635         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
89636         This undoes the most recent change, since we're now addressing the
89637         problem in a different way.
89639         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
89640         into output, since the output might be called Makefile.am even
89641         if $makefile_name is something different.
89642         (func_import): Use $makefile_am rather than
89643         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
89644         empty.
89646         * modules/inttypes (Files): Add m4/inttypes-h.m4.
89648 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
89650         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
89651         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
89652         recent change to stdint.m4, since we're now addressing the problem in a
89653         different way.
89655 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
89657         * m4/fcntl_h.m4: New file.
89659 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
89661         * lib/fcntl_.h: New file.
89662         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
89663         the fcntl module.
89664         * lib/dirchownmod.c: Likewise.
89665         * lib/fts.c: Likewise.
89667         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
89668         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
89669         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
89670         just before including <inttypes.h>, to avoid circular inclusion.
89672 2006-08-28  Jim Meyering  <jim@meyering.net>
89674         * doc/visibility.texi: Actually read and correct the grammar of the
89675         sentence affected by yesterday's change.
89677 2006-08-28  Eric Blake  <ebb9@byu.net>
89679         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
89680         needs wrapper.
89682 2006-08-28  Eric Blake  <ebb9@byu.net>
89684         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
89686 2006-08-28  Eric Blake  <ebb9@byu.net>
89688         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
89690 2006-08-28  Bruno Haible  <bruno@clisp.org>
89692         * modules/c-strstr: New file, from GNU gettext.
89693         * MODULES.html.sh (String handling): Add c-strstr.
89695 2006-08-28  Bruno Haible  <bruno@clisp.org>
89697         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
89698         macros.
89699         Reported by Eric Blake.
89701 2006-08-28  Bruno Haible  <bruno@clisp.org>
89703         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
89704         (VASNPRINTF): Return a string of length > INT_MAX without failing.
89705         * lib/vasprintf.c: Include errno.h, limits.h.
89706         (EOVERFLOW): New fallback definition.
89707         (vasprintf): Test here whether the string length is > INT_MAX.
89708         * lib/vsnprintf.c: Include errno.h, limits.h.
89709         (EOVERFLOW): New fallback definition.
89710         (vsnprintf): Fix bug when generated string was too long for the buffer.
89711         Test here whether the string length is > INT_MAX.
89713 2006-08-28  Bruno Haible  <bruno@clisp.org>
89715         * lib/inttypes_.h (SCNX*): Remove definitions.
89716         Reported by Eric Blake.
89718 2006-08-28  Bruno Haible  <bruno@clisp.org>
89720         * lib/c-strstr.h: New file, from GNU gettext.
89721         * lib/c-strstr.c: New file, from GNU gettext.
89723 2006-08-28  Bruno Haible  <bruno@clisp.org>
89725         * gnulib-tool: Reorder some statements.
89727 2006-08-28  Bruno Haible  <bruno@clisp.org>
89729         * gnulib-tool: New option --makefile-name.
89730         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
89731         $makefile_name.
89732         (func_import): Write $makefile_name to the cache file, and read it from
89733         there unless explicitly specified. Use $makefile_name as file name
89734         instead of Makefile.am. Adjust the recommendations accordingly.
89736 2006-08-28  Bruno Haible  <bruno@clisp.org>
89738         * gnulib-tool (func_verify_module): Check against misapplying patch.
89740 2006-08-28  Bruno Haible  <bruno@clisp.org>
89742         * gnulib-tool (func_relativize, func_relconcat): New functions.
89743         Give an error if --local-dir is given with --update.
89744         Remove trailing slashes from $local_gnulib_dir.
89745         (func_import): Store the relativized $local_gnulib_dir in
89746         gnulib-cache.m4, and read it from there if not specified explicitly.
89748 2006-08-28  Bruno Haible  <bruno@clisp.org>
89750         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
89751         is the current directory. Respect also $local_gnulib_dir.
89753 2006-08-28  Bruno Haible  <bruno@clisp.org>
89754             Simon Josefsson  <jas@extundo.com>
89756         BeOS portability.
89757         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
89759 2006-08-27  Jim Meyering  <jim@meyering.net>
89761         * doc/visibility.texi: Remove duplicate word: "pointer".
89763 2006-08-26  Bruno Haible  <bruno@clisp.org>
89765         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
89766         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
89767         (Makefile.am): Create inttypes.h from inttypes_.h.
89768         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
89770         * modules/imaxabs: New file.
89772         * modules/imaxdiv: New file.
89774 2006-08-26  Bruno Haible  <bruno@clisp.org>
89776         * m4/inttypes.m4: New file.
89777         * m4/_inttypes_h.m4: Remove file.
89778         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
89779         PRI_MACROS_BROKEN.
89780         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
89782         * m4/imaxabs.m4: New file.
89784         * m4/imaxdiv.m4: New file.
89786 2006-08-26  Bruno Haible  <bruno@clisp.org>
89788         * lib/inttypes_.h: New file.
89789         * lib/inttypes.h: Remove file.
89790         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
89792         * lib/imaxabs.c: New file.
89794         * lib/imaxdiv.c: New file.
89796 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
89798         New config-h module, so that "make" output needn't be cluttered
89799         by -DHAVE_CONFIG_H.
89800         * MODULES.html.sh (Support for building libraries and executables):
89801         Add config-h.
89802         * modules/config-h: New file.
89803         * gnulib-tool (nl, sed_transform_lib_file): New vars.
89804         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
89805         the config-h module is used.
89807         New configmake module, so that "make" output needn't be cluttered
89808         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
89809         * MODULES.html.sh (Support for building libraries and executables):
89810         Add configmake.
89811         * modules/configmake: New file.
89813 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
89815         * m4/config-h.m4: New file.
89817 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
89819         * config/srclist.txt: Add elisp-comp.
89821 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
89823         * MODULES.html.sh (Support for building libraries and executables):
89824         Add elisp-comp.
89825         * build-aux/elisp-comp: New file.
89826         * modules/elisp-comp: New file.
89828 2006-08-24  Bruno Haible  <bruno@clisp.org>
89830         * gnulib-tool (func_create_testdir): Use non-default values of
89831         sourcebase and m4base.
89833 2006-08-24  Bruno Haible  <bruno@clisp.org>
89835         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
89836         HTML structure.
89838 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
89840         * modules/openat (Depends-on): Add lchown.
89842 2006-08-23  Bruno Haible  <bruno@clisp.org>
89844         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
89845         of gl_LOCK_EARLY instead of gl_LOCK.
89847 2006-08-23  Bruno Haible  <bruno@clisp.org>
89849         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
89850         on OSF/1 to no.
89851         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
89853 2006-08-23  Bruno Haible  <bruno@clisp.org>
89855         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
89856         as unusable.
89858         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
89859         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
89860         (gl_LOCK): New macro.
89862 2006-08-22  Simon Josefsson  <jas@extundo.com>
89864         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
89865         to md5 module.
89867 2006-08-22  Simon Josefsson  <jas@extundo.com>
89869         * MODULES.html.sh: Add "Support for maintaining and release
89870         projects".
89872         * build-aux/gnupload: New file, from coreutils.
89874 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
89876         Avoid the need for AC_LIBSOURCES in m4 macros.
89877         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
89878         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
89879         * modules/check-version (EXTRA_DIST): Add check-version.h.
89880         * modules/crc (EXTRA_DIST): Add crc.h.
89881         * modules/des (EXTRA_DIST): Add des.h.
89882         * modules/gc (EXTRA_DIST): Add gc.h.
89883         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
89884         * modules/getline (EXTRA_DIST): Add getline.h.
89885         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
89886         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
89887         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
89888         * modules/md2 (EXTRA_DIST): Add md2.h.
89889         * modules/md4 (EXTRA_DIST): Add md4.h.
89890         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
89891         * modules/read-file (EXTRA_DIST): Add read-file.h.
89892         * modules/readline (EXTRA_DIST): Add readline.h.
89893         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
89894         rijndael-api-fst.h.
89896 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
89898         * m4/rijndael.m4 (gl_ARCFOUR):
89899         * m4/arctwo.m4 (gl_ARCTWO):
89900         * m4/check-version.m4 (gl_CHECK_VERSION):
89901         * m4/crc.m4 (gl_CRC):
89902         * m4/des.m4 (gl_DES):
89903         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
89904         * m4/gc.m4 (gl_GC):
89905         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
89906         * m4/getline.m4 (gl_FUNC_GETLINE):
89907         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
89908         * m4/hmac-md5.m4 (gl_HMAC_MD5):
89909         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
89910         * m4/md2.m4 (gl_MD2):
89911         * m4/md4.m4 (gl_MD4):
89912         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
89913         * m4/read-file.m4 (gl_FUNC_READ_FILE):
89914         * m4/readline.m4 (gl_FUNC_READLINE):
89915         * m4/rijndael.m4 (gl_RIJNDAEL):
89916         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
89917         to get the necessary .h files and whatnot.
89919 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
89921         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
89922         gnulib rather than the other way around.
89923         * config/srclistvars.sh (COREUTILS): Remove.
89925 2006-08-22  Jim Meyering  <jim@meyering.net>
89927         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
89929         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
89931 2006-08-22  Eric Blake  <ebb9@byu.net>
89933         * modules/regexprops-generic: New file.
89934         * MODULES.html.sh (Support for building documentation): List it.
89936 2006-08-22  Eric Blake  <ebb9@byu.net>
89938         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
89939         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
89940         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
89941         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
89943 2006-08-22  Bruno Haible  <bruno@clisp.org>
89945         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
89946         and lib_LTLIBRARIES like the other lib_* variables.
89948 2006-08-22  Bruno Haible  <bruno@clisp.org>
89950         * build-aux/x-to-1.in: New file, from GNU gettext.
89952 2006-08-22  Bruno Haible  <bruno@clisp.org>
89954         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
89955         <utmpx.h> exists.
89957 2006-08-22  Bruno Haible  <bruno@clisp.org>
89959         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
89960         <utmpx.h> exists.
89962 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
89964         BeOS portability.
89965         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
89966         exist.
89967         Problem reported by Bruno Haible.
89969 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
89971         Avoid the need for AC_LIBSOURCES in m4 macros.
89972         * modules/acl (EXTRA_DIST): Add acl.h.
89973         * modules/argmatch (Files): Add m4/argmatch.m4.
89974         (configure.ac): Add gl_ARGMATCH.
89975         (EXTRA_DIST): Renamed from lib_SOURCES, for
89976         consistency with the other modules.  Remove argmatch.c.
89977         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
89978         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
89979         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
89980         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
89981         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
89982         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
89983         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
89984         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
89985         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
89986         * modules/closeout (EXTRA_DIST): Add closeout.h.
89987         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
89988         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
89989         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
89990         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
89991         dirname.h; remove basename.c and stripslash.c.
89992         * modules/exclude (EXTRA_DIST): Add exclude.h.
89993         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
89994         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
89995         * modules/file-type (EXTRA_DIST): Add file-type.h.
89996         * modules/filemode (EXTRA_DIST): Add filemode.h.
89997         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
89998         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
89999         * modules/fpending (EXTRA_DIST): Add __fpending.h.
90000         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
90001         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
90002         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
90003         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
90004         * modules/getdate (EXTRA_DIST): Add getdate.c.
90005         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
90006         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
90007         * modules/getpass (EXTRA_DIST): Add getpass.h.
90008         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
90009         * modules/group-member (EXTRA_DIST): Add group-member.h.
90010         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
90011         * modules/hash (EXTRA_DIST): Add hash.h.
90012         * modules/human (EXTRA_DIST): Add human.h.
90013         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
90014         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
90015         * modules/lchown (EXTRA_DIST): Add lchown.h.
90016         * modules/long-options (EXTRA_DIST): Add long-options.h.
90017         * modules/lstat (EXTRA_DIST): Add lstat.h.
90018         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
90019         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
90020         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
90021         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
90022         * modules/memxor (EXTRA_DIST): Add memxor.h.
90023         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
90024         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
90025         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
90026         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
90027         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
90028         * modules/physmem (EXTRA_DIST): Add physmem.h.
90029         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
90030         * modules/posixver (EXTRA_DIST): Add posixver.h.
90031         * modules/quote (EXTRA_DIST): Add quote.h.
90032         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
90033         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
90034         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
90035         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
90036         regex_internal.h regexec.c.
90037         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
90038         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
90039         * modules/same (EXTRA_DIST): Add same.h.
90040         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
90041         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
90042         * modules/savedir (EXTRA_DIST): Add savedir.h.
90043         * modules/sha1 (EXTRA_DIST): Add sha1.h.
90044         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
90045         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
90046         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
90047         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
90048         * modules/strdup (EXTRA_DIST): Add strdup.h.
90049         * modules/strftime (EXTRA_DIST): Add strftime.h.
90050         * modules/strndup (EXTRA_DIST): Add strndup.h.
90051         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
90052         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
90053         * modules/time_r (EXTRA_DIST): Add time_r.h.
90054         * modules/timespec (EXTRA_DIST): Add timespec.h.
90055         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
90056         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
90057         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
90058         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
90059         * modules/userspec (EXTRA_DIST): Add userspec.h.
90060         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
90061         * modules/utimens (EXTRA_DIST): Add utimens.h.
90062         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
90063         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
90064         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
90065         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
90066         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
90067         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
90068         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
90069         * modules/yesno (EXTRA_DIST): Add yesno.h.
90071 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
90073         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
90075         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
90076         * m4/dev-ino.m4, same-inode.m4: Remove.
90078         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
90079         * m4/acl.m4 (AC_FUNC_ACL):
90080         * m4/backupfile.m4 (gl_BACKUPFILE):
90081         * m4/c-strtod.m4 (gl_C99_STRTOLD):
90082         * m4/canon-host.m4 (gl_CANON_HOST):
90083         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
90084         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
90085         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
90086         * m4/cloexec.m4 (gl_CLOEXEC):
90087         * m4/close-stream.m4 (gl_CLOSE_STREAM):
90088         * m4/closeout.m4 (gl_CLOSEOUT):
90089         * m4/dirfd.m4 (gl_FUNC_DIRFD):
90090         * m4/dirname.m4 (gl_DIRNAME):
90091         * m4/exclude.m4 (gl_EXCLUDE):
90092         * m4/exitfail.m4 (gl_EXITFAIL):
90093         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
90094         * m4/file-type.m4 (gl_FILE_TYPE):
90095         * m4/filemode.m4 (gl_FILEMODE):
90096         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
90097         * m4/fpending.m4 (gl_FUNC_FPENDING):
90098         * m4/fprintftime.m4 (gl_FPRINTFTIME):
90099         * m4/fts.m4 (gl_FUNC_FTS):
90100         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
90101         * m4/getdate.m4 (gl_GETDATE):
90102         * m4/gethrxtime.m4 (gl_GETHRXTIME):
90103         * m4/getpagesize.m4 (gl_GETPAGESIZE):
90104         * m4/getpass.m4 (gl_FUNC_GETPASS):
90105         * m4/gettime.m4 (gl_GETTIME):
90106         * m4/getugroups.m4 (gl_GETUGROUPS):
90107         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
90108         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
90109         * m4/hard-locale.m4 (gl_HARD_LOCALE):
90110         * m4/hash.m4 (gl_HASH):
90111         * m4/idcache.m4 (gl_IDCACHE):
90112         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
90113         * m4/lchown.m4 (gl_FUNC_LCHOWN):
90114         * m4/long-options.m4 (gl_LONG_OPTIONS):
90115         * m4/lstat.m4 (gl_FUNC_LSTAT):
90116         * m4/md5.m4 (gl_MD5):
90117         * m4/memcasecmp.m4 (gl_MEMCASECMP):
90118         * m4/memcoll.m4 (gl_MEMCOLL):
90119         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
90120         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
90121         * m4/memxor.m4 (gl_MEMXOR):
90122         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
90123         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
90124         * m4/modechange.m4 (gl_MODECHANGE):
90125         * m4/mountlist.m4 (gl_MOUNTLIST):
90126         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
90127         * m4/openat.m4 (gl_FUNC_OPENAT):
90128         * m4/pathmax.m4 (gl_PATHMAX):
90129         * m4/physmem.m4 (gl_PHYSMEM):
90130         * m4/posixtm.m4 (gl_POSIXTM):
90131         * m4/posixver.m4 (gl_POSIXVER):
90132         * m4/quote.m4 (gl_QUOTE):
90133         * m4/quotearg.m4 (gl_QUOTEARG):
90134         * m4/readtokens.m4 (gl_READTOKENS):
90135         * m4/readutmp.m4 (gl_READUTMP):
90136         * m4/regex.m4 (gl_REGEX):
90137         * m4/safe-read.m4 (gl_SAFE_READ):
90138         * m4/safe-write.m4 (gl_SAFE_WRITE):
90139         * m4/same.m4 (gl_SAME):
90140         * m4/save-cwd.m4 (gl_SAVE_CWD):
90141         * m4/savedir.m4 (gl_SAVEDIR):
90142         * m4/settime.m4 (gl_SETTIME):
90143         * m4/sha1.m4 (gl_SHA1):
90144         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
90145         * m4/stat-macros.m4 (gl_STAT_MACROS):
90146         * m4/stat-time.m4 (gl_STAT_TIME):
90147         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
90148         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
90149         * m4/strdup.m4 (gl_FUNC_STRDUP):
90150         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
90151         * m4/strndup.m4 (gl_FUNC_STRNDUP):
90152         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
90153         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
90154         * m4/time_r.m4 (gl_TIME_R):
90155         * m4/timespec.m4 (gl_TIMESPEC):
90156         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
90157         * m4/unlinkdir.m4 (gl_UNLINKDIR):
90158         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
90159         * m4/userspec.m4 (gl_USERSPEC):
90160         * m4/utimecmp.m4 (gl_UTIMECMP):
90161         * m4/utimens.m4 (gl_UTIMENS):
90162         * m4/xalloc.m4 (gl_XALLOC):
90163         * m4/xgetcwd.m4 (gl_XGETCWD):
90164         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
90165         * m4/xreadlink.m4 (gl_XREADLINK):
90166         * m4/xstrtod.m4 (gl_XSTRTOD):
90167         * m4/yesno.m4 (gl_YESNO):
90168         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
90169         to get the necessary .h files and whatnot.
90171 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
90172             Bruno Haible  <bruno@clisp.org>
90174         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
90175         /bin/sh understanding of '!' conditional negation.
90177 2006-08-21  Jim Meyering  <jim@meyering.net>
90179         * modules/openat (Depends-on): Really alphabetize.
90181         * modules/acl (Depends-on): Add error and quote.
90183         * check-module (find_included_lib_files): Add at-func.c to the
90184         ok-to-include-more-than-once white list.
90186         * modules/openat (Depends-on): Add lstat.  Alphabetize.
90188 2006-08-21  Bruno Haible  <bruno@clisp.org>
90190         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
90191         Emit a pkgdata_DATA variable only if some snippets add contents to it.
90192         Reported by Martin Lambers <marlam@marlam.de>.
90194 2006-08-21  Bruno Haible  <bruno@clisp.org>
90196         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
90197         specify an installation location, don't emit a noinst_LIBRARIES or
90198         noinst_LTLIBRARIES assignment.
90200 2006-08-21  Bruno Haible  <bruno@clisp.org>
90202         BeOS portability.
90203         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
90204         BeOS has mbrtowc() but no <wctype.h>.
90206 2006-08-21  Bruno Haible  <bruno@clisp.org>
90208         BeOS portability.
90209         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
90210         exist.
90212 2006-08-21  Bruno Haible  <bruno@clisp.org>
90214         BeOS portability.
90215         * lib/mbchar.h: Include <wctype.h> only if it exists.
90217 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
90219         Remove files that are no longer needed by their respective modules.
90220         * m4/obstack.m4: Remove.
90221         * m4/strerror_r.m4: Remove.
90222         * m4/uint32_t.m4: Remove.
90223         * m4/uintptr_t.m4: Remove.
90224         * m4/ullong_max.m4: Remove.
90225         * m4/xstrtoimax.m4: Remove.
90226         * m4/xstrtoumax.m4: Remove.
90228         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
90229         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
90230         dependencies now capture this.
90232         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
90233         Do not use AC_LIBSOURCES, since gnulib modules now do this.
90234         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
90235         * m4/human.m4 (gl_HUMAN): Likewise.
90236         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
90237         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
90239         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
90241         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
90242         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
90243         stdint.
90244         * m4/human.m4 (gl_HUMAN): Likewise.
90245         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
90246         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
90247         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
90248         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
90249         * m4/xstrtol (gl_XSTRTOL): Likewise.
90251         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
90252         AC_TYPE_LONG_LONG_INT.
90253         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
90254         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
90255         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
90256         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
90258         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
90259         on stdbool.
90261         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
90262         (gl_PREREQ_XSTRTOUL): Remove.
90264         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
90266         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
90267         mode.
90269 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
90271         Add and change modules to make it easier for coreutils to use
90272         gnulib-tool.
90273         * modules/backupfile (Files): Remove m4/d-ino.m4.
90274         (Depends-on): Add d-ino.
90275         * modules/cycle-check (Depends-on): Add stdint.
90276         (lib_SOURCES): Add cycle-check.h.
90277         * modules/d-ino: New module.
90278         * modules/d-type: New module.
90279         * modules/error (Files): Remove m4/strerror_r.m4.
90280         * modules/filemode (Files): Add m4/st_dm_mode.m4.
90281         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
90282         m4/inttypes_h.m4, m4/uintmax_t.m4.
90283         (Depends-on): Add stdint.
90284         (lib_SOURCES): Add fsusage.h.
90285         * modules/getcwd (Files): Remove d-ino.m4.
90286         (Depends-on): Add d-ino.
90287         * modules/getndelim2 (Depends-on): Add stdint.
90288         * modules/glob (Files): Remove m4/d-type.m4.
90289         (Depends-on): Add d-type.
90290         * modules/host-os: New module.
90291         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
90292         m4/inttypes_h.m4, m4/uintmax_t.m4.
90293         * Depends-on: Add stdint.
90294         (lib_SOURCES): Add human.h.
90295         * modules/inttostr (Files): Remove m4/intmax_t.m4,
90296         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
90297         m4/uintmax_t.m4, m4/ulonglong.m4.
90298         (Depends-on): Add stdint.
90299         (EXTRA_DIST): Add inttostr.h.
90300         * modules/lchmod: New module.
90301         * modules/link-follow: New module.
90302         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
90303         (Depends-on): Add lchmod.
90304         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
90305         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
90306         (Depends-on): Add stdint.
90307         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
90308         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
90309         (Depends-on): Add stdint.
90310         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
90311         * modules/perl: New module.
90312         * modules/regex (Depends-on): Add stdint.
90313         * modules/rmdir-errno: New module.
90314         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
90315         m4/intmax_t.m4.
90316         (Depends-on): Add stdint.
90317         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
90318         m4/uintmax_t.m4.
90319         (Depends-on): Add stdint.
90320         * modules/unlink-busy: New module.
90321         * modules/utimecmp (Depends-on): Add stdint.
90322         * modules/uptime: New module.
90323         * modules/winsz-ioctl: New module.
90324         * modules/winsz-termios: New module.
90325         * modules/xnanosleep (Depends-on): Add nanosleep.
90326         * modules/ullong_max: Remove.
90327         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
90328         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
90329         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
90330         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
90331         (Depends-on): Add inttypes.
90332         (lib_SOURCES): Add xstrtol.h.
90333         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
90334         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
90335         * MODULES.html.sh: Move 'assert' into the assert section.
90336         Move 'dummy' into the linking section.
90337         Remove ullong_max.
90338         Add section for compatibility checks for POSIX:2001 functions,
90339         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
90340         winsz-ioctl, and winsz-termios into it.
90341         Add lchmod.
90342         Add top-level Misc section and put host-os, perl, and uptime
90343         into it.
90345 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
90347         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
90348         now assume the stdint module.  Do not include inttypes.h.
90349         * lib/fsusage.h: Likewise.
90350         * lib/getndelim2.c: Likewise.
90351         * lib/human.h: Likewise.
90352         * lib/inttostr.h: Likewise.
90353         * lib/obstack.c: Likewise.
90354         * lib/regex_internal.h: Likewise.
90355         * lib/tempname.c: Likewise.
90356         * lib/utimecmp.c: Likewise.
90357         * lib/xstrtol.h: Likewise.
90359         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
90361         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
90362         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
90363         * lib/xtime.h: Likewise.
90365 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90367         * modules/openat (Files): Add lib/fchmodat.c.
90368         Fixes problem reported by Jay Youngman.
90370 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90372         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
90373         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
90375 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
90376             Bruno Haible  <bruno@clisp.org>
90378         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
90379         and is a script that invokes bison. Tighten the code. Add comments.
90381 2006-08-18  Jim Meyering  <jim@meyering.net>
90383         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
90384         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
90385         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
90386         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
90388 2006-08-18  Bruno Haible  <bruno@clisp.org>
90390         * modules/bison-i18n: New file.
90391         * MODULES.html.sh (Internationalization functions): Add it.
90393 2006-08-18  Bruno Haible  <bruno@clisp.org>
90395         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
90396         sys/statvfs.h. When getmntinfo was found, check its declaration and
90397         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
90399 2006-08-18  Bruno Haible  <bruno@clisp.org>
90401         * m4/bison-i18n.m4: New file, from bison.
90403 2006-08-18  Bruno Haible  <bruno@clisp.org>
90405         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
90406         (ME_DUMMY): Treat "kernfs" as a dummy.
90407         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
90409 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90411         Update from coreutils.
90413         2006-08-15  Jim Meyering  <jim@meyering.net>
90415         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
90417         2006-01-17  Jim Meyering  <jim@meyering.net>
90419         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
90421         2006-01-11  Jim Meyering  <jim@meyering.net>
90423         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
90424         Check for the lchmod function.
90426 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90428         Update from coreutils.
90430         * lib/__fpending.h: Add copyright notice.
90431         * lib/fprintftime.h: Likewise.
90432         * lib/savedir.c: Use (C) in copyright notice.
90433         * lib/savedir.h: Likewise.
90435         2006-08-15  Jim Meyering  <jim@meyering.net>
90437         * lib/at-func.c: New file, with the logic of all emulated at-functions.
90438         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
90439         in support of the EXPECTED_ERRNO macro.
90440         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
90441         definitions.  Instead, define the appropriate symbols and include
90442         "at-func.c".
90443         * lib/mkdirat.c (mkdirat): Likewise.
90444         * lib/fchmodat.c (fchmodat): Likewise.
90445         (ENOSYS): Remove definition.
90446         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
90447         it.  Don't include "unistd--.h" -- it wasn't ever used.
90449         2006-01-17  Jim Meyering  <jim@meyering.net>
90451         Rewrite fts.c not to change the current working directory,
90452         by using openat, fstatat, fdopendir, etc..
90454         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
90455         (HAVE_OPENAT_SUPPORT): Define.
90456         [_LIBC] (fchdir): Don't undef or define; no longer used.
90457         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
90458         Now, this `function' always succeeds, and consumes its file descriptor
90459         parameter -- so callers must not close such FDs.  Update callers.
90460         (diropen_fd, opendirat, cwd_advance_fd): New functions.
90461         (diropen): Add parameter, SP.  Adjust all callers.
90462         Implement using diropen_fd, rather than open.
90463         (fts_open): Initialize new member, fts_cwd_fd.
90464         Remove fts_rft-setting code.
90465         (fts_close): Close fts_cwd_fd, if necessary.
90466         (__opendir2): Define in terms of opendir or opendirat,
90467         depending on whether the FST_NOCHDIR flag is set.
90468         (fts_build): Since fts_safe_changedir consumes its FD, and since
90469         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
90470         and close the dup'd file descriptor upon failure.
90471         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
90472         (fts_safe_changedir): Tweak semantics to reflect that this function
90473         now calls cwd_advance_fd and hence consumes its FD argument.
90474         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
90475         [struct FTS] (fts_rft): Remove now-unused member.
90476         [struct FTS] (fts_cycle.state): Improve comment.
90478         * lib/openat.c (openat_needs_fchdir): New function.
90479         * lib/openat.h (openat_needs_fchdir): Declare it.
90481 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
90483         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
90484         Problem and fix reported by Pádraig Brady in
90485         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
90487 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
90489         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
90491 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
90493         * lib/memcoll.c (memcoll): Optimize for the common case where the
90494         arguments are bytewise equal.
90496 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
90498         * doc/regexprops-generic.texi: Add a copyright notice.
90500 2006-08-15  Bruno Haible  <bruno@clisp.org>
90502         * modules/tmpdir (License): Change to LGPL.
90504 2006-08-15  Bruno Haible  <bruno@clisp.org>
90506         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
90507         module.
90509 2006-08-14  Simon Josefsson  <jas@extundo.com>
90511         * config/srclist.txt: Add gnupload.
90513 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
90515         Change copyright notice from LGPL 2 to GPL 2, since that's the
90516         standard form used in the gnulib repository.
90517         * tests/test-lock.c: Likewise.
90518         * tests/test-stdint.c: Likewise.
90519         * tests/test-tls.c: Likewise.
90521         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
90522         prelude-manager.  User shorter URLs for GNU projects, without '?'.
90523         Add copyright notice.
90525         * check-module: Add copyright notice.  Output a copyright
90526         notice if "--version" is specified.
90527         * modules/COPYING: New file.
90528         * tests/test-getaddrinfo.c: Add copyright notice.
90529         * tests/test-verify.c: Likewise.
90531 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
90533         Change copyright notice from LGPL 2 to GPL 2, since that's the
90534         standard form used in the gnulib repository.
90535         * lib/lock.c: LGPL -> GPL.
90536         * lib/lock.h: Likewise.
90537         * lib/strnlen1.c: Likewise.
90538         * lib/strnlen1.h: Likewise.
90539         * lib/tls.c: Likewise.
90540         * lib/tls.h: Likewise.
90541         * lib/tmpdir.c: Likewise.
90543         * lib/TODO: Remove; this belongs only in coreutils.
90545 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
90547         Add copyright notices to long-enough files that lack them, since
90548         otherwise the files aren't clearly free.  Use the same notice that
90549         getdate.texi already uses.
90550         * doc/alloca-opt.texi: Add copyright notice.
90551         * doc/alloca.texi: Likewise.
90552         * doc/ctime.texi: Likewise.
90553         * doc/functions.texi: Likewise.
90554         * doc/gcd.texi: Likewise.
90555         * doc/gnulib-tool.texi: Likewise.
90556         * doc/inet_ntoa.texi: Likewise.
90557         * doc/visibility.texi: Likewise.
90559         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
90560         * doc/quote.texi: Add copyright notice.
90562         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
90563         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
90564         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
90565         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
90566         is now obsolete, and give a pointer to the Sun list.
90567         Add copyright notice.
90569 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
90571         * config/srclistvars.sh: Add copyright notice.
90573 2006-08-14  Eric Blake  <ebb9@byu.net>
90575         Import the following change from libc:
90577         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
90579         Upstream bug 2997.
90580         * lib/misc/error.c: Add space between program name and message if file
90581         name is missing.
90583 2006-08-12  Karl Berry  <karl@gnu.org>
90585         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
90586         remove, these originate in gnulib now.
90588 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90590         * doc/Makefile (standards.info standards.html standards.dvi):
90591         Also depend on make-stds.texi.
90593 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90595         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
90596         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
90598         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
90599         in wchar_t.  Problem reported by Eric Blake.
90601         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
90602         LEN is smaller than SIZE.  Suggested by Bruno Haible.
90603         Also, help the compiler to keep LEN in a register.
90605 2006-08-11  Eric Blake  <ebb9@byu.net>
90607         * users.txt: Sort.  Add tar.
90609 2006-08-11  Bruno Haible  <bruno@clisp.org>
90611         * users.txt: New file.
90613 2006-08-11  Bruno Haible  <bruno@clisp.org>
90615         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
90616         before <wchar.h>. Needed for OSF/1 and BSD/OS.
90618 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
90620         * modules/snprintf (Depends-on): Remove minmax.
90621         (Maintainer): Add self and Bruno.
90623 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
90625         * lib/.cppi-disable: Add snprintf.h, socket_.h.
90626         * lib/snprintf.c: Include <errno.h> and <limits.h>.
90627         (EOVERFLOW): Define if the system does not.
90628         Do not include "minmax.h"; it wasn't used.
90629         (snprintf): Don't assume size_t promotes to an unsigned type.
90630         Fix bug when generated string was too long for the buffer: the
90631         buffer's contents are supposed to be the initial prefix of the
90632         output.  Don't assume vasnprintf returns EOVERFLOW if the size
90633         exceeds INT_MAX; do the check ourselves.
90635         Import the following changes from libc:
90637         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
90639         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
90640         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
90641         set wc to the byte which couldn't be converted.
90642         (re_string_reconstruct): Don't clear valid_raw_len before calling
90643         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
90644         tip_context using re_string_context_at.
90646         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
90648         * lib/posix/regex.h: g++ still cannot handled [restrict].
90650         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
90652         * lib/posix/regex.h: Remove special handling for VMS.
90654 2006-08-10  Jim Meyering  <jim@meyering.net>
90656         * modules/same-inode: New module.
90657         * modules/dev-ino: New module.
90658         * modules/cycle-check: Depend on these modules, rather than simply
90659         including their .h files.
90660         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
90661         required via m4/cycle-check.m4.
90662         * modules/same: Depend on new same-inode module, rather than
90663         including same-inode.h.
90664         * modules/chdir-safer: New file.
90666         * modules/chown (Depends-on): Add stat-macros.
90668 2006-08-10  Jim Meyering  <jim@meyering.net>
90670         * m4/cycle-check.m4: New file.
90671         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
90672         * m4/dev-ino.m4, m4/same-inode.m4: New files.
90674 2006-08-10  Eric Blake  <ebb9@byu.net>
90676         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
90677         in from original proposal.
90679 2006-08-10  Eric Blake  <ebb9@byu.net>
90680         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
90682         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
90683         namespace.
90685 2006-08-10  Bruno Haible  <bruno@clisp.org>
90687         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
90688         as well.
90690 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90692         Sync from coreutils.
90694         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
90696         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
90697         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
90699 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90701         * modules/restrict: Remove; no longer needed now that we assume
90702         Autoconf 2.59 or later.
90703         * MODULES.html.sh: Remove 'restrict'.
90704         * modules/argp (Depends-on): Remove 'restrict'.
90705         * modules/base64 (Depends-on): Likewise.
90706         * modules/gc (Depends-on): Likewise.
90707         * modules/getaddrinfo (Depends-on): Likewise.
90708         * modules/glob (Depends-on): Likewise.
90709         * modules/inet_ntop (Depends-on): Likewise.
90710         * modules/inet_pton (Depends-on): Likewise.
90711         * modules/memxor (Depends-on): Likewise.
90712         * modules/regex (Depends-on): Likewise.
90713         * modules/strtok_r (Depends-on): Likewise.
90714         * modules/time_r (Depends-on): Likewise.
90716 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90718         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
90719         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
90720         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
90721         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
90722         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
90723         * m4/memxor.m4 (gl_MEMXOR): Likewise.
90724         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
90725         gl_C_RESTRICT replaced by AC_C_RESTRICT.
90727         Merge from coreutils.
90728         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
90729         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
90730         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
90731         * m4/time_r.m4 (gl_TIME_R): Likewise.
90733 2006-08-09  Karl Berry  <karl@gnu.org>
90735         * config/srclist.txt: no more gettext-tools, per Bruno.
90737 2006-08-08  Eric Blake  <ebb9@byu.net>
90739         * modules/verror: New module.
90740         * MODULES.html.sh: Document it.
90742 2006-08-08  Eric Blake  <ebb9@byu.net>
90744         * lib/verror.h, lib/verror.c: New files.
90746 2006-08-08  Eric Blake  <ebb9@byu.net>
90748         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
90749         verror_at_line output complies with GNU Coding Standards even when
90750         file is NULL.
90752 2006-08-07  Bruno Haible  <bruno@clisp.org>
90754         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
90755         versions of AIX.
90756         Reported by Ralf Wildenhues.
90758 2006-08-07  Bruno Haible  <bruno@clisp.org>
90760         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
90761         in an AC_DEFUN. Needed so that the autoconf snippets can use
90762         AC_REQUIRE.
90764 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90766         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
90767         Initialize pkgdata_DATA.
90768         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
90769         overriding it.
90771 2006-08-06  Eric Blake  <ebb9@byu.net>
90773         * lib/error.h: Fold in some upstream changes from glibc.
90774         * lib/error.c: Likewise.
90776 2006-08-04  Bruno Haible  <bruno@clisp.org>
90778         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
90779         Make the mostlyclean-local rule depend on mostlyclean-generic.
90780         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
90782 2006-07-31  Bruno Haible  <bruno@clisp.org>
90784         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
90785         <stdlib.h>, <string.h>.
90787 2006-07-30  Bruno Haible  <bruno@clisp.org>
90789         * modules/readlink (License): Change to LGPL.
90791 2006-07-30  Bruno Haible  <bruno@clisp.org>
90793         * modules/javaversion (Makefile.am): Distribute javaversion.java and
90794         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
90795         set PKGDATADIR to point to it.
90797 2006-07-30  Bruno Haible  <bruno@clisp.org>
90799         * modules/csharpexec (configure.ac): Comment out macro invocation.
90800         * modules/javaexec (configure.ac): Likewise.
90801         * modules/javacomp-script (configure.ac): Likewise.
90803         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
90805 2006-07-30  Bruno Haible  <bruno@clisp.org>
90807         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
90808         linked-list.
90810 2006-07-30  Bruno Haible  <bruno@clisp.org>
90812         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
90814 2006-07-30  Bruno Haible  <bruno@clisp.org>
90816         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
90817         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
90818         get removed.
90820 2006-07-29  Bruno Haible  <bruno@clisp.org>
90822         Make it possible for gnulib-tool to work with locally modified or
90823         augmented gnulib repositories.
90824         * gnulib-tool (func_usage): Document --local-dir option.
90825         (local_gnulib_dir): New variable.
90826         Handle --local-dir option.
90827         (func_lookup_file): New function.
90828         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
90829         (func_get_description, func_get_filelist, func_get_description,
90830         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
90831         func_get_automake_snippet, func_get_include_directive,
90832         func_get_license, func_get_maintainer): Use func_lookup_file.
90833         (func_import, func_create_testdir): Use func_lookup_file.
90835 2006-07-29  Bruno Haible  <bruno@clisp.org>
90837         * modules/setenv (Depends-on): Add unistd.
90839 2006-07-29  Bruno Haible  <bruno@clisp.org>
90841         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
90843 2006-07-29  Bruno Haible  <bruno@clisp.org>
90845         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
90847 2006-07-29  Bruno Haible  <bruno@clisp.org>
90849         * gnulib-tool (import, update): If there is no Makefile.am, look at
90850         aclocal.m4, instead of bailing out.
90852 2006-07-29  Bruno Haible  <bruno@clisp.org>
90854         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
90855         Categorize the options by when they are useful.
90857 2006-07-29  Bruno Haible  <bruno@clisp.org>
90859         * gnulib-tool (func_usage): Document option --no-libtool.
90860         Handle option --no-libtool.
90861         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
90862         for changed semantics of $libtool variable.
90863         (func_import): Likewise. If libtool is not used, show this through
90864         an option --no-libtool.
90865         (func_create_testdir): Update.
90867 2006-07-29  Bruno Haible  <bruno@clisp.org>
90869         * gnulib-tool (func_import): Extend error message about missing
90870         --doc-base.
90872 2006-07-29  Bruno Haible  <bruno@clisp.org>
90874         * gnulib-tool (func_import): Don't create the $docbase directory if
90875         there is no file to store there.
90877 2006-07-29  Bruno Haible  <bruno@clisp.org>
90879         * gnulib-tool (autoconf_minversion): If a --dir option is given and
90880         relevant, look for configure.ac there, not in the current directory.
90881         Also use a simple search for AC_PREREQ, not "autoconf --trace".
90883 2006-07-29  Bruno Haible  <bruno@clisp.org>
90885         * gnulib-tool (SORT): New variable.
90886         (func_usage): Undocument --assume-autoconf option.
90887         Remove --assume-autoconf option handling.
90888         (autoconf_minversion): Determine from the contents of configure.ac.
90889         (func_import): Remove autoconf_minversion handling.
90890         Suggested by Eric Blake.
90892 2006-07-29  Bruno Haible  <bruno@clisp.org>
90894         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
90896 2006-07-29  Bruno Haible  <bruno@clisp.org>
90898         * config/srclist.txt (*setenv.[ch]): Remove rules.
90900 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90902         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
90904 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90906         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
90907         arpa/inet.h.
90909 2006-07-28  Simon Josefsson  <jas@extundo.com>
90911         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
90912         * modules/inet_pton (Depends-on): Likewise.
90914 2006-07-28  Simon Josefsson  <jas@extundo.com>
90916         * m4/netinet_in_h.m4: New file.
90918 2006-07-28  Simon Josefsson  <jas@extundo.com>
90920         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
90921         #include's.
90923 2006-07-28  Simon Josefsson  <jas@extundo.com>
90925         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
90926         #include's.
90928 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
90930         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
90931         setgid on directories only if they set these bits.
90932         * lib/modechange.h: Remove obsolete comment about masks.
90934 2006-07-28  Eric Blake  <ebb9@byu.net>
90936         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
90937         macro expansion.
90939 2006-07-28  Bruno Haible  <bruno@clisp.org>
90941         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
90943 2006-07-28  Bruno Haible  <bruno@clisp.org>
90945         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
90947 2006-07-28  Bruno Haible  <bruno@clisp.org>
90949         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
90950         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
90951         Define fallbacks.
90952         Avoids link error on FreeBSD 4.x.
90953         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90955         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
90956         encoding.
90957         * lib/mbswidth.c (iswcntrl): Likewise.
90959 2006-07-27  Bruno Haible  <bruno@clisp.org>
90961         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
90962         test.
90964 2006-07-27  Bruno Haible  <bruno@clisp.org>
90966         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
90967         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
90968         defined.
90970 2006-07-26  Eric Blake  <ebb9@byu.net>
90972         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
90974 2006-07-26  Eric Blake  <ebb9@byu.net>
90976         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
90977         like mingw that lack mkstemp.
90978         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
90979         avoid compilation warning on mingw.
90981 2006-07-26  Bruno Haible  <bruno@clisp.org>
90983         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
90984         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
90985         INT_FAST*_MIN, INTPTR_MIN.
90987 2006-07-25  Bruno Haible  <bruno@clisp.org>
90989         * modules/version-etc (Depends-on): Add stdarg.
90991 2006-07-25  Bruno Haible  <bruno@clisp.org>
90993         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
90994         complex commands.
90996 2006-07-25  Bruno Haible  <bruno@clisp.org>
90998         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
90999         defined in <stdarg.h> or config.h.
91001 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
91003         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
91004         (gl_STDIO_SAFER): Remove.
91006 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
91008         * MODULES.html.sh (File stream based Input/Output):
91009         Add fopen-safer, tmpfile-safer; remove stdio-safer.
91010         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
91011         * modules/fopen-safer, modules/tmpfile-safer: New files.
91012         * modules/stdio-safer: Remove.
91014 2006-07-24  Bruno Haible  <bruno@clisp.org>
91016         * modules/tmpdir: New file.
91017         * MODULES.html.sh (File system functions): Add it.
91019 2006-07-24  Bruno Haible  <bruno@clisp.org>
91021         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
91022         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
91024 2006-07-24  Bruno Haible  <bruno@clisp.org>
91026         * modules/clean-temp: New file.
91028 2006-07-24  Bruno Haible  <bruno@clisp.org>
91030         * m4/tmpdir.m4: New file, from GNU gettext.
91032 2006-07-24  Bruno Haible  <bruno@clisp.org>
91034         * lib/tmpdir.h: New file, from GNU gettext.
91035         * lib/tmpdir.c: New file, from GNU gettext.
91037 2006-07-24  Bruno Haible  <bruno@clisp.org>
91039         * lib/clean-temp.h: New file, from GNU gettext.
91040         * lib/clean-temp.c: New file, from GNU gettext.
91042 2006-07-23  Eric Blake  <ebb9@byu.net>
91044         * modules/stdio-safer (Files): Add tmpfile-safer.c.
91045         (Depends-on): Add binary-io.
91047 2006-07-23  Eric Blake  <ebb9@byu.net>
91049         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
91051 2006-07-23  Eric Blake  <ebb9@byu.net>
91053         * lib/tmpfile-safer.c: New file.
91054         * lib/stdio-safer.h (fopen_safer): Add prototype.
91055         * lib/stdio--.h (tmpfile): Make safer.
91057 2006-07-23  Bruno Haible  <bruno@clisp.org>
91059         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
91060         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
91061         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
91062         gl_linked_remove_at): Use it.
91064 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91065         and Simon Josefsson <jas@extundo.com>
91067         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
91069         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
91071 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
91073         * modules/close-stream: New file.
91074         * modules/closeout (Description): Make it clear that it exits
91075         with a diagnostic on error.
91076         (Depends-on): Add close-stream.  Remove fpending, stdbool.
91077         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
91079 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
91081         * m4/close-stream.m4: New file.
91083 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
91085         * lib/close-stream.c, lib/close-stream.h: New files.
91087 2006-07-22  Bruno Haible  <bruno@clisp.org>
91089         Merge from GNU gettext 0.15.
91091         2006-05-01  Bruno Haible  <bruno@clisp.org>
91093                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
91095         2006-07-22  Bruno Haible  <bruno@clisp.org>
91097                 * modules/javaversion: New file.
91098                 * MODULES.html.sh (Java): Add javaversion.
91100         2006-03-12  Bruno Haible  <bruno@clisp.org>
91102                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
91104         2005-12-04  Bruno Haible  <bruno@clisp.org>
91106                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
91107                 (untested).
91109         2006-06-21  Bruno Haible  <bruno@clisp.org>
91111                 Avoid warnings from recent versions of mcs.
91112                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
91113                 -o, -L, -r any more. Use options documented since mcs-1.0
91114                 instead. Similarly for -g.
91116         2005-12-04  Bruno Haible  <bruno@clisp.org>
91118                 * build-aux/csharpcomp.sh.in: Suffix for resources is
91119                 .resources, not .resource.
91121         2005-07-09  Bruno Haible  <bruno@clisp.org>
91123                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
91124                 add a .dll suffix.
91125                 Reported by Mark Junker <mjscod@gmx.de>.
91127         2006-07-22  Bruno Haible  <bruno@clisp.org>
91129                 * modules/gettext: Upgrade to gettext-0.15.
91130                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
91131                 m4/visibility.m4.
91132                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
91134 2006-07-22  Bruno Haible  <bruno@clisp.org>
91136         Merge from GNU gettext 0.15.
91138         2006-03-25  Bruno Haible  <bruno@clisp.org>
91140                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
91142         2006-07-21  Bruno Haible  <bruno@clisp.org>
91144                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
91145                 "1.1".
91147         2006-05-09  Bruno Haible  <bruno@clisp.org>
91149                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
91150                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
91151                 for the conftestver execution.
91153         2006-05-01  Bruno Haible  <bruno@clisp.org>
91155                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
91156                 optional target-version argument. Verify that the compiler
91157                 groks source of the specified source-version, or add -source
91158                 option as necessary. Verify that the compiler produces
91159                 bytecode in the specified target-version, or add -target and
91160                 -source options as necessary. Make the result of the test
91161                 available as variable CONF_JAVAC. Also log error output in
91162                 config.log.
91164         2006-03-11  Bruno Haible  <bruno@clisp.org>
91166                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
91168         2006-05-09  Bruno Haible  <bruno@clisp.org>
91170                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
91171                 CLASSPATH_SEPARATOR to a semicolon.
91173         2006-03-12  Bruno Haible  <bruno@clisp.org>
91175                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
91176                 available as variable CONF_JAVA, for subsequent autoconf
91177                 tests. Also log error output in config.log.
91179         2006-07-19  Bruno Haible  <bruno@clisp.org>
91181                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
91182                 that getline works on glibc2 systems. Needed to avoid trouble
91183                 in relocatable.c.
91184                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
91186         2005-12-04  Bruno Haible  <bruno@clisp.org>
91188                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
91189                 launcher (untested).
91191         2005-12-04  Bruno Haible  <bruno@clisp.org>
91193                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
91195         2006-07-22  Bruno Haible  <bruno@clisp.org>
91197                 * gettext.m4: Update from GNU gettext-0.15.
91198                 * nls.m4: Likewise.
91199                 * po.m4: Likewise.
91200                 * inttypes-pri.m4: Likewise.
91201                 * inttypes-h.m4: Renamed from inttypes.m4.
91202                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
91204 2006-07-22  Bruno Haible  <bruno@clisp.org>
91206         Merge from GNU gettext 0.15.
91208         2005-07-05  Bruno Haible  <bruno@clisp.org>
91210                 * printf-args.c (printf_fetchargs): Work around broken
91211                 definition of wint_t on mingw.
91213         2005-02-12  Bruno Haible  <bruno@clisp.org>
91215                 * xallocsa.h: Add extern "C" for C++.
91217         2006-05-17  Bruno Haible  <bruno@clisp.org>
91219                 Cygwin portability.
91220                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
91222         2006-04-30  Bruno Haible  <bruno@clisp.org>
91224                 * progreloc.c: Include <mach-o/dyld.h> if available.
91225                 (find_executable): Use _NSGetExecutablePath when possible.
91227         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
91229                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
91230                 function.
91232         2005-12-29  Bruno Haible  <bruno@clisp.org>
91234                 * progreloc.c (set_program_name_and_installdir): Fix
91235                 compilation error.
91237         2005-12-04  Bruno Haible  <bruno@clisp.org>
91239                 Cygwin portability.
91240                 * progreloc.c: Include <windows.h> also on Cygwin.
91241                 (find_executable): Add support for Cygwin.
91242                 (set_program_name_and_installdir): Handle also platforms with
91243                 nonempty EXEEXT.
91245         2006-07-11  Bruno Haible  <bruno@clisp.org>
91247                 * javacomp.c: Fix a comment.
91248                 Reported by Jim Meyering.
91250         2006-04-30  Bruno Haible  <bruno@clisp.org>
91252                 * javacomp.h (compile_java_class): Add source_version,
91253                 target_version arguments.
91254                 * javacomp.c: Rewritten to choose only a compiler that
91255                 respects the specified source_version and target_version.
91257         2006-06-27  Bruno Haible  <bruno@clisp.org>
91259                 Assume correct S_ISDIR macro.
91260                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
91262         2006-07-22  Bruno Haible  <bruno@clisp.org>
91264                 * javaversion.h: New file, from GNU gettext.
91265                 * javaversion.c: New file, from GNU gettext.
91266                 * javaversion.java: New file, from GNU gettext.
91267                 * javaversion.class: New file, from GNU gettext.
91269         2006-05-17  Bruno Haible  <bruno@clisp.org>
91271                 Cygwin portability.
91272                 * javaexec.c (execute_java_class): Test for jview program
91273                 also on Cygwin.
91275         2006-04-09  Bruno Haible  <bruno@clisp.org>
91277                 * fatal-signal.c: Don't include string.h.
91278                 (at_fatal_signal): Use a copying loop instead of memcpy.
91280         2005-12-04  Bruno Haible  <bruno@clisp.org>
91282                 * csharpexec.c: Add support for 'clix' launcher (untested).
91283                 (execute_csharp_using_sscli): New function.
91284                 (execute_csharp_program): Call it.
91286         2006-06-21  Bruno Haible  <bruno@clisp.org>
91288                 Avoid warnings from recent versions of mcs.
91289                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
91290                 -o, -L, -r any more. Use options documented since mcs-1.0
91291                 instead. Similarly for -g.
91293         2005-07-09  Bruno Haible  <bruno@clisp.org>
91295                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
91296                 add a .dll suffix.
91297                 Reported by Mark Junker <mjscod@gmx.de>.
91299         2006-06-17  Bruno Haible  <bruno@clisp.org>
91301                 * config.charset: Update for NetBSD 3.0.
91303         2006-05-17  Bruno Haible  <bruno@clisp.org>
91305                 Cygwin portability.
91306                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
91308         2006-05-16  Bruno Haible  <bruno@clisp.org>
91310                 * localcharset.c [CYGWIN]: Include <windows.h>.
91311                 (get_charset_aliases): For Cygwin, return the same CPxxx
91312                 aliases list as under WIN32.
91313                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
91314                 the environment variables. Fall back to GetACP().
91316         2006-04-05  Bruno Haible  <bruno@clisp.org>
91318                 * config.charset: Update Juan Manuel Guerrero's address.
91320         2005-02-12  Bruno Haible  <bruno@clisp.org>
91322                 * allocsa.h: Add extern "C" for C++.
91324         2005-02-10  Bruno Haible  <bruno@clisp.org>
91326                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
91327                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
91329         2006-07-22  Bruno Haible  <bruno@clisp.org>
91331                 * gettext.h: Update to GNU gettext-0.15.
91333 2006-07-22  Bruno Haible  <bruno@clisp.org>
91335         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
91336         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
91337         lib-prefix.m4, longdouble.m4, ssize_t.m4.
91339 2006-07-21  Eric Blake  <ebb9@byu.net>
91341         * modules/stdlib-safer: New file.
91342         * MODULES.html.sh (File stream based Input/Output): Add
91343         stdlib-safer.
91345 2006-07-21  Eric Blake  <ebb9@byu.net>
91347         * lib/stdlib-safer.h: New file from coreutils, required by
91348         stdlib--.h.
91350 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
91352         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
91354 2006-07-20  Bruno Haible  <bruno@clisp.org>
91356         * gnulib-tool: Recognize new option --assume-autoconf.
91357         (autoconf_minversion): New variable.
91358         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
91360 2006-07-20  Bruno Haible  <bruno@clisp.org>
91362         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
91364 2006-07-19  Derek R. Price  <derek@ximbiot.com>
91366         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
91367         Reindent and repaginate.
91369 2006-07-19  Derek Price  <derek@ximbiot.com>
91371         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
91372         Correct grammar.
91374 2006-07-17  Bruno Haible  <bruno@clisp.org>
91376         * modules/list: New file.
91377         * modules/array-list: New file.
91378         * modules/carray-list, modules/carray-list-tests: New files.
91379         * modules/linked-list, modules/linked-list-tests: New files.
91380         * modules/avltree-list, modules/avltree-list-tests: New files.
91381         * modules/rbtree-list, modules/rbtree-list-tests: New files.
91382         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
91383         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
91384         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
91385         * modules/oset: New file.
91386         * modules/array-oset: New file.
91387         * modules/avltree-oset, modules/avltree-oset-tests: New files.
91388         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
91389         * tests/test-carray_list.c: New file.
91390         * tests/test-linked_list.c: New file.
91391         * tests/test-avltree_list.c: New file.
91392         * tests/test-rbtree_list.c: New file.
91393         * tests/test-linkedhash_list.c: New file.
91394         * tests/test-avltreehash_list.c: New file.
91395         * tests/test-rbtreehash_list.c: New file.
91396         * tests/test-avltree_oset.c: New file.
91397         * tests/test-rbtree_oset.c: New file.
91398         * MODULES.html.sh (Container data structures): New section.
91400 2006-07-17  Bruno Haible  <bruno@clisp.org>
91402         * m4/gl_list.m4: New file.
91404 2006-07-17  Bruno Haible  <bruno@clisp.org>
91406         * lib/gl_list.h: New file.
91407         * lib/gl_list.c: New file.
91408         * lib/gl_array_list.h: New file.
91409         * lib/gl_array_list.c: New file.
91410         * lib/gl_carray_list.h: New file.
91411         * lib/gl_carray_list.c: New file.
91412         * lib/gl_linked_list.h: New file.
91413         * lib/gl_linked_list.c: New file.
91414         * lib/gl_anylinked_list1.h: New file.
91415         * lib/gl_anylinked_list2.h: New file.
91416         * lib/gl_avltree_list.h: New file.
91417         * lib/gl_avltree_list.c: New file.
91418         * lib/gl_anyavltree_list1.h: New file.
91419         * lib/gl_anyavltree_list2.h: New file.
91420         * lib/gl_rbtree_list.h: New file.
91421         * lib/gl_rbtree_list.c: New file.
91422         * lib/gl_anyrbtree_list1.h: New file.
91423         * lib/gl_anyrbtree_list2.h: New file.
91424         * lib/gl_anytree_list1.h: New file.
91425         * lib/gl_anytree_list2.h: New file.
91426         * lib/gl_linkedhash_list.h: New file.
91427         * lib/gl_linkedhash_list.c: New file.
91428         * lib/gl_anyhash_list1.h: New file.
91429         * lib/gl_anyhash_list2.h: New file.
91430         * lib/gl_avltreehash_list.h: New file.
91431         * lib/gl_avltreehash_list.c: New file.
91432         * lib/gl_rbtreehash_list.h: New file.
91433         * lib/gl_rbtreehash_list.c: New file.
91434         * lib/gl_anytreehash_list1.h: New file.
91435         * lib/gl_anytreehash_list2.h: New file.
91437         * lib/gl_oset.h: New file.
91438         * lib/gl_oset.c: New file.
91439         * lib/gl_array_oset.h: New file.
91440         * lib/gl_array_oset.c: New file.
91441         * lib/gl_avltree_oset.h: New file.
91442         * lib/gl_avltree_oset.c: New file.
91443         * lib/gl_rbtree_oset.h: New file.
91444         * lib/gl_rbtree_oset.c: New file.
91445         * lib/gl_anytree_oset.h: New file.
91447 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
91449         * m4/mkancesdirs.m4: New file.
91450         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
91451         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
91452         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
91453         it.
91455 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
91457         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
91458         * lib/mkancesdirs.h: New files.
91459         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
91460         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
91461         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
91462         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
91463         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
91464         callers changed.  Revamp internals significantly, by not
91465         attempting to create directories that are temporarily more
91466         permissive than the final results.  Do not attempt to use
91467         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
91468         This removes some race conditions, fixes some bugs, and simplifies
91469         things.  Use new dirchownmod function to do owner and mode changes.
91470         * lib/mkdir-p.h: Likewise.
91471         * lib/modechange.c (octal_to_mode): New function.
91472         (struct mode_change): New member mentioned.
91473         (make_node_op_equals): New arg mentioned.  All callers changed.
91474         (mode_compile): Keep track of which mode bits the user has explicitly
91475         mentioned.
91476         (mode_adjust): New arg DIR, so that we implement the X op correctly.
91477         New arg PMODE_BITS, to keep track of which mode bits the user
91478         mentioned; it treats S_ISUID and S_ISGID speciall.
91479         All callers changed.
91480         * lib/modechange.h: Likewise.
91482 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
91484         * MODULES.html.sh: Add mkancestors.
91485         * modules/mkancesdirs: New module.
91486         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
91487         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
91488         The chdir-safer and afs files are now orphans; I'll remove them
91489         unless someone speaks up.
91490         Add lib/dirchownmod.c, lib/dirchownmod.h.
91491         (Depends-on): Remove alloca, chown, save-cwd, dirname.
91492         Add lchown, mkancesdirs.
91493         (Maintainer): Add self.
91495 2006-07-15  Karl Berry  <karl@gnu.org>
91497         * gnulib-tool: help message wording/arrangement.
91499 2006-07-14  Simon Josefsson  <jas@extundo.com>
91501         * doc/gnulib.texi (Libtool and Windows): New section.
91503 2006-07-12  Simon Josefsson  <jas@extundo.com>
91505         * modules/gendocs (License): Fix license, approved by Karl.
91507 2006-07-12  Eric Blake  <ebb9@byu.net>
91509         * MODULES.html.sh: Add gendocs.
91511 2006-07-11  Eric Blake  <ebb9@byu.net>
91513         * modules/fdl: New module, to install doc/fdl.texi.
91514         * MODULES.html.sh: Add new section for documentation modules.
91515         * gnulib-tool: Avoid space-tab.
91516         (--doc-base): New option, to manage files from doc.
91518 2006-07-11  Eric Blake  <ebb9@byu.net>
91520         * m4/absolute-header.m4: Fix comments to match recent change.
91522 2006-07-11  Eric Blake  <ebb9@byu.net>
91524         * gnulib-tool: List --doc-base before --tests-base.
91526 2006-07-11  Derek R. Price  <derek@ximbiot.com>
91528         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
91530 2006-07-11  Bruno Haible  <bruno@clisp.org>
91532         * README: Mention where to put documentation.
91534 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91536         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
91538 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
91540         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
91541         to stdint.m4.
91543 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
91545         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
91546         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
91547         "no/such/file/stdint.h" when there is no such file, so that
91548         the resulting C code can be parsed by dodgy compilers.
91549         Problems reported by Bob Proulx.
91551 2006-07-10  Derek R. Price  <derek@ximbiot.com>
91553         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
91554         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
91555         macros into the GNU _D_EXACT_NAMLEN.
91556         * lib/savedir.c:  Likewise.
91557         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
91559 2006-07-10  Derek R. Price  <derek@ximbiot.com>
91560         and Paul Eggert  <eggert@cs.ucla.edu>
91562         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
91563         * m4/savedir.m4:
91564         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
91565         macros into the GNU _D_EXACT_NAMLEN.
91567 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91569         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
91570         around the absolute name, to work around a problem with the HP-UX
91571         11.23 native C compiler, reported by Bob Proulx.
91573 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91575         * doc/maintain.texi, make-stds.texi: Sync from
91576         <http://savannah.gnu.org/projects/gnustandards>.
91578 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91580         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
91582 2006-07-09  Jim Meyering  <jim@meyering.net>
91584         * m4/glob.m4: Remove a doubled word in a comment.
91586 2006-07-09  Jim Meyering  <jim@meyering.net>
91588         * lib/argp-pv.c: Remove a doubled word in a comment.
91589         * lib/check-version.c (check_version): Likewise.
91590         * lib/javacomp.c (compile_java_class): Likewise.
91592 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
91594         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
91595         for the benefit of people using Autoconf 2.60.  If you want to
91596         support older Autoconf versions you can copy m4/onceonly_2_57.m4
91597         (or m4/onceonly.m4, if pre-2.57) manually.
91599 2006-07-08  Jim Meyering  <jim@meyering.net>
91601         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
91602         comment.
91603         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
91604         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
91605         comment.
91607 2006-07-08  Jim Meyering  <jim@meyering.net>
91609         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
91611 2006-07-07  Simon Josefsson  <jas@extundo.com>
91613         * tests/test-crc.c: Change expected crc value, the test vector
91614         were probably computed using the old broken crc.c?
91616 2006-07-06  Simon Josefsson  <jas@extundo.com>
91618         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
91619         now the canonical place for the M4 file).
91621         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
91622         from the sys_socket dependency now.
91624         * modules/inet_pton (Files): Ditto.
91626         * modules/inet_ntop (Files): Ditto.
91628 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
91630         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
91631         not gl_PREREQ_GETUSERSHELL.
91633 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91635         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
91636         with only one argument, for Autoconf 2.60.
91637         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
91638         expand to nothing, so add a shell command to avoid syntax error.
91639         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
91641 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91643         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
91645 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
91647         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
91648         no longer needed.  Check for isblank decl.
91649         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
91650         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
91651         of existence.
91653 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
91655         * lib/getloadavg.c: Use __VMS, not VMS.
91656         * lib/getopt.c: Likewise.
91657         * lib/getpagesize.h: Likewise.
91658         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
91659         and probably does not work.
91661 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
91663         * lib/.cppi-disable: Add wcwidth.
91664         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
91665         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
91666         (ISGRAPH): Remove.  All uses changed to isgraph.
91667         (FOLD) [!defined _LIBC]: Remove special case.
91668         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
91669         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
91670         HAVE_ISBLANK.
91671         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
91672         case.
91674 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
91676         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
91677         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
91678         brackets.  Other minor changes to suppress some compiler
91679         warnings.
91681 2006-07-06  Derek R. Price  <derek@ximbiot.com>
91682         and Paul Eggert  <eggert@cs.ucla.edu>
91684         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
91685         of invoking obsolescent AC_HEADER_DIRENT macro.
91686         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
91687         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
91688         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
91689         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
91690         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
91691         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
91692         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
91693         * m4/readdir.m4: Remove; no longer needed.
91695 2006-07-06  Derek R. Price  <derek@ximbiot.com>
91696         and Paul Eggert  <eggert@cs.ucla.edu>
91698         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
91699         Don't worry about this obsolete case any more.
91700         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
91701         directories.
91702         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
91703         worry about this obsolete case any more.
91704         * lib/fts.c: Likewise.
91705         * lib/getcwd.c: Likewise.
91706         * lib/glob.h: Likewise.
91707         * lib/savedir.c: Likewise.
91709 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
91711         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
91712         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
91713         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
91714         needed.
91715         All uses removed.
91716         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
91717         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
91718         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
91719         needed.
91720         * m4/getdate.m4 (gl_GETDATE): Likewise.
91721         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
91722         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
91723         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
91724         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
91725         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
91726         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91727         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
91728         needed.
91730 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
91732         * lib/memcasecmp.c: Include <limits.h>.
91733         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
91734         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
91735         Don't assume isdigit succeeds only on '0' through '9'.
91737 2006-07-05  Eric Blake  <ebb9@byu.net>
91739         * modules/getaddrinfo (Depends-on): Add snprintf.
91741 2006-07-05  Eric Blake  <ebb9@byu.net>
91743         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
91744         to avoid 'header present but could not be compiled' on cygwin.
91746 2006-07-05  Eric Blake  <ebb9@byu.net>
91748         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
91749         missing from netdb.h.
91750         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
91752 2006-07-05  Derek R. Price  <derek@ximbiot.com>
91754         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
91755         no longer needed.
91756         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
91757         * m4/getdate.m4 (gl_GETDATE): Likewise.
91758         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
91759         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
91760         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
91761         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
91762         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91764 2006-07-05  Derek R. Price  <derek@ximbiot.com>
91766         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
91767         All uses of is_space replaced by isspace.
91768         * lib/exit.h: Don't talk about STDC_HEADERS.
91769         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
91770         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
91771         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
91772         replaced by isprint etc.
91773         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
91774         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
91775         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
91776         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
91777         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
91778         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
91780 2006-07-05  Bruno Haible  <bruno@clisp.org>
91782         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
91783         the function exists, before testing against AIX.
91784         Reported by Martin Lambers <marlam@marlam.de>.
91786 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
91788         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
91789         From Mark D. Baushke.
91791 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
91793         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
91794         to the absolute name, not just one, to bypass Sun C 5.8's
91795         "warning: #include of /usr/include/... may be non-portable".
91797 2006-07-04  Eric Blake  <ebb9@byu.net>
91799         * modules/dirname-tests: New test module.
91800         * tests/test-dirname.c: New file, replacing dirname.c
91801         TEST_DIRNAME section that was recently deleted.
91803 2006-07-04  Bruno Haible  <bruno@clisp.org>
91805         Assume ANSI C header files and <ctype.h> functions.
91806         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
91807         (mbsnwidth): Use isprint, iscntrl instead.
91809 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
91811         Merge from coreutils.
91812         * MODULES.html.sh: Add xstrtold.
91813         * modules/xstrtold: New file.
91814         * modules/cycle-check (Files): Add lib/same-inode.h.
91815         * modules/dirname (Files): Add m4/double-slash-root.m4.
91816         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
91817         * modules/mkdir-p (Files): Add lib/same-inode.h.
91818         * modules/same (Files): Add lib/same-inode.h.
91820 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
91822         * m4/absolute-header.m4: Renamed from full-header-path.m4.
91823         This is to keep the terminology clean; POSIX talks about
91824         "absolute pathnames", not "full pathnames", but the GNU
91825         Coding Standards say to use "path" for something else;
91826         so use "absolute" to keep both sides happy.
91827         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
91828         Set gl_absolute_header, not gl_full_header_path.
91829         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
91830         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
91831         All uses changed.
91833         Merge from coreutils.
91835         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
91837         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
91838         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
91839         want to require the building of c-strtod.o.
91840         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
91841         needs -lm directly.
91842         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
91844         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
91846         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
91847         --as-needed option if available.  Problem reported by Albert Chin in
91848         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
91849         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
91850         cc merely issues a bunch of annoying warnings for --as-needed
91851         (this problem was reported by Bob Proulx).  Also, try linking with
91852         -lm to detect a bug in binutils 2.16 (this problem was reported
91853         by Ralf Wildenhues).
91855         2006-06-18  Jim Meyering  <jim@meyering.net>
91857         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
91858         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
91859         macro.
91860         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
91861         also check for glibc-2.4's abort-inducing bug.
91863         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
91864         Low-probability clean-up should be to use rmdir to get rid of
91865         the just-created directory, not unlink.
91867         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
91868         configure fail, and request a bug report to inform us about it.
91869         Add a comment that, barring reports to the contrary, in 2007 we'll
91870         assume ftruncate is universally available.
91872         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
91874         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
91876         2006-03-12  Jim Meyering  <jim@meyering.net>
91878         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
91879         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
91880         * m4/same.m4 (gl_SAME): Likewise.
91881         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
91883         2006-03-11  Eric Blake  <ebb9@byu.net>
91885         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
91886         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
91887         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
91888         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
91890 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
91892         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
91893         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
91894         reported by Mark D. Baushke, one in
91895         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
91897         Merge from coreutils.
91899         * lib/.cppi-disable: Add stdint_.h.
91900         * lib/.cvsignore: Add stdint.h.
91902         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
91904         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
91905         both double and long double versions.
91906         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
91907         * lib/xstrtold.c: New file.
91908         * lib/xstrtod.h (xstrtold): New decl.
91910         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
91912         * lib/filemode.c (setst): Remove.
91913         (strmode): Rewrite to avoid setst.  This makes the code shorter,
91914         (arguably) clearer, and the generated code is a bit smaller on my
91915         Debian GNU/Linux stable x86 host.
91917         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
91919         * lib/filemode.c: Include "filemode.h" first, to test the interface.
91920         Assume that filemode.h includes sys/types.h and sys/stat.h.
91921         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
91922         (ftypelet): Reorder to put common cases first, for efficiency.
91923         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
91924         to do 'M'.
91925         (strmode): Renamed from mode_string, and now stores 12 bytes instead
91926         of 10, for compatibility with FreeBSD.  All callers changed.
91927         (filemodestring): Now stores 12 bytes instead of 10, and sets file
91928         types that can't be deduced solely from st_mode.  First arg is now a
91929         const pointer.
91930         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
91931         (strmode): Renamed from mode_string.
91932         (filemodestring): New decl.
91933         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
91934         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
91935         needed.
91936         (S_ISPORT, S_ISWHT): New macros, if not already defined.
91938         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
91940         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
91941         fsusage.h now does that.  Include fsusage.h first, to test interface.
91942         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
91943         at most one method (the old code could have generated decls that
91944         didn't conform to C89, not that this was ever exercised).
91945         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
91947         2006-03-19  Jim Meyering  <jim@meyering.net>
91949         Work even in a chroot where d_ino values for entries in "/"
91950         don't match the stat.st_ino values for the same names.
91951         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
91952         number, iterate through all entries again, using lstat instead.
91953         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
91954         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
91956         * lib/getcwd.c (__getcwd): Clarify a comment.
91957         Use memcpy in place of a call to strcpy.
91959         2006-03-12  Jim Meyering  <jim@meyering.net>
91961         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
91962         matches that of the current directory (which we're about to chdir ".."
91963         out of), then save the dev-ino of the parent, instead.
91965         * lib/same-inode.h (SAME_INODE): New file/macro.
91966         * lib/chdir-safer.c (SAME_INODE): Remove definition.
91967         Include "same-inode.h", instead.
91968         * lib/same.c: Likewise.
91969         * lib/cycle-check.h: Include "same-inode.h".
91970         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
91971         * lib/cycle-check.c (SAME_INODE): Remove definition.
91972         * lib/root-dev-ino.h: Include "same-inode.h".
91974         2006-03-11  Eric Blake  <ebb9@byu.net>
91976         * lib/same.c (same_name): s/base_name/last_component/
91977         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
91978         * lib/filenamecat.c (file_name_concat): Likewise.
91980         2006-03-11  Eric Blake  <ebb9@byu.net>,
91981                     Paul Eggert  <eggert@cs.ucla.edu>
91983         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
91984         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
91985         drive prefix.
91986         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
91987         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
91988         (last_component): New method.
91989         * lib/dirname.c (dir_len): Determine when drive letters need a
91990         subsequent slash.  Preserve // when it is special.
91991         (dir_name): Don't append dot when drive letter is absolute.
91992         [TEST_DIRNAME]: Move into a full-blown gnulib test.
91993         * lib/basename.c (base_name): New semantics - malloc the result.
91994         Preserve // when it is special.  Preserve relative files that look
91995         like drive letters.
91996         (base_len): Preserve // when it is special.
91997         (last_component): New method, similar to old base_name semantics.
91998         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
91999         base_name.  Strip redundant slashes from ///.
92001 2006-07-03  Jim Meyering  <jim@meyering.net>
92003         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
92004         macro is used before the first cycle_check call.
92006 2006-07-03  Eric Blake  <ebb9@byu.net>
92008         * modules/dirname (Depends-on): Add xstrndup.
92010 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
92012         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
92013         test cases, so that config.log is a bit easier to follow.
92015 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
92017         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
92018         both are 64 bits, since this seems to be the tradition, and this
92019         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
92020         we ever run into a host that prefers long long to long in this
92021         case, we'll need another configure-time test.  Problem reported by
92022         Jim Meyering.
92024 2006-07-02  Eric Blake  <ebb9@byu.net>
92026         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
92028 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
92030         * modules/inttypes (Depends-on): No longer depends on stdint.
92031         * modules/stdint (Description): Say more about assumptions.
92032         Say that the fast types might differ.  Say macros are used.
92033         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
92034         (Makefile.am): Revise list of substituted symbols to match
92035         new stdint.m4.
92036         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
92037         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
92038         * tests/test-stdint.c (verify_same_types)
92039         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
92040         the code conforms to C99/C89.
92041         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
92042         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
92044 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
92046         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
92047         but fix a bug, by requiring at least 64 bits.
92048         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
92049         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
92050         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
92051         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92053         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
92054         changes.  Make 2.59 a prerequisite.  Check and substitute for
92055         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
92056         inttypes.h.  Do not use special include files; just use the
92057         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
92058         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
92059         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
92060         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
92061         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
92062         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
92063         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
92064         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
92065         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
92066         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
92067         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
92068         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
92069         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
92070         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
92071         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
92072         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
92073         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
92074         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
92075         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
92076         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
92077         WINT_MAX.  Check for C99 conformance more strictly, by detecting
92078         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
92079         not check for things that C99 does not require, e.g., int8_t.  If
92080         a test isn't needed unless <stdint.h> isn't working, and is
92081         unlikely to be needed for any other reason, then don't do it
92082         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
92083         size_t, since we assume C89 freestanding at least.  Do not check
92084         for sig_atomic_t, wchar_t, or wint_t, since the code now does
92085         the right thing even if the types are not defined.  Instead use:
92086         (gl_STDINT_TYPE_PROPERTIES): New macro.
92087         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
92088         testing whether <sys/types.h> clashes, as Autoconf does this for
92089         us now.  All uses removed.
92090         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
92091         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
92092         (gl_CHECK_TYPE_SAME):
92093         Remove; no longer needed.
92094         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
92095         exists, since we'll return 0 anyway in that case.
92096         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
92098 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
92100         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
92101         possible collision with system files.
92102         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
92103         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
92104         WCHAR_MIN and WCHAR_MAX in this case.
92105         (<stddef.h>): Do not include; no longer needed.
92106         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
92107         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
92108         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
92109         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
92110         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
92111         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
92112         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
92113         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
92114         !defined(__c99))]: Include in this case too, since it's harmless
92115         now.
92116         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
92117         dangerous to do so.
92118         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
92119         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
92120         (_STDINT_MIN, _STDINT_MAX): New macros.
92121         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
92122         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
92123         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
92124         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
92125         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
92126         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
92127         macros, not typedefs; this simplifies things quite a bit.
92128         Use long int for all types narrower than int64_t.
92129         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
92130         Define in terms of long long int or int64_t or long int,
92131         not int64_t or int32_t.  This saves some compile-time testing.
92132         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
92133         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
92134         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
92135         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
92136         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
92137         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
92138         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
92139         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
92140         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
92141         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
92142         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
92143         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
92144         undef any previous version and define our own version, for
92145         simplicity and consistency with the new macros for types.
92146         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
92147         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
92148         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
92149         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
92150         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
92151         @WINT_T_SUFFIX@ to keep things simple here.
92152         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
92153         Simplify by assuming typical 8/16/32/64 host, since we're
92154         already doing that elsewhere anyway.
92155         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
92156         and assume long long int is 64 bits if available.  This
92157         speeds up 'configure'.
92159 2006-07-01  Eric Blake  <ebb9@byu.net>
92161         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
92162         Reported by Andreas Buening.
92164 2006-07-01  Eric Blake  <ebb9@byu.net>
92166         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
92168 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
92170         * lib/getaddrinfo.c: fixed typo
92172 2006-06-29  Jim Meyering  <jim@meyering.net>
92174         * modules/strftime (Maintainer): Add my name, since with the
92175         FPRINTFTIME changes strftime.c has forked from glibc.
92177 2006-06-29  Eric Blake  <ebb9@byu.net>
92179         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
92181 2006-06-29  Eric Blake  <ebb9@byu.net>
92183         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
92185 2006-06-29  Eric Blake  <ebb9@byu.net>
92187         * lib/stat_.h: New file.
92189 2006-06-29  Eric Blake  <ebb9@byu.net>
92191         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
92192         unused static function.
92194 2006-06-29  Eric Blake  <ebb9@byu.net>
92196         * doc/functions.texi (Function Portability): Document missing lstat
92197         on mingw.
92199 2006-06-29  Eric Blake  <ebb9@byu.net>
92201         * MODULES.html.sh: Add sys_stat.
92202         * modules/sys_stat: New module.
92203         * modules/mkstemp (Depends-on): Add sys_stat.
92205 2006-06-29  Derek R. Price  <derek@ximbiot.com>
92207         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
92209 2006-06-29  Derek R. Price  <derek@ximbiot.com>
92211         * m4/c-bs-a.m4: Removed.
92213 2006-06-29  Derek R. Price  <derek@ximbiot.com>
92215         * lib/strftime.c: Assume strftime() exists.
92217 2006-06-29  Derek Price  <derek@ximbiot.com>
92219         * modules/c-bs-a: Removed - \a is C89.
92220         * MODULES.html.sh: Remove c-bs-a.
92222 2006-06-29  Bruno Haible  <bruno@clisp.org>
92224         * modules/wcwidth (License): Change to LGPL.
92226 2006-06-28  Simon Josefsson  <jas@extundo.com>
92228         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
92229         on _WIN32.
92231         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
92232         getnameinfo.
92234 2006-06-28  Simon Josefsson  <jas@extundo.com>
92236         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
92238 2006-06-28  Simon Josefsson  <jas@extundo.com>
92240         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
92241         functions there.  It will succeed on Windows XP, but on Windows
92242         2000 and (presumably) earlier, it will fail, and use the internal
92243         re-implementation.
92244         (use_win32_p): New function.
92245         (getaddrinfo): Use strtoul on servname, to support numeric ports.
92246         Support AI_NUMERICSERV to disable getservbyname.
92247         (getnameinfo): New function, only supports
92248         NI_NUMERICHOST|NI_NUMERICSERV for now.
92250         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
92251         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
92252         getnameinfo.
92254 2006-06-28  Eric Blake  <ebb9@byu.net>
92256         * modules/wcwidth: New file.
92257         * modules/mbchar (Depends-on): Add wcwidth.
92258         * modules/mbswidth (Depends-on): Add wcwidth.
92259         * MODULES.html.sh: Add wcwidth.
92261 2006-06-28  Eric Blake  <ebb9@byu.net>
92263         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
92264         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
92266 2006-06-28  Eric Blake  <ebb9@byu.net>
92268         * lib/xvasprintf.h: Fix comments.
92270 2006-06-28  Eric Blake  <ebb9@byu.net>
92272         * lib/mbchar.h (wcwidth): Include wcwidth.h.
92273         * lib/mbswidth.c (wcwidth): Move from here...
92274         * lib/wcwidth.h: ...to this new file.
92276 2006-06-28  Derek R. Price  <derek@ximbiot.com>
92278         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
92280         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
92281         it's obsolete.
92282         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
92284 2006-06-28  Derek R. Price  <derek@ximbiot.com>
92286         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
92287         Autoconf 2.60 says this stuff was obsolete.
92289 2006-06-28  Bruno Haible  <bruno@clisp.org>
92291         * modules/wcwidth (Files): Add m4/wchar_t.m4.
92293 2006-06-28  Bruno Haible  <bruno@clisp.org>
92295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
92296         gt_TYPE_WCHAR_T.
92298 2006-06-28  Bruno Haible  <bruno@clisp.org>
92300         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
92301         declaration for wcwidth.
92302         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
92304 2006-06-28  Bruno Haible  <bruno@clisp.org>
92306         * lib/mkdtemp.c [MINGW]: Include <io.h>.
92307         (mkdir): Define using _mkdir.
92309 2006-06-28  Bruno Haible  <bruno@clisp.org>
92311         * lib/getaddrinfo.h: Fix POSIX URL.
92312         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
92313         _WIN32.
92314         (use_win32_p): Make static.
92315         (getaddrinfo): Reject service name if it is empty or does not consist
92316         solely of decimal digits, or if its value is > 65535.
92317         (getnameinfo): Remove useless casts.
92319 2006-06-27  Simon Josefsson  <jas@extundo.com>
92321         * modules/sys_select: New file, suggested by Bruno Haible, Paul
92322         Eggert and Martin Lambers.
92324 2006-06-27  Simon Josefsson  <jas@extundo.com>
92326         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
92327         Eggert and Martin Lambers.
92329 2006-06-27  Bruno Haible  <bruno@clisp.org>
92331         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
92332         result to 0, not to empty.
92333         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
92335 2006-06-27  Bruno Haible  <bruno@clisp.org>
92337         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
92339 2006-06-26  Simon Josefsson  <jas@extundo.com>
92341         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
92342         present.
92344 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
92346         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
92347         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
92348         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
92350 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
92352         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
92354 2006-06-26  Bruno Haible  <bruno@clisp.org>
92356         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
92358 2006-06-26  Bruno Haible  <bruno@clisp.org>
92360         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
92362 2006-06-26  Bruno Haible  <bruno@clisp.org>
92364         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
92365         SGI C compiler in pre-C99 mode.
92366         Suggested by Mark D. Baushke and Larry Jones.
92368 2006-06-26  Bruno Haible  <bruno@clisp.org>
92370         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
92371         WCHAR_MAX.
92372         Reported by Mark D. Baushke and Larry Jones.
92374 2006-06-26  Bruno Haible  <bruno@clisp.org>
92376         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
92377         in pre-C99 mode.
92378         Suggested by Mark D. Baushke and Larry Jones.
92380 2006-06-23  Simon Josefsson  <jas@extundo.com>
92381             Bruno Haible  <bruno@clisp.org>
92383         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
92384         Emit mostlyclean-local rule.
92385         (func_emit_tests_Makefile_am): Likewise.
92386         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
92388 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
92390         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
92392 2006-06-23  Bruno Haible  <bruno@clisp.org>
92394         * tests/test-stdint.c: Update to match ISO C 99 Technical
92395         Corrigendum 1.
92397 2006-06-23  Bruno Haible  <bruno@clisp.org>
92399         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
92401 2006-06-23  Bruno Haible  <bruno@clisp.org>
92403         * lib/stdint_.h: Treat IRIX like OpenBSD.
92405 2006-06-23  Bruno Haible  <bruno@clisp.org>
92407         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
92408         ISO C 99 Technical Corrigendum 1.
92410 2006-06-22  Simon Josefsson  <jas@extundo.com>
92412         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
92413         MinGW.
92415 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
92417         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
92418         needed.  Some compiler complained about some of them.  Problem reported
92419         by Larry Jones in
92420         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
92422 2006-06-21  Simon Josefsson  <jas@extundo.com>
92424         * tests/test-getaddrinfo.c: New file.
92426         * modules/getaddrinfo-tests: New file.
92428         * MODULES.html.sh: Add inet_pton.
92430         * modules/inet_pton: New file.
92432 2006-06-21  Simon Josefsson  <jas@extundo.com>
92434         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
92435         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
92436         of using the (limited) gnulib implementation on Windows XP.
92438         * m4/inet_pton.m4: New file.
92440 2006-06-21  Simon Josefsson  <jas@extundo.com>
92442         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
92443         variable.
92445         * lib/socket_.h: Don't define WINVER.
92447         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
92448         slightly modified to work in gnulib.
92450 2006-06-21  Simon Josefsson  <jas@extundo.com>
92452         * doc/gnulib.texi (Windows sockets): Add.
92454 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
92456         * lib/read-file.c (fread_file): Start with buffer allocation of
92457         0 bytes rather than 1 byte; this simplifies the code.
92458         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
92459         code to free buffer and save/restore errno.
92460         (internal_read_file): Remove unused local.
92462 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
92464         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
92465         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
92466         Problem reported by Denis Excoffier in
92467         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
92469 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92471         * modules/sys_socket, modules/socklen: Include sys/types since
92472         FreeBSD 4.x's sys/socket.h needs it.
92474 2006-06-19  Simon Josefsson  <jas@extundo.com>
92476         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
92478 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
92480         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
92482 2006-06-19  Bruno Haible  <bruno@clisp.org>
92484         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
92485         and FULL_PATH_INTTYPES_H in angle brackets.
92486         Reported by Mark D. Baushke <mdb@gnu.org>.
92488 2006-06-17  Eric Blake  <ebb9@byu.net>
92490         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
92491         errno.
92493 2006-06-17  Bruno Haible  <bruno@clisp.org>
92495         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
92496         <sys/inttypes.h>.
92498 2006-06-17  Bruno Haible  <bruno@clisp.org>
92500         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
92501         whether errno is declared. Assume <errno.h> declares errno.
92503 2006-06-17  Bruno Haible  <bruno@clisp.org>
92505         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
92507 2006-06-17  Bruno Haible  <bruno@clisp.org>
92509         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
92510         problem on Solaris 2.5.1.
92512 2006-06-16  Eric Blake  <ebb9@byu.net>
92514         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
92515         * lib/unicodeio.c [!defined errno]: Likewise.
92516         * lib/strtol.c [!defined errno]: Likewise.
92517         * lib/strtod.c [!defined errno]: Likewise.
92519 2006-06-15  Eric Blake  <ebb9@byu.net>
92521         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
92523 2006-06-15  Eric Blake  <ebb9@byu.net>
92525         * config/srclist.txt (ssize_t.m4): Lose sync.
92527 2006-06-15  Bruno Haible  <bruno@clisp.org>
92529         * modules/stdint (Files): Include m4/full-header-path.m4,
92530         m4/size_max.m4, m4/wchar_t.m4.
92531         (Makefile.am): Many more substitutions.
92532         * modules/stdint-tests: New file.
92533         * tests/test-stdint.c: New file.
92535 2006-06-15  Bruno Haible  <bruno@clisp.org>
92537         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
92538         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
92539         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
92540         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
92541         gl_CHECK_TYPE_SAME): New macros.
92543 2006-06-15  Bruno Haible  <bruno@clisp.org>
92545         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
92547 2006-06-15  Bruno Haible  <bruno@clisp.org>
92549         * lib/stdint_.h: Rewritten to be fully auto-configured.
92550         Fixes bug on HP-UX/IA64.
92552 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
92554         * lib/getdate.y (__attribute__): Don't define if already defined.
92555         Problem reported by Larry Jones.
92556         * lib/utimens.c (__attribute__): Likewise.
92558 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
92560         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
92561         reported by Andreas Schwab.
92563 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92564             Bruno Haible  <bruno@clisp.org>
92566         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
92567         check for the declaration of strnlen and a run test that exposes the
92568         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
92569         rpl_strndup.
92571 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92572             Bruno Haible  <bruno@clisp.org>
92574         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
92576 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92578         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
92579         compile test, for Tru64 4.0D.
92581 2006-05-28  Karl Berry  <karl@gnu.org>
92583         * config/srclist.txt (printf-args.c): lose sync.
92585 2006-05-26  Martin Lambers  <marlam@marlam.de>
92587         * lib/getpass.c: Updates the test for the native W32 API, and adds
92588         missing includes, thus fixing compilation warnings.
92590 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
92592         * lib/exclude.c (exclude_fnmatch): New function.
92593         (excluded_file_name): Call exclude_fnmatch.
92594         * lib/exclude.h (excluded_file_name): New prototype
92596 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
92598         * lib/tempname.c (small_open, large_open): New macros.
92599         (__open, __open64) [!_LIBC]: Remove.
92600         (__gen_tempname): Use small_open and large_open instead of __open
92601         and __open64.  This fixes a portability bug on HP-UX 11.11i
92602         reported by Simon Wing-Tang in
92603         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
92605 2006-05-24  Bruno Haible  <bruno@clisp.org>
92607         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
92608         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
92609         Reported by Thorsten Maerz <torte@netztorte.de> via
92610         Aaron Stone <aaron@serendipity.cx>.
92612 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
92614         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
92615         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
92616         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
92617         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
92618         not really conditional on the cache.
92619         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
92621 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
92623         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
92624         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
92625         (my_usleep): Don't mishandle maximum value.
92627 2006-05-19  Jim Meyering  <jim@meyering.net>
92629         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
92631 2006-05-17  Bruno Haible  <bruno@clisp.org>
92633         Cygwin portability.
92634         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
92636 2006-05-17  Bruno Haible  <bruno@clisp.org>
92638         * lib/stdint_.h: Fix recognition of Cygwin.
92640 2006-05-15  Bruno Haible  <bruno@clisp.org>
92642         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
92643         on libtool patch by Ralf Wildenhues.
92645 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
92647         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
92648         test for C99 conformance; (bool) 0.5 is an integer constant
92649         expression, but (bool) -0.5 is not.  Problem reported by Fedor
92650         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
92652 2006-05-11  Simon Josefsson  <jas@extundo.com>
92654         * m4/xvasprintf.m4: Fix obvious typo.
92656 2006-05-11  Jim Meyering  <jim@meyering.net>
92658         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
92659         James Lemley.
92661 2006-05-10  Simon Josefsson  <jas@extundo.com>
92663         * lib/md4.c: Typo fix, update copyright years.
92664         (K1, K2): Don't use L because it turn computations into 64-bit on
92665         64-bit platforms.
92667 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
92669         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
92670         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
92671         unwanted sign propagation, e.g., on hosts with 64-bit int.
92672         There still are some problems with reeelly weird theoretical hosts
92673         (e.g., 33-bit int) but it's not worth worrying about now.
92674         * lib/sha1.c (rol): Likewise.
92675         (K1, K2, K3, K4): Remove unnecessary L suffix.
92677 2006-05-10  Bruno Haible  <bruno@clisp.org>
92679         * lib/des.c: Cast to avoid warnings.
92681 2006-05-09  Bruno Haible  <bruno@clisp.org>
92683         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
92684         (Depends-on): Depend also on xsize, stdarg.
92685         (configure.ac): Add gl_XVASPRINTF.
92687 2006-05-09  Bruno Haible  <bruno@clisp.org>
92689         * m4/xvasprintf.m4: New file.
92691 2006-05-09  Bruno Haible  <bruno@clisp.org>
92693         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
92694         (EOVERFLOW): Define fallback value.
92695         (xstrcat): New function.
92696         (xvasprintf): Recognize the special case of a string concatenation.
92698 2006-05-08  Eric Blake  <ebb9@byu.net>
92700         * gnulib-tool (func_version): Base copyright year on CVS date.
92701         (func_emit_copyright_notice): New function.
92702         (func_emit_lib_Makefile_am): Use it.
92703         (func_emit_tests_Makefile_am): Likewise.
92704         (func_import): Likewise.
92706 2006-05-08  Bruno Haible  <bruno@clisp.org>
92708         * modules/stdarg: New file.
92709         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
92711 2006-05-08  Bruno Haible  <bruno@clisp.org>
92713         * m4/stdarg.m4: New file, from GNU gettext.
92715 2006-05-08  Bruno Haible  <bruno@clisp.org>
92717         * config/srclist.txt (build-aux/config.rpath): different from latest
92718         release.
92720 2006-05-08  Bruno Haible  <bruno@clisp.org>
92722         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
92724 2006-05-05  Jim Meyering  <jim@meyering.net>
92726         * m4/warning.m4: New file, derived from bison's file by the same name.
92728 2006-05-03  Bruno Haible  <bruno@clisp.org>
92730         * lib/stdint_.h: Shorter URL.
92731         * lib/inttypes.h: Likewise.
92733 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
92735         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
92737 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
92739         * lib/verify.h: Document the internals better.  Most of this change
92740         was written by Bruno Haible.
92742 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
92744         * doc/verify.texi: New file, partly based on a proposal by
92745         Bruno Haible.
92747 2006-05-02  Bruno Haible  <bruno@clisp.org>
92749         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
92750         test from here...
92751         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
92753 2006-04-29  Bruno Haible  <bruno@clisp.org>
92755         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
92756         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
92758 2006-04-29  Bruno Haible  <bruno@clisp.org>
92760         * gnulib-tool: Make --update option actually work.
92762 2006-04-29  Bruno Haible  <bruno@clisp.org>
92764         * doc/gcd.texi: New file.
92765         * doc/gnulib.texi: Include it.
92767 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
92769         * lib/getdate.y (get_date): When adding relative date, start with the
92770         initial time, not with the result of the first mktime call.
92772 2006-04-25  Bruno Haible  <bruno@clisp.org>
92774         * gnulib-tool (func_import): Output the include directives in three
92775         blocks, sorted separately.
92776         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92778 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
92780         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
92781         to define main with arguments, for C++.  Reported by Eric Blake.
92782         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
92783         Prefer 'int main ()' to 'int main (void)', for C++.
92784         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
92785         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
92786         for 'main', for C99 and C++.
92788 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
92790         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
92791         Don't assume that exit status -1 is valid.
92792         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
92793         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
92794         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
92795         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
92796         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
92797         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
92798         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
92799         functions can be used without declaring them, or that you can
92800         exit with status -1.
92801         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
92803 2006-04-24  Karl Berry  <karl@gnu.org>
92805         * config/srclist.txt (longdouble.m4): sync lost.
92807 2006-04-24  Eric Blake  <ebb9@byu.net>
92809         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
92811 2006-04-24  Bruno Haible  <bruno@clisp.org>
92813         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
92814         poll() implementation in AIX.
92815         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92817 2006-04-24  Bruno Haible  <bruno@clisp.org>
92819         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
92820         assigned exactly once.
92822 2006-04-23  Claudio Fontana  <claudio@gnu.org>
92823             Bruno Haible  <bruno@clisp.org>
92825         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
92826         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
92827         for AM_CPPFLAGS.
92829 2006-04-23  Bruno Haible  <bruno@clisp.org>
92831         * modules/copy-file: Depend on unistd.
92832         * modules/execute: Likewise.
92833         * modules/fatal-signal: Likewise.
92834         * modules/findprog: Likewise.
92835         * modules/mkdtemp : Likewise.
92836         * modules/pipe: Likewise.
92837         * modules/wait-process: Likewise.
92839 2006-04-23  Bruno Haible  <bruno@clisp.org>
92841         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
92842         condition was already detected.
92843         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92845 2006-04-23  Bruno Haible  <bruno@clisp.org>
92847         * lib/copy-file.c: Include <unistd.h> unconditionally.
92848         * lib/execute.c: Likewise.
92849         * lib/fatal-signal.c: Likewise.
92850         * lib/findprog.c: Likewise.
92851         * lib/mkdtemp.c: Likewise.
92852         * lib/pipe.h: Likewise.
92853         * lib/pipe.c: Likewise.
92854         * lib/wait-process.h: Likewise.
92856 2006-04-23  Bruno Haible  <bruno@clisp.org>
92858         * gnulib-tool (func_usage): Fix --import description. Document
92859         --update.
92860         (func_import): Create temporary file in a temporary directory, if
92861         --dry-run is specified. Silence errors from 'grep' when there are no
92862         m4 files in $m4dir.
92863         (func_create_testdir): Silence errors from 'grep' when there are no
92864         m4 files in $m4dir.
92865         Reported by Karl Berry <karl@freefriends.org>.
92867 2006-04-20  Bruno Haible  <bruno@clisp.org>
92869         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
92870         one argument, so that the code will be portable to Autoconf 2.60.
92871         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
92872         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
92873         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
92875 2006-04-19  Derek Price  <derek@ximbiot.com>
92876             Eric Blake  <ebb9@byu.net>
92878         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
92879         rather than "/full/path.h".  Update comment to match.  Shorten &
92880         generalize m4_translit call via AS_TR_CPP.
92882 2006-04-19  Derek Price  <derek@ximbiot.com>
92883             Eric Blake  <ebb9@byu.net>
92885         * lib/inttypes.h: Correct grammar in comment.
92887 2006-04-18  Derek Price  <derek@ximbiot.com>
92888             Paul Eggert  <eggert@cs.ucla.edu>
92890         * modules/inttypes: New file.
92891         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
92893 2006-04-18  Derek Price  <derek@ximbiot.com>
92894             Paul Eggert  <eggert@cs.ucla.edu>
92896         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
92897         New files.
92899 2006-04-18  Derek Price  <derek@ximbiot.com>
92900             Paul Eggert  <eggert@cs.ucla.edu>
92902         * lib/inttypes.h: New file.
92903         * lib/strtoimax.c: Assume <inttypes.h>.
92905 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
92907         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
92908         isn't mounted.  Problem reported by Kir Kolyshkin.
92910 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
92912         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
92913         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
92914         Derek R. Price.
92915         * lib/regex.h (RE_DUP_MAX): Update comment to match current
92916         implementation.
92918 2006-04-12  Eric Blake  <ebb9@byu.net>
92920         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
92921         is now done automatically by the corresponding Autoconf macro.
92923 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
92925         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
92926         time_r.h.
92928 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
92930         Merge regex changes from libc, removing some of our
92931         POSIX-conformance changes that were rejected and redoing them in a
92932         less-intrusive way.
92934         * lib/regcomp.c (re_compile_internal, init_dfa):
92935         Length arg is now size_t, not Idx.  All uses changed.
92936         (peek_token): Forward decl now says internal_function.
92937         (__re_error_msgid, __re_error_msgid_idx):
92938         Now static rather than extern with attribute_hidden.
92939         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
92940         For some reason libc prefers K&R style defns for external functions.
92941         (regerror) [!defined _LIBC]: Likewise.
92942         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
92943         (seek_collating_symbol_entry, lookup_collation_sequence_value):
92944         (build_range_exp, build_collating_symbol):
92945         Use K&R-style defn.
92946         (re_compile_fastmap): Use '\0' to memset, not 0.
92947         (utf8_sb_map): Make the calculations more obvious.
92948         (init_dfa, parse_bracket_exp, build_charclass_op):
92949         Call calloc and cast result, as glibc does.
92950         (init_word_char, fetch_token, peek_token, peek_token_bracket):
92951         (build_range_exp, build_collating_symbol):
92952         Now internal functions.
92954         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
92956         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
92957         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
92958         Don't depend on VMS; depend on __VMS instead, for POSIX
92959         namespace cleanness.
92960         (regoff_t): Define to ssize_t, not long int.
92962         Remove the REG_ macros named below.  Instead, make the old names
92963         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
92964         __USE_GNU_REGEX.
92965         (REG_BACKSLASH_ESCAPE_IN_LISTS):
92966         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
92967         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
92968         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
92969         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
92970         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
92971         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
92972         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
92973         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
92974         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
92975         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
92976         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
92977         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
92978         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
92979         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
92980         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
92981         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
92982         (REG_NREGS):
92983         Remove.  All uses replaced by the old RE_* names.
92984         (RE_BACKSLASH_ESCAPE_IN_LISTS):
92985         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
92986         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
92987         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
92988         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
92989         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
92990         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
92991         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
92992         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
92993         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
92994         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
92995         Don't bother having these macros be independent of each others'
92996         values, since they no longer exist in the POSIX name space.
92998         Rename the following member names back to their old names,
92999         unless !__USE_GNU_REGEX.  All uses changed back.
93000         (buffer): Renamed from re_buffer.
93001         (allocated): Renamed from re_allocated.
93002         (used): Renamed from re_used.
93003         (syntax): Renamed from re_syntax.
93004         (fastmap): Renamed from re_fastmap.
93005         (translate): Renamed from re_translate.
93006         (can_be_null): Renamed from re_can_be_null.
93007         (regs_allocated): Renamed from re_regs_allocated.
93008         (fastmap_accurate): Renamed from re_fastmap_accurate.
93009         (no_sub): Renamed from re_no_sub.
93010         (not_bol): Renamed from re_not_bol.
93011         (not_eol): Renamed from re_not_eol.
93012         (newline_anchor): Renamed from re_newline_anchor.
93013         (num_regs): Renamed from rm_num_regs.
93014         (start): Renamed from rm_start.
93015         (end): Renamed from rm_end.
93017         (free_state): Move up a bit.
93019         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
93020         #define to be empty.
93021         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
93022         when that is what is intended.
93023         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
93024         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
93025         (MAX): New macro.
93026         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
93027         All uses changed back to re_malloc, etc.  It's now the caller's
93028         responsibility to check for overflow; all callers changed.
93029         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
93030         (re_x2nrealloc): Remove.
93031         (free_state): Remove decl.
93033         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
93034         (re_set_registers, re_exec):
93035         Use K&R-style defn.
93037         2006-01-31  Roland McGrath  <roland@redhat.com>
93039         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
93040         Reported by Mike Frysinger <vapier@gentoo.org>.
93042         2006-01-15  Andreas Jaeger  <aj@suse.de>
93044         [BZ #1950]
93045         * lib/regex_internal.c (re_string_reconstruct): Adjust for
93046         build_wcs_upper_buffer change.
93047         (build_wcs_upper_buffer): Change return type.
93049         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
93051         * lib/regex_internal.h: Include <stdint.h> if available.
93053         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
93055         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
93057         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
93059         * lib/regcomp.c: Adjust for changed secondary hash function.
93061         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
93063         * lib/regex.h: Pretty printing.
93064         Clean up namespace a bit.
93066         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
93068         * lib/regexec.c (update_cur_sifted_state, check_arrival,
93069         check_arrival_add_next_nodes): Avoid using uninitialized variable.
93071         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
93072                     Ulrich Drepper  <drepper@redhat.com>
93074         [BZ #1302]
93075         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
93076         changed.
93077         (bitset_word_t): Renamed from bitset_word.  All uses changed.
93079         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
93081         [BZ #281]
93082         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
93083         * lib/regcomp.c: Remove unnecessary uses of
93084         unsigned RE_TRANSLATE_TYPE.
93085         * lib/regex_internal.h: Likewise.
93086         * lib/regex_internal.c: Likewise.
93087         * lib/regexec.c: Likewise.
93088         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
93090         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
93092         * lib/regexec.c (find_recover_state): Remove unnecessary
93093         initialization.
93094         (transit_state_bkref): Make DFA a const pointer.
93095         (get_subexp): Likewise.
93096         (check_arrival): Likewise.
93097         (update_cur_sifted_state): Likewise.
93098         (re_search_internal): Likewise.
93099         (prune_impossible_nodes): Likewise.
93100         (acquire_init_state_context): Likewise.
93101         (proceed_next_node): Likewise.
93102         (set_regs): Likewise.
93103         (free_fail_stack_return): Likewise.
93104         (check_arrival_expand_ecl): Mark DFA parameter as const.
93105         (check_arrival_expand_ecl_sub): Likewise.
93106         (check_subexp_limits): Likewise.
93107         (sub_epsilon_src_nodes):  Likewise.
93108         (add_epsilon_src_nodes):  Likewise.
93109         (merge_state_array): Likewise.
93110         (update_regs): Likewise.
93111         (build_trtable): Likewise.
93112         (sift_states_backward): Mark MCTX parameter as const.
93113         (build_sifted_states): Likewise.
93114         (update_cur_sifted_state): Likewise.
93115         (sift_states_mkref): Likewise.
93116         (check_arrival_expand_ecl): Mark eclosure as const.
93117         (check_dst_limits_calc_pos_1): Likewise.
93118         * lib/regex_internal.h (re_match_context_t): Make dfa a const
93119         pointer.
93121         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
93123         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
93124         (transit_state_sb): Likewise.
93125         (transit_state_mb): Likewise.
93126         (sift_states_iter_mb): Likewise.
93127         (check_arrival_add_next_nodes): Likewise.
93128         (check_node_accept_bytes): Change first parameter to pointer-to-const.
93129         [_LIBC] (re_search_2_stub): Use mempcpy.
93131         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
93132         mbrtowc for very simple UTF-8 case.
93134         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
93135         a pointer-to-const.
93136         (re_acquire_state_context): Likewise.
93137         * lib/regex_internal.h: Adjust prototypes.
93139         * lib/regex.c: Prevent using C++ compilers.
93141         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
93142         (re_acquire_state_context): Likewise.
93144 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
93146         * modules/regex (Depends-on): Add ssize_t.
93148 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
93150         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
93151         translation table.
93153 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
93155         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
93157 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
93158             Bruno Haible  <bruno@clisp.org>
93160         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
93161         <sys/types.h> and <inttypes.h>.
93163 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93165         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
93166         `__error_t_defined', so argp.h will not typedef the former.
93168 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
93170         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
93171         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
93172         glibc names.  Even if glibc is changed to conform to POSIX, the
93173         traditional names will be available anyway, since regex depends on
93174         the extensions module.  Also, fix a longstanding typo in the
93175         implementation of Spencer ERE test #75 from grep 2.3.  Problems
93176         reported by Emanuele Giaquinta.  Also, change sense of cached
93177         variable, so that the message makes sense.
93179 2006-03-24  Simon Josefsson  <jas@extundo.com>
93181         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
93182         including some doc fixes.
93183         (base64_encode_alloc): Fix +1 bug on allocation failures.
93185 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93187         * lib/base64.c (base64_encode): Do not read past end of array with
93188         unsanitized input on systems with CHAR_BIT > 8.
93190 2006-03-24  Eric Blake  <ebb9@byu.net>
93192         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
93194 2006-03-22  Karl Berry  <karl@gnu.org>
93196         * config/srclist.txt (*setenv.[ch]): get from coreutils.
93197         * config/srclistvars.sh (COREUTILS): new var.
93199 2006-03-17  Jim Meyering  <jim@meyering.net>
93201         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
93202         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
93204 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
93206         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
93207         no longer needs it.  Instead, check that regoff_t is as least
93208         as wide as ptrdiff_t.
93210         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
93211         so that our regex.h stays compatible with the installed regex.
93212         This is helpful for installers who configure --without-included-regex.
93213         Problem reported by Emanuele Giaquinta.
93215 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
93217         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
93218         Typedef to long int, not to off_, as POSIX will likely change
93219         in that direction.
93221 2006-03-15  Eric Blake  <ebb9@byu.net>
93223         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
93225 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
93227         * lib/argp-help.c (validate_uparams): Fix typo
93228         * lib/argp-parse.c (argp_default_options): Consistently begin help
93229         messages with a lowercase letter.
93231 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
93233         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
93234         overrun buffers and shouldn't be used (much as gets shouldn't be
93235         used).
93236         * lib/time_r.c (asctime_r, ctime_r): Likewise.
93238 2006-03-08  Simon Josefsson  <jas@extundo.com>
93240         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
93241         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93243 2006-03-08  Simon Josefsson  <jas@extundo.com>
93245         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
93246         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93248 2006-03-08  Simon Josefsson  <jas@extundo.com>
93250         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
93251         signal that configure disabled the device.
93253 2006-03-08  Simon Josefsson  <jas@extundo.com>
93255         * build-aux/maint.mk: Fix refresh-po, to handle no translated
93256         languages.
93258 2006-03-07  Simon Josefsson  <jas@extundo.com>
93260         * modules/getopt (Depends-on): Add unistd.
93262         * modules/unistd: New file.
93264 2006-03-07  Simon Josefsson  <jas@extundo.com>
93266         * modules/gc-random: New file.
93268 2006-03-07  Simon Josefsson  <jas@extundo.com>
93270         * m4/unistd_h.m4: New file.
93272 2006-03-07  Simon Josefsson  <jas@extundo.com>
93274         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
93275         test to be side-effect free by storing the result in the cache
93276         variable gl_cv_lib_readline, and moving the assignment of
93277         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
93278         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93280 2006-03-07  Simon Josefsson  <jas@extundo.com>
93282         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
93283         error on missing devices (the functions will return an error).
93285         * m4/gc.m4: Move random stuff to gc-random.m4
93287 2006-03-07  Simon Josefsson  <jas@extundo.com>
93289         * lib/unistd_.h: New file.
93291 2006-03-07  Simon Josefsson  <jas@extundo.com>
93293         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
93295 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
93297         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
93298         Problem reported by Juan Manuel Guerrero.
93300 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
93302         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
93303         the unistd module.
93304         * lib/getlogin_r.c: Likewise.
93305         * lib/getlogin_r.h: Likewise.
93306         * lib/glob.c: Likewise.
93307         * lib/pagealign_alloc.c: Likewise.
93308         * lib/unistd_.h: Remove; no longer needed.
93310 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
93312         * MODULES.html.sh (Support for systems lacking POSIX:2001):
93313         Add unistd.
93314         * modules/c-stack (Depends-on): Add unistd.
93315         * modules/getlogin_r: Likewise.
93316         * modules/glob: Likewise.
93317         * modules/pagealign_alloc: Likewise.
93318         * modules/unistd (Files): Remove lib/unistd_.h.
93319         (EXTRA_DIST): Remove.
93320         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
93321         need unistd_.h.
93322         (MOSTLYCLEANFILES): Remove unistd.h-t.
93324 2006-03-03  Simon Josefsson  <jas@extundo.com>
93326         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
93328 2006-03-03  Simon Josefsson  <jas@extundo.com>
93330         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
93331         libidn and bison.
93333 2006-03-03  Simon Josefsson  <jas@extundo.com>
93335         * build-aux/maint.mk: Add indent target.
93337 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
93339         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
93340         our replacement poll.h in any case, to avoid a differing
93341         declaration from a system header.  Seen on AIX.
93343 2006-03-01  Simon Josefsson  <jas@extundo.com>
93345         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
93346         <kasal@ucw.cz>.
93348 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
93350         * modules/gettime (Depends-on): Add extensions module.
93351         * modules/nanosleep (Depends-on): Likewise.
93352         * modules/settime (Depends-on): Likewise.
93354 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
93356         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
93357         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
93358         pedantically.
93359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
93360         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
93362         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
93363         not "==".  Reported by Ralf Wildenhues.
93365 2006-03-01  Karl Berry  <karl@gnu.org>
93367         * doc/Copyright/request-*: new files, synced from gnuorg.
93369 2006-03-01  Karl Berry  <karl@gnu.org>
93371         * config/srclist.txt (Copyright/*): new entries.
93373 2006-02-28  Simon Josefsson  <jas@extundo.com>
93375         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
93377 2006-02-27  Simon Josefsson  <jas@extundo.com>
93379         * lib/base64.h: Indent #define's.  From Jim Meyering
93380         <jim@meyering.net>.
93382 2006-02-27  Jim Meyering  <jim@meyering.net>
93384         Revert the change of 2006-02-24, so these files can continue
93385         to be sync'd from gettext.
93386         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
93387         of `config.h'.
93389 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
93391         * modules/intprops: New file.
93392         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
93393         Add intprops.
93394         * modules/getloadavg (Files): Remove lib/intprops.h.
93395         (Depends-on): Add intprops.
93396         * modules/human: Likewise.
93397         * modules/inttostr: Likewise.
93398         * modules/openat: Likewise.
93399         * modules/sig2str: Likewise.
93400         * modules/userspec: Likewise.
93401         * modules/utimecmp: Likewise.
93402         * modules/xnanosleep: Likewise.
93403         * modules/xstrtol: Likewise.
93405 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
93407         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
93408         * modules/lock-tests (TESTS): Use $(EXEEXT).
93409         * modules/tls-tests: Likewise.
93410         * modules/argp-tests: Likewise.
93411         (check_PROGRAMS): New var, replacing...
93412         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
93414 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93416         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
93417         `config.h'.
93419 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
93421         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
93423 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93425         Sync from coreutils.
93426         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
93427         gl_CHDIR_SAFER.
93429 2006-02-22  Jim Meyering  <jim@meyering.net>
93431         Sync from coreutils.
93432         * m4/chdir-safer.m4: New file.
93434 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
93436         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
93437         AT_FDCWD exceeds INT_MAX.
93438         * lib/openat.h (AT_FDCWD): Likewise.
93440 2006-02-17  Eric Blake  <address@hidden>
93442         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
93444 2006-02-16  Simon Josefsson  <jas@extundo.com>
93446         * modules/getaddrinfo (Depends-on): Add sys_socket.
93448 2006-02-15  Simon Josefsson  <jas@extundo.com>
93450         * build-aux/maint.mk: Add dsyntax-check rule.
93452 2006-02-15  Eric Blake  <ebb9@byu.net>
93454         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
93455         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
93456         'present but cannot compile' warnings on cygwin.
93457         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
93458         use ws2tcpip.h if sys/socket.h works.
93459         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
93460         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
93462 2006-02-14  Simon Josefsson  <jas@extundo.com>
93464         * modules/maintainer-makefile (Files): Rename.
93466         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
93467         and (the local) Makefile.cfg to maint-cfg.mk.
93469         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
93470         to the latter.
93472         * modules/maintainer-makefile: New module.
93474         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
93475         severaly stripped to make it possible to build it up from scratch
93476         with reliable tests.
93478         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
93479         fixes to permit overriding the default actions when configure and
93480         makefile are not available.
93482 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
93484         Sync from coreutils.
93485         * modules/lstat (Depends-on): Don't depend on xalloc.
93486         (License): Change from GPL to LGPL, since this is now simply a
93487         replacement for a libc function.
93489 2006-02-14  Jim Meyering  <jim@meyering.net>
93491         Sync from coreutils.
93493         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
93494         failure on deficient systems, and simplify gnulib lgpl dependencies.
93495         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
93496         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
93498         * lib/xalloc-die.c: Remove unused definition of N_.
93500 2006-02-14  Jim Meyering  <jim@meyering.net>
93502         Sync from coreutils.
93503         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
93504         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
93505         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
93506         double-quote uses of that variable, to accommodate the rare case in
93507         which getmntent is available in none of the libraries checked.  This
93508         happens at least on FreeBSD 5.0.
93510 2006-02-13  Simon Josefsson  <jas@extundo.com>
93512         * gnulib-tool (Usage): Fix --import, from
93513         karl@freefriends.org (Karl Berry).
93515 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
93517         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
93519 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
93521         * lib/argp-namefrob.h: Restore changes accidentally lost during the
93522         "autoupdate" on 2005-12-12.
93524 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
93526         * modules/closeout (Depends-on): Remove atexit.
93528 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
93530         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
93531         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
93533 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
93535         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
93536         __EXTENSIONS__ if this causes compilation to fail.  Problem
93537         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
93538         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
93540 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
93542         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
93543         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
93544         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
93545         All uses changed.
93547 2006-01-26  Simon Josefsson  <jas@extundo.com>
93549         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
93550         prototype is visible on mingw32.
93552         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
93553         for mingw32.
93555         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
93556         mingw32).
93558 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
93560         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
93561         attempt to open for write; this always fails, at least on POSIX
93562         hosts.  This reinstates the 2006-01-09 change, which was
93563         inadvertently removed.
93565 2006-01-26  Bruno Haible  <bruno@clisp.org>
93567         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
93568         Reported by Paul Eggert.
93570 2006-01-26  Bruno Haible  <bruno@clisp.org>
93571             Paul Eggert  <eggert@cs.ucla.edu>
93573         * lib/stdbool_.h (_Bool)
93574         [(! (defined __cplusplus || defined __BEOS__)
93575           && !defined __GNUC__
93576           && !(defined __HP_cc || defined __xlc__
93577                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
93578                || defined __sgi))]:
93579         #define to signed char in these cases too; this simplifies
93580         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
93581         etc., separately) and makes it more conservative.
93583 2006-01-25  Simon Josefsson  <jas@extundo.com>
93585         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
93586         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
93587         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
93589 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
93591         * lib/argp-namefrob.h: Bugfix. Remove stray #
93593 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
93595         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
93596         so that we test the test.
93597         Check for yet another HP-UX cc bug involving *bool |= bool.
93599 2006-01-25  Karl Berry  <karl@gnu.org>
93601         * config/srclist.txt (vasnprintf.c): sync lost.
93603 2006-01-25  Jim Meyering  <jim@meyering.net>
93605         Sync from the stable (b5) branch of coreutils:
93607         * lib/fts.c (fts_children): Don't let close() clobber errno from
93608         failed fchdir().
93610         * lib/fts.c (fts_stat): When following a symlink-to-directory,
93611         don't necessarily interpret stat-fails+lstat-succeeds as indicating
93612         a dangling symlink.  That can also happen at least for ELOOP.
93613         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
93614         FYI, this bug predates the inclusion of fts.c in coreutils.
93616         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
93617         in their own block, so pre-c99 compilers don't object.
93619         Avoid the double-free (first in fts_read, second in fts_close) that
93620         would occur when an `active' directory is made inaccessible (e.g.,
93621         via chmod a-x) during a traversal.
93622         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
93623         before returning.  Reproduce this failure by
93624         mkdir -p a/b; cd a; chmod a-x . b
93625         Reported by Stavros Passas.
93627 2006-01-25  Jim Meyering  <jim@meyering.net>
93629         * lib/fileblocks.c: Remove more useless parentheses.
93630         * lib/readutmp.h: Likewise.
93632 2006-01-25  Bruno Haible  <bruno@clisp.org>
93634         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
93635         warnings.
93636         Reported by Paul Eggert.
93638 2006-01-25  Bruno Haible  <bruno@clisp.org>
93640         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
93641         rid of a trap command. For Solaris sh.
93642         Reported by Mark D. Baushke <mdb@gnu.org>.
93644 2006-01-24  Simon Josefsson  <jas@extundo.com>
93646         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
93647         Bruno.
93649 2006-01-24  Karl Berry  <karl@gnu.org>
93651         * config/srclist.txt (argp-namefrob.h): sync lost.
93653 2006-01-24  Jim Meyering  <jim@meyering.net>
93655         * modules/openat (Files): Add lib/intprops.h.
93656         From Mark D. Baushke.
93658 2006-01-24  Jim Meyering  <jim@meyering.net>
93660         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
93661         Reported by Mark D. Baushke.
93663 2006-01-24  Jim Meyering  <jim@meyering.net>
93665         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
93667 2006-01-24  Bruno Haible  <bruno@clisp.org>
93669         * modules/strnlen (Maintainer): Change from glibc to all.
93671 2006-01-24  Bruno Haible  <bruno@clisp.org>
93673         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
93674         Patch by Paul Eggert.
93676 2006-01-24  Bruno Haible  <bruno@clisp.org>
93678         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
93679         already has it.
93680         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
93681         2005-11-26.
93683         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
93684         'signed char' to avoid problems with the built-in _Bool type.
93685         Reported by Paul Eggert on 2005-11-26.
93687 2006-01-24  Bruno Haible  <bruno@clisp.org>
93689         * gnulib-tool (func_import): Avoid constructing complicated sed
93690         expressions inside backquote.
93691         Report and solution by Mark D. Baushke <mdb@gnu.org>.
93693 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
93695         These changes imported from libc.
93696         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
93697         test and two separate function calls.
93698         * lib/strndup.c (__strndup): Add libc_hidden_def.
93700 2006-01-23  Simon Josefsson  <jas@extundo.com>
93702         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
93703         Remove the test_*_SOURCES variable: automake infers it by default.
93704         * modules/tls-tests: Likewise.
93706 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93708         Work around porting bugs reported by Dieter in
93709         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
93710         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
93711         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
93712         Include "getopt.h" first, to check interface.
93713         (getenv): Declare only if defined HAVE_DECL_GETENV &&
93714         !HAVE_DECL_GETENV.
93715         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
93716         (__strndup): Revert to K&R-style function dfns, the glibc style.
93717         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
93718         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
93719         Include strnlen.h first, to get prototype properly.
93720         (strnlen): Renamed from __strnlen.
93721         Remove weak alias.
93723 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93725         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
93727 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93729         * config/srclist.txt: Adjust to reflect glibc reorganization.
93730         This affects only comments.
93732 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
93734          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
93735          Reported by Bruce Korb <bkorb@gnu.org>.
93737 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
93739         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
93740         to pacify gcc -Wswitch-default.
93742 2006-01-22  Bruno Haible  <bruno@clisp.org>
93744         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
93745         temporary buffer for sprintf, take into account the precision also
93746         for 'd', 'i', 'u', 'o', 'x', 'X'.
93748 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
93750         * modules/argp-tests: New module
93751         * tests/test-argp.c: New file
93752         * tests/test-argp-2.sh: New file
93754 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
93756         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
93757         (__argp_base_name): Removed
93758         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
93759         typo.
93760         (__argp_base_name): Provide macro definition or extern declaration
93761         depending on the configuration
93763 2006-01-20  Simon Josefsson  <jas@extundo.com>
93765         * modules/inet_ntop (Depends-on): Depend on sys_socket.
93767 2006-01-20  Simon Josefsson  <jas@extundo.com>
93769         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
93771 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
93773         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
93774         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
93775         Suggested by Bruno Haible.
93777 2006-01-20  Karl Berry  <karl@gnu.org>
93779         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
93780         until changes propagate, I guess.
93782 2006-01-19  Simon Josefsson  <jas@extundo.com>
93784         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
93786 2006-01-19  Simon Josefsson  <jas@extundo.com>
93788         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
93790 2006-01-19  Simon Josefsson  <jas@extundo.com>
93792         * gnulib-tool: Set check_PROGRAMS.
93794         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
93795         modules/des-tests, modules/gc-arcfour-tests,
93796         modules/gc-arctwo-tests, modules/gc-des-tests,
93797         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
93798         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
93799         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
93800         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
93801         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
93802         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
93803         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
93804         test_*_SOURCES.
93806 2006-01-18  Simon Josefsson  <jas@extundo.com>
93808         * modules/socklen (Depends-on): Depend on sys_socket.
93810 2006-01-18  Simon Josefsson  <jas@extundo.com>
93812         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
93813         modules/des-tests, modules/gc-arcfour-tests,
93814         modules/gc-arctwo-tests, modules/gc-des-tests,
93815         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
93816         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
93817         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
93818         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
93819         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
93820         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
93821         $(EXEEXT) to automake TESTS variable, for mingw32.
93823 2006-01-17  Simon Josefsson  <jas@extundo.com>
93825         * modules/socklen (Include): Need sys/socket.h.
93827 2006-01-17  Bruno Haible  <bruno@clisp.org>
93829         * modules/ssize_t (Include): Add <sys/types.h>.
93831 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
93833         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
93834         it's not portable and it doesn't work with cross-compiles.
93835         Problem reported by Bruno Haible.  Fix missing-$ typo in
93836         'test "gl_cv_ignore_unused_libraries" ...' that prevented
93837         -zignore from being used with Sun's C compiler.
93839 2006-01-12  Simon Josefsson  <jas@extundo.com>
93841         * lib/base64.c: Fix warning, reported by Bruno Haible
93842         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
93844 2006-01-12  Bruno Haible  <bruno@clisp.org>
93846         * modules/ldd: New file.
93847         * build-aux/ldd.sh.in: New file.
93848         * MODULES.html.sh (Support for building libraries and executables): Add
93849         ldd.
93851 2006-01-12  Bruno Haible  <bruno@clisp.org>
93853         * m4/ldd.m4: New file.
93855 2006-01-12  Bruno Haible  <bruno@clisp.org>
93857         * gnulib-tool (func_import, func_create_testdir): Don't go into an
93858         endless loop while replacing $auxdir with build-aux.
93860 2006-01-11  Simon Josefsson  <jas@extundo.com>
93862         * lib/stdint_.h (SIZE_MAX): Add missing (.
93864 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
93866         Sync from coreutils.
93867         * lib/md5.c: Fix commentary typos.
93868         (alignof, UNALIGNED_P): No need for a GCC-specific version.
93869         * lib/md5.h (__attribute__): Remove; unused.
93870         * lib/sha1.c: Fix commentary to match md5 better.
93871         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
93872         so that we don't need to worry about alignment.  All uses changed.
93873         This merges the 2005-10-28 md5 change into sha1.
93875 2006-01-11  Jim Meyering  <jim@meyering.net>
93877         Sync from coreutils.
93878         * lib/md5.c (OP): Fix spacing.
93880 2006-01-11  Bruno Haible  <bruno@clisp.org>
93882         Ensure automatic ordering between gl_LOCK and gl_ARGP.
93883         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
93884         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
93886 2006-01-11  Bruno Haible  <bruno@clisp.org>
93888         Ensure automatic ordering between gl_LOCK and gl_ARGP.
93889         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
93890         the "early" section as well.
93892 2006-01-11  Bruno Haible  <bruno@clisp.org>
93894         Avoid "ar: no archive members specified" error on MacOS X.
93895         * gnulib-tool (func_modules_add_dummy): New function.
93896         (func_import, func_create_testdir): Invoke it.
93898 2006-01-11  Bruno Haible  <bruno@clisp.org>
93900         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
93901         with $auxdir in AC_CONFIG_FILES statements.
93903 2006-01-11  Bruno Haible  <bruno@clisp.org>
93905         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93906         Initialize also noinst_HEADERS to empty.
93908 2006-01-11  Bruno Haible  <bruno@clisp.org>
93910         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
93911         variables.
93912         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
93913         autoreconf.
93915 2006-01-11  Bruno Haible  <bruno@clisp.org>
93917         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
93918         overridable by the user.
93919         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93921 2006-01-10  Simon Josefsson  <jas@extundo.com>
93923         * modules/sys_socket: New file.
93925 2006-01-10  Simon Josefsson  <jas@extundo.com>
93927         * m4/sys_socket_h.m4: New file.
93929 2006-01-10  Simon Josefsson  <jas@extundo.com>
93931         * lib/socket_.h: New file.
93933 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
93935         * modules/readutmp (Maintainer): Add myself.
93937 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
93939         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
93940         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
93941         People who are still concerned with buggy memcmp implementations
93942         can invoke gl_FUNC_MEMCMP themselves.
93944 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
93946         * lib/regex_internal.h (BITSET_WORD_BITS):
93947         Work around a bug in 64-bit PGC (before version 6.1-2), where the
93948         preprocessor mishandles large unsigned values as if they were signed.
93949         Problem reported by Claudio Fontana in
93950         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
93952 2006-01-10  Jim Meyering  <jim@meyering.net>
93954         Avoid the double-free (first in fts_read, second in fts_close) that
93955         would occur when an `active' directory is made inaccessible (e.g.,
93956         via chmod a-x) during a traversal.
93957         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
93958         before returning.  Reproduce this failure by
93959         mkdir -p a/b; cd a; chmod a-x . b
93960         Reported by Stavros Passas.
93962         Sync from coreutils.
93963         * lib/sha1.c: Tweak grammar in a comment.
93965 2006-01-10  Jim Meyering  <jim@meyering.net>
93967         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
93968         Patch by Joerg Sonnenberger.
93970 2006-01-10  Bruno Haible  <bruno@clisp.org>
93972         * modules/readutmp: Depend on module free.
93973         * modules/strtok_r: Depend on module restrict.
93975 2006-01-10  Bruno Haible  <bruno@clisp.org>
93977         * modules/gettext (configure.ac): Add an invocation of
93978         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
93980 2006-01-10  Bruno Haible  <bruno@clisp.org>
93982         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
93983         Reported by Werner Lemberg <wl@gnu.org>.
93985 2006-01-10  Bruno Haible  <bruno@clisp.org>
93987         * lib/localcharset.c: Update from GNU gettext.
93989 2006-01-10  Bruno Haible  <bruno@clisp.org>
93991         * lib/argp.h (__const): Remove macro. Use const instead.
93992         * lib/argp-fmtstream.h (__const): Likewise.
93993         * lib/glob_.h (__const): Remove macro.
93994         * lib/glob-libc.h: Use const instead of __const.
93996 2006-01-10  Bruno Haible  <bruno@clisp.org>
93998         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
93999         variable.
94000         Needed to avoid an automake error regarding the 'gettext' module.
94002 2006-01-09  Simon Josefsson  <jas@extundo.com>
94004         * modules/inet_ntop (Depends-on): Add restrict.
94006 2006-01-09  Simon Josefsson  <jas@extundo.com>
94008         * modules/gc-rijndael-tests (License): Put under LGPL.
94010         * modules/gc-des-tests (License): Likewise.
94012         * modules/gc-arcfour-tests (License): Likewise.
94014         * modules/gc-arctwo-tests (License): Likewise.
94016         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
94018         * modules/gc-hmac-sha1-tests (Files): Likewise.
94020         * modules/gc-hmac-md5-tests (License): Likewise.
94022         * modules/gc-sha1-tests (License): Likewise.
94024         * modules/gc-md5-tests (License): Likewise.
94026         * modules/gc-md4-tests (License): Likewise.
94028         * modules/gc-md2-tests (License): Likewise.
94030         * modules/gc-tests (License): Likewise.
94032         * modules/des-tests (License): Likewise.
94034         * modules/md4-tests (License): Likewise.
94036         * modules/md2-tests (License): Likewise.
94038 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
94040         Sync from coreutils:
94042         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
94043         * modules/lib-ignore: New file.
94044         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
94045         chdir-safer.m4, lchmod.m4.
94046         * modules/openat: Add mkdirat.c, openat-priv.h.
94048 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
94050         Sync from coreutils.
94051         * m4/lib-ignore.m4: New file.
94052         * m4/lchmod.m4: New file.
94054 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
94056         Sync from coreutils.
94057         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
94058         for write access: POSIX says that must fail.
94059         * lib/fts.c (diropen): Likewise.
94060         * lib/save-cwd.c (save_cwd): Likewise.
94061         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
94062         well, for minor improvements on hosts that lack O_DIRECTORY.
94063         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
94064         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
94065         Fall back on chown if open failed with EACCES.
94067         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
94068         Report an error at compile-time if only a 1-second nominal clock
94069         resolution is found.
94071         * lib/lchmod.h: New file.
94072         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
94073         (make_dir_parents): Use lchown rather than chown, and
94074         lchmod rather than chmod.
94076         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
94077         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
94078         "proc" reported by n0dalus.
94080         * lib/mountlist.c: Include <limits.h>.
94081         (dev_from_mount_options)
94082         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
94083         New function.  It no longer assumes "dev=" has the System V meaning
94084         on Linux (since it doesn't).  It also parses "dev=" more carefully.
94085         (read_file_system_list)
94086         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
94087         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
94088         dev= in that case.
94090         * lib/posixtm.h (PDS_PRE_2000): New macro.
94091         * lib/posixtm.c (year): Arg is now syntax_bits rather than
94092         allow_century.  All usages changed.  Reject dates outside the range
94093         1969-1999 if PDS_PRE_2000 is used.
94095 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
94097         Sync from coreutils.
94098         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
94099         (Time of day items): Mention the possibility of leap seconds.
94100         Problem reported by Dr. David Alan Gilbert.
94102 2006-01-09  Jim Meyering  <jim@meyering.net>
94104         Sync from coreutils.
94106         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
94108         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
94110         * lib/modechange.c (mode_compile): Reject an invalid mode string
94111         that starts with an octal digit.  From Andreas Gruenbacher.
94113         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
94114         and dup to open_safer and dup_safer, respectively.
94115         (openat_permissive): Fix typo in comment.
94117         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
94118         "gettext.h"; either no longer needed or are guaranteed by openat.h.
94119         (_): Remove; no longer needed.
94120         (openat): Renamed from rpl_openat; no need for rpl_openat
94121         since openat.h renames openat for us.
94122         Replace most of the body with a call to openat_permissive,
94123         to avoid duplicate code.
94124         Port to (probably hypothetical) environments were mode_t is
94125         wider than int.
94126         (openat_permissive): Require mode arg, so that we can check
94127         types better.  Put it just after flags.  Change cwd failure
94128         indicator from pointer-to-bool to pointer-to-errno-value.
94129         All callers changed.
94130         Invoke openat_save_fail and/or openat_restore_fail if
94131         cwd_errno is null, so that openat can call us.
94132         (openat_permissive, fdopendir, fstatat, unlinkat):
94133         Simplify errno handling to avoid some duplicate code,
94134         as it's OK to set errno on success.
94135         * lib/openat.h: Revamp code so that function macros depend on
94136         __OPENAT_PREFIX only, not also on AT_FDCWD.
94137         (openat_ro): Remove.  Caller changed to use openat_permissive.
94138         (openat_permissive): Now a macro, if not a function.
94139         (openat_restore_fail, openat_save_fail): Now always functions,
94140         since mkdirat needs them even if __OPENAT_PREFIX is defined.
94142         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
94143         and openat.c.
94144         * lib/mkdirat.c: Include openat-priv.h.
94145         Remove definitions of macros defined therein.
94146         * lib/openat.c: Likewise.
94148         * lib/mkdirat.c (mkdirat): New file and function.
94149         * lib/openat.h (mkdirat): Declare.
94151         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
94153         * lib/openat.h (openat_permissive): Declare.
94154         (openat_ro): Define.
94156         * lib/openat.c (EXPECTED_ERRNO): New macro.
94157         (openat_permissive): New function -- used in remove.c rewrite.
94158         (all functions): Set errno just before returning, only if there
94159         was an actual failure.
94160         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
94162         Emulate openat-family functions using Linux's procfs, if possible.
94163         Idea and some code based on Ulrich Drepper's glibc changes.
94165         * lib/openat.c: (BUILD_PROC_NAME): New macro.
94166         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
94167         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
94168         before falling back on save_cwd and restore_cwd.
94169         (fdopendir, fstatat, unlinkat): Likewise.
94171         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
94172         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
94174         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
94175         as second argument to va_arg.  Otherwise, some versions of gcc
94176         warn that `if this code is reached, the program will abort'.
94178 2006-01-09  Jim Meyering  <jim@meyering.net>
94180         Sync from coreutils.
94181         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
94182         Require openat-priv.h.
94184 2006-01-09  Bruno Haible  <bruno@clisp.org>
94186         * modules/strnlen (Include): Use strnlen.h.
94188 2006-01-09  Bruno Haible  <bruno@clisp.org>
94190         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
94192 2006-01-09  Bruno Haible  <bruno@clisp.org>
94194         * lib/sysexit_.h (EX_OK): New macro.
94195         Suggested by Martin Lambers <marlam@marlam.de>.
94197 2006-01-09  Bruno Haible  <bruno@clisp.org>
94199         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
94200         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
94202 2006-01-09  Bruno Haible  <bruno@clisp.org>
94204         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
94205         numbers.
94207 2006-01-09  Bruno Haible  <bruno@clisp.org>
94209         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
94210         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
94211         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
94212         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
94214 2006-01-09  Bruno Haible  <bruno@clisp.org>
94216         * build-aux/javacomp.sh.in: New file, moved from lib/.
94217         * modules/javacomp-script (Files): Update.
94218         (configure.ac): Add AC_CONFIG_FILES invocation.
94219         (EXTRA_DIST): Remove variable.
94221         * build-aux/javaexec.sh.in: New file, moved from lib/.
94222         * modules/javaexec (Files): Update.
94223         (configure.ac): Add AC_CONFIG_FILES invocation.
94224         (EXTRA_DIST): Remove javaexec.sh.in.
94226         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
94227         * modules/csharpcomp-script (Files): Update.
94228         (configure.ac): Add AC_CONFIG_FILES invocation.
94229         (EXTRA_DIST): Remove variable.
94231         * build-aux/csharpexec.sh.in: New file, moved from lib/.
94232         * modules/csharpexec (Files): Update.
94233         (configure.ac): Add AC_CONFIG_FILES invocation.
94234         (EXTRA_DIST): Remove csharpexec.sh.in.
94236 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
94238         Sync from coreutils.
94240         Add POSIX ACL support
94241         * lib/acl.h (copy_acl, set_acl): Add declarations.
94242         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
94243         systems other than Linux.
94244         (chmod_or_fchmod): New function: use fchmod when possible,
94245         and chmod otherwise.
94246         (file_has_acl): Add a POSIX ACL implementation, with a
94247         Linux-specific subcase.
94248         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
94249         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
94250         acls are unsupported.
94251         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
94252         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
94253         are unsupported.
94255 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
94257         Sync from coreutils.
94258         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
94260 2006-01-07  Bruno Haible  <bruno@clisp.org>
94262         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
94263         gl_EARLY.
94265 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
94267         * lib/strftime.c (tzname): Don't declare if it is already #defined.
94268         Problem reported for Mingw by Mark Junker.
94270 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
94272         * README: Gnulib normally doesn't generate a tarball.
94274 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
94276         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
94277         long int, not int, for nanosecond counts, so that people who are
94278         used to POSIX struct timespec won't be surprised.  Reported by Jim
94279         Meyering.
94281 2005-12-28  Bruno Haible  <bruno@clisp.org>
94283         * build-aux/config.rpath: Update from GNU gettext.
94285 2005-12-16  Jim Meyering  <jim@meyering.net>
94287         * modules/fprintftime: New module.
94288         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
94290 2005-12-16  Jim Meyering  <jim@meyering.net>
94292         * m4/fprintftime.m4: New file.
94294 2005-12-16  Jim Meyering  <jim@meyering.net>
94296         * lib/fprintftime.c, lib/fprintftime.h: New files.
94298 2005-12-15  Simon Josefsson  <jas@extundo.com>
94300         * modules/socklen (configure.ac): Fix M4 macro name, to align with
94301         new m4/socklen.m4.
94303 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
94305         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
94306         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
94308 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
94310         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
94311         * lib/argp-help.c (fill_in_uparams): Check if the constructed
94312         struct uparams is valid. Fall back to the default values if it is
94313         not.
94315 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
94317         * modules/argp (Files): Add argp-pin.c
94318         (Depends-on): dirname
94319         (lib_SOURCES): Add argp-pin.c
94321 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
94323         * m4/argp.m4:  Check if program_invocation_name and
94324         program_invocation_short_name are declared and define appropriate
94325         macros if they are not.
94327 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
94329         * lib/argp-help.c (__argp_base_name): New function
94330         (__argp_short_program_name): Rewrite using __argp_base_name
94331         * lib/argp-namefrob.h: Define program_invocation_name and
94332         program_invocation_short_name if requested
94333         (__argp_base_name): Add prototype
94334         * lib/argp-parse.c (argp_def): Use gettext wrappers
94335         (argp_default_parser): Use __argp_base_name
94336         * lib/argp-pin.c: New file. Defines program_invocation_name and
94337         program_invocation_short_name on systems that lack them.
94339 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
94341         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
94342         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
94343         porting problem reported by Georg Schwarz in
94344         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
94346 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
94348         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
94349         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
94350         porting problem reported by Georg Schwarz in
94351         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
94353 2005-12-05  Bruno Haible  <bruno@clisp.org>
94355         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
94356         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
94357         Reported by Mark Junker <mjscod@gmx.de>.
94359 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
94361         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
94362         Use implementation from Albert Chin, with some
94363         comments/corrections by Stepan Kasal and myself.
94365 2005-12-02  Bruno Haible  <bruno@clisp.org>
94367         * gnulib-tool (func_import): Accept GPLed build tool modules when
94368         --lgpl is given.
94369         * modules/csharpcomp-script: New file.
94370         * modules/csharpcomp: Depend on it.
94371         * modules/javacomp-script: New file.
94372         * modules/javacomp: Depend on it.
94373         Suggested by Simon Josefsson.
94375 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
94377         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
94378         statement, to work around an HP-UX 10.20 compiler bug reported by
94379         Peter O'Gorman.
94381 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
94383         * modules/savedir (Depends-on): Add openat.
94385 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
94387         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
94388         (uintmax_t) [defined uintmax_t]: Do not declare.
94389         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
94390         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
94391         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
94392         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
94393         sake of portability to weird hosts that C allows (though we don't
94394         know of any practical examples).
94396         * lib/savedir.h (fdsavedir): New decl.
94397         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
94398         contains most of the former guts of savedir.
94399         (savedir): Use savedirstream.
94400         Include "openat.h".
94402 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
94404         * modules/obstack (Files): Add m4/ulonglong.m4.
94405         Problem reported by Davide Angelocola.
94407 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
94409         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
94410         coreutils no longer futzes with rounding modes.
94412 2005-11-14  Jim Meyering  <jim@meyering.net>
94414         * lib/mkstemp-safer.c: Include <config.h>, required for possible
94415         replacement of mkstemp.
94417 2005-11-10  Simon Josefsson  <jas@extundo.com>
94419         * lib/readline.c: Remove EOL.
94421 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
94423         * modules/gethrxtime (Depends-on): Add gettime.
94425 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
94427         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
94428         or gettimeofday; no longer needed.
94430 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
94432         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
94433         time business.
94434         (gethrxtime) [! (HAVE_NANOUPTIME
94435         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
94436         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
94437         our own approximation.
94439 2005-11-08  Eric Blake  <ebb9@byu.net>
94441         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
94443 2005-11-08  Eric Blake  <ebb9@byu.net>
94445         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
94447 2005-11-04  Bruno Haible  <bruno@clisp.org>
94449         * gnulib-tool: Implement --update mode.
94451 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
94453         Fix porting problem reported by Theodoros V. Kalamatianos.
94454         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
94455         Don't assume that futimes failing means we must fail.
94457 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
94459         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
94460         variables to suggest the intended function of the PATH_MAX check.
94462 2005-10-30  Kean Johnston  <jkj@sco.com>
94464         Trivial changes to support SCO systems.
94465         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
94466         as PATH_MAX.
94467         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
94468         where __ptr is null when no I/O is pending.
94470 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
94472         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
94473         leave errno alone.  Problem reported by Dmitry V. Levin.
94475 2005-10-28  Simon Josefsson  <jas@extundo.com>
94477         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
94478         Test more.
94480         * tests/test-gc-md2.c, tests/test-md2.c: New files.
94482         * modules/md2, modules/md2-tests: New files.
94484 2005-10-28  Simon Josefsson  <jas@extundo.com>
94486         * m4/inet_ntop.m4: More tests.
94488         * m4/gc-md2.m4, md2.m4: New file.
94490 2005-10-28  Simon Josefsson  <jas@extundo.com>
94492         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
94493         "restrict" keywords, as per POSIX.  Protect the function
94494         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
94495         Don't use K&R prototypes.  Check the sprintf return values.
94496         Re-define EAFNOSUPPORT if not present.  Indent.
94498         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
94499         suggested by Bruno Haible <bruno@clisp.org>.
94501         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
94503         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
94505         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
94506         libgcrypt).
94508         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
94510         * lib/md2.h, lib/md2.c: New files.
94512 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
94514         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
94515         errno alone.  Problem reported by Frederic Jolliton.
94517 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
94519         * modules/verify (License): Change from GPL to LGPL.  This is a
94520         tiny module and there are apparently near-equivalents that are
94521         under the BSD license.
94523 2005-10-24  Simon Josefsson  <jas@extundo.com>
94525         * modules/sha1: Relicense to LGPL.
94527 2005-10-24  Simon Josefsson  <jas@extundo.com>
94529         * lib/md4.h: Shrink buffer size, now that we changed the type.
94531 2005-10-23  Simon Josefsson  <jas@extundo.com>
94533         * gnulib-tool (func_import): Fix --tests-base.
94535 2005-10-22  Simon Josefsson  <jas@extundo.com>
94537         * modules/arcfour (Depends-on): Need stdint.
94539 2005-10-22  Simon Josefsson  <jas@extundo.com>
94541         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
94542         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
94544 2005-10-22  Simon Josefsson  <jas@extundo.com>
94546         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
94547         suggested by Bruno Haible <bruno@clisp.org>.
94549 2005-10-22  Simon Josefsson  <jas@extundo.com>
94551         * lib/crc.h: Include stddef.h, for size_t.
94553 2005-10-22  Simon Josefsson  <jas@extundo.com>
94555         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
94556         arcfour_context struct (simplify test vector testing in GNU
94557         Shishi).
94559 2005-10-21  Simon Josefsson  <jas@extundo.com>
94561         * modules/des, modules/des-tests: New files.
94563         * modules/gc-des, modules/gc-des-tests: New files.
94565         * tests/test-des.c, tests/test-gc-des.c: New file.
94567 2005-10-21  Simon Josefsson  <jas@extundo.com>
94569         * modules/arctwo, modules/arctwo-tests: New files.
94571         * tests/test-arctwo.c: New file.
94573         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
94575         * tests/test-gc-arctwo.c: New file.
94577 2005-10-21  Simon Josefsson  <jas@extundo.com>
94579         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
94580         Bruno Haible <bruno@clisp.org>.
94582         * m4/gc-des.m4: New file.
94584 2005-10-21  Simon Josefsson  <jas@extundo.com>
94586         * m4/arctwo.m4: New file.
94588         * m4/gc-arctwo.m4: New file.
94590 2005-10-21  Simon Josefsson  <jas@extundo.com>
94592         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
94593         block.
94595 2005-10-21  Simon Josefsson  <jas@extundo.com>
94597         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
94598         <bruno@clisp.org>.
94600         * lib/hmac-sha1.c (hmac_sha1): Likewise.
94602         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
94603         Bruno Haible <bruno@clisp.org>.
94605         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
94606         <bruno@clisp.org>.
94608 2005-10-21  Simon Josefsson  <jas@extundo.com>
94610         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
94612 2005-10-21  Simon Josefsson  <jas@extundo.com>
94614         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
94616 2005-10-21  Simon Josefsson  <jas@extundo.com>
94618         * lib/des.h, lib/des.c: New files.
94620         * lib/gc-gnulib.c: Support DES.c
94622 2005-10-21  Simon Josefsson  <jas@extundo.com>
94624         * lib/arctwo.h, lib/arctwo.c: New files.
94626         * lib/gc-gnulib.c: Support ARCTWO.
94628 2005-10-21  Simon Josefsson  <jas@extundo.com>
94630         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
94631         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94633 2005-10-21  Simon Josefsson  <jas@extundo.com>
94635         * gnulib-tool (func_import, func_create_testdir): Define automake
94636         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
94637         Makefile.am snippet),
94638         suggested by Bruno Haible <bruno@clisp.org>.
94640         * modules/gc (Makefile.am): Use it.
94642 2005-10-21  Bruno Haible  <bruno@clisp.org>
94644         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
94645         patch.
94647 2005-10-19  Simon Josefsson  <jas@extundo.com>
94649         * tests/test-gc-rijndael.c: New file.
94651         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
94653 2005-10-19  Simon Josefsson  <jas@extundo.com>
94655         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
94656         interface too.
94658 2005-10-19  Simon Josefsson  <jas@extundo.com>
94660         * tests/test-gc-arcfour.c: New file.
94662         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
94664 2005-10-19  Simon Josefsson  <jas@extundo.com>
94666         * modules/gc-md4, modules/gc-md4-tests: New file.
94668         * tests/test-gc-md4.c: New file.
94670 2005-10-19  Simon Josefsson  <jas@extundo.com>
94672         * m4/gc-md4.m4: New file.
94674 2005-10-19  Simon Josefsson  <jas@extundo.com>
94676         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
94677         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
94678         <kasal@ucw.cz>.
94680 2005-10-19  Simon Josefsson  <jas@extundo.com>
94682         * m4/gc-arcfour.m4: New file.
94684         * m4/gc-rijndael.m4: New file.
94686 2005-10-19  Simon Josefsson  <jas@extundo.com>
94688         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
94690 2005-10-19  Simon Josefsson  <jas@extundo.com>
94692         * lib/gc-gnulib.c: Support ARCFOUR.
94694 2005-10-19  Simon Josefsson  <jas@extundo.com>
94696         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
94697         support.
94699         * lib/gc.h: Add ECB enum type.
94701         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
94703 2005-10-18  Simon Josefsson  <jas@extundo.com>
94705         * tests/test-md5.c: New file.
94707         * modules/md5-tests: New file.
94709 2005-10-18  Simon Josefsson  <jas@extundo.com>
94711         * tests/test-md4.c: New file.
94713         * modules/md4, modules/md4-tests: New files.
94715 2005-10-18  Simon Josefsson  <jas@extundo.com>
94717         * m4/md4.m4: New file.
94719 2005-10-18  Simon Josefsson  <jas@extundo.com>
94721         * lib/md4.h, lib/md4.c: New files, based on md5.?.
94723 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
94725         * gnulib-tool (func_create_testdir): Omit the second check whether
94726         BUILT_SOURCES in nonempty.
94728 2005-10-17  Simon Josefsson  <jas@extundo.com>
94730         * tests/test-rijndael.c: New file.
94732 2005-10-17  Simon Josefsson  <jas@extundo.com>
94734         * modules/sha1: Depend on stdint instead of md5.
94736         * modules/md5: Depend on stdint, remove uint32_t.
94738 2005-10-17  Simon Josefsson  <jas@extundo.com>
94740         * modules/gc-sha1-tests: New file.
94742         * tests/test-gc-sha1.c: New file.
94744 2005-10-17  Simon Josefsson  <jas@extundo.com>
94746         * m4/md5.m4: Remove call to uint32_t.m4.
94748 2005-10-17  Simon Josefsson  <jas@extundo.com>
94750         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
94752         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
94753         md5.h.
94755         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
94757         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
94759 2005-10-17  Simon Josefsson  <jas@extundo.com>
94761         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
94763 2005-10-17  Simon Josefsson  <jas@extundo.com>
94765         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
94767 2005-10-17  Simon Josefsson  <jas@extundo.com>
94769         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
94771         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
94773 2005-10-17  Bruno Haible  <bruno@clisp.org>
94775         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
94776         that it can also be used in a test.
94778 2005-10-16  Bruno Haible  <bruno@clisp.org>
94780         * gnulib-tool (func_emit_tests_Makefile_am): Also define
94781         TESTS_ENVIRONMENT, so that individual tests can augment it.
94783         * gnulib-tool (func_create_testdir): Use an intermediate target for
94784         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
94785         macros, like $(ALLOCA_H), which cannot be passed through the command
94786         line.
94788 2005-10-15  Simon Josefsson  <jas@extundo.com>
94790         * modules/rijndael-tests: New file.
94792         * modules/rijndael: New file.
94794 2005-10-15  Simon Josefsson  <jas@extundo.com>
94796         * m4/rijndael.m4: New file.
94798 2005-10-15  Simon Josefsson  <jas@extundo.com>
94800         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
94802         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
94804 2005-10-14  Simon Josefsson  <jas@extundo.com>
94806         * tests/test-arcfour.c: New file.
94808         * modules/arcfour, modules/arcfour-tests: New files.
94810 2005-10-14  Simon Josefsson  <jas@extundo.com>
94812         * m4/arcfour.m4: New file.
94814 2005-10-14  Simon Josefsson  <jas@extundo.com>
94816         * lib/arcfour.h, lib/arcfour.c: New files.
94818 2005-10-14  Roland McGrath  <roland@redhat.com>
94820         Import from libc.  [BZ #1331]
94821         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
94822         macro argument.
94823         Reported by Matej Vela <vela@debian.org>.
94825 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
94827         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
94828         include <wchar.h>; no longer needed.
94830 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
94832         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
94834 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
94835         and  Ulrich Drepper  <drepper@redhat.com>
94837         Import from libc.
94838         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
94839         instead of inline stream orientation test and two separate
94840         function calls.  Pay no attention to USE_IN_LIBIO.
94842 2005-10-13  Simon Josefsson  <jas@extundo.com>
94844         * modules/gc-hmac-md5-tests: New file.
94846         * tests/test-gc-hmac-sha1.c: New file.
94848         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
94850         * modules/gc-hmac-md5-tests: New file.
94852         * tests/test-gc-md5.c: New file.
94854         * modules/gc-md5-tests: New file.
94856 2005-10-13  Simon Josefsson  <jas@extundo.com>
94858         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
94859         Move memory allocation outside of loop.
94861 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
94863         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
94864         intermediate directory is in a read-only file system.  Problem
94865         reported by Eric Blake.
94867 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
94869         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
94871 2005-10-12  Simon Josefsson  <jas@extundo.com>
94873         * tests/test-hmac-sha1.c: New file.
94875         * modules/hmac-sha1-tests: New file.
94877         * modules/hmac-sha1: New file.
94879 2005-10-12  Simon Josefsson  <jas@extundo.com>
94881         * modules/gc-sha1: New file.
94883 2005-10-12  Simon Josefsson  <jas@extundo.com>
94885         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
94887         * tests/test-gc-pbkdf2-sha1.c: New file.
94889 2005-10-12  Simon Josefsson  <jas@extundo.com>
94891         * modules/gc-md5, modules/gc-hmac-md5: New files.
94893         * modules/gc (Files): Remove md5, memxor and hmac files.
94895 2005-10-12  Simon Josefsson  <jas@extundo.com>
94897         * m4/gc-pbkdf2-sha1.m4: New file.
94899         * m4/gc-hmac-sha1.m4: New file.
94901         * m4/gc-sha1: New file.
94903         * m4/hmac-sha1.m4: New file.
94905 2005-10-12  Simon Josefsson  <jas@extundo.com>
94907         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
94909         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
94911 2005-10-12  Simon Josefsson  <jas@extundo.com>
94913         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
94914         suggested by Bruno Haible <bruno@clisp.org>.
94916 2005-10-12  Simon Josefsson  <jas@extundo.com>
94918         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
94920 2005-10-12  Simon Josefsson  <jas@extundo.com>
94922         * lib/gc-pbkdf2-sha1.c: New file.
94924         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
94926 2005-10-12  Simon Josefsson  <jas@extundo.com>
94928         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
94930         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
94932 2005-10-12  Simon Josefsson  <jas@extundo.com>
94934         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
94935         GC_USE_HMAC_MD5, respectively.
94937         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
94938         (gc_md5): Fix typo.
94940         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
94942         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
94944         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
94946 2005-10-12  Bruno Haible  <bruno@clisp.org>
94948         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
94949         Reported by Stepan Kasal <kasal@ucw.cz>.
94951 2005-10-11  Simon Josefsson  <jas@extundo.com>
94953         * tests/test-crc.c: New file.
94955         * modules/crc, modules/crc-tests: New files.
94957 2005-10-11  Simon Josefsson  <jas@extundo.com>
94959         * m4/crc.m4: New file.
94961 2005-10-11  Simon Josefsson  <jas@extundo.com>
94963         * lib/gc.h: Add gc_hash and gc_hash_buffer.
94965         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
94967         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
94969 2005-10-11  Simon Josefsson  <jas@extundo.com>
94971         * lib/crc.h, lib/crc.c: New files.
94973         * lib/gc.h (gc_hash_buffer): Add doc.
94975 2005-10-11  Bruno Haible  <bruno@clisp.org>
94977         * modules/c-strcasestr: New file.
94978         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
94980 2005-10-11  Bruno Haible  <bruno@clisp.org>
94982         * modules/c-strcase: New file.
94983         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
94985 2005-10-11  Bruno Haible  <bruno@clisp.org>
94987         * lib/strcasecmp.c: Include limits.h.
94988         (strcasecmp): Avoid integer overflow on exotic platforms.
94989         * lib/strncasecmp.c: Include limits.h.
94990         (strncasecmp): Avoid integer overflow on exotic platforms.
94991         Reported by Paul Eggert.
94993 2005-10-11  Bruno Haible  <bruno@clisp.org>
94995         * lib/c-strcasestr.h: New file, from GNU gettext.
94996         * lib/c-strcasestr.c: New file, from GNU gettext.
94998 2005-10-11  Bruno Haible  <bruno@clisp.org>
95000         * lib/c-strcase.h: New file, from GNU gettext.
95001         * lib/c-strcasecmp.c: New file, from GNU gettext.
95002         * lib/c-strncasecmp.c: New file, from GNU gettext.
95004 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
95006         * modules/mempcpy (License): GPL -> LGPL.
95007         * modules/strchrnul (License): Likewise.
95008         * modules/sysexits (License): Likewise.
95010 2005-10-08  Simon Josefsson  <jas@extundo.com>
95012         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
95014 2005-10-07  Simon Josefsson  <jas@extundo.com>
95016         * m4/memxor.m4: Remove gl_C_RESTRICT call.
95018 2005-10-06  Simon Josefsson  <jas@extundo.com>
95020         * tests/test-hmac-md5.c: New file.
95022         * modules/hmac-md5-tests: New file.
95024         * modules/hmac-md5: New file.
95026 2005-10-06  Simon Josefsson  <jas@extundo.com>
95028         * m4/hmac-md5.m4: New file.
95030         * m4/memxor.m4: Require gl_C_RESTRICT.
95032 2005-10-06  Simon Josefsson  <jas@extundo.com>
95034         * lib/memxor.c (memxor): Avoid casts and warnings.
95036 2005-10-06  Simon Josefsson  <jas@extundo.com>
95038         * lib/hmac-md5.c: New file.
95040         * lib/hmac.h: New file.
95042 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
95044         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
95045         promotes to int, not unsigned int, to catch the AIX 5.3
95046         compiler bug.
95048 2005-10-05  Simon Josefsson  <jas@extundo.com>
95050         * modules/memxor: New file.
95052         * modules/iconv (Files): Move config.rpath to havelib, it is used
95053         there.
95055         * modules/havelib (Files): Add config.rpath.
95057 2005-10-05  Simon Josefsson  <jas@extundo.com>
95059         * m4/memxor.m4: New file.
95061 2005-10-05  Simon Josefsson  <jas@extundo.com>
95063         * lib/memxor.c (memxor): Fix compiler error.
95065         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
95066         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
95068         * lib/memxor.h, lib/memxor.c: New files.
95070         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
95071         we assume all systems have it, suggested by Jim Meyering
95072         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
95073         any systems lack sys/socket.h; mingw32 is known to lack it, but we
95074         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
95075         same reasons.
95077 2005-10-05  Simon Josefsson  <jas@extundo.com>
95079         * config/srclist.txt: Add glibc bug 1423 for md5.h.
95081 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
95083         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
95084         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
95085         needed, since the source code now assumes these .h files.
95087 2005-10-05  Derek Price  <derek@ximbiot.com>
95089         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
95091 2005-10-05  Bruno Haible  <bruno@clisp.org>
95093         * modules/stdint (License): Change to LGPL.
95095 2005-10-04  Simon Josefsson  <jas@extundo.com>
95097         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
95098         D. Baushke" <mdb@gnu.org>.
95100 2005-10-04  Bruno Haible  <bruno@clisp.org>
95102         * lib/verify.h (verify_true): Provide alternative definition for C++.
95104 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
95106         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
95107         (SSIZE_MAX): New macro, if not already defined.
95108         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
95109         than 2 GiB.
95111 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
95113         Sync from coreutils.
95114         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
95115         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
95116         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
95117         ULLONG_MAX doesn't work with 2.7.2.1.
95119 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
95121         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
95122         From Ben Pfaff.
95124         * modules/exclude (Depends-on): Depend on verify.
95125         * modules/strtoimax (Depends-on): Likewise.
95126         * modules/utimecmp (Depends-on): Likewise.
95128 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
95130         * lib/exclude.c: Include verify.h.
95131         (verify): Remove.  All callers changed to use verify.h's version.
95132         * lib/strtoimax.c: Likewise.
95133         * lib/utimecmp.c: Likewis.e
95135         Sync from coreutils.
95136         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
95137         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
95138         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
95139         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
95140         bother returning ENOSYS if settimeofday or stime fails; just let
95141         them return whatever errno they want to return.
95142         * lib/utimens.c: Include unistd.h, for dup2.
95143         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
95144         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
95146 2005-10-02  Jim Meyering  <jim@meyering.net>
95148         Sync from coreutils.
95149         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
95150         from glibc-2.2.5 that fails for read-only files.
95152 2005-10-02  Jim Meyering  <jim@meyering.net>
95154         Sync from coreutils.
95155         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
95156         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
95157         `#if HAVE_CONFIG_H'.
95158         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
95159         Remove AT_FDCWD test.
95160         Do not consume the fd unless successful.
95161         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
95162         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
95163         block, so that we don't even try to compile it if settimeofday is
95164         available.  This works around a compilation failure on OSF1 V5.1,
95165         due to stime requiring a `long int*' while tv_sec is `int'.
95167 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
95169         Sync from coreutils.
95170         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
95171         against `yes', rather than just testing for nonempty.
95173 2005-10-01  Simon Josefsson  <jas@extundo.com>
95175         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
95176         and Darwin.
95178         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
95179         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
95180         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
95181         freeaddrinfo and gai_strerror are declared by the POSIX headers.
95182         Check if struct addrinfo is declared.
95184 2005-10-01  Simon Josefsson  <jas@extundo.com>
95186         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
95187         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
95188         AI_* and EAI_* definitions.  Protect function declarations.
95190 2005-10-01  Jim Meyering  <jim@meyering.net>
95192         Sync from coreutils.
95194         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
95195         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
95196         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
95197         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
95198         in the inet and nsl libraries.  Required on Solaris 5.7.
95200 2005-10-01  Jim Meyering  <jim@meyering.net>
95202         Sync from coreutils.
95203         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
95204         in the inet and nsl libraries.  Required on Solaris 5.7.
95206 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
95208         * lib/getdelim.c (getdelim): Remove unused variables.
95210 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
95212         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
95213         so that the code works even with ancient cpp.  Portability problem
95214         with GCC 2.7.2.1 reported by Thomas M.Ott.
95216 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
95218         * modules/regex (Depends-on): Add strcase.
95220         * modules/gethostname (Licence): Change from GPL to LGPL, since
95221         gethostname.c is a trivial implementation of a standard library
95222         function.
95223         * modules/poll (License): Change from GPL to LGPL, since it's
95224         derived from LGPL code.
95226 2005-09-27  Jim Meyering  <jim@meyering.net>
95228         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
95229         HAVE_CONFIG_H.
95231         * lib/intprops.h (signed_type_or_expr__): Define.
95232         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
95233         for unsigned types.
95235 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
95237         * lib/verify.h (verify_expr): Remove, replacing with:
95238         (verify_true): New macro that returns true instead of void.
95239         (verify_type__): Remove.
95240         (verify): Use verify_true rather than verify_type__.
95242 2005-09-26  Bruno Haible  <bruno@clisp.org>
95244         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
95245         is necessary.
95246         (lib_SOURCES): Remove mbchar.c.
95247         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
95248         (Files): Add m4/mbrtowc.m4.
95249         * modules/mbiter: Likewise.
95250         * modules/mbuiter: Likewise.
95252 2005-09-26  Bruno Haible  <bruno@clisp.org>
95254         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
95255         compile mbchar.c if they are not both present.
95256         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
95257         * m4/mbiter.m4 (gl_MBITER): Likewise.
95258         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
95259         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
95260         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
95262 2005-09-25  Jim Meyering  <jim@meyering.net>
95264         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
95265         also uses socklen_t.
95267 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
95269         * lib/utimens.c (ENOSYS): Define if not already defined.
95270         (futimens): Support having a null PATH if the file descriptor
95271         is nonnegative.
95273         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
95274         Remove.
95275         (__attribute): Define to empty unless GCC 3.1 or later.
95276         This works around a core dump on OpenBSD 3.4, which has GCC
95277         2.95.3, which dumps core when given __attribute__(()).  It also
95278         simplifies other tests, since we really don't want to bother with
95279         worrying about which ancient version of GCC supported what.
95280         Original problem reported by Yoann Vandoorselaere, with part of
95281         the fix suggested by Derek Price.
95283 2005-09-24  Jim Meyering  <jim@meyering.net>
95285         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
95286         so we can once again use a positive bitfield width of 1 -- now we
95287         don't have to explain why we were using a bitfield width of 2.
95289 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
95291         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
95292         and similarly for the other external symbols.  Problem reported
95293         by James Gallager.
95295         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
95296         bug reported by Jim Meyering.
95298         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
95299         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
95300         not needed, since socklen is a prerequisite module.
95302 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
95304         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
95305         Problem reported by Eric Blake.
95306         (getaddrinfo): Initialize se so that it's not garbage.
95307         Redo internal storage allocation so that it doesn't make unportable
95308         assumptions about alignment.
95309         Fix a memory leak.
95311         * lib/utimens.c (futimens): Use futimesat if available.
95312         Prefer it to futimes since it doesn't have the futimes bug.
95314         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
95315         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
95316         Instead, declare a function that returns a pointer to an array,
95317         and use verify_type__ to declare the size of the array.
95318         Problem and germ of a solution reported by Bruno Haible.
95319         (verify_type__): Use 2, not 1, for bitfield size, to avoid
95320         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
95322 2005-09-23  Jim Meyering  <jim@meyering.net>
95324         Sync from coreutils.
95325         Correct build failure (socklen_t not defined) on at least
95326         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
95327         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
95329 2005-09-23  Jim Meyering  <jim@meyering.net>
95331         * modules/getaddrinfo (Depends-on): Add socklen.
95333 2005-09-23  Bruno Haible  <bruno@clisp.org>
95335         * tests/test-verify.c: New file.
95337 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
95339         Sync from coreutils.
95341         * modules/argmatch (Depends-on): Add verify.
95342         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
95343         unistd-safer.
95344         * modules/save-cwd (Depends-on): Likewise.
95346         * modules/openat (Files): Add lib/openat-die.c.
95347         (Depends-on): Remove error, exitfail.
95348         Add dirname.
95350         * modules/verify: New file.
95351         * MODULES.html.sh (Diagnostics <assert.h>): New section,
95352         with "verify" module.
95354 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
95356         Sync from coreutils.
95358         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
95359         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
95360         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
95361         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
95362         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
95363         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
95364         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
95365         Don't bother checking for string.h, stdlib.h, unistd.h.
95366         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
95367         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
95368         module's job.
95369         * m4/jm-macros.m4 (gl_MACROS): Likewise.
95370         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
95372         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
95373         (gl_GETDATE): Use it.
95375         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
95377 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
95379         Sync from coreutils.
95381         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
95382         stat-time.h.
95383         * lib/argmatch.h: Include verify.h
95384         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
95385         (ARGMATCH_ASSERT): Remove; unused.
95386         * lib/canonicalize.c: Assume STDC_HEADERS.
95387         * lib/exclude.c: Include "strcase.h".
95388         * lib/regex_internal.h [!defined _LIBC]: Likewise.
95389         * lib/getusershell.c: Include stdio--.h rather than stdio.h
95390         and stdio-safer.h.
95391         (getusershell): Call fopen, not fopen_safer.
95392         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
95393         Do not include unistd-safer.h.
95394         (save_cwd): Don't call fd_safer; no longer needed
95395         now that we include fcntl--.h.
95397         * lib/getdate.y (relative_time): New type.
95398         (RELATIVE_TIME_0): New constant.
95399         (parser_control): Use relative_time instead of doing it ourselves.
95400         (%union): Add new relative_time rel member.
95401         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
95402         Now typeless.
95403         (relunit, relunit_snumber): Now of type rel.
95404         (zone, rel, relunit, get_date): Adjust to above changes.
95406         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
95407         Do not include unistd-safer.h.
95408         (getloadavg): Don't call fd_safer; no longer needed
95409         now that we include fcntl--.h.
95411         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
95412         (make_dir_parents): Treat ENOSYS like EEXIST.
95414         Improve quality of diagnostics on restore_cwd failure.
95415         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
95416         (make_dir_parents): Last arg is now int * (for errno), not bool *.
95417         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
95418         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
95419         each time through the loop.  Do not diagnose restore_cwd failure;
95420         that is the caller's job (and perhaps the caller does not care).
95422         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
95423         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
95424         If the file already exists but is not a directory, don't bother
95425         to try to make its parents.
95426         Close potential file descriptor leak if we can't chdir("/") (!).
95427         Don't always return true if chdir($PWD) fails; return true only
95428         if the requested action was done successfully (except for the
95429         chdir($PWD)).
95430         Don't log final directory unless we actually made it.
95431         Refactor to avoid duplicate code to fix up permissions.
95432         Don't attempt to fix up parent permissions if chdir($PWD) fails.
95434         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
95435         to make it a bit faster and (I hope) clearer.
95436         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
95437         Fix bug in formats like %2N.
95439         * lib/verify.h: New file.
95441 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
95443         Sync from coreutils.
95444         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
95446 2005-09-22  Jim Meyering  <jim@meyering.net>
95448         Sync from coreutils.
95450         * m4/lstat.m4 (gl_FUNC_LSTAT):
95451         Use AC_LIBSOURCES to require lstat.c and lstat.h.
95452         Remove obsolete comment.
95453         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
95454         * m4/xstrtod.m4: Likewise.
95456         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
95458 2005-09-22  Jim Meyering  <jim@meyering.net>
95460         Sync from coreutils.
95462         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
95464         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
95465         the .tm_year member, since otherwise gcc-4.0 would now warn about
95466         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
95468         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
95469         order to avoid an unsuppressible warning from gcc on 64-bit systems.
95471         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
95472         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
95473         when run in a time zone for which daylight savings time is in effect
95474         for the starting date.
95476         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
95477         stop us from restricting permissions of just-created absolute-named
95478         directories.
95479         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
95480         to restore initial working directory.
95481         * lib/mkdir-p.c (make_dir_parents): New parameter:
95482         different_working_dir, to tell caller if/when we change the working
95483         directory and are unable to return to the initial one.
95484         * lib/mkdir-p.h (make_dir_parents): Update prototype.
95485         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
95486         `return false'.  This fixes a bug introduced on 2004-07-30.
95488         * lib/openat.c (fdopendir): Be sure to close the supplied
95489         file descriptor before returning.  This makes our replacement
95490         implementation a little closer to Solaris's, where fdopendir
95491         ties the file descriptor to the returned DIR* pointer.
95492         * lib/openat.c (unlinkat): New function.
95493         * lib/openat.h (unlinkat): Add prototype.
95494         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
95495         (openat_restore_fail): Rename from openat_restore_die.
95496         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
95498         Provide an alternative to exiting immediately upon save_cwd or
95499         restore_cwd failure.  Now, an application can arrange e.g.,
95500         to perform a longjump in that case.
95501         * lib/openat.c: Include dirname.h.
95502         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
95503         (rpl_openat, fdopendir, fstatat): Call openat_save_die
95504         and openat_restore_die rather than calling error directly.
95505         Don't include "error.h" or "exitfail.h"; they're no longer needed.
95507         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
95508         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
95509         define.
95511         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
95512         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
95513                             int utc, int nanoseconds);
95514         Background:
95515         date should not have to allocate a megabyte of virtual memory to
95516         handle a format argument like +%1048575T.  When implemented with
95517         strftime, it must allocate such a buffer, use strftime to fill it
95518         in, print it, then free it.
95519         With fprintftime, it simply prints everything and exits.
95520         With no need for memory allocation, that's one fewer way to fail.
95521         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
95522         optional field width, not before, so we accept %9:z, not %:9z.
95523         (my_strftime): Be sure to use L_('x') for literals.
95525         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
95526         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
95527         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
95528         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
95529         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
95530         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
95531         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
95532         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
95533         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
95534         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
95535         * lib/xgethostname.c, lib/xreadlink.c:
95536         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
95538         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
95539         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
95540         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
95541         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
95542         and don't include <sys/file.h>).
95544 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
95546         Sync from coreutils.
95548         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
95549         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
95550         [!LDAV_DONE]: Avoid unused variable warning.
95552 2005-09-21  Bruno Haible  <bruno@clisp.org>
95554         * lib/unicodeio.h (unicode_to_mb): New declaration.
95556 2005-09-20  Derek Price  <derek@ximbiot.com>
95558         * lib/getaddrinfo.c: Don't include <netdb.h> included from
95559         getaddrinfo.h.
95561 2005-09-20  Bruno Haible  <bruno@clisp.org>
95563         * gnulib-tool: Remove trailing slashes from the values specified for
95564         --source-base, --m4-base, --tests-base, --aux-dir.
95565         Suggested by Simon Josefsson <jas@extundo.com>.
95567 2005-09-20  Bruno Haible  <bruno@clisp.org>
95569         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
95570         func_modules_to_filelist, func_import, func_create_testdir): Make all
95571         sorting results locale-independent, so that gnulib-cache.m4 doesn't
95572         change when gnulib-tool is invoked in a different locale.
95574 2005-09-19  Simon Josefsson  <jas@extundo.com>
95576         * m4/socklen.m4: Fix typo.
95578 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95580         Use a consistent style for including <config.h>.
95581         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
95582         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
95583         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
95584         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
95585         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
95586         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
95587         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
95588         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
95589         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
95590         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
95591         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
95592         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
95593         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
95594         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
95595         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
95596         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
95597         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
95598         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
95599         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
95600         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
95601         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
95602         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
95603         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
95604         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
95605         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
95606         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
95607         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
95608         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
95609         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
95610         lib/xstrtoumax.c, lib/yesno.c:
95611         Standardize inclusion of config.h.
95612         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
95613         lib/inttostr.h:  Removed inclusion of config.h from header files.
95614         * lib/inttostr.c:  Adjusted in-tree users.
95615         * lib/timespec.h: Remove superfluous warning to include config.h.
95616         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
95617         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
95618         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
95619         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
95620         config.h with HAVE_CONFIG_H.
95622 2005-09-19  Jim Meyering  <jim@meyering.net>
95624         * modules/pathmax (License): Change to LGPL.
95626 2005-09-19  Derek Price  <derek@ximbiot.com>
95628         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
95630 2005-09-19  Bruno Haible  <bruno@clisp.org>
95632         * gnulib-tool (import): Provide default for --tests-base.
95634 2005-09-19  Bruno Haible  <bruno@clisp.org>
95636         * doc/quote.texi: New file, extracted from gnulib.texi.
95637         * doc/ctime.texi: New file, extracted from gnulib.texi.
95638         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
95639         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
95640         * doc/gnulib.texi: Include them.
95642 2005-09-18  Bruno Haible  <bruno@clisp.org>
95644         Portability fix.
95645         * gnulib-tool (func_readlink): New function.
95646         (func_ln_if_changed): Use it.
95648 2005-09-18  Bruno Haible  <bruno@clisp.org>
95650         * gnulib-tool: Support --with-tests also with --import.
95651         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
95652         (func_import): Use variables $testsbase and $inctests. Emit a
95653         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
95654         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
95655         SUBDIRS += $testsdir.
95656         (func_create_testdir): Update.
95658 2005-09-18  Bruno Haible  <bruno@clisp.org>
95660         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
95661         instead of $dry_run.
95662         (func_cp_if_changed, func_mv_if_changed): Remove functions.
95663         (func_ln_if_changed): Don't handle dry-run here.
95664         (func_import): In dry-run mode, detect more precisely which actions
95665         would be performed, and don't use "...ing" verbs.
95667 2005-09-18  Bruno Haible  <bruno@clisp.org>
95669         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
95670         (func_import): Use join on two temporary files instead of three nested
95671         loops, in order to determine which files are new or old.
95673 2005-09-18  Bruno Haible  <bruno@clisp.org>
95675         * gnulib-tool (func_import): Comment out code that spits out the
95676         new files with --dry-run.
95678 2005-09-18  Bruno Haible  <bruno@clisp.org>
95680         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
95682 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
95684         * lib/stat-time.h: New file.
95685         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
95686         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
95687         in a different way.
95688         (timespec_cmp): New function.
95689         * lib/utimecmp.c: Include stat-time.h.
95690         (SYSCALL_RESOLUTION): Depend on whether various struct stat
95691         members exist, not on the obsolescent ST_MTIM_NSEC.
95692         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
95694 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
95696         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
95698 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
95700         * MODULES.html.sh (File system functions): Add stat-time.
95701         * modules/stat-time: New file.
95702         * modules/timespec (Files): Remove m4/st_mtim.m4; this
95703         is now done in a different way, by the stat-time module.
95704         * modules/utimecmp (Depends-on): Add stat-time.
95706 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
95708         * m4/st_mtim.m4: Remove.  Superseded by...
95709         * m4/stat-time.m4: New file.
95710         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
95711         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
95713 2005-09-15  Derek Price  <derek@ximbiot.com>
95715         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
95717 2005-09-15  Derek Price  <derek@ximbiot.com>
95719         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
95720         * lib/regex_internal.c: Ditto, using this...
95721         (__GNUC_PREREQ): ...new macro.
95722         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
95723         using...
95724         (__GNUC_PREREQ): ...this new macro.
95726         * lib/strstr.h: Include string.h. Define strstr as a macro here.
95728 2005-09-15  Derek Price  <derek@ximbiot.com>
95729             Paul Eggert  <eggert@cs.ucla.edu>
95731         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
95732         changes, consolidating in...
95733         * lib/regex_internal.h: ...this file.
95735 2005-09-13  Jim Meyering  <jim@meyering.net>
95737         * lib/canon-host.c: Filter through gnu indent and reword comments
95738         slightly.
95739         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
95741 2005-09-13  Derek Price  <derek@ximbiot.com>
95743         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
95744         failure.
95745         Reported by Jim Meyering  <jim@meyering.net>.
95747 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
95749         * lib/base64.c: Typo.
95750         (base64_encode): Put b64str in initialized data section.
95752 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
95754         Merge glibc and coreutils changes into gnulib, plus a few
95755         extra fixes.
95756         * lib/md5.c: Use #error rather than a string.
95757         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
95758         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
95759         (__attribute__): Define to empty for non recent-GCC.
95760         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
95761         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
95762         Renamed from their non-__ counterparts, with new macros replacing
95763         them if not _LIBC.  Add __THROW attribute.
95764         (rol): Remove.
95765         (struct md5_ctx): Align buffer if using GCC.
95766         * lib/sha1.h (struct sha1_ctx): Likewise.
95767         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
95768         The old name was backwards.
95769         (NOTSWAP): Remove; not used.
95770         (rol): New macro, moved here from md5.h.
95771         (sha1_process_block): Remove a FIXME that doesn't make sense.
95773 2005-09-12  Derek Price  <derek@ximbiot.com>
95775         Return usable errors from canon-host.
95776         * lib/canon-host.h: New file.
95777         * lib/canon-host.c (canon_host): Wrap...
95778         (canon_host_r): ...this new function, which now relies exclusively on
95779         getaddrinfo.
95780         (ch_strerror): New function.
95781         (last_cherror): New global.
95782         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
95783         interface.
95784         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
95785         void *.
95786         (freeaddrinfo): Free ai->ai_canonname when set.
95788 2005-09-12  Derek Price  <derek@ximbiot.com>
95790         Make canon-host require getaddrinfo.
95791         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
95792         AC_LIBSOURCE canon-host.h.  Call...
95793         (gl_PREREQ_CANON_HOST): ...this new function, which requires
95794         gl_GETADDRINFO.
95795         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
95797 2005-09-12  Derek Price  <derek@ximbiot.com>
95799         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
95800         LGPL.
95801         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
95803 2005-09-12  Derek Price  <derek@ximbiot.com>
95805         * lib/gai_strerror.c: Include config.h when available.  Include
95806         getaddrinfo.h before other headers to test interface.
95807         Reported by Larry Jones <lawrence.jones@ugs.com>.
95809 2005-09-12  Derek Price  <derek@ximbiot.com>
95810             Paul Eggert  <eggert@cs.ucla.edu>
95812         * modules/glob (Files): Add glob-libc.h.
95814 2005-09-12  Derek Price  <derek@ximbiot.com>
95815             Paul Eggert  <eggert@cs.ucla.edu>
95817         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
95818         glob_.h, glob-libc.h.
95819         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
95821 2005-09-12  Derek Price  <derek@ximbiot.com>
95822             Paul Eggert  <eggert@cs.ucla.edu>
95824         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
95825         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
95826         protecting things that should be done only in gnulib contexts.
95827         * lib/glob_.h: New file, containing only the glob things needed for
95828         gnulib.
95829         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
95830         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
95831         (glob, globfree, glob_pattern_p): Now defined simply in terms of
95832         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
95833         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
95834         and to respect the namespace rules better.
95836 2005-09-08  Simon Josefsson  <jas@extundo.com>
95838         * modules/socklen: New file.
95840 2005-09-08  Simon Josefsson  <jas@extundo.com>
95842         * m4/socklen.m4: New file.
95844 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95846         * modules/utimens (Files): Add m4/utimbuf.m4, since
95847         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
95848         Reported by Sergey Poznyakoff.
95850 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95852         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
95853         definitions, since that's the preferred style in glibc.
95854         Fix a minor spacing issue, and update copyright notice to match
95855         glibc's.
95857 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95859         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
95861 2005-09-06  Simon Josefsson  <jas@extundo.com>
95863         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
95864         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
95866 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
95868         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
95869         warning.
95871 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
95873         * config/srclist.txt: Add glibc bug 1302.
95875 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
95877         Change bitset word type from unsigned int to unsigned long int,
95878         as this has better performance on typical 64-bit hosts.
95879         Port bitset code to hosts with unusual word sizes.
95880         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
95881         (build_collating_symbol):
95882         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
95883         argument is a bitset.  This is merely a style issue, but it makes
95884         it clearer that an entire array is expected.
95885         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
95886         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
95887         Port to the case where bitset_word is not the same as unsigned int.
95888         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
95889         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
95890         Likewise.
95891         * lib/regexec.c (check_dst_limits_calc_pos_1,
95892         check_subexp_matching_top):
95893         (build_trtable, group_nodes_into_DFAstates):
95894         Likewise.
95895         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
95896         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
95897         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
95898         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
95899         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
95900         * lib/regcomp.c (optimize_subexps, lower_subexp):
95901         Work even if bitset_word has holes in its bitwise representation.
95902         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
95903         * lib/regexec.c (check_dst_limits_calc_pos_1,
95904         check_subexp_matching_top):
95905         Likewise.
95906         * lib/regex_internal.c (re_string_reconstruct):
95907         Don't assume UCHAR_MAX == 255.
95908         * lib/regex_internal.h (bitset_set_all): Likewise.
95909         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
95910         All uses changed.
95911         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
95912         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
95913         All uses changed.
95914         (BITSET_WORD_MAX): New macro.
95915         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
95916         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
95917         (bitset_empty, bitset_copy):
95918         Prefer sizeof (bitset) to multiplying it out ourselves.
95919         (bitset_not_merge): Remove; unused.
95920         (bitset_contain): Return bool, not unsigned int with one bit on.
95921         All callers changed.
95922         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
95923         alignment than re_node_set; do this by defining a new internal
95924         type struct dests_alloc and using it to allocate memory.
95926 2005-09-05  Bruno Haible  <bruno@clisp.org>
95928         * gnulib-tool (func_import): Fix comparison in handling of symbolic
95929         links.
95931 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
95933         * modules/size_max (Makefile.am): Add size_max.h
95935 2005-09-04  Derek Price  <derek@ximbiot.com>
95937         * gnulib-tool (func_import): Fix reversed $symbolic logic.
95939 2005-09-03  Simon Josefsson  <jas@extundo.com>
95941         * gnulib-tool: Fix typo.
95943 2005-09-03  Simon Josefsson  <jas@extundo.com>
95945         * config/srclist.txt: Add glibc bug 1293.
95947 2005-09-03  Derek Price  <derek@ximbiot.com>
95949         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
95950         From Larry Jones <lawrence.jones@ugs.com>.
95952 2005-09-02  Simon Josefsson  <jas@extundo.com>
95954         * modules/socklen: New file.
95956 2005-09-02  Simon Josefsson  <jas@extundo.com>
95958         * modules/havelib: New module.
95960         * modules/gettext, modules/iconv, modules/lock, modules/readline:
95961         Use havelib.
95963 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
95965         Check for arithmetic overflow when calculating sizes, to prevent
95966         some buffer-overflow issues.  These patches are conservative, in the
95967         sense that when I couldn't determine whether an overflow was possible,
95968         I inserted a run-time check.
95969         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
95970         macros.
95971         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
95972         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
95973         (re_xnrealloc, re_x2nrealloc): New inline functions.
95974         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
95975         parse_bracket_exp):
95976         (build_equiv_class, build_charclass): Check for arithmetic overflow
95977         in size expression calculations.
95978         * lib/regex_internal.c (re_string_realloc_buffers):
95979         (build_wcs_upper_buffer, re_node_set_add_intersect):
95980         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
95981         (re_dfa_add_node, register_state): Likewise.
95982         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
95983         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
95984         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
95985         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
95987 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
95989         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
95990         m4/ulonglong.m4.  Problem reported by Martin Lambers.
95992 2005-09-02  Bruno Haible  <bruno@clisp.org>
95994         Support for lib vs. lib64 distinction on biarch platforms.
95995         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
95996         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
95997         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
95999 2005-09-02  Bruno Haible  <bruno@clisp.org>
96001         * gnulib-tool (import): In the other first-use case, provide defaults
96002         as well.
96004 2005-09-02  Bruno Haible  <bruno@clisp.org>
96006         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
96007         patches not yet found in the latest gettext release.
96009 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
96011         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
96012         to avoid a collision with bits/local_lim.h in glibc.
96013         All uses changed.  Problem reported by Dmitry V. Levin in
96014         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
96016         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
96017         bugs in int versus size_t comparisons.
96018         (re_string_context_at): Fix bug where the code assumed that
96019         Idx is signed.
96021         Use bool where appropriate.
96022         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
96023         All callers changed.
96024         (calc_eclosure_iter): Likewise, for ROOT arg.
96025         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
96026         (build_charclass_op): Likewise, for NON_MATCH arg.
96027         * lib/regex_internal.c (re_string_allocate, re_string_construct):
96028         (re_string_construct_common): Likewise, for ICASE arg.
96029         * lib/regexec.c (re_search_2_stub, re_search_stub):
96030         Likewise, for RET_LEN arg.
96031         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
96032         (set_regs): Likewise, for FL_BACKTRACK arg.
96033         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
96034         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
96035         (calc_eclosure_iter, parse_bracket_exp):
96036         Use bool for internal variables that are booleans.
96037         * lib/regexec.c (re_search_internal, check_matching,
96038         proceed_next_node):
96039         (set_regs, build_sifted_states, sift_states_bkref):
96040         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
96041         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
96042         (find_collation_sequence_value):
96043         Likewise.
96044         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
96045         (re_node_set_compare):
96046         Return bool, not int. All callers changed.
96047         * lib/regexec.c (check_halt_node_context, check_dst_limits):
96048         (build_trtable, check_node_accept): Likewise.
96049         * lib/regex_internal.h: Include stdbool.h.
96051         Fix bugs uncovered when converting to bool.
96052         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
96053         failure instead of charging ahead blindly.
96054         * lib/regex_internal.c (register_state): Likewise.
96055         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
96056         for freeing internal storage.
96057         (group_nodes_into_DFA_states): Use unsigned int, not int, for
96058         bitset pieces used as boolean, to avoid undefined behavior
96059         on hosts that do int overflow checking.
96061 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
96063         * config/srclist.txt: Add glibc bugs 1285-1287.
96065 2005-09-01  Jim Meyering  <jim@meyering.net>
96067         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
96068         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
96069         Require gl_STAT_MACROS, too.
96071 2005-09-01  Bruno Haible  <bruno@clisp.org>
96073         * gnulib-tool (import): In the first-use case, provide defaults.
96075 2005-09-01  Bruno Haible  <bruno@clisp.org>
96077         * gnulib-tool (func_import): Remove the .tmp files.
96079 2005-09-01  Bruno Haible  <bruno@clisp.org>
96081         * gnulib-tool (func_import): Fix handling of symbolic links.
96083 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
96085         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
96086         old glibc regex code mishandles strings longer than 2**31 bytes.
96087         This patch fixes this when the regex code is used in gnulib
96088         (i.e., outside glibc).
96090         This patch should not affect the use of the regex code inside
96091         glibc.  No doubt this problem also needs to be handled for glibc
96092         as well, but the result will be an incompatible change to the
96093         glibc ABI, and the old ABI will have to be supported too.  That
96094         can be the the subject for another patch.
96096         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
96097         governing whether the rest of this patch is active.  By default,
96098         the macro is disabled and the patch has no effect.
96099         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
96100         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
96101         (struct re_pattern_buffer, re_search, re_search_2, re_match):
96102         (re_match_2, re_set_registers): Use the new types.
96103         * lib/regex_internal.h (Idx, re_hashval_t): New types.
96104         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
96105         New macros.
96106         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
96107         (re_string_context_at, bin_tree_t, re_dfastate_t):
96108         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
96109         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
96110         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
96111         (re_string_char_size_at, re_string_wchar_at):
96112         (re_string_elem_size_at):
96113         Use the new types and macros to port to 64-bit hosts.
96114         Use unsigned types for internal values, so that the code
96115         mostly works even for arrays larger than SSIZE_MAX.
96116         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
96117         (search_duplicated_node, calc_eclosure_iter, fetch_number):
96118         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
96119         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
96120         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
96121         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
96122         (calc_inveclosure, parse_dup_op, build_range_exp):
96123         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
96124         (fetch_number, create_token_tree, mark_opt_subexp):
96125         Likewise.
96126         * lib/regex_internal.c (re_string_construct_common,
96127         create_ci_newstate):
96128         (create_cd_newstate, re_string_allocate, re_string_construct):
96129         (re_string_realloc_buffers, build_wcs_upper_buffer):
96130         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
96131         (re_string_reconstruct, re_string_peek_byte_case):
96132         (re_string_fetch_byte_case, re_string_context_at):
96133         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
96134         (re_node_set_init_copy, re_node_set_add_intersect):
96135         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
96136         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
96137         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
96138         (re_acquire_state, re_acquire_state_context, register_state):
96139         Likewise.
96140         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
96141         search_cur_bkref_entry):
96142         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
96143         (re_search_internal, re_search_2_stub, re_search_stub)
96144         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
96145         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
96146         (update_cur_sifted_state, check_dst_limits):
96147         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
96148         (check_subexp_limits, sift_states_bkref, merge_state_array):
96149         (check_subexp_matching_top, get_subexp, get_subexp_sub):
96150         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
96151         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
96152         (expand_bkref_cache, check_node_accept_bytes):
96153         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
96154         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
96155         (acquire_init_state_context, check_halt_node_context):
96156         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
96157         (sift_states_backward, clean_state_log_if_needed):
96158         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
96159         (find_recover_state, transit_state_sb, transit_state_mb):
96160         (transit_state_bkref, build_trtable, match_ctx_clean):
96161         Likewise.
96162         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
96163         to work around an assumption that REG_MISSING is negative.
96165         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
96166         (seek_collating_symbol_entry) [defined _LIBC]:
96167         (lookup_collation_sequence_value) [defined _LIBC]:
96168         (build_range_exp, build_collating_symbol) [defined _LIBC]:
96169         Use prototypes rather than old-style function definitions.
96170         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
96171         (transit_state_sb) [0]:
96172         (find_collation_sequence_value) [defined _LIBC]: Likewise.
96174         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
96175         rm_eo.
96177         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
96178         (optimize_subexps, lower_subexp):
96179         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
96180         since the signed shift might overflow.  Use 1u<<31 instead.
96181         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
96182         Likewise.
96183         * lib/regexec.c (check_dst_limits_calc_pos_1,
96184         check_subexp_matching_top): Likewise.
96186         * lib/regcomp.c (optimize_subexps, lower_subexp):
96187         Use CHAR_BIT rather than 8, for clarity.
96188         * lib/regexec.c (check_dst_limits_calc_pos_1):
96189         (check_subexp_matching_top): Likewise.
96190         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
96191         have to worry about portability issues when shifting it left.
96192         Remove no-longer-needed test for table_size > 0.
96193         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
96194         in a word, as the resulting behavior is undefined.
96195         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
96196         in one case, a <= should have been an <, and in another case the
96197         whole test was missing.
96198         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
96199         the standard name CHAR_BIT.
96200         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
96201         this is not true on one's complement and signed-magnitude hosts.
96203         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
96204         next_last_offset.
96205         (struct re_dfa_t): Remove unused member states_alloc.
96206         * lib/regcomp.c (init_dfa): Don't initialize unused members.
96208 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
96210         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
96211         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
96212         and large-file glibc and in 32-bit large-file Solaris.
96214 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
96216         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
96217         lengths fit in regoff_t; this isn't true if regoff_t is the same
96218         width as size_t.
96219         * lib/regex.c (re_search_internal): 5th arg is LAST_START
96220         (= START + RANGE) instead of RANGE.  This avoids overflow
96221         problems when regoff_t is the same width as size_t.
96222         All callers changed.
96223         (re_search_2_stub): Check for overflow when adding the
96224         sizes of the two strings.
96225         (re_search_stub): Check for overflow when adding START
96226         to RANGE; if it occurs, substitute the extreme value.
96228 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
96230         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
96232 2005-08-31  Jim Meyering  <jim@meyering.net>
96234         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
96235         a pointer-to-const.
96236         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
96237         (register_state): Likewise.
96238         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
96239         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
96240         (group_nodes_into_DFAstates): Likewise.
96242 2005-08-31  Jim Meyering  <jim@meyering.net>
96244         * check-module: Add a FIXME comment.
96246 2005-08-31  Eric Blake  <ebb9@byu.net>
96248         * modules/unistd-safer (Files): Add unistd--.h.
96249         * modules/stdio-safer (Files): Add stdio--.h.
96251 2005-08-31  Derek Price  <derek@ximbiot.com>
96253         * lib/getdelim.c (getdelim): Return EOF on EOF.
96254         Reported by Larry Jones <lawrence.jones@ugs.com>.
96256 2005-08-31  Bruno Haible  <bruno@clisp.org>
96258         Avoid unnecessary diffs in the generated lib/Makefile.am.
96259         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
96260         the generated files.
96261         (func_import): Don't set cmd.
96263 2005-08-31  Bruno Haible  <bruno@clisp.org>
96265         * lib/strstr.c: Include <stddef.h>, for NULL.
96266         * lib/strcasestr.c: Likewise.
96267         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
96269 2005-08-31  Bruno Haible  <bruno@clisp.org>
96271         * gnulib-tool: New option --macro-prefix.
96272         (func_import): Use macro_prefix.
96273         (import): Handle option --macro-prefix.
96275 2005-08-31  Bruno Haible  <bruno@clisp.org>
96277         * gnulib-tool (import): Rename most ac_* variables to cached_*.
96278         Also use new variables cached_lgpl, cached_libtool.
96280 2005-08-31  Bruno Haible  <bruno@clisp.org>
96282         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
96283         always instantiating them.
96285 2005-08-31  Bruno Haible  <bruno@clisp.org>
96287         * gnulib-tool (func_import): Read the previous cached settings
96288         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
96289         earlier added by gnulib but are now dropped. Warn when a gnulib file
96290         overwrites a non-gnulib file.
96292 2005-08-31  Bruno Haible  <bruno@clisp.org>
96294         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
96295         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
96296         projects that don't keep autogenerated files in CVS. Put into
96297         actioncmd only the specified modules, not the transitive closure.
96299 2005-08-31  Bruno Haible  <bruno@clisp.org>
96301         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
96302         Create directories that shall be filled.
96303         (import): Don't look for gl_* macros in configure.ac. Recurse across
96304         all directories containing a gnulib-cache.m4 files, if meaningful.
96306 2005-08-31  Bruno Haible  <bruno@clisp.org>
96308         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
96309         (import): Set seen_libtool when we see gl_LIBTOOL.
96311 2005-08-31  Bruno Haible  <bruno@clisp.org>
96313         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
96314         declaration macro definitions from generated gnulib.m4.
96316 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
96318         * lib/iconvme.h: Add prototype for iconv_alloc.
96320 2005-08-29  Simon Josefsson  <jas@extundo.com>
96322         * lib/iconvme.c: Fix errno.
96324 2005-08-29  Bruno Haible  <bruno@clisp.org>
96326         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
96327         that it works when the directory contains spaces.
96329 2005-08-29  Bruno Haible  <bruno@clisp.org>
96331         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
96333 2005-08-29  Bruno Haible  <bruno@clisp.org>
96335         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
96336         Emit more advice.
96338 2005-08-29  Bruno Haible  <bruno@clisp.org>
96339         and Stepan Kasal  <kasal@ucw.cz>
96341         * check-module: If more parameters are given, check each of them
96342         separately; add more exceptions, as noted by Jim Meyering.
96343         (check_module): New procedure.
96344         (%exempt_header): Now contains all exceptions.
96346 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
96348         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
96350 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
96352         * lib/iconvme.c: Split iconv_string into iconv_alloc.
96354 2005-08-28  Bruno Haible  <bruno@clisp.org>
96356         * m4/gnulib-tool.m4: New file.
96358 2005-08-27  Jim Meyering  <jim@meyering.net>
96360         * modules/unistd-safer (Files): Add pipe-safer.c.
96361         * modules/fcntl-safer (Files): Add creat-safer.c.
96363 2005-08-27  Jim Meyering  <jim@meyering.net>
96365         * m4/stdlib-safer.m4: New file.  From coreutils.
96366         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
96367         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
96368         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
96369         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
96370         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
96372 2005-08-27  Jim Meyering  <jim@meyering.net>
96374         * lib/fopen-safer.c: Merge minor changes from coreutils.
96375         * lib/dup-safer.c: Likewise.
96376         * lib/fd-safer.c: Likewise.
96378         Merge from coreutils.
96379         * lib/stdio--.h: New file.
96380         * lib/stdlib--.h: New file.
96381         * lib/mkstemp-safer.c: New file.
96383         GNU tar needs these.
96384         * lib/pipe-safer.c: New file.
96385         * lib/creat-safer.c: New file.
96386         * lib/fcntl--.h (creat): Define to creat_safer.
96387         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
96388         * lib/unistd--.h (pipe): Define to pipe_safer.
96389         * lib/unistd-safer.h: Declare pipe_safer.
96391 2005-08-26  Simon Josefsson  <jas@extundo.com>
96393         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
96394         Haible <bruno@clisp.org>.
96396 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
96398         * lib/regex_internal.h: Remove all references to
96399         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
96400         or better.
96401         (bitset_not, bitset_merge, bitset_not_merge):
96402         (bitset_mask, re_string_allocate, re_string_construct):
96403         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
96404         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
96405         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
96406         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
96407         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
96408         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
96409         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
96410         (re_acquire_state_context):
96411         Remove unnecessary forward decls.
96412         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
96413         Put __attribute at function definition,
96414         now that the function decl has been removed.
96415         * lib/regex_internal.c (re_string_peek_byte_case):
96416         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
96417         Likewise.
96419 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
96421         * m4/regex.m4: Add AC_PREREQ(2.50).
96422         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
96424 2005-08-25  Simon Josefsson  <jas@extundo.com>
96426         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
96427         __fsetlocking.
96429 2005-08-25  Simon Josefsson  <jas@extundo.com>
96431         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
96432         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
96433         GLIBC specific code.
96435 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
96437         Make regex safe for g++.  This fixes one real bug (an "err"
96438         that should have been "*err").  g++ problem reported by
96439         Sam Steingold.
96440         * lib/regex_internal.h (re_calloc): New macro, consistent with
96441         re_malloc etc.  All callers of calloc changed to use re_calloc.
96442         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
96443         not int.  All callers changed.
96444         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
96445         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
96446         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
96447         (find_recover_state): Change "err" to "*err"; this fixes what
96448         appears to be a real bug.
96449         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
96450         versus int.
96452 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
96454         * modules/regex (Depends-on): Add malloc, since the code
96455         assumes that !malloc(0) means failure.
96457 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
96459         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
96461         alloca modernization/simplification for regex.
96462         * lib/regex.c: Remove portability cruft for alloca.  This no longer
96463         needs to be at the start of the file, and can be moved into
96464         regex_internal.h and simplified.
96465         * lib/regex_internal.h: Include <alloca.h>.
96466         (__libc_use_alloca) [!defined _LIBC]: New macro.
96467         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
96468         now works outside glibc.
96470 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
96472         * config/srclist.txt: Add glibc bugs 1241, 1245.
96474 2005-08-25  Jim Meyering  <jim@meyering.net>
96476         * lib/open-safer.c: Include <config.h>.
96477         Otherwise, we'd lose LARGEFILE support in any file using
96478         e.g. "fcntl--.h"
96480 2005-08-25  Bruno Haible  <bruno@clisp.org>
96482         * m4/minmax.m4: Require autoconf 2.52.
96483         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
96484         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
96485         alternatives of translit over the alphabet.
96486         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
96488 2005-08-24  Simon Josefsson  <jas@extundo.com>
96490         * tests/test-getpass.c: New file.
96492 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
96494         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
96495         for GNU regex features.
96497 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
96499         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
96500         * lib/regex.h (regerror): Likewise.
96502         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
96503         requires this.  (The code never needed it.)
96505         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
96506         All uses of recently-renamed identifiers changed to use the new,
96507         POSIX-compliant names.  The code will build and run just fine
96508         without these changes, but it's better to eat our own dog food
96509         and use the standard-conforming names.
96511         * lib/regex.h: Fix a multitude of POSIX name space violations.
96512         These changes have an effect only for programs that define
96513         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
96514         do not change anything for programs compiled in the normal way.
96515         Also, there is no effect on the ABI.
96517         (_REGEX_SOURCE): New macro.
96518         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
96519         defined and _GNU_SOURCE is not; this fixes a name space violation.
96521         Rename the following macros to obey POSIX requirements.
96522         The old names are still visible as macros if _REGEX_SOURCE is defined.
96523         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
96524         RE_BACKSLASH_ESCAPE_IN_LISTS.
96525         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
96526         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
96527         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
96528         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
96529         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
96530         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
96531         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
96532         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
96533         (REG_INTERVALS): renamed from RE_INTERVALS.
96534         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
96535         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
96536         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
96537         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
96538         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
96539         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
96540         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
96541         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
96542         RE_UNMATCHED_RIGHT_PAREN_ORD.
96543         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
96544         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
96545         (REG_DEBUG): renamed from RE_DEBUG.
96546         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
96547         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
96548         unusual, since we can't clash with the POSIX REG_ICASE.
96549         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
96550         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
96551         (REG_NO_SUB): renamed from RE_NO_SUB.
96552         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
96553         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
96554         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
96555         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
96556         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
96557         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
96558         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
96559         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
96560         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
96561         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
96562         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
96563         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
96564         RE_SYNTAX_POSIX_MINIMAL_BASIC.
96565         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
96566         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
96567         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
96568         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
96569         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
96570         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
96571         (REG_FIXED): Renamed from REGS_FIXED.
96572         (REG_NREGS): Renamed from RE_NREGS.
96574         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
96575         of other REG_* macros, since POSIX says the user is allowed to
96576         #undef these macros selectively.
96578         (reg_errcode_t): Update comment stating what other tables need
96579         to be consistent.
96581         Rename the following enum values to obey POSIX requirements.
96582         The old names are still visible as macros.
96583         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
96584         is not defined, since GNU is supposed to be a superset of POSIX as
96585         much as possible, and since we want reg_errcode_t to be a signed
96586         type for implementation consistency.
96587         (_REG_NOERROR): Renamed from REG_NOERROR.
96588         (_REG_NOMATCH): Renamed from REG_NOMATCH.
96589         (_REG_BADPAT): Renamed from REG_BADPAT.
96590         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
96591         (_REG_ECTYPE): Renamed from REG_ECTYPE.
96592         (_REG_EESCAPE): Renamed from REG_EESCAPE.
96593         (_REG_ESUBREG): Renamed from REG_ESUBREG.
96594         (_REG_EBRACK): Renamed from REG_EBRACK.
96595         (_REG_EPAREN): Renamed from REG_EPAREN.
96596         (_REG_EBRACE): Renamed from REG_EBRACE.
96597         (_REG_BADBR): Renamed from REG_BADBR.
96598         (_REG_ERANGE): Renamed from REG_ERANGE.
96599         (_REG_ESPACE): Renamed from REG_ESPACE.
96600         (_REG_BADRPT): Renamed from REG_BADRPT.
96601         (_REG_EEND): Renamed from REG_EEND.
96602         (_REG_ESIZE): Renamed from REG_ESIZE.
96603         (_REG_ERPAREN): Renamed from REG_ERPAREN.
96604         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
96605         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
96606         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
96607         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
96609         (_REG_RE_NAME, _REG_RM_NAME): New macros.
96610         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
96611         changed.  But support the old name if the new one is not defined
96612         and if _REGEX_SOURCE.
96614         Change the following member names in struct re_pattern_buffer.
96615         The old names are still supported if !_REGEX_SOURCE.
96616         The new names are always supported, regardless of _REGEX_SOURCE.
96617         (re_buffer): Renamed from buffer.
96618         (re_allocated): Renamed from allocated.
96619         (re_used): Renamed from used.
96620         (re_syntax): Renamed from syntax.
96621         (re_fastmap): Renamed from fastmap.
96622         (re_translate): Renamed from translate.
96623         (re_can_be_null): Renamed from can_be_null.
96624         (re_regs_allocated): Renamed from regs_allocated.
96625         (re_fastmap_accurate): Renamed from fastmap_accurate.
96626         (re_no_sub): Renamed from no_sub.
96627         (re_not_bol): Renamed from not_bol.
96628         (re_not_eol): Renamed from not_eol.
96629         (re_newline_anchor): Renamed from newline_anchor.
96631         Change the following member names in struct re_registers.
96632         The old names are still supported if !_REGEX_SOURCE.
96633         The new names are always supported, regardless of _REGEX_SOURCE.
96634         (rm_num_regs): Renamed from num_regs.
96635         (rm_start): Renamed from start.
96636         (rm_end): Renamed from end.
96638         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
96639         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
96640         Prepend __ to parameter names.
96642         Undo yesterday's changes.
96644 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
96646         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
96647         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
96648         lib/regex.c.
96650 2005-08-24  Jim Meyering  <jim@meyering.net>
96652         Sync from coreutils.
96653         * m4/fcntl-safer.m4: New file.
96655         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
96656         and object files for this module.
96658 2005-08-24  Jim Meyering  <jim@meyering.net>
96660         Sync from coreutils.
96661         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
96663 2005-08-24  Jim Meyering  <jim@meyering.net>
96665         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
96666         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
96668 2005-08-24  Jim Meyering  <jim@meyering.net>
96670         * modules/fcntl-safer: New module.
96671         * modules/fts (Depends-on): Add fcntl-safer.
96672         * MODULES.html.sh (File descriptor based Input/Output):
96673         Add fcntl-safer.
96675 2005-08-24  Bruno Haible  <bruno@clisp.org>
96677         Support for unit test modules.
96678         * modules/README: Mention tests modules.
96679         * modules/TEMPLATE-TESTS: New file.
96680         * gnulib-tool: New options --extract-tests-module, --with-tests and
96681         --tests-base (unused for the moment).
96682         (testsbase, inctests): New variables.
96683         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
96684         (func_verify_module): Exclude TEMPLATE-TESTS.
96685         (func_verify_nontests_module, func_verify_tests_module): New functions.
96686         (func_get_dependencies): Add implicit dependency for tests modules.
96687         (func_get_tests_module): New function.
96688         (func_modules_transitive_closure): When --with-tests was specified,
96689         include the unit tests as well, unless explicitly avoided.
96690         (func_emit_lib_Makefile_am): Ignore the tests modules here.
96691         (func_emit_tests_Makefile_am): New function.
96692         (func_create_testdir): When --with-tests was specified, emit a
96693         tests/ directory.
96694         * MODULES.html.sh (Future developments): Update.
96696 2005-08-24  Bruno Haible  <bruno@clisp.org>
96698         * modules/tls-tests: New file.
96699         * tests/test-tls.c: New file, from GNU gettext.
96701 2005-08-24  Bruno Haible  <bruno@clisp.org>
96703         * modules/lock-tests: New file.
96704         * tests/test-lock.c: New file, from GNU gettext.
96706 2005-08-24  Bruno Haible  <bruno@clisp.org>
96708         * lib/lock.h: Add multiple inclusion guard.
96709         * lib/tls.h: Add multiple inclusion guard.
96711 2005-08-24  Bruno Haible  <bruno@clisp.org>
96713         * gnulib-tool: Add support for the --aux-dir option to
96714         --create-testdir, --create-megatestdir, --test, --megatest.
96715         (func_create_testdir, func_create_megatestdir): Optionally emit a
96716         AC_CONFIG_AUX_DIR directive.
96717         (create-testdir, create-megatestdir, test, megatest): Provide a
96718         default value for $auxdir.
96720 2005-08-24  Bruno Haible  <bruno@clisp.org>
96722         * gnulib-tool (import): Use compound statement instead of subshell
96723         where possible.
96725 2005-08-24  Bruno Haible  <bruno@clisp.org>
96727         * gnulib-tool (import): Change --aux-dir default to "build-aux".
96729 2005-08-24  Bruno Haible  <bruno@clisp.org>
96731         * gnulib-tool (func_version): Update.
96733 2005-08-24  Bruno Haible  <bruno@clisp.org>
96735         * gnulib-tool (func_import, func_create_testdir,
96736         func_create_megatestdir): Quote all autoconf macro arguments.
96738 2005-08-24  Bruno Haible  <bruno@clisp.org>
96740         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
96741         option --force, because --force causes the aclocal.m4 of each
96742         subdirectory to be newer than the corresponding config.h.in.
96744 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
96746         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
96747         All contents moved to gl_REGEX.
96748         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
96749         assume that it does.
96751 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
96753         * lib/regex.h (REG_NOSYS)
96754         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
96755         Define, since POSIX requires it as of 2001.
96756         (_REG_ENOSYS)
96757         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
96758         New private symbol, used to keep the enum signed in all cases.
96759         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
96760         Youngman in
96761         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
96763         * lib/regex_internal.c (re_string_skip_chars, register_state):
96764         (calc_state_hash):
96765         Remove forward decls; no longer needed now that we use prototypes.
96766         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
96767         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
96768         (clean_state_log_if_needed): Likewise.
96770 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
96772         * config/srclist.txt: Add glibc bugs 1231-1233.
96774 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
96776         Fix problems reported by Sam Steingold in
96777         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
96778         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
96779         assumed that reg_errcode_t is a signed type, which is not
96780         necessarily true if _XOPEN_SOURCE is not defined.
96781         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
96782         since some compilers warn about it otherwise.
96784 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
96786         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
96787         (init_word_char, create_initial_state, duplicate_node_closure):
96788         (fetch_token, peek_token_bracket, build_range_exp):
96789         (build_collating_symbol): Remove forward decls; no longer needed
96790         now that we use prototypes.
96792         * lib/regcomp.c:
96793         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
96794         (re_compile_fastmap_iter, regcomp, regerror, regfree):
96795         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
96796         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
96797         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
96798         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
96799         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
96800         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
96801         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
96802         (build_range_exp, build_collating_symbol, parse_bracket_exp):
96803         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
96804         (build_charclass, build_charclass_op, fetch_number, create_tree):
96805         (create_token_tree, mark_opt_subexp, duplicate_tree):
96806         Use prototypes rather than old-style definitions.
96808         * lib/regex_internal.c:
96809         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
96810         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
96811         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
96812         (re_string_reconstruct, re_string_peek_byte_case):
96813         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
96814         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
96815         (re_node_set_init_copy, re_node_set_add_intersect):
96816         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
96817         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
96818         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
96819         (re_acquire_state, re_acquire_state_context, register_state):
96820         (create_ci_newstate, create_cd_newstate, free_state):
96821         Likewise.
96822         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
96823         re_search_2):
96824         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
96825         (re_search_internal, prune_impossible_nodes):
96826         (acquire_init_state_context, check_matching, static):
96827         (check_halt_node_context, check_halt_state_context, proceed_next_node):
96828         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
96829         (update_regs, sift_states_backward, build_sifted_states):
96830         (clean_state_log_if_needed, merge_state_array):
96831         (update_cur_sifted_state, add_epsilon_src_nodes):
96832         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
96833         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
96834         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
96835         (find_recover_state, check_subexp_matching_top, transit_state_mb):
96836         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
96837         (check_arrival, check_arrival_add_next_nodes):
96838         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
96839         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
96840         (check_node_accept_bytes, check_node_accept, extend_buffers):
96841         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
96842         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
96843         (sift_ctx_init):
96844         Likewise.
96846         * lib/regex_internal.h:
96847         (re_string_allocate, re_string_construct, re_string_reconstruct):
96848         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
96849         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
96850         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
96851         (re_string_context_at, re_string_peek_byte_case):
96852         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
96853         is defined, since we now use prototypes always.
96855         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
96856         C89 or better.  All uses removed.
96858 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
96860         * config/srclist.txt: Add glibc bugs 1220-1227.
96862 2005-08-20  Jim Meyering  <jim@meyering.net>
96864         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
96865         of unused local, dfa.
96867 2005-08-20  Bruno Haible  <bruno@clisp.org>
96869         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
96871 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
96873         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
96874         (re_node_set_insert_last, re_dfa_add_node):
96875         Rename local variables to avoid GCC shadowing warnings.
96877 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
96879         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
96880         [defined lint]: Suppress bogus uninitialized-variable warnings.
96882         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
96883         and let the caller return REG_ESPACE if out of space.  This
96884         removes an uninitialied-variable warning with GCC 4.0.1, and also
96885         avoids taking the address of a local variable.  All callers
96886         changed.
96888 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
96890         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
96891         $LIBCSRC/posix/regexec.c.
96892         Add glibc bug 1217 for regcomp.c.
96894 2005-08-19  Jim Meyering  <jim@meyering.net>
96896         * lib/regexec.c (proceed_next_node): Redo local variables to
96897         avoid GCC shadowing warnings.
96899 2005-08-18  Bruno Haible  <bruno@clisp.org>
96901         * lib/strstr.c (strstr): Fix return value in multibyte case.
96902         * lib/strcasestr.c (strcasestr): Likewise.
96904 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
96906         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
96908 2005-08-17  Jim Meyering  <jim@meyering.net>
96910         Make the %s format (seconds since the epoch) work for a negative
96911         number and when used with a zero-padded field width, e.g. %015s.
96913         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
96914         label so that it precedes the code to set `digits'.  Otherwise,
96915         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
96916         print `00-22'.  Now, it prints `-0022', as it should.
96918 2005-08-17  Bruno Haible  <bruno@clisp.org>
96920         * modules/strstr (Files): Add m4/mbrtowc.m4.
96921         (Depends-on): Add mbuiter.
96923 2005-08-17  Bruno Haible  <bruno@clisp.org>
96925         * modules/strcasestr: New file.
96926         * MODULES.html.sh (String handling, based on ANSI C 89): Add
96927         strcasestr.
96929 2005-08-17  Bruno Haible  <bruno@clisp.org>
96931         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
96933 2005-08-17  Bruno Haible  <bruno@clisp.org>
96935         * modules/mbuiter: New file.
96936         * MODULES.html.sh (Extended multibyte and wide character utilities):
96937         Add mbuiter.
96939 2005-08-17  Bruno Haible  <bruno@clisp.org>
96941         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
96942         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
96944 2005-08-17  Bruno Haible  <bruno@clisp.org>
96946         * m4/strcasestr.m4: New file.
96948 2005-08-17  Bruno Haible  <bruno@clisp.org>
96950         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
96951         * lib/strstr.c: Completely rewritten, with multibyte locale support.
96953 2005-08-17  Bruno Haible  <bruno@clisp.org>
96955         * lib/strcasestr.h: New file.
96956         * lib/strcasestr.c: New file.
96958 2005-08-17  Bruno Haible  <bruno@clisp.org>
96960         * lib/strcasecmp.c: Use mbuiter.h.
96962 2005-08-17  Bruno Haible  <bruno@clisp.org>
96964         * lib/mbuiter.h: New file.
96966 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
96968         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
96969         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
96970         and gl_GETOPT are both invoked via different paths (as happens
96971         with GNU tar CVS because it uses both argp and getopt), the former
96972         wins.
96974 2005-08-16  Bruno Haible  <bruno@clisp.org>
96976         * modules/tls: New file.
96977         * MODULES.html.sh (Multithreading): Add tls.
96979 2005-08-16  Bruno Haible  <bruno@clisp.org>
96981         * modules/strnlen1: New file.
96982         * MODULES.html.sh (String handling): Add strnlen1.
96984 2005-08-16  Bruno Haible  <bruno@clisp.org>
96986         * modules/strcase (Files): Add m4/mbrtowc.m4.
96987         (Depends-on): Add strnlen1, mbchar.
96989 2005-08-16  Bruno Haible  <bruno@clisp.org>
96991         * modules/mbiter: New file.
96992         * MODULES.html.sh (Extended multibyte and wide character utilities):
96993         Add mbiter.
96995 2005-08-16  Bruno Haible  <bruno@clisp.org>
96997         * modules/mbfile: New file.
96998         * MODULES.html.sh (Extended multibyte and wide character utilities):
96999         Add mbfile.
97001 2005-08-16  Bruno Haible  <bruno@clisp.org>
97003         * modules/mbchar: New file.
97004         * MODULES.html.sh (Extended multibyte and wide character utilities):
97005         New section.
97007 2005-08-16  Bruno Haible  <bruno@clisp.org>
97009         * m4/tls.m4: New file, from GNU gettext.
97011 2005-08-16  Bruno Haible  <bruno@clisp.org>
97013         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
97014         always.
97015         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
97017 2005-08-16  Bruno Haible  <bruno@clisp.org>
97019         * m4/mbiter.m4: New file.
97021 2005-08-16  Bruno Haible  <bruno@clisp.org>
97023         * m4/mbfile.m4: New file.
97025 2005-08-16  Bruno Haible  <bruno@clisp.org>
97027         * m4/mbchar.m4: New file.
97029 2005-08-16  Bruno Haible  <bruno@clisp.org>
97031         * lib/tls.h: New file, from GNU gettext.
97032         * lib/tls.c: New file, from GNU gettext.
97034 2005-08-16  Bruno Haible  <bruno@clisp.org>
97036         * lib/strnlen1.h: New file.
97037         * lib/strnlen1.c: New file.
97039 2005-08-16  Bruno Haible  <bruno@clisp.org>
97041         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
97042         (mbi_init): Update.
97043         (mbi_avail, mbi_advance): Let the iteration end before the terminating
97044         NUL byte, not after it.
97046 2005-08-16  Bruno Haible  <bruno@clisp.org>
97048         * lib/strcase.h (strcasecmp): Add note in comments.
97049         * lib/strncasecmp.c: Use code from strcasecmp.c.
97050         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
97051         (strcasecmp): Work correctly in multibyte locales.
97053 2005-08-16  Bruno Haible  <bruno@clisp.org>
97055         * lib/mbiter.h: New file.
97057 2005-08-16  Bruno Haible  <bruno@clisp.org>
97059         * lib/mbfile.h: New file.
97061 2005-08-16  Bruno Haible  <bruno@clisp.org>
97063         * lib/mbchar.h: New file.
97064         * lib/mbchar.c: New file.
97066 2005-08-16  Bruno Haible  <bruno@clisp.org>
97068         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
97069         the valid ones. Makes the comparison operations transitive:
97070         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
97071         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
97073 2005-08-15  Simon Josefsson  <jas@extundo.com>
97075         * modules/ssize_t (License): Change to 'unlimited'.
97077         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
97079 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97081         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
97082         Add comments for each pending glibc patch.
97084 2005-08-15  Bruno Haible  <bruno@clisp.org>
97086         * lib/regex.h (__restrict_arr): Don't define to __restrict if
97087         __cplusplus is defined.
97089 2005-08-14  Jim Meyering  <jim@meyering.net>
97091         Sync from coreutils.
97093         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
97094         Use the hash-table-based cycle-detection code not just when
97095         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
97096         Reported by James Youngman in
97097         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
97098         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
97099         FTS_TIGHT_CYCLE_CHECK.
97100         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
97101         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
97102         once again.
97103         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
97104         * lib/fts.c (fd_safer): Remove decl.
97105         Include fcntl--.h rather than unistd-safer.h
97106         (fts_safe_changedir): Don't call fd_safer; no longer needed
97107         now that we include fcntl--.h.
97109 2005-08-12  Simon Josefsson  <jas@extundo.com>
97111         * modules/getndelim2: Use ssize_t module.
97112         * modules/getnline: Likewise.
97113         * modules/safe-read: Likewise.
97114         * modules/xreadlink: Likewise.
97116         * modules/ssize_t: New file.
97118 2005-08-12  Simon Josefsson  <jas@extundo.com>
97120         * m4/readline.m4: Look for termcap, curses or ncurses if required.
97122 2005-08-12  Simon Josefsson  <jas@extundo.com>
97124         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
97125         ssize_t.
97127 2005-08-12  Simon Josefsson  <jas@extundo.com>
97129         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
97130         readline, getdelim and check_version.
97131         (Support for systems lacking ISO C 99: Sizes of integer types):
97132         Add size_max.
97134 2005-08-12  Bruno Haible  <bruno@clisp.org>
97136         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
97138 2005-08-11  Simon Josefsson  <jas@extundo.com>
97140         * modules/readline: New file.
97142         * modules/strnlen (Files): Add strnlen.h.
97144 2005-08-11  Simon Josefsson  <jas@extundo.com>
97146         * m4/readline.m4: New file.
97148 2005-08-11  Simon Josefsson  <jas@extundo.com>
97150         * lib/readline.h, readline.c: New file.
97152 2005-08-11  Simon Josefsson  <jas@extundo.com>
97154         * doc/gnulib.texi (Initial import, Finishing touches): Mention
97155         gl_AVOID.
97157 2005-08-11  Bruno Haible  <bruno@clisp.org>
97159         * lib/strnlen.h (strnlen): Change parameter name to match comment.
97161 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
97163         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
97165 2005-08-10  Simon Josefsson  <jas@extundo.com>
97167         * tests/test-iconvme.c: New file.
97169 2005-08-10  Simon Josefsson  <jas@extundo.com>
97171         * m4/strnlen.m4: New file.
97173         * m4/strndup.m4: Don't check for strnlen declaration, done in
97174         strnlen.m4.
97176 2005-08-10  Simon Josefsson  <jas@extundo.com>
97178         * lib/strndup.c: Use strnlen.h.
97180         * lib/strnlen.h: New file.
97182 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
97184         * README: Typos.
97186 2005-08-02  Simon Josefsson  <jas@extundo.com>
97188         * modules/readline: New file.
97190 2005-08-02  Simon Josefsson  <jas@extundo.com>
97192         * modules/getdelim: New file.
97194         * modules/getline: Rewrite, don't use getndelim2.
97196 2005-08-02  Simon Josefsson  <jas@extundo.com>
97198         * m4/getline.m4: Separate out getdelim stuff into separate module.
97200         * m4/getdelim.m4: New file.
97202 2005-08-02  Simon Josefsson  <jas@extundo.com>
97204         * lib/getline.h, getline.c: Rewrite.
97206         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
97208 2005-07-31  Bruno Haible  <bruno@clisp.org>
97210         * lib/lock.h (gl_lock_initializer): New macro.
97211         (gl_lock_define_initialized): Use it.
97212         (gl_rwlock_initializer): New macro.
97213         (gl_rwlock_define_initialized): Use it.
97214         (gl_recursive_lock_initializer): New macro.
97215         (gl_recursive_lock_define_initialized): Use it.
97217 2005-07-30  Karl Berry  <karl@gnu.org>
97219         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
97220         Report from Ben Pfaff, regarding getopt.
97222 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
97224         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
97225         normal way.
97226         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
97227         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
97228         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
97229         (gl_GETOPT): Use the new macros.  Most of the implementation
97230         is moved to the new macros.  This is for programs like Emacs
97231         that don't want all the functionality of gl_GETOPT.
97233 2005-07-26  Bruno Haible  <bruno@clisp.org>
97235         * m4/lock.m4: Update from GNU gettext.
97237 2005-07-26  Bruno Haible  <bruno@clisp.org>
97239         * lib/lock.h: Update from GNU gettext.
97240         * lib/lock.c: Update from GNU gettext.
97242 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
97244         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
97245         obsolescent AC_TRY_RUN.  Include the default includes files, for
97246         'exit'.
97248 2005-07-24  Bruno Haible  <bruno@clisp.org>
97250         * modules/visibility: New file.
97251         * MODULES.html.sh (Misc): Add visibility.
97253 2005-07-24  Bruno Haible  <bruno@clisp.org>
97255         * m4/visibility.m4: New file.
97257 2005-07-24  Bruno Haible  <bruno@clisp.org>
97259         * doc/visibility.texi: New file.
97261 2005-07-22  Bruno Haible  <bruno@clisp.org>
97263         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
97264         $(ALLOCA_H), redundant through BUILT_SOURCES.
97265         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
97266         redundant through BUILT_SOURCES.
97267         * modules/byteswap (Makefile.am): Remove explicit dependency on
97268         $(BYTESWAP_H), redundant through BUILT_SOURCES.
97269         * modules/fnmatch (Makefile.am): Remove explicit dependency on
97270         $(FNMATCH_H), redundant through BUILT_SOURCES.
97271         * modules/getopt (Makefile.am): Remove explicit dependency on
97272         $(GETOPT_H), redundant through BUILT_SOURCES.
97273         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
97274         redundant through BUILT_SOURCES.
97275         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
97276         redundant through BUILT_SOURCES.
97277         * modules/stdbool (Makefile.am): Remove explicit dependency on
97278         $(STDBOOL_H), redundant through BUILT_SOURCES.
97279         * modules/stdint (Makefile.am): Remove explicit dependency on
97280         $(STDINT_H), redundant through BUILT_SOURCES.
97281         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
97282         Remove explicit dependency on $(SYSEXITS_H).
97283         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
97285 2005-07-18  Simon Josefsson  <jas@extundo.com>
97287         * lib/check-version.c (check_version): Accept identical versions too.
97289 2005-07-18  Bruno Haible  <bruno@clisp.org>
97291         * modules/lock: New file.
97292         * MODULES.html.sh (Multithreading): New section.
97294 2005-07-18  Bruno Haible  <bruno@clisp.org>
97296         * m4/lock.m4: New file, from GNU gettext.
97298 2005-07-18  Bruno Haible  <bruno@clisp.org>
97300         * lib/lock.h: New file, from GNU gettext.
97301         * lib/lock.c: New file, from GNU gettext.
97303 2005-07-18  Bruno Haible  <bruno@clisp.org>
97305         * lib/lock.h (gl_once_t): New type.
97306         (gl_once_define, gl_once): New macros.
97307         * lib/lock.c (fresh_once): New variable.
97308         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
97309         functions.
97311 2005-07-16  Simon Josefsson  <jas@extundo.com>
97313         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
97314         workaround, suggested by Bruno.
97316 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
97318         * modules/xalloc (Depends-on): Add xalloc-die.
97319         * modules/xvasprintf (Depends-on): Add xalloc-die.
97321 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
97323         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
97324         with a minor change.
97326 2005-07-15  Bruno Haible  <bruno@clisp.org>
97328         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
97329         When using lib/poll.c, define poll as rpl_poll.
97331 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
97333         * modules/argp (Depends-on): Remove unlocked-io.
97335 2005-07-14  Derek Price  <derek@ximbiot.com>
97337         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
97338         for glob symlink bug.
97340 2005-07-14  Bruno Haible  <bruno@clisp.org>
97342         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
97343         Instead, test for *_unlocked function declarations directly.
97345 2005-07-11  Simon Josefsson  <jas@extundo.com>
97347         * modules/size_max: New file.
97349         * modules/xsize: Depend on size_max module for size_max.m4.
97351 2005-07-11  Simon Josefsson  <jas@extundo.com>
97353         * lib/size_max.h: New file.
97355 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
97357         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
97358         copyright symbol and the year.
97359         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
97360         (version_etc_va): Use parameterized copyright notice.
97361         Reword to conform to the current GNU coding standards.
97363 2005-07-11  Karl Berry  <karl@gnu.org>
97365         * doc/gnulib.texi (Quoting): new node.
97366         (Initial import): more info, from Patrice.
97368 2005-07-11  Bruno Haible  <bruno@clisp.org>
97370         * gnulib-tool (func_usage): Document option --avoid.
97371         (Command line options): Handle --avoid.
97372         (func_acceptable): New function.
97373         (func_modules_transitive_closure): Use it.
97375 2005-07-11  Bruno Haible  <bruno@clisp.org>
97377         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
97378         Reported by Jim Meyering.
97380 2005-07-10  Bruno Haible  <bruno@clisp.org>
97382         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
97383         Needed when size_t is smaller than 'unsigned int'.
97384         Reported by Paul Eggert.
97386 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97388         * modules/argp (Depends-on): Add unlocked-io
97390 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97392         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
97393         block of defines.
97395 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
97397         * config/srclist.txt: Comment out regcomp.c, since we have a porting
97398         fix now.
97400 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
97401         and Paul Eggert  <eggert@cs.ucla.edu>
97403         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
97404         in wint_t, not wchar_t.  Remove now-unnecessary cast.
97406 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
97408         * modules/regex (Files): Add lib/regex_internal.c,
97409         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
97410         (Depends-on): Add extensions.
97411         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
97413 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
97415         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
97416         pathconf.
97417         * m4/same.m4 (gl_SAME): Likewise.
97418         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
97420         * m4/regex.m4: Adjust to new libc regex implementation.
97421         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
97422         all the .c and .h parts of (the new) regex.
97423         Quote the m4 stuff better.
97424         Check for RE_ICASE bug of old gnulib.
97425         Check for REG_STARTEND of recent libc.
97426         Rename local variables from jm_* to gl_*.
97427         Quote operand of "test -f".
97428         Say "recent enough" version of libc, not "version 2".
97429         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
97430         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
97431         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
97432         Remove check for btowc, isascii.
97433         Require AM_LANGINFO_CODESET.
97435 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
97437         * lib/regex.c, regex.h: Sync from libc.
97438         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
97439         * lib/regexec.c:
97440         New files, synced from libc, except that regex_internal.h
97441         currently has a small porting fix.
97443 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
97445         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
97446         regex_internal.c, regexec.c.
97447         Add regex_internal.h too, but as a comment, since the libc version
97448         is currently broken in gnulib mode.
97450 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97452         Support programs like Emacs that use gnulib but not gettext.
97453         * MODULES.html.sh (Internationalization functions): Add gettext-h.
97454         * modules/gettext-h: New file.
97455         * modules/gettext (Files): Remove lib/gettext.h.
97456         (Depends-on): Add gettext-h.
97457         (Makefile.am): Remove lib_SOURCES.
97458         * modules/argmatch, modules/c-stack, modules/closeout:
97459         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
97460         * modules/execute, modules/file-type, modules/getaddrinfo:
97461         * modules/getopt, modules/human, modules/javacomp:
97462         * modules/javaexec, modules/mkdir-p, modules/obstack:
97463         * modules/openat, modules/pagealign_alloc, modules/pipe:
97464         * modules/quotearg, modules/regex, modules/rpmatch:
97465         * modules/unicodeio, modules/userspec, modules/version-etc:
97466         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
97467         * modules/xsetenv:
97468         Depend on gettext-h, not gettext.
97470 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
97472         * gnulib-tool (func_import): Add support for 'public domain' license.
97473         * modules/alloca, modules/atexit, modules/memmove:
97474         Now public domain, not GPL.
97475         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
97476         * modules/realloc, modules/strerror, modules/strtod:
97477         Now LGPL, not GPL.
97479 2005-07-05  Bruno Haible  <bruno@clisp.org>
97481         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
97482         autoconf CVS. Needed for mingw.
97484 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97486         Remove the dependency of the strftime module on the tzset module.
97487         * modules/strftime (Depends-on): Remove dependency on tzset.
97489 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97491         Remove the dependency of the strftime module on the tzset module.
97492         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
97493         gl_FUNC_TZSET_CLOBBER.
97495 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97497         Remove the dependency of the strftime module on the tzset module.
97498         * lib/strftime.c (my_strftime)
97499         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
97500         Copy the input structure, to work around some of the bug with
97501         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
97502         Solaris releases, you should also use the tzset module, but we won't
97503         require it as a dependency any more since we don't want LGPLed code
97504         to depend on GPLed code.
97506 2005-07-02  Jim Meyering  <jim@meyering.net>
97508         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
97509         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
97510         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
97511         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
97513 2005-07-02  Jim Meyering  <jim@meyering.net>
97515         * lib/backupfile.c (backup_args): Change a `0' to NULL.
97517 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
97519         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
97520         declares only 'struct timespec;' (!).
97522 2005-07-01  Jim Meyering  <jim@meyering.net>
97524         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
97525         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
97526         * lib/save-cwd.c, tempname.c:
97527         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
97528         and don't include <sys/file.h>).
97530 2005-06-29  Jim Meyering  <jim@meyering.net>
97532         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
97533         type name.  Use the variable name instead.
97534         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
97535         Likewise.
97537 2005-06-28  Simon Josefsson  <jas@extundo.com>
97539         * modules/check-version (Files): Add check-version.m4.
97541 2005-06-28  Simon Josefsson  <jas@extundo.com>
97543         * m4/check-version.m4: New file, suggested by Jim Meyering
97544         <jim@meyering.net>.
97546 2005-06-28  Simon Josefsson  <jas@extundo.com>
97548         * lib/check-version.h, lib/check-version.c: New files.
97550 2005-06-28  Simon Josefsson  <jas@extundo.com>
97552         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
97553         collision with global variable.  Better indentation.  Don't
97554         increment buffer pointer beyond buffer end.  Based on comments
97555         from Paul Eggert <eggert@cs.ucla.edu>.
97557         * lib/base64.h: Indent.
97559 2005-06-28  Simon Josefsson  <jas@extundo.com>
97561         * doc/gnulib.texi (Library version handling): New section.
97563 2005-06-28  Jim Meyering  <jim@meyering.net>
97565         * check-module (find_included_lib_files): Hard-code another
97566         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
97567         but modules/fts-lgpl (correctly) does not list those files.
97569         * modules/canonicalize (Files): Add lib/pathmax.h.
97571 2005-06-25  Simon Josefsson  <jas@extundo.com>
97573         * modules/check-version: New file.
97575 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
97577         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
97578         initializer of struct addrinfo, as an indication that we don't
97579         care how many members the structure has.
97581 2005-06-24  Derek Price  <derek@ximbiot.com>
97582         and Bruno Haible  <bruno@clisp.org>
97584         Remove stat module & update lstat.
97585         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
97586         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97587         * m4/stat.m4: Remove this file.
97589 2005-06-24  Derek Price  <derek@ximbiot.com>
97590         and Bruno Haible  <bruno@clisp.org>
97592         Remove stat module & update lstat.
97593         * lib/stat.c: Remove this file...
97594         (slash_aware_lstat): ...moving this content and its support...
97595         * lib/lstat.c (rpl_lstat): ...into here.
97596         * lib/lstat.h: New file.
97598 2005-06-24  Derek Price  <derek@ximbiot.com>
97599         and Bruno Haible  <bruno@clisp.org>
97601         Remove stat module & update lstat.
97602         * config/srclist.txt (libc sources): Remove stat.
97604 2005-06-24  Derek Price  <derek@ximbiot.com>
97605         and Bruno Haible  <bruno@clisp.org>
97607         Remove stat module & update lstat.
97608         * MODULES.html.sh (stat): Remove.
97609         * MODULES.html: Regenerated.
97610         * modules/lstat (Description): Correct function name.
97611         (Files): Add "lstat.h".
97612         (Depends-on): Remove stat, add xalloc, stat-macros.
97613         * modules/stat: Remove this file.
97614         (Include): Add "lstat.h", remove <sys/stat.h>.
97616 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
97618         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
97619         (ranged_convert): Don't save conversion in a temporary struct.
97620         This causes a warning with GCC 4.0.0, and anyway in the typical
97621         case it's not worth the extra 100 bytes or so of code.
97622         (ranged_convert, __mktime_internal): When calling a function via a
97623         pointer P, use P () rather than (*P) (), as we now assume C89 or
97624         better.
97626 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
97628         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
97629         "who -r" failed to give output.  Problem reported by Tim Waugh.
97631         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
97632         (xcalloc): Use it to avoid needless tests.
97633         Problem reported by Jim Meyering.
97635 2005-06-20  Derek Price  <derek@ximbiot.com>
97637         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
97638         unnecessary for Autoconfs > 2.59c.
97640 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
97642         * lib/argp.h (__option_is_short): Check upper limit of
97643         __key. Isprint() requires its argument to have the value
97644         of an unsigned char or EOF.
97646 2005-06-16  Jim Meyering  <jim@meyering.net>
97648         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
97649         when either N or S is zero.
97651 2005-06-16  Derek Price  <derek@ximbiot.com>
97653         * m4/bison.m4: Declare YACC & YFLAGS precious.
97655 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
97657         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
97658         multibyte string or pattern, fall back on unibyte matching.
97659         Problem reported by James Youngman.
97661 2005-06-08  Bruno Haible  <bruno@clisp.org>
97663         * modules/csharpcomp: New file.
97664         * MODULES.html.sh (C#): Add csharpcomp.
97666 2005-06-08  Bruno Haible  <bruno@clisp.org>
97668         * m4/csharpcomp.m4: New file, from GNU gettext.
97670 2005-06-08  Bruno Haible  <bruno@clisp.org>
97672         * lib/csharpcomp.h: New file, from GNU gettext.
97673         * lib/csharpcomp.c: New file, from GNU gettext.
97674         * lib/csharpcomp.sh.in: New file, from GNU gettext.
97676 2005-06-08  Bruno Haible  <bruno@clisp.org>
97678         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
97679         warning on mingw.
97681 2005-06-07  Derek Price  <derek@ximbiot.com>
97683         Sync from CVS.
97684         * lib/glob_.h: Indent nested #ifdef.
97686 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
97688         Sync from coreutils.
97689         Use "file name" when talking about file names, instead of "filename"
97690         or "path", as per the GNU coding standards.
97691         * lib/mkdir-p.c: Renamed from makepath.c.
97692         (make_dir_parents): Renamed from make_path.  All callers changed.
97693         * lib/mkdir-p.h: Likewise.  All includers changed.
97694         * lib/filenamecat.c: Renamed from path-concat.c.
97695         (file_name_concat): Renamed from path_concat.  All callers changed.
97696         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
97697         * lib/filenamecat.h: Likewise.  All includers changed.
97698         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
97699         in comments or local variable names.
97700         * lib/basename.c: Likewise.
97701         * lib/canonicalize.c, canonicalize.h: Likewise.
97702         * lib/dirname.c, dirname.h: Likewise.
97703         * lib/euidaccess.c: Likewise.
97704         * lib/exclude.c: Likewise
97705         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
97706         * lib/fsusage.c, fsuage.h: Likewise.
97707         * lib/fts.c, fts_.h: Likewise.
97708         * lib/getcwd.c: Likewise.
97709         * lib/getloadavg.c: Likewise.
97710         * lib/mkstemp.c: Likewise.
97711         * lib/mountlist.c, mountlist.h: Likewise.
97712         * lib/openat.c, openat.h: Likewise.
97713         * lib/readlink-stub.c: Likewise.
97714         * lib/readutmp.c, readutmp.h: Likewise.
97715         * lib/rename.c: Likewise.
97716         * lib/rmdir.c: Likewise.
97717         * lib/same.c: Likewise.
97718         * lib/savedir.c: Likewise.
97719         * lib/stripslash.c: Likewise.
97720         * lib/tempname.c: Likewise.
97721         * lib/xreadlink.c: Likewise.
97722         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
97723         All uses changed.
97724         * lib/exclude.h: Likewise.
97726         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
97727         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
97728         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
97729         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
97730         * lib/pathmax.h: Include <limits.h> unconditionally, since other
97731         files have been getting away with it for years (MORE/BSD 4.3
97732         is extinct now).
97733         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
97734         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
97736         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
97737         Define to 256, not 255, as per modern POSIX.
97739 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
97741         Sync from coreutils.
97742         Use "file name" when talking about file names, instead of "filename"
97743         or "path", as per the GNU coding standards.
97744         * MODULES.html.sh: mkdir-p renamed from makepath.
97745         filenamecat renamed from path-concat.
97746         * modules/filenamecat: Renamed from modules/path-concat.
97747         (Files): filenamecat.h and filenamecat.c renamed from
97748         path-concat.h and path-concat.c.
97749         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
97750         (Include): filenamecat.h, not path-concat.h.
97751         * modules/mkdir-p: Renamed from modules/makepath.
97752         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
97753         makepath.c.
97754         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
97755         (Include): mkdir-p.h, not makepath.h.
97757 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
97759         Sync from coreutils.
97760         * m4/mkdir-p.m4: Renamed from makepath.m4.
97761         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
97762         Rename files from makepath.c to mkdir-p.c, and from
97763         makepath.h to mkdir-p.h.
97764         * m4/filenamecat.m4: Renamed from path-concat.m4.
97765         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
97766         Rename files from path-concat.c to filenamecat.c,
97767         and from path-concat.h to filenamecat.h.
97768         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
97769         "file name" in local variables or comments.
97770         * m4/rename.m4: Likewise.
97772 2005-06-01  Bruno Haible  <bruno@clisp.org>
97774         * modules/csharpexec: New file.
97775         * MODULES.html.sh (C#): New section.
97777 2005-06-01  Bruno Haible  <bruno@clisp.org>
97779         * m4/csharp.m4: New file, from GNU gettext.
97780         * m4/csharpexec.m4: New file, from GNU gettext.
97782 2005-06-01  Bruno Haible  <bruno@clisp.org>
97784         * lib/csharpexec.h: New file, from GNU gettext.
97785         * lib/csharpexec.c: New file, from GNU gettext.
97786         * lib/csharpexec.sh.in: New file, from GNU gettext.
97788 2005-05-31  Derek Price  <derek@ximbiot.com>
97789             Paul Eggert  <eggert@cs.ucla.edu>
97791         Sync from cvs.
97792         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
97794 2005-05-31  Derek Price  <derek@ximbiot.com>
97795             Paul Eggert  <eggert@cs.ucla.edu>
97797         Sync from cvs.
97798         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
97800 2005-05-29  Derek Price  <derek@ximbiot.com>
97802         * config/srclist.txt (glob_.h, glob.c): Add these files.
97804 2005-05-29  Derek Price  <derek@ximbiot.com>
97806         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
97807         * modules/glob: New file.
97808         * modules/getlogin_r: Add link to POSIX spec in description.
97810 2005-05-29  Derek Price  <derek@ximbiot.com>
97811             Paul Eggert  <eggert@cs.ucla.edu>
97813         * m4/glob.m4: New file.
97815 2005-05-29  Derek Price  <derek@ximbiot.com>
97816             Paul Eggert  <eggert@cs.ucla.edu>
97818         * lib/glob_.h, lib/glob.c: New files.
97820 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
97822         * modules/fts (Files): Remove m4/inttypes-pri.m4.
97823         * modules/fts-lgpl (Depends-on): Remove gettext.
97825 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
97827         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
97828         and don't require gt_INTTYPES_PRI.
97830 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
97832         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
97834         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
97835         the configuration hassle isn't worth it.
97836         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
97837         (LONGEST_MODIFIER, PRIuMAX): Remove.
97839 2005-05-27  Bruno Haible  <bruno@clisp.org>
97841         * lib/getlogin_r.h: Remove second include of <stddef.h>.
97843 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
97845         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
97846         _POSIX_PTHREAD_SEMANTICS for Solaris.
97848 2005-05-25  Derek Price  <derek@ximbiot.com>
97850         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
97852 2005-05-25  Derek Price  <derek@ximbiot.com>
97853             Paul Eggert  <eggert@cs.ucla.edu>
97855         * modules/getlogin_r, m4/getlogin_r.m4: New files.
97856         * lib/getlogin_r.c, getlogin_r.h: New files.
97858 2005-05-25  Bruno Haible  <bruno@clisp.org>
97859             Derek Price  <derek@ximbiot.com>
97861         * lib/getlogin_r.h: Simplify API documentation.
97863 2005-05-23  Derek Price  <derek@ximbiot.com>
97865         * modules/minmax (Files): Add m4/minmax.m4.
97866         (configure.ac): Add gl_MINMAX.
97868 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
97870         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
97871         so that unistd-safer.h (GPL'ed code) need not be included.
97873 2005-05-22  Bruno Haible  <bruno@clisp.org>
97875         * m4/minmax.m4: New file.
97876         Based on a patch by Derek Price <derek@ximbiot.com>.
97878 2005-05-22  Bruno Haible  <bruno@clisp.org>
97880         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
97881         (INT64_MIN): Fix definition.
97882         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
97884         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
97885         NEED_SIGNED_INT_TYPES.
97887         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
97888         HAVE_SYSTEM_INTTYPES.
97890 2005-05-22  Bruno Haible  <bruno@clisp.org>
97892         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
97893         Also include <sys/param.h> if it defines MIN, MAX.
97894         Based on a patch by Derek Price <derek@ximbiot.com>.
97896 2005-05-21  Jim Meyering  <jim@meyering.net>
97898         * modules/fts (Files): Add m4/inttypes-pri.m4.
97899         (Depends-on): Add lstat and remove gettext.  Alphabetize.
97901 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
97903         New fts module.
97904         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
97905         (setup_dir, free_dir): New functions.
97906         (enter_dir, leave_dir): Define trivial
97907         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
97908         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
97909         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
97910         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
97911         Move to fts-cycle.c.
97912         (fts_open): Use setup_dir.
97913         (fts_close): Use free_dir.
97914         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
97915         This adds a label and some gotos, but the alternatives were messier.
97916         Check for memory allocation failure when entering a dir.
97917         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
97918         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
97919         (FTS): New member fts_cycle, that is a union that contains the
97920         old active_dir_ht and cycle_state.  All uses changed to mention
97921         fts_cycle.ht and fts_cycle.state.
97922         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
97923         fts.c, with the following changes:
97924         (setup_dir, free_dir): New functions.
97925         (enter_dir): Now returns bool.  Return true if successful, false
97926         if memory exhausted.  All callers changed.
97927         Do not bother partly cleaning up on
97928         memory allocation failure; that is free_dir's job.
97929         However, free ad if hash_insert fails, to avoid memory leak.
97930         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
97931         fts->fts_options to see which union member to use.
97933 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
97935         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
97936         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
97938 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
97940         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
97942 2005-05-20  Jim Meyering  <jim@meyering.net>
97944         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
97945         Now a macro, to pacify GCC.
97947 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
97949         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
97950         of -1.
97952 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
97954         * lib/chown.c (rpl_chown): Return -1 on failure.
97956 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
97958         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
97959         Don't check for stddef.h.
97960         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
97961         don't use its results.
97962         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
97963         since we include them unconditionally.  Don't require
97964         AM_STDBOOL_H, since stdbool is a prerequisite.
97965         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
97966         since we assume C89 or better.
97967         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
97968         as we don't use their results.
97969         Don't check for fchdir, memmove, memset, strrchr, as we use
97970         them unconditionally.
97971         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
97972         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
97974 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
97976         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
97977         Include <stddef.h> unconditionally, since we assume C89 now.
97978         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
97979         * lib/fts.c: Include fts_.h first, to check interface.
97980         Do not include intprops.h; no longer needed.
97981         Include cycle-check.h and hash.h, since fts_.h no longer does.
97982         Remove unnecessary casts of closedir to void.
97983         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
97984         decide whether to decrement nlinks.
97985         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
97986         (FTS): Use struct hash_table * instead of Hash_table, so that
97987         we no longer need to include hash.h here.
97989 2005-05-18  Jim Meyering  <jim@meyering.net>
97991         * modules/dirfd (License): Change to LGPL.  Most of the code
97992         is already in the public domain.
97994 2005-05-18  Jim Meyering  <jim@meyering.net>
97996         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
97997         Reported by Yoann Vandoorselaere.
97999 2005-05-17  Jim Meyering  <jim@meyering.net>
98001         * m4/fts.m4: New file, from coreutils.
98003 2005-05-17  Jim Meyering  <jim@meyering.net>
98005         * lib/fts.c, lib/fts_.h: New files, from coreutils.
98007 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
98009         Sync from coreutils.
98010         * m4/unlinkdir.m4: New file.
98012 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
98014         Sync from coreutils.
98015         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
98016         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
98017         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
98018         White space changes only.
98019         * lib/makepath.c (make_path): Port to hosts where leading "//" is
98020         special.
98021         * lib/yesno.c: Include getline.h, not ctype.h.
98022         (yesno): Don't remove leading white space; POSIX doesn't allow it.
98023         Use getline to remove arbitrary restriction on response length.
98025 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
98027         * config/srclist-update: Spell out "Street" in FSF postal
98028         mail address; this is the style the FSF seems to prefer.
98030         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
98031         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
98032         this updates FSF postal mail address.
98034         Sync from coreutils.
98035         * modules/unlinkdir: New file.
98036         * modules/yesno (Depends-on): Add getline.
98037         * MODULES.html.sh (File system functions): Add unlinkdir.
98039 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
98041         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
98042         lib/strsep.h:
98043         Change the initial comment to refer to GPL, not LGPL.
98044         gnulib-tool will change it to LGPL as needed.
98046         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
98047         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
98048         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
98049         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
98050         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
98051         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
98052         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
98053         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
98054         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
98055         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
98056         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
98057         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
98058         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
98059         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
98060         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
98061         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
98062         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
98063         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
98064         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
98065         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
98066         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
98067         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
98068         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
98069         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
98070         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
98071         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
98072         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
98073         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
98074         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
98075         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
98076         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
98077         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
98078         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
98079         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
98080         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
98081         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
98082         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
98083         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
98084         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
98085         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
98086         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
98087         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
98088         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
98089         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
98090         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
98091         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
98092         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
98093         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
98094         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
98095         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
98096         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
98097         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
98098         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
98099         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
98100         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
98101         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
98102         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
98103         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
98104         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
98105         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
98106         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
98107         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
98108         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
98109         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
98110         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
98111         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
98112         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
98113         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
98114         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
98115         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
98116         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
98117         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
98118         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
98119         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
98120         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
98121         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
98122         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
98123         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
98124         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
98125         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
98126         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
98127         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
98128         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
98129         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
98130         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
98131         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
98132         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
98133         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
98134         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
98135         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
98136         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
98137         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
98138         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
98139         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
98140         lib/yesno.c, lib/yesno.h:
98141         Update FSF postal mail address.
98143 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
98145         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
98146         tests/test-memmem.c, tests/test-stpncpy.c:
98147         Update FSF postal mail address.
98149 2005-05-13  Bruno Haible  <bruno@clisp.org>
98151         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
98152         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
98153         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
98154         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
98155         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
98156         Add support for 64-bit integers in the MSVC compiler.
98158 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98160         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
98162 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
98164         * gnulib-tool (func_import): Sort and uniquify recommended includes.
98166 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
98168         * doc/getdate.texi (General date syntax): Don't say that date
98169         date --iso-8601=ns generates acceptable dates; it doesn't yet.
98170         Problem reported by Nic Ferrier.
98172 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98174         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
98175         specified in ai_socktype. Fix invalid ai_protocol
98176         check. ai_protocol is usually set to 0 or depending on
98177         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
98178         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
98179         ai_socktype / ai_protocol in the returned addrinfo structure.
98181 2005-05-10  Simon Josefsson  <jas@extundo.com>
98183         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
98184         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98186 2005-05-10  Karl Berry  <karl@gnu.org>
98188         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
98189         (from http://www.gnu.org/licenses).
98190         * doc/COPYING.LIB: also rename to COPYING.LESSER.
98191         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
98192         fdl.texi suffices.
98194 2005-05-10  Karl Berry  <karl@gnu.org>
98196         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
98197         (COPYING.DOC): remove.
98199         * config/srclist-update: new FSF address.
98201 2005-05-10  Derek Price  <derek@ximbiot.com>
98203         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
98204         possible.
98206 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98207             Bruno Haible  <bruno@clisp.org>
98209         * modules/inet_ntop: New file.
98210         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
98211         inet_ntop.
98213 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98214             Bruno Haible  <bruno@clisp.org>
98216         * m4/inet_ntop.m4: New file.
98218 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98219             Bruno Haible  <bruno@clisp.org>
98221         * lib/inet_ntop.h: New file.
98222         * lib/inet_ntop.c: New file, from glibc with modifications.
98224 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
98226         * modules/time_r (License): Change to LGPL.
98227         * modules/extensions (License): Change to LGPL.  Actually,
98228         the license is more permissive than that, but currently gnulib-tool
98229         doesn't know how to handle more-permissive licenses.
98231         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
98232         Problem reported by Dave Love.
98234 2005-05-08  Jim Meyering  <jim@meyering.net>
98236         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
98237         blank.
98239 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
98241         * modules/argmatch (Depends-on): Add stdbool.
98242         * modules/backupfile (Depends-on): Likewise.
98243         * modules/chdir-long (Depends-on): Likewise.
98244         * modules/closeout (Depends-on): Likewise.
98245         * modules/cycle-check (Depends-on): Likewise.
98246         * modules/dirname (Depends-on): Likewise.
98247         * modules/fnmatch (Depends-on): Likewise.
98248         * modules/fsusage (Depends-on): Likewise.
98249         * modules/fwriteerror (Depends-on): Likewise.
98250         * modules/getcwd (Depends-on): Likewise.
98251         * modules/getloadavg (Depends-on): Likewise.
98252         * modules/hard-locale (Depends-on): Likewise.
98253         * modules/makepath (Depends-on): Likewise.
98254         * modules/mountlist (Depends-on): Likewise.
98255         * modules/nanosleep (Depends-on): Likewise.
98256         * modules/posixtm (Depends-on): Likewise.
98257         * modules/quotearg (Depends-on): Likewise.
98258         * modules/readtokens (Depends-on): Likewise.
98259         * modules/readtokens0 (Depends-on): Likewise.
98260         * modules/readutmp (Depends-on): Likewise.
98261         * modules/save-cwd (Depends-on): Likewise.
98262         * modules/strftime (Depends-on): Likewise.
98263         * modules/userspec (Depends-on): Likewise.
98264         * modules/utimecmp (Depends-on): Likewise.
98265         * modules/xgetcwd (Depends-on): Likewise.
98266         * modules/xnanosleep (Depends-on): Likewise.
98267         * modules/xstrtod (Depends-on): Likewise.
98268         * modules/yesno (Depends-on): Likewise.
98270 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
98272         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
98273         needless checks.
98275 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
98277         Merge from coreutils.  Among other things,
98278         add bulletproofing for cases where stdin, stdout, or stderr are closed.
98279         * lib/fd-safer.c: New file.
98280         * lib/fcntl-safer.h, open-safer.c: Remove.
98281         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
98282         * lib/dup-safer.c: Include unistd-safer.h first.
98283         Don't include errno.h.
98284         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
98285         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
98286         * lib/file-type.c: Rely on file-type.h change.
98287         * lib/getloadavg.c: Include unistd-safer.h.
98288         (getloadavg): Use safer open.
98289         * lib/getusershell.c: Include "stdio-safer.h".
98290         (getusershell): Use safer fopen.
98291         * lib/long-options.c (long_options): Use NULL rather than 0.
98292         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
98293         'free'.
98294         * lib/modechange.c: Likewise.
98295         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
98296         (MODE_DONE): New constant.
98297         (struct mode_change): Remove 'next' member.
98298         (make_node_op_equals): New function; like the old one of the
98299         same name, except it allocates an array.
98300         (mode_compile, mode_create_from_ref): Use it.
98301         (mode_compile): Allocate result as an array, not a linked list.
98302         Parse octal string ourself, so that we catch mistakes like "+0".
98303         (mode_adjust): Arg is an array, not a linked list.
98304         * lib/modechange.c: Include stat-macros.h, xalloc.h.
98305         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
98306         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
98307         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
98308         Remove.  This is now stat-macros.h's job.
98309         (talloc): Remove.  All callers replaced by xalloc, so that
98310         our invokers don't have to worry about reporting memory failures.
98311         (make_node_op_equals): Remove.
98312         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
98313         New constants.
98314         (struct mode_change): Moved here from modechange.h.
98315         (mode_append_entry): Remove.
98316         (mode_compile): Remove MASKED_OPS arg, since it encouraged
98317         apps to have incorrect behavior.  Use simpler algorithm for head
98318         and tail.  Don't futz with umask; that's now the job of mode_adjust.
98319         Detect more invalid usages rather than having somewhat-random behavior.
98320         Don't insert an "a=" action, as that leads to incorrect behavior.
98321         (mode_compile, mode_create_from_ref): Return NULL on error instead
98322         of an enum, since now there's only one way to have an error.  All
98323         callers changed.
98324         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
98325         at the correct time.  Simplify calculation of "+u" and its ilk.
98326         Don't mishandle "+X".
98327         (mode_free): Remove "register" and localize decls.
98328         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
98329         (struct mode_change): Move to modechange.c; callers don't
98330         need to see this stuff.
98331         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
98332         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
98333         (mode_change, mode_adjust): Reflect the new signatures noted above.
98334         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
98335         that might redefine system include files.
98336         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
98337         (my_usleep): Use NULL rather than (void *) 0.
98338         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
98339         Use siginterrupt to specify that system calls should be interrupted.
98340         (rpl_nanosleep): Move initialization of suspended closer to call of
98341         my_usleep.
98342         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
98343         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
98344         (desirable_utmp_entry): New function.
98345         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
98346         using x2nrealloc, to simplify logic.
98347         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
98348         size calculation.  Do not assume utmp file is a regular file.
98349         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
98350         (READ_UTMP_CHECK_PIDS): New constant.
98351         * lib/save-cwd.c: Include unistd-safer.h.
98352         (save_cwd): Use fd_safer.
98353         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
98354         [!_LIBC] Include "stat-macros.h" instead.
98355         * lib/unistd-safer.h (fd_safer): New decl.
98357 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
98359         * modules/getloadavg (Depends-on): Add unistd-safer.
98360         * modules/getusershell (Depends-on): Add stdio-safer.
98361         * modules/lstat (Depends-on): Remove xalloc.
98362         * modules/mkstemp (Depends-on): Add stat-macros.
98363         * modules/modechange (Depends-on): Remove xstrtol.
98364         Add stat-macros, xalloc.
98365         * modules/save-cwd (Depends-on): Add unistd-safer.
98366         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
98367         * modules/unistd-safer (Files): Add lib/fd-safer.c
98368         (Makefile.am): Remove lib_SOURCES.
98370         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
98371         Remove fcntl-safer; unistd-safer supersedes it.
98373 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
98375         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
98376         AC_HEADER_STAT.
98377         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
98378         (gl_PREREQ_CHOWN): Remove.
98379         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
98380         it.  Don't require AC_HEADER_STAT.
98381         (gl_PREREQ_LSTAT): Remove.
98382         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
98383         Don't require AC_HEADER_STAT.
98384         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
98385         (gl_PREREQ_RMDIR): Remove.
98386         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
98387         mention stat-macros.h or AC_HEADER_STAT, since we'll make
98388         the stat-macros module a prerequisite.
98389         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
98390         * m4/filemode.m4 (gl_FILEMODE): Likewise.
98391         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
98392         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
98393         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
98394         variable names.
98395         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
98396         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
98397         variable prefixes.
98398         * m4/fcntl-safer.m4: Remove.
98399         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
98400         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
98401         Invoke gl_PREREQ_FD_SAFER.
98402         (gl_PREREQ_FD_SAFER): New macro.
98403         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
98404         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
98405         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
98406         Remove duplicate call to AC_LIBOBJ(readutmp).
98407         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
98409         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
98410         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
98412 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
98414         * MODULES.html.sh (Misc): Add byteswap.
98416 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
98418         * modules/getcwd (Depends-on): Add extensions.
98419         * modules/openat (Depends-on): Likewise.
98421 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
98423         * modules/byteswap: New file.
98425 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
98427         * m4/byteswap.m4: New file.
98429 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
98431         * lib/byteswap_.h: New file.
98433 2005-04-25  Karl Berry  <karl@gnu.org>
98435         * m4/gettext.m4: Update from GNU gettext 0.14.4.
98437 2005-04-25  Albert Chin  <china@thewrittenword.com>
98439         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
98440         Toolkit C bug.
98442 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
98444         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
98445         (func_ln_if_changed): Remove forcibly for no error message
98446         in case file does not exist.
98448 2005-04-19  Simon Josefsson  <jas@extundo.com>
98450         * gnulib-tool (Options): Make --symlink mean --symbolic.
98452 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
98454         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
98456 2005-04-16  Simon Josefsson  <jas@extundo.com>
98458         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
98460 2005-04-15  Simon Josefsson  <jas@extundo.com>
98462         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
98464 2005-04-15  Simon Josefsson  <jas@extundo.com>
98466         * gnulib-tool: Rename --symlink to --symbolic.
98468 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
98470         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
98471         symbolic links to files instead of copying/moving.  Add --aux-dir,
98472         specifying directory relative --dir where auxiliary build tools
98473         are placed.
98475 2005-04-14  Bruno Haible  <bruno@clisp.org>
98477         * modules/allocsa (License): Change to LGPL.
98478         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
98480 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
98482         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
98483         that "UTC +1 second" continues to work.  Problem reported
98484         by Dmitry V. Levin.
98485         (relunit_snumber): New rule.
98486         (relunit): Use it.
98488 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
98490         * lib/getdate.y (universal_time_zone_table): New constant.
98491         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
98492         universal_time_zone_table.
98493         (lookup_zone): Prefer universal_time_zone_table to
98494         local_time_zone_table, so that "GMT" time stamps are allowed in
98495         London during the summer.  Problem reported by Ian Abbott.
98497 2005-04-12  Jim Meyering  <jim@meyering.net>
98499         * lib/human.c (humblock): Set *options even when returning due to
98500         xstrtoumax conversion failure.  Thanks to a used-uninitialized
98501         warning from gcc-4.
98503 2005-04-09  Jim Meyering  <jim@meyering.net>
98505         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
98506         -Wuninitialized: initialize tm0.tm_year.
98508 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
98510         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
98511         count, since there's no maximum.  All uses changed.
98512         Add member dsts_seen.
98513         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
98514         not being INT_MAX.
98515         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
98516         Use pc_rels_seen to decide whether a date is absolute.
98518         * lib/getdate.y (number): Don't overwrite year.
98519         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
98520         check.
98522 2005-04-02  Simon Josefsson  <jas@extundo.com>
98524         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
98525         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
98527 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
98529         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
98530         where no absolute path name can be longer than PATH_MAX.
98532 2005-03-27  Jim Meyering  <jim@meyering.net>
98534         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
98536 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
98538         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
98539         "one's complement" -> "ones' complement" in comment, as per Knuth.
98540         "value of type" -> "type or expression" in comment.
98541         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
98543 2005-03-26  Jim Meyering  <jim@meyering.net>
98545         Comment nits.
98546         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
98547         Correct typos: s/or/of/.
98549 2005-03-26  Jim Meyering  <jim@meyering.net>
98551         * modules/check-include-files: Move to ../ and rename to...
98552         * check-module: ...this.
98554 2005-03-25  Jim Meyering  <jim@meyering.net>
98556         * modules/xvasprintf (Files): Add xalloc.h.
98558 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
98560         * modules/gettext (Files): config/config.rpath ->
98561         build-aux/config.rpath
98562         * modules/iconv (Files): Likewise.
98563         Problem reported by Oskar Liljeblad.
98565 2005-03-23  Jim Meyering  <jim@meyering.net>
98567         * modules/check-include-files: New script to check for
98568         missing dependencies, multiple includes, etc.
98570         * modules/c-strtold (Depends-on): Add xalloc.
98571         * modules/c-strtod (Depends-on): Add xalloc.
98572         * modules/hash (Depends-on): Add xalloc.
98573         (Files): Remove lib/xalloc.h.
98575         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
98576         * modules/userspec (Files): Add lib/inttostr.h.
98578 2005-03-23  Jim Meyering  <jim@meyering.net>
98580         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
98582 2005-03-22  Jim Meyering  <jim@meyering.net>
98584         * modules/stat-macros: New module.
98585         * modules/canonicalize, modules/euidaccess, modules/file-type,
98586         * modules/filemode, modules/lchown, modules/makepath,
98587         * modules/rmdir, modules/stat: Depend on new stat-macros module
98588         rather than listing lib/stat-macros.h manually.
98589         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
98591 2005-03-22  Jim Meyering  <jim@meyering.net>
98593         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
98595 2005-03-22  Bruno Haible  <bruno@clisp.org>
98597         * config/srclist.txt: Replace target directory 'config' with
98598         'build-aux'.
98599         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
98600         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
98601         ../build-aux/.
98603 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
98605         * modules/chdir-long (Depends-on): Add mempcpy.
98607         * modules/acl, modules/backupfile, modules/c-strtod,
98608         modules/c-strtold, modules/canon-host, modules/canonicalize,
98609         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
98610         modules/exclude, modules/exitfail, modules/file-type,
98611         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
98612         modules/getdate, modules/getline, modules/getpagesize,
98613         modules/getpass, modules/getugroups, modules/group-member,
98614         modules/hard-locale, modules/hash, modules/human, modules/idcache,
98615         modules/inttostr, modules/long-options, modules/makepath,
98616         modules/md5, modules/memcasecmp, modules/memcoll,
98617         modules/modechange, modules/mountlist, modules/path-concat,
98618         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
98619         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
98620         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
98621         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
98622         modules/strftime, modules/strndup, modules/strverscmp,
98623         modules/timespec, modules/unlocked-io, modules/userspec,
98624         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
98625         modules/yesno:
98626         Remove lib_SOURCES line from Makefile.am section, as this is now
98627         done automatically by the corresponding Autoconf macro.
98629 2005-03-21  Jim Meyering  <jim@meyering.net>
98631         Changes imported from coreutils.
98633         * lib/cycle-check.c: Don't include xalloc.h.
98635         * lib/path-concat.c: Don't include assert.h.
98636         (path_concat): Remove assertion that would have triggered
98637         for ABASE starting with more than one slash.
98638         Reported by Andreas Schwab.
98640         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
98641         properly when ABASE is an absolute file name.
98642         Correct the description of this function.
98643         Include <assert.h>.
98644         Add an assertion and a test driver.
98645         This fixes a bug introduced on 2004-07-02.
98646         Andreas Schwab reported the resulting failure of cp --parents:
98647         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
98649 2005-03-21  Jim Meyering  <jim@meyering.net>
98651         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
98652         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
98654 2005-03-21  Jim Meyering  <jim@meyering.net>
98655         and  Paul Eggert  <eggert@cs.ucla.edu>
98657         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
98658         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
98659         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
98660         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
98661         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
98662         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
98663         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
98664         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
98665         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
98666         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
98667         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
98668         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
98669         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
98670         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
98671         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
98672         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
98673         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
98674         for these modules.
98676 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
98678         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
98679         (which shouldn't happen), generate nothing instead of returning 0
98680         immediately, so that nstrftime (NULL, ...) doesn't return 0.
98682 2005-03-16  Bruno Haible  <bruno@clisp.org>
98684         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
98685         HAVE_LONGLONG_64BIT.
98687 2005-03-16  Bruno Haible  <bruno@clisp.org>
98689         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
98690         HAVE_LONGLONG_64BIT.
98692 2005-03-16  Bruno Haible  <bruno@clisp.org>
98694         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
98695         HAVE_LONGLONG_64BIT.
98697 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
98699         * lib/strftime.c (my_strftime): Prepend space to format so that we can
98700         reliably distinguish strftime failure from empty output on POSIX
98701         hosts.
98703 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
98705         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
98706         (iconv_string): Don't guess a size-zero buffer, as that might cause
98707         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
98708         result would be 'too large', where 'too large' is (heuristically)
98709         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
98710         overflow concerns.  This will prevent some unwanted malloc failures
98711         when the inputs are very large.
98713 2005-03-15  Karl Berry  <karl@gnu.org>
98715         * config/srclist.txt (config.rpath): from gettext.
98716         * config/config.rpath: update.
98718 2005-03-15  Bruno Haible  <bruno@clisp.org>
98720         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
98721         to 'negate'.
98723         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
98724         variable.
98726         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
98727         results.
98729 2005-03-14  Simon Josefsson  <jas@extundo.com>
98731         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
98732         <fx@gnu.org>.
98734 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
98736         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
98737         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
98738         intprops.h.
98739         * lib/strtol.c: Likewise.
98741 2005-03-14  Jim Meyering  <jim@meyering.net>
98743         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
98744         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
98745         to be nonzero so that we (and caller) can detect the difference
98746         between a valid zero-length expansion and an error return, even
98747         when the underlying strftime fails before writing anything into
98748         that location.
98750 2005-03-14  Bruno Haible  <bruno@clisp.org>
98752         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
98753         Update from GNU gettext 0.14.3.
98755 2005-03-10  Jim Meyering  <jim@meyering.net>
98757         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
98759 2005-03-10  Jim Meyering  <jim@meyering.net>
98761         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
98762         so that this module works on systems without fchdir.
98764 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
98766         Factor int-properties macros into a single file, except for
98767         glibc-related files.
98768         * lib/intprops.h: New file.
98769         * lib/getloadavg.c: Include it instead of limits.h.
98770         (INT_STRLEN_BOUND): Remove.
98771         * lib/human.c: Include intprops.h.
98772         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
98773         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
98774         302/1000.
98775         * lib/inttostr.h: Include intprops.h instead of limits.h.
98776         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
98777         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
98778         for consistency with intprops.h.
98779         (time_t_is_integer, twos_complement_arithmetic): Use them.
98780         * lib/sig2str.h: Include <signal.h>, intprops.h.
98781         (INT_STRLEN_BOUND): Remove.
98782         * lib/strftime.c (TYPE_SIGNED): Remove.
98783         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
98784         * lib/strtol.c: Adjust comments to match intprops.h.
98785         * lib/userspec.c: Include intprops.h.
98786         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
98787         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
98788         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
98789         instead of rolling our own expressions.
98790         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
98792         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
98793         instead of int.
98794         (my_strftime): Do not mishandle years close to INT_MAX, by doing
98795         the right thing even if adding 1900 would overflow.  Similarly
98796         for tm_mon + 1 and tm_yday + 1.
98797         Make %Y always equivalent to %C%y, and similarly for %G and %g.
98798         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
98799         (DO_SIGNED_NUMBER): New macro.
98800         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
98802 2005-03-07  Bruno Haible  <bruno@clisp.org>
98804         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
98806 2005-03-07  Bruno Haible  <bruno@clisp.org>
98808         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
98810 2005-03-04  Derek R. Price  <derek@ximbiot.com>
98812         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
98813         (func_import): Only replace files via --import when they have actually
98814         changed.
98816 2005-03-03  Derek R. Price  <derek@ximbiot.com>
98818         * m4/mmap-anon.m4: New file.
98819         * m4/pagealign_alloc.m4: New file.
98821 2005-03-03  Derek R. Price  <derek@ximbiot.com>
98822             Bruno Haible  <bruno@clisp.org>
98824         * modules/pagealign_alloc: New file.
98825         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
98827 2005-03-03  Derek R. Price  <derek@ximbiot.com>
98828             Bruno Haible  <bruno@clisp.org>
98830         * lib/pagealign_alloc.h: New file.
98831         * lib/pagealign_alloc.c: New file.
98833 2005-03-03  Bruno Haible  <bruno@clisp.org>
98835         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
98836         Use an all-permissive copyright notice, recommended by RMS.
98838 2005-03-02  Bruno Haible  <bruno@clisp.org>
98840         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
98841         of AIX, the replacement has to be done only after <string.h> is
98842         included, therefore not in config.h. stpncpy.h does the replacement,
98843         and stpncpy.c uses it.
98845 2005-03-02  Bruno Haible  <bruno@clisp.org>
98847         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
98848         stpncpy.c uses it.
98850 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
98852         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
98853         The workaround isn't strictly needed for POSIX conformance, and
98854         it's too much of a pain to configure and maintain.  We'll ask
98855         people to fix their kernels instead.
98856         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
98857         (NANOSLEEP_BUG_WORKAROUND): Remove.
98858         (xnanosleep): Remove the workaround.
98860 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
98862         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
98863         Reported by Derek Price.
98864         (Include): Add "timespec.h".
98866         * modules/xnanosleep (Depends-on): Remove gethrxtime.
98868 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
98870         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
98871         to detect nanosleep bug.
98873 2005-03-01  Bruno Haible  <bruno@clisp.org>
98875         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
98877 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
98879         * modules/gethrxtime: New file.
98880         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
98881         (Depends-on): Add gethrxtime.
98882         (configure.ac): Add gl_XNANOSLEEP.
98883         (Makefile.am): Remove lib_SOURCES line.
98885 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
98887         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
98888         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
98890 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
98892         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
98893         * lib/timespec.h (gettime): Return void, since it always
98894         succeeds now.  All uses changed.
98895         * lib/gettime.c (gettime): Likewise.
98896         [HAVE_NANOTIME]: Prefer nanotime.
98897         Assume gettimeofday succeeds, as POSIX requires.
98898         Assime time () succeeds, since other code already does.
98899         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
98900         (timespec_subtract): Remove.
98901         (NANOSLEEP_BUG_WORKAROUND): New constant.
98902         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
98903         things considerably.  Use it only on GNU/Linux hosts, since the
98904         workaround shouldn't be needed elsewhere.
98906 2005-02-24  Bruno Haible  <bruno@clisp.org>
98908         * modules/gettext (Files): Add m4/glibc2.m4.
98910 2005-02-24  Bruno Haible  <bruno@clisp.org>
98912         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
98913         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
98914         * m4/progtest.m4:
98915         Update from GNU gettext 0.14.2.
98916         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
98918 2005-02-24  Bruno Haible  <bruno@clisp.org>
98920         * lib/localcharset.c: Update from GNU gettext 0.14.2.
98921         * lib/config.charset: Update from GNU gettext 0.14.2.
98923 2005-02-24  Bruno Haible  <bruno@clisp.org>
98925         * lib/gettext.h: Update from GNU gettext 0.14.2.
98927 2005-02-23  Simon Josefsson  <jas@extundo.com>
98929         * m4/iconvme.m4: New file.
98931 2005-02-23  Jim Meyering  <jim@meyering.net>
98933         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
98934         change.
98935         Thanks to Bruno Haible for catching it.
98937 2005-02-22  Simon Josefsson  <jas@extundo.com>
98939         * modules/iconvme: New file.
98941         * MODULES.html.sh: Add iconvme.
98943 2005-02-22  Simon Josefsson  <jas@extundo.com>
98945         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
98947 2005-02-22  Simon Josefsson  <jas@extundo.com>
98949         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
98951 2005-02-22  Jim Meyering  <jim@meyering.net>
98953         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
98954         s/ifndef/ifdef/.
98956 2005-02-20  Neil Conway  <neilc@samurai.com>
98958         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
98959         returned by OSX/Darwin if the specified buffer is not large
98960         enough for the hostname.
98962 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
98964         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
98965         pass it to _help, otherwise the latter coredumps trying to
98966         dereference state.root_argp.
98968 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
98970         * modules/chdir-long (Depends-on): Add memrchr.
98971         * modules/memrchr (Files): Add lib/memrchr.h.
98972         (Include): "memrchr.h".
98974 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
98976         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
98978 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
98980         * lib/memrchr.h: New file.
98981         * lib/chdir-long.c: Include it.
98982         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
98983         Don't bother including stddef.h.
98985 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
98987         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
98988         inclusion.
98989         Include <sys/types.h>, for dev_t.
98990         (ME_DUMMY, ME_REMOTE): Move from here....
98991         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
98992         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
98993         Dmitry V. Levin.
98994         Include mountlist.h first, to test the interface.
98996 2005-01-29  Bruno Haible  <bruno@clisp.org>
98998         * lib/progname.c (program_name): Initialize.
98999         Needed when linking statically on MacOS X.
99001 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
99003         Sync from coreutils.
99004         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
99005         (Depends-on): Add c-strtod.
99006         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
99008 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
99010         Sync from coreutils.
99011         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
99013         Remove files that are specific to coreutils.
99014         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
99016 2005-01-28  Bruno Haible  <bruno@clisp.org>
99018         * modules/javacomp: New file.
99019         * MODULES.html.sh (Java): Add javacomp.
99021 2005-01-28  Bruno Haible  <bruno@clisp.org>
99023         * m4/javacomp.m4: New file, from GNU gettext.
99025 2005-01-28  Bruno Haible  <bruno@clisp.org>
99027         * lib/javacomp.sh.in: New file, from GNU gettext.
99028         * lib/javacomp.h: New file, from GNU gettext.
99029         * lib/javacomp.c: New file, from GNU gettext.
99031 2005-01-26  Simon Josefsson  <jas@extundo.com>
99033         * lib/gai_strerror.c: Use GPL in header.
99035 2005-01-26  Bruno Haible  <bruno@clisp.org>
99037         * modules/javaexec: New file.
99038         * MODULES.html.sh (Java): Add javaexec.
99040 2005-01-26  Bruno Haible  <bruno@clisp.org>
99042         * m4/javaexec.m4: New file, from GNU gettext.
99044 2005-01-26  Bruno Haible  <bruno@clisp.org>
99046         * lib/javaexec.sh.in: New file, from GNU gettext.
99047         * lib/javaexec.h: New file, from GNU gettext.
99048         * lib/javaexec.c: New file, from GNU gettext.
99050 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99052         * modules/lchown (Depends-on): Remove lchown.h
99054 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99056         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
99057         must be defined if the header file was not found, in order
99058         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
99060 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99062         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
99063         initializers for struct pentry_state.
99064         (__argp_error): Check return value of __asprintf
99065         (__argp_failure): Translate error message
99067         * lib/argp-parse.c: Removed braces around the expansion of N_()
99069 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99071         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
99072         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
99073         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
99074         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
99075         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
99076         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
99077         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
99078         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
99079         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
99080         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
99081         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
99082         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
99083         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
99084         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
99085         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
99086         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
99087         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
99088         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
99089         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
99090         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
99091         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
99092         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
99093         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
99094         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
99095         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
99096         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
99097         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
99098         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
99099         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
99100         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
99101         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
99102         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
99103         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
99104         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
99105         xstrtol.m4, xstrtoumax.m4, yesno.m4:
99106         Use an all-permissive copyright notice, recommended by RMS.
99108 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
99110         * modules/chdir-long (Depends-on): Remove mempcpy.
99112 2005-01-21  Jim Meyering  <jim@meyering.net>
99114         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
99115         same value as for Solaris 9.
99117         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
99118         component length.  This included changing the parameter to be
99119         of type `char *' rather than `char const *'.
99120         * lib/chdir-long.h (chdir_long): Update prototype.
99122         * lib/openat.c (fdopendir, fstatat): New functions.
99123         * lib/openat.h: Include headers required for use of DIR and struct
99124         stat.
99125         [AT_SYMLINK_NOFOLLOW]: Define.
99126         (fdopendir, fstatat): Add prototypes.
99128 2005-01-21  Bruno Haible  <bruno@clisp.org>
99130         * modules/classpath: New file.
99131         * MODULES.html.sh (Java): Add classpath.
99133 2005-01-21  Bruno Haible  <bruno@clisp.org>
99135         * lib/classpath.h: New file, from GNU gettext.
99136         * lib/classpath.c: New file, from GNU gettext.
99138 2005-01-20  Simon Josefsson  <jas@extundo.com>
99140         * modules/version-etc-fsf: New file.
99142 2005-01-20  Simon Josefsson  <jas@extundo.com>
99144         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
99145         * lib/version-etc.c: Remove version_etc_copyright.
99146         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
99147         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
99149 2005-01-20  Simon Josefsson  <jas@extundo.com>
99151         * lib/base64.h (isbase64): Add.
99153         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
99154         using a unsigned prototype, don't inline.
99155         (base64_decode): Use it.
99157 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
99159         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
99160         it.
99162 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
99164         * lib/save-cwd.c (save_cwd): Remove code to support the case
99165         where fchdir is missing or flaky.
99167 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
99169         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
99171 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
99173         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
99174         AC_LIBSOURCES now does this.
99175         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
99176         with new ullong_max module.
99178 2005-01-19  Bruno Haible  <bruno@clisp.org>
99180         * modules/sh-quote: New file.
99181         * MODULES.html.sh (Executing programs): Add sh-quote.
99183 2005-01-19  Bruno Haible  <bruno@clisp.org>
99185         * lib/sh-quote.h: New file, from GNU gettext.
99186         * lib/sh-quote.c: New file, from GNU gettext.
99188 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
99190         Merge from coreutils.
99191         * m4/ullong_max.m4: New file.
99192         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
99193         (gl_MACROS): Assume localeconv exists.
99195 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
99197         Merge changes from coreutils, as described below in several
99198         changelogs dated today.
99200         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
99201         (O_DIRECTORY): Remove; not needed here, since "." must be
99202         a directory.  All uses removed.
99203         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
99204         universal on Suns, and we also need to test for IRIX.
99205         Revamp code to use 'if' rather than '#if'.
99206         Avoid unnecessary comparison of cwd->desc to 0.
99208         * lib/utimens.c (futimens): Robustify the previous patch, by checking
99209         for known valid error numbers rather than observed invalid ones.
99211 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
99213         * modules/ullong_max: New file.
99215         * modules/chdir-long, modules/openat: New files.
99216         * modules/save-cwd (Depends-on): Depend on chdir-long.
99217         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
99219 2005-01-18  Jim Meyering  <jim@meyering.net>
99221         Merge from coreutils.
99222         * m4/chdir-long.m4, m4/openat.m4: New files.
99223         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
99224         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
99225         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
99226         is sane and DOES follow symlinks.  Besides, testing 20 different
99227         systems found no broken chown implementations.
99228         Prompted by a change in rsync's copy of this macro.
99229         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
99231         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
99233         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
99234         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
99235         NULL-means-set-to-current-time semantics.
99236         Remove temporary file immediately, rather than waiting
99237         for configure's at-exit trap code to do it.
99239 2005-01-18  Jim Meyering  <jim@meyering.net>
99241         * lib/version-etc.c (version_etc_copyright): Update copyright date.
99243         * lib/utimens.c (futimens): Account for the fact that futimes
99244         can also fail with errno == ENOSYS or errno == ENOENT.
99245         Patch from Dmitry V. Levin.
99247         Change the name of the robust chdir function from chdir to chdir_long.
99248         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
99249         (restore_cwd): Use chdir_long, not chdir.
99250         * lib/chdir-long.c: Renamed from chdir.c.
99251         * lib/chdir-long.h: Renamed from chdir.h.
99252         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
99253         Hurd.
99255 2005-01-18  Bruno Haible  <bruno@clisp.org>
99257         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
99258         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
99259         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
99260         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
99261         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
99262         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
99263         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
99264         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
99265         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
99266         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
99267         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
99268         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
99269         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
99270         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
99271         Use an all-permissive copyright notice, recommended by RMS.
99273 2005-01-18  Bob Proulx  <bob@proulx.com>
99275         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
99276         simplify offsetof() macro construct to avoid compile failure with
99277         native HP-UX 11.0 ANSI C compiler.
99279 2005-01-17  Bruno Haible  <bruno@clisp.org>
99281         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
99282         redundant because stpncpy.m4 takes care of it.
99284 2005-01-17  Bruno Haible  <bruno@clisp.org>
99286         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
99288 2005-01-17  Bruno Haible  <bruno@clisp.org>
99290         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
99291         used.
99293 2005-01-17  Bruno Haible  <bruno@clisp.org>
99295         * lib/fwriteerror.h (fwriteerror): Change specification to include
99296         fclose.
99297         * lib/fwriteerror.c: Include <stdbool.h>.
99298         (fwriteerror): At the end, close the file stream. Record whether
99299         stdout was already closed.
99301 2005-01-17  Bruno Haible  <bruno@clisp.org>
99303         * lib/execute.c (environ): Declare if needed.
99304         * lib/pipe.c (environ): Likewise.
99305         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
99307 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99309         * modules/argp: Depend on vsnprintf
99311 2005-01-10  Jim Meyering  <jim@meyering.net>
99313         * modules/closeout (Depends-on): Add atexit.
99315 2005-01-06  Bruno Haible  <bruno@clisp.org>
99317         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
99319 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
99321         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
99322         definitions to be after all include files, to avoid collisions.
99323         Problem reported by Bob Proulx.
99325 2005-01-04  Jim Meyering  <jim@meyering.net>
99327         Changes imported from coreutils.
99328         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
99329         as the mkstemp template, use a temporary directory and an
99330         8.3-friendly template to avoid trouble on systems like DJGPP.
99331         Reported by Juan M. Guerrero via Stepan Kasal.
99332         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
99333         close. Remove the temporary directory right away, rather than waiting
99334         for configure's at-exit trap code to do it.
99335         Suggestion from Stepan Kasal.
99337 2005-01-01  Simon Josefsson  <jas@extundo.com>
99339         * gnulib-tool: Print #include directives when --import'ing.
99341 2004-12-28  Simon Josefsson  <jas@extundo.com>
99343         * tests/test-base64.c: Include required header files.  Remove
99344         unused variables.
99346 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
99348         * modules/error (Depends-on): Remove gettext.
99350 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
99352         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
99353         not needed.  This removes a dependency on the gettext module.
99354         [defined _LIBC]: Do not include <libintl.h>; not needed.
99356 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
99358         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
99359         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
99361 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
99363         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
99364         HAVE_DECL_STRTOLD.
99366 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
99368         * modules/getdate (Depends-on): Remove alloca-opt.
99370 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
99372         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
99374 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
99376         * lib/argp-parse.c: Include <stddef.h>.
99377         (alignof, alignto): New macros.
99378         (parser_init): Don't assume that void * is aligned sufficiently
99379         for struct option.
99381         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
99382         need to extend the stack.
99383         (YYINITDEPTH): New macro, so that the initial stack isn't overly
99384         large.
99386 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99388         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
99390 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
99392         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
99393         (2004-10-24) change.  Apparently this was a false alarm.
99395         * modules/getdate: Depend on alloca-opt, not alloca.
99397 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
99399         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
99400         Remove now-obsolete comment about AIX.
99401         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
99402         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
99403         (YYMAXDEPTH): New macro.
99405 2004-12-18  Simon Josefsson  <jas@extundo.com>
99407         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
99409 2004-12-18  Bruno Haible  <bruno@clisp.org>
99411         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
99413 2004-12-18  Bruno Haible  <bruno@clisp.org>
99415         * lib/fatal-signal.c (fatal_signals): Make non-const.
99416         (init_fatal_signals): New function.
99417         (uninstall_handlers, install_handlers): Ignore signals that were set to
99418         SIG_IGN.
99419         (at_fatal_signal): Call init_fatal_signals.
99420         (init_fatal_signal_set): Likewise. Ignore signals that were set to
99421         SIG_IGN.
99422         Reported by Paul Eggert.
99424 2004-12-18  Bruno Haible  <bruno@clisp.org>
99426         * doc/alloca.texi: New file.
99427         * doc/alloca-opt.texi: New file.
99429 2004-12-17  Jim Meyering  <jim@meyering.net>
99431         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
99432         Otherwise, install-sh could exit with improper exit status when
99433         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
99435 2004-12-16  Simon Josefsson  <jas@extundo.com>
99437         * tests/test-base64.c: Add license.
99439 2004-12-15  Stepan Kasal  <address@hidden>
99441         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
99443 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
99445         * modules/getcwd (Files): Add m4/d-ino.m4.
99446         Suggested by Mark D. Baushke.
99448 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
99450         * lib/getdate.y (textint): New member "negative".
99451         (time_zone_hhmm): New function.
99452         Expect 14 shift-reduce conflicts, not 13.
99453         (o_colon_minutes): New rule.
99454         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
99455         (yylex): Set the "negative" member of signed numbers.
99457 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
99459         * doc/getdate.texi (Time of day items, Time zone items):
99460         Describe new formats +00:00, UTC+00:00.
99462 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
99464         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
99465         spurious "-l"s.  Problem reported by Stepan Kasal.
99467 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
99469         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
99470         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
99472 2004-12-04  Simon Josefsson  <jas@extundo.com>
99474         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
99475         Vandoorselaere <yoann@prelude-ids.org>.
99477 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
99479         Changes imported from coreutils.
99480         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
99481         exist.
99482         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
99484 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
99486         Changes imported from coreutils.
99487         * lib/hard-locale.c: Assume <locale.h> exists.
99488         Include "strdup.h".
99489         (GLIBC_VERSION): New macro.
99490         (hard_locale): Assume setlocale exists.
99491         Rewrite to avoid #ifdef.
99492         Use strdup rather than malloc + strcpy.
99493         * lib/human.c: Assume <locale.h> exists.
99494         (human_readable): Assume localeconv exists.
99496 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
99498         * modules/hard-locale (Depends-on): Add strdup.
99500 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
99502         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
99503         convert T2, not T.  (Imported from libc.)
99505 2004-11-30  Simon Josefsson  <jas@extundo.com>
99507         * modules/restrict (License): Change to LGPL.
99509 2004-11-30  Simon Josefsson  <jas@extundo.com>
99511         * m4/restrict.m4: Add copyright and copying conditions.
99513 2004-11-30  Simon Josefsson  <jas@extundo.com>
99515         * m4/base64.m4: New file.
99517 2004-11-30  Simon Josefsson  <jas@extundo.com>
99519         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
99520         base64.
99522         * tests/test-base64.c: New file.
99524         * modules/base64: New file.
99526 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
99528         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
99529         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
99531         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
99533 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
99535         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
99536         (__getcwd.c): Don't restore errno; glibc doesn't.
99537         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
99538         first, falling back to our code only if its results look suspicious.
99539         Ensure that the resulting buffer is only as large as necessary.
99541         * lib/readutmp.c: Include readutmp.h first.
99542         Include <errno.h>, since readutmp.h no longer does that.
99543         * lib/readutmp.h: Don't include <errno.h>,
99544         <sys/param.h>, <time.h>; not needed to establish interface.
99545         (errno): Remove decl.
99546         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
99547         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
99548         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
99550 2004-11-28  Simon Josefsson  <jas@extundo.com>
99552         * lib/base64.h, base64.c: New file.
99554 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
99556         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
99558 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
99560         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
99561         (Depends-on): Remove pathmax, same.  Add mempcpy.
99562         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
99563         (Makefile.am): Append getcwd.h to lib_SOURCES.
99564         (Include): Add getcwd.h.
99565         (Maintainer): Change from Jim Meyering to "all, glibc",
99566         since getdate now uses intended-for-glibc code.
99567         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
99568         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
99570 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
99572         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
99573         HP's ANSI C compiler.
99574         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
99575         Declaring int functions causes warnings on some modern systems and
99576         shouldn't be needed to compile on ancient ones.
99577         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
99578         defined.
99580         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
99581         with the following changes.
99582         (__set_errno): Parenthesize properly.
99583         Include <stdbool.h>.
99584         (MIN, MAX, MATCHING_INO): New macros.
99585         (__getcwd): Define with prototype, not K&R form.
99586         Use heuristics to allocate default buffer on stack if possible.
99587         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
99588         behavior, and to avoid the PATH_MAX limit when computing
99589         ../../../../...
99590         Use MATCHING_INO to compare inode number to file.
99591         Check for arithmetic overflow in size calculations.
99592         Fix bug in reallocation of dot array that caused getcwd to fail
99593         on directories nested deeper than 75.
99594         Be more careful about saving errno on error.
99595         Do not use realloc; use only free+malloc, as this is a bit
99596         more flexible and avoids a needless copy operation.
99597         Do not inspect st_dev and st_ino for symbolic links; POSIX
99598         doesn't specify the latter.
99599         Check for closedir errors.
99600         Avoid needless casts.
99601         Use "#ifdef weak_alias" around weak_alias, to be like other
99602         glibc code.
99603         The following changes to getcwd.c have effect only when used in
99604         gnulib; they have no effect inside glibc proper.
99605         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
99606         as alloca isn't used.
99607         (alloca, __alloca): Likewise.
99608         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
99609         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
99610         unconditionally, as gnulib assumes C89 or better.
99611         Do not include <sys/param.h>.
99612         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
99613         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
99614         better.
99615         (NULL) [!defined NULL]: Remove; we assume C89 or better.
99616         Include <dirent.h> in a way that is compatible with modern Autoconf.
99617         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
99618         New macros, if not already defined.
99619         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
99620         Use "_LIBC", not "defined _LIBC", for consistency.
99621         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
99622         a mempcpy module.
99623         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
99624         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
99625         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
99626         credit only to Jim Meyering and adjust the copyright dates.
99627         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
99628         <stdlib.h>, <unistd.h>, "pathmax.h".
99629         Instead, include "xgetcwd.h" (first) and "getcwd.h".
99630         (INITIAL_BUFFER_SIZE): Remove.
99631         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
99633 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
99635         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
99636         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
99637         Use the _ONCE methods, for efficiency.
99638         Check for fcntl.h.  In test program, include <errno.h>
99639         and <fcntl.h> if available.  Remove old K&R cruft from
99640         test program.  Check for common errors in GNU/Linux,
99641         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
99642         don't do AC_LIBOBJ, as that's getcwd.m4's job.
99643         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
99644         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
99645         name accordingly.
99646         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
99647         accommodate new getcwd.c.
99648         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
99649         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
99650         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
99651         that's all we need now.
99653 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99655         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
99656         argp-parse.c depends on getopt internals, that means we should
99657         always use our getopt, to be on the safe side.
99658         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
99659         order not to spoil the result of an eventual previous invocation
99660         of gl_GETOPT_SUBSTITUTE.
99662 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
99664         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
99665         redefinition warnings. To avoid them, include the defines
99666         in `#if !defined __need_getopt ... #endif'. The only place
99667         where __getopt_argv_const is used is in definitions
99668         of getopt_long and getopt_long_only below, which are as well
99669         protected by `#ifndef __need_getopt'.
99670         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
99671         __need_getopt after including <stdio.h> and <unistd.h> These
99672         headers might have defined it.
99674 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
99676         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
99678 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
99680         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
99681         (futimens): New function, which uses futimes if available.
99682         (futimens, utimens): Support timespec==NULL, with same semantics
99683         as utime and utimens.
99684         * lib/utimens.h (futimens): New decl.
99686 2004-11-23  Jim Meyering  <jim@meyering.net>
99688         * lib/getopt_.h: Remove trailing blanks.
99690 2004-11-23  Jim Meyering  <jim@meyering.net>
99692         * lib/__fpending.c: Add comment.
99694 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
99696         * modules/canonicalize (Depends-on): Add xreadlink.
99697         Problem reported by James Youngman.
99699 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
99701         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
99702         New macros.
99703         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
99704         optopt): Use them instead of invoking ## directly; otherwise, the
99705         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
99707 2004-11-19  Bruno Haible  <bruno@clisp.org>
99709         * lib/strtok_r.c: Move comments from here...
99710         * lib/strtok_r.h: ... to here.
99712 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
99714         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
99715         implementations that mishandle size_t overflow.
99717 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
99719         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
99720         might fail.  Problem reported by Yoann Vandoorselaere.
99721         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
99722         implementations that mishandle size_t overflow.
99724 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
99726         * modules/canon-host (Depends-on): Add strdup.
99728 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
99730         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
99732 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
99734         * lib/canon-host.c: Include "strdup.h".
99735         (canon_host): Use getaddrinfo if available, so that IPv6 works.
99736         Use strdup instead of malloc/strcpy to duplicate strings.
99738         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
99739         (human_space_before_unit): New constant.
99740         * lib/human.c (human_readable): Support it.
99742         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
99743         (xgetcwd): Set errno correctly when failing.
99744         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
99745         the failure is actually due to a PATH_MAX problem.
99747         Further getopt changes to make it more likely that glibc will
99748         buy the changes back.
99749         * lib/getopt.c (POSIXLY_CORRECT): New constant.
99750         (getopt): Use it, so to preserve glibc semantic
99751         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
99752         when compiling for libc.
99753         * lib/getopt_.h (__getopt_argv_const): Bring it back.
99754         (getopt_long, getopt_long_only): Use it.
99756         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
99757         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
99758         (getopt): Argv is now char * const *, as per standard.
99759         (_getopt_internal_r, _getopt_internal): Argv is now char **,
99760         not char *__getopt_argv_const *.
99761         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
99762         _getopt_long_only_r): Likewise.
99763         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
99764         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
99765         _getopt_long_r, _getopt_long_only_r): Likewise.
99766         * lib/getopt_.h (__getopt_argv_const): Remove.
99767         (getopt): Argv is now char * const *, as per standard.
99769         * lib/getdate.y (tORDINAL): New token.
99770         (day, relunit): Allow it for relative times.
99771         (relative_time_table): Use tORDINAL for ordinals.
99773 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
99775         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
99776         Document that "second" isn't allowed as an ordinal number.
99778 2004-11-16  Jim Meyering  <jim@meyering.net>
99780         * modules/closeout (Depends-on): Add fpending.
99782 2004-11-15  Jim Meyering  <jim@meyering.net>
99784         * lib/closeout.c: Include "__fpending.h" once again.
99785         Include <stdbool.h>.
99786         (close_stdout): Don't fail just because stdout was closed initially,
99787         since some programs don't write to stdout in the normal course of
99788         operation (other than --version and --help), and we don't want this
99789         function to make e.g. `touch file >&-' fail.
99790         But do fail if it was closed and someone has tried to write to it.
99791         E.g., `printf foo >&-' must fail.
99793 2004-11-13  Jim Meyering  <jim@meyering.net>
99795         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
99797 2004-11-12  Simon Josefsson  <jas@extundo.com>
99799         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
99800         small doc fix is still pending.
99802 2004-11-11  Simon Josefsson  <jas@extundo.com>
99804         * modules/strtok_r: New file.
99806         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
99807         strtok_r.
99809 2004-11-11  Simon Josefsson  <jas@extundo.com>
99811         * m4/strtok_r.m4: New file.
99813         * m4/getopt.m4: Replace opterr.
99815 2004-11-11  Simon Josefsson  <jas@extundo.com>
99817         * lib/strtok_r.h, strtok_r.c: New file.
99819 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
99821         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
99822         of replacing opterr, getopt, etc.  This should handle the
99823         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
99825 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
99827         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
99828         we can stop lying to compilers about the constness of argv when we
99829         are compiled outside glibc.
99830         (getopt, getopt_long, getopt_long_only): Use it.
99831         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
99832         _getopt_internal, getopt): Likewise.
99833         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
99834         _getopt_long_only_r): Likewise.
99835         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
99836         _getopt_long_r, _getopt_long_only_r): Likewise.
99838         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
99839         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
99840         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
99841         the other external symbols.
99842         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
99843         declaration, since the above renaming now works around collisions.
99845 2004-11-11  Jim Meyering  <jim@meyering.net>
99847         * lib/linebreak.c: Remove trailing blanks.
99848         * lib/alloca_.h: Likewise.
99849         * lib/acosl.c: Likewise.
99850         * lib/euidaccess.c: Likewise.
99851         * lib/allocsa.h: Likewise.
99853 2004-11-10  Simon Josefsson  <jas@extundo.com>
99855         * m4/getaddrinfo.m4: New file.
99857 2004-11-10  Simon Josefsson  <jas@extundo.com>
99859         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
99861 2004-11-10  Simon Josefsson  <jas@extundo.com>
99863         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
99864         getaddrinfo.
99866         * modules/getaddrinfo: New file.
99868 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99870         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
99872 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
99874         * lib/mktime.c (SHR): New macro, which is a portable
99875         substitute for >> that should work even on Crays.
99876         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
99877         Problem reported by Mark D. Baushke in
99878         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
99879         * lib/getdate.y (SHR): Likewise.
99880         (tm_diff): Use it.
99881         * lib/strftime.c (SHR): Likewise.
99882         (tm_diff): Use it.
99883         * lib/quotearg.c (struct quoting_options): Use unsigned int for
99884         quote_these_too, so that right shifts are well defined.  All uses
99885         changed.
99887 2004-11-10  Jim Meyering  <jim@meyering.net>
99889         Ensure that no close failure goes unreported.
99890         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
99891         return early when it seems there's nothing to flush.
99892         Don't include __fpending.h.
99894 2004-11-10  Jim Meyering  <jim@meyering.net>
99896         * modules/closeout (Depends-on): Remove fpending.
99898 2004-11-10  Jim Meyering  <jim@meyering.net>
99900         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
99902 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
99904         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
99905         gl_FUNC_STRFTIME.
99906         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
99907         and AC_REQUIRE when possible, to avoid duplicate checks.
99908         Check for <wchar.h>.
99910 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
99912         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
99914 2004-11-09  Bruno Haible  <bruno@clisp.org>
99916         * m4/sockpfaf.m4: New file.
99918 2004-11-05  Bruno Haible  <bruno@clisp.org>
99920         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
99921         Reported by Mark D. Baushke <mdb@cvshome.org>.
99923 2004-11-04  Bruno Haible  <bruno@clisp.org>
99925         2004-09-11  Bruno Haible  <bruno@clisp.org>
99926                 * allocsa.valgrind: New file.
99927         2004-02-06  Bruno Haible  <bruno@clisp.org>
99928                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
99929                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
99930                 Reported by Christopher Seip <chris.seip@hp.com>.
99932 2004-11-04  Bruno Haible  <bruno@clisp.org>
99934         * modules/allocsa (Files): Add lib/allocsa.valgrind.
99935         (Makefile.am): Distribute it.
99937 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
99939         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
99940         with errno == ERANGE if the buffer is too small.
99941         Problem reported by Mark D. Baushke.
99943 2004-11-03  Albert Chin  <china@thewrittenword.com>
99944             Paul Eggert  <eggert@cs.ucla.edu>
99946         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
99947         equivalent, substitute $ac_type for equivalent type rather than
99948         blindly using uint32_t *always* which won't work if uint32_t is not
99949         available.  Define _UINT32_T to work around typedef of uint32_t if
99950         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
99951         2.5.1.
99953 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
99955         * m4/jm-macros.m4: Sync from coreutils.
99956         (gl_MACROS): Check for mbrlen, for pathchk.
99957         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
99959 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
99961         * lib/xreadlink.c (MAXSIZE): New macro.
99962         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
99963         size does not exceed MAXSIZE.  Avoid cast.
99964         As suggested by Mark D. Baushke in
99965         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
99966         if readlink fails with buffer size just under MAXSIZE, try again
99967         with MAXSIZE.
99969 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
99971         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
99973 2004-11-02  Derek R. Price  <derek@ximbiot.com>
99974         and  Paul Eggert  <eggert@cs.ucla.edu>
99976         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
99977         (get_date): Overparenthesize to avoid GCC warning.
99979 2004-11-02  Bruno Haible  <bruno@clisp.org>
99981         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
99982         returns void.
99984 2004-11-02  Bruno Haible  <bruno@clisp.org>
99986         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
99987         function returns void.
99989 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
99991         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
99992         fflush_unlocked, flockfile, funlockfile, funlockfile,
99993         fputs_unlocked, putc_unlocked.
99995 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
99997         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
99998         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
99999         already declared.
100001 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
100003         * modules/getdate (Files): Add doc/getdate.texi.
100004         (Depends-on): Add setenv, xalloc.
100006 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
100008         * lib/getdate.y: Add support for TZ="foo" within a date string.
100009         Fix some bugs near time_t boundaries.  Reject dates with
100010         out-of-range components, e.g., "Sept 31".
100011         Include <stdlib.h>, "setenv.h", "xalloc.h".
100012         (ISDIGIT_LOCALE): Remove; unused.
100013         Note that the TZ and time functions used here are not reentrant.
100014         (mktime_ok, get_tz): New functions.
100015         (TZBUFSIZE): New constant.
100016         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
100017         This requires that we sometimes generate our own TZ="XXX..." setting.
100019 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
100021         * doc/getdate.texi: New file, from coreutils with modifications for
100022         the new TZ parsing.
100024 2004-10-27  Derek R. Price  <derek@ximbiot.com>
100026         * lib/mktime.c (not_equal_tm): Remove redundant check.
100028 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
100030         * modules/regex (lib_SOURCES): Add regex.c.
100031         Reported by James Youngman in
100032         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
100034 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
100036         * lib/getdate.y: Use Bison 1.875 features, and some minor
100037         code cleanups.  This change does not affect semantics.
100038         Don't include <stdlib.h>; no longer needed.
100039         Don't include unlocked-io.h; only the "#if TEST" code uses
100040         stdio, and performance isn't crucial there.
100041         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
100042         Bison 1.875 features as described below.
100043         All uses of "PC." replaced by "pc->".
100044         (YYSTYPE): Add a forward declaration.
100045         (yylex, yyerror): Use full prototypes in forward decls.
100046         Use "%pure-parser" rather than obsolescent "%pure_parser".
100047         Use %parse-param and %lex-param instead of obsolescent
100048         YYPARSE_PARAM and YYLEX_PARAM.
100049         (meridian_table, month_and_day_table, time_units_table,
100050         relative_time_table, time_zone_table, military_table,
100051         lookup_zone, lookup_word, get_date):
100052         Use NULL instead of 0 where appropriate.
100053         (to_hour): Avoid abort (), to avoid a dependency on
100054         stdlib.h.
100055         (yyerror, yylex): Now accepts parser_control * arg.
100056         (main) [TEST]: Use '\0' rather than 0 for char.
100058 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100060         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
100062 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100064         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
100065         It's now the caller's responsibility to handle the case where
100066         !HAVE_GETPAGESIZE && !defined getpagesize.
100068         * lib/mktime.c (leapyear): Arg is long int, not int.
100070 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
100072         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
100074 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
100076         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
100077         missing.  Problem reported by James Youngman.
100079 2004-10-16  Simon Josefsson  <jas@extundo.com>
100081         * gnulib-tool: Fix comments.  Fix parse problem.
100082         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
100084 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
100086         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
100087         implementation of getopt_long.  Problem reported by Alexander Taler in:
100088         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
100090 2004-10-15  Bruno Haible  <bruno@clisp.org>
100092         * gnulib-tool: Untabify. Initialize supplied_libname.
100093         (func_usage): More homogenous output.
100094         (func_modules_transitive_closure, func_modules_to_filelist,
100095         func_emit_lib_Makefile_am): New functions.
100096         (func_import): New function, extracted from big case statement. Use
100097         func_get_license, func_modules_transitive_closure,
100098         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
100099         opt_lgpl. Don't use test -a, as it's not portable.
100100         (func_create_testdir): Use func_modules_transitive_closure,
100101         func_modules_to_filelist, func_emit_lib_Makefile_am.
100103 2004-10-15  Bruno Haible  <bruno@clisp.org>
100105         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
100107 2004-10-15  Bruno Haible  <bruno@clisp.org>
100109         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
100110         the portions belonging to each module.
100111         Suggested by Derek Robert Price <derek@ximbiot.com>.
100113 2004-10-12  Simon Josefsson  <jas@extundo.com>
100115         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
100116         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
100117         to real functions.
100119 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
100121         * modules/vsnprintf: New file.
100123 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
100125         * m4/vsnprintf.m4: New file.
100127 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
100129         * lib/vsnprintf.h: New file.
100130         * lib/vsnprintf.c: New file.
100132 2004-10-11  Bruno Haible  <bruno@clisp.org>
100134         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
100135         vsnprintf.
100137 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
100139         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
100141 2004-10-07  Bruno Haible  <bruno@clisp.org>
100143         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
100144         fits into the provided buffer.
100146 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
100148         * lib/diacrit.c, diacrit.h: Add GPL notice.
100150         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
100151         notice.
100152         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
100153         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
100154         This avoids a potential constant-folding bug.
100156 2004-10-05  Bruno Haible  <bruno@clisp.org>
100158         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
100159         for the declaration of strsep.
100161 2004-10-05  Bruno Haible  <bruno@clisp.org>
100163         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
100165 2004-10-04  Simon Josefsson  <jas@extundo.com>
100167         * modules/memmem: New file.
100168         * tests/test-memmem.c: New file.
100169         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
100171 2004-10-04  Simon Josefsson  <jas@extundo.com>
100173         * m4/memmem.m4: New file.
100175 2004-10-04  Simon Josefsson  <jas@extundo.com>
100177         * lib/memmem.h: New file.
100178         * lib/memmem.c: New file, taken from glibc.
100180 2004-10-04  Simon Josefsson  <jas@extundo.com>
100182         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
100183         '#ifdef USE_UNLOCKED_IO'.
100185 2004-10-04  Simon Josefsson  <jas@extundo.com>
100187         * config/srclist.txt: Add memmem from glibc.
100189 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
100191         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
100193         * modules/argmatch, modules/argp, modules/closeout, modules/error,
100194         modules/exclude, modules/getdate, modules/getline,
100195         modules/getndelim2, modules/getpass, modules/getpass-gnu,
100196         modules/getusershell, modules/linebuffer, modules/md5,
100197         modules/mountlist, modules/posixtm, modules/readtokens,
100198         modules/readutmp, modules/regex, modules/sha1,
100199         modules/version-etc, modules/yesno:
100200         Remove dependency on unlocked-io.
100202 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
100204         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
100206         * m4/unlocked-io.m4: Add copyright notice.
100207         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
100209 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
100211         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
100212         * lib/xmalloc.c (xmemdup): Likewise.
100213         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
100214         XFREE): Remove these long-obsolescent macros.
100215         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
100216         * lib/xstrdup.c: Remove.
100218         * lib/regex.c (re_comp): Cast gettext return value to char *,
100219         Problem reported by Martin Neitzel via Mark D. Baushke.
100221 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
100223         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
100224         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
100225         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
100226         regex.c, sha1.c, version-etc.c, yesno.c:
100227         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
100228         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
100229         the includer's responsibility.
100231         Sync from coreutils.
100233         * lib/modechange.c (mode_compile): Don't decrement a pointer that
100234         points to the start of a string, as the C Standard says the
100235         resulting behavior is undefined.
100237         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
100238         simple -> simple_backups, numbered_existing ->
100239         numbered_existing_backups, numbered -> numbered_backups
100240         to avoid shadowing problems.  All uses changed.
100241         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
100242         * lib/backupfile.c (check_extension, numbered_backup):
100243         Rename locals to avoid shadowing 'basename'.
100244         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
100245         once.
100247         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
100248         * lib/.cvsignore: Add getopt.h.
100250 2004-10-04  Bruno Haible  <bruno@clisp.org>
100252         * modules/README: New file.
100253         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
100254         not a module.
100256 2004-10-02  Jim Meyering  <jim@meyering.net>
100258         * lib/dirfd.h, getpagesize.h: Add copyright notice.
100260 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
100262         * modules/strsep: New file.
100264 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
100266         * m4/strsep.m4: New file.
100268 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
100270         * lib/strsep.h: New file.
100271         * lib/strsep.c: New file.
100273 2004-10-01  Simon Josefsson  <jas@extundo.com>
100275         * lib/snprintf.c (snprintf): Handle size==0.
100277 2004-10-01  Simon Josefsson  <jas@extundo.com>
100278             Bruno Haible  <bruno@clisp.org>
100280         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
100281         (snprintf): Declare 'args'.
100283 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
100285         * lib/snprintf.c: Remove comments as to why each header is needed.
100287 2004-10-01  Bruno Haible  <bruno@clisp.org>
100289         * MODULES.html.sh: Add strsep.
100291 2004-09-30  Simon Josefsson  <jas@extundo.com>
100293         * modules/snprintf: New file.
100295 2004-09-30  Simon Josefsson  <jas@extundo.com>
100297         * m4/snprintf.m4: New file.
100299 2004-09-30  Simon Josefsson  <jas@extundo.com>
100301         * lib/snprintf.h, lib/snprintf.c: New files.
100303 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100305         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
100306         (hol_entry_help): Never translate an empty string.
100307         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
100308         * lib/argp.h (OPTION_NO_TRANS): New option.
100310 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
100312         * modules/argp (Maintainer): Replace Simon Josefsson
100313         by Sergey Poznyakoff.
100315 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
100317         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
100318         changes merged back into glibc.
100320 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
100322         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
100324 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
100326         * lib/xvasprintf.c: Include xalloc.h.
100327         (xvasprintf): Use xalloc_die, not xmalloc_die.
100329 2004-09-29  Bruno Haible  <bruno@clisp.org>
100331         * modules/alloca-opt: New file, derived from modules/alloca.
100332         * modules/allocsa: Depend on alloca-opt instead of alloca.
100333         * modules/setenv: Likewise.
100334         * modules/vasnprintf: Likewise.
100335         * MODULES.html.sh: Add alloca-opt.
100337 2004-09-28  Simon Josefsson  <jas@extundo.com>
100339         * gnulib-tool: New parameter --lgpl, to asseert that modules are
100340         LGPL, and to replace license template from GPL to LGPL.
100342 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
100344         * modules/dummy: Change license to LGPL.
100346 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
100348         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
100350 2004-09-24  Simon Josefsson  <jas@extundo.com>
100352         * modules/minmax (License): Change from GPL to LGPL.
100354 2004-09-23  Simon Josefsson  <jas@extundo.com>
100356         * gnulib-tool (--import): Typo.
100358 2004-09-23  Simon Josefsson  <jas@extundo.com>
100360         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
100362 2004-09-22  Bruno Haible  <bruno@clisp.org>
100364         * modules/*: Add 'License' field.
100365         * gnulib-tool: Accept --extract-license option.
100366         (func_get_license): New function.
100368 2004-09-21  Bruno Haible  <bruno@clisp.org>
100370         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
100371         Reported by Simon Josefsson.
100373 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
100375         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
100376         gl_AC_TYPE_LONG_LONG.
100378 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
100380         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
100382 2004-09-18  Simon Josefsson  <jas@extundo.com>
100383         and  Paul Eggert  <eggert@cs.ucla.edu>
100385         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
100386         calls with autoreconf.  Define GL_LIB.
100388 2004-09-14  Karl Berry  <karl@gnu.org>
100390         * config/srclist.txt: unsync setenv.c, sigh.
100392 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
100394         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
100395         Problem reported by Bruno Haible in:
100396         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
100398 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
100400         * config/srclist.txt: Comment out argp-pvh.c.
100402 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
100404         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
100405         in case some system header has #define'd it.  Problem reported by
100406         Soeren D. Schulze in
100407         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
100409 2004-09-09  Karl Berry  <karl@gnu.org>
100411         * regex.[ch]: delete from the root.  These were supposed to be
100412                 synced with emacs cvs, but this has not happened for about
100413                 a year, and anyway nothing else uses emacs regex.[ch].
100414                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
100415                 lib/regex[.ch] is untouched.
100417 2004-09-09  Bruno Haible  <bruno@clisp.org>
100419         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
100421 2004-09-09  Bruno Haible  <bruno@clisp.org>
100423         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
100424         modifications.
100425         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
100427 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
100429         * modules/xvasprintf: New file.
100430         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
100432 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
100434         * lib/xvasprintf.h: New file.
100435         * lib/xvasprintf.c: New file.
100436         * lib/xasprintf.c: New file.
100438 2004-09-08  Bruno Haible  <bruno@clisp.org>
100440         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
100442 2004-09-08  Bruno Haible  <bruno@clisp.org>
100444         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
100445         length is > INT_MAX.
100446         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
100447         more.
100449 2004-09-08  Bruno Haible  <bruno@clisp.org>
100451         * lib/stdint_.h: New file, taken from GNU clisp.
100453 2004-09-08  Bruno Haible  <bruno@clisp.org>
100454             Oskar Liljeblad  <oskar@osk.mine.nu>
100456         * modules/stdint: New file.
100457         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
100459 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
100461         Import from coreutils.
100462         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
100463         strings on unbounded length.  alloca's performance benefits aren't
100464         that important here.
100465         (V_STRDUP): Remove.
100466         (parse_with_separator): New function, with most of the internals
100467         of the old parse_user_spec.  Allow user to omit both user and group,
100468         for compatibility with FreeBSD.
100469         Clone only the user name, not the entire spec.
100470         Do not set *uid, *gid unless entirely successful.
100471         Avoid memory leak in some failing cases.
100472         Fix regression for USER.GROUP reported by Dmitry V. Levin in
100473         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
100474         (parse_user_spec): Rewrite to use parse_with_separator.
100476 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
100478         * modules/userspec: Don't depend on alloca.
100480 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
100482         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
100484 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
100486         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
100487         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
100488         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
100490 2004-08-16  Simon Josefsson  <jas@extundo.com>
100492         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
100493         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
100494         Add --dry-run for --import.
100495         Let user provided command line parameters override configure.ac
100496         settings.
100498 2004-08-12  Simon Josefsson  <jas@extundo.com>
100500         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
100501         as discussed with Paul Eggert in threads rooted at
100502         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
100503         and
100504         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
100505         Before, the test was empty, and relied on ELIDE_CODE in source
100506         code.)
100507         (gl_PREREQ_GETOPT): New macro.
100508         (gl_GETOPT): Use them.
100510 2004-08-12  Simon Josefsson  <jas@extundo.com>
100512         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
100513         * lib/getopt_.h: Renamed from getopt.h.
100515 2004-08-12  Simon Josefsson  <jas@extundo.com>
100517         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
100518         Change default library name from libfoo to libgnu.
100519         Now, if you have a configure.ac that says:
100520                 gl_SOURCE_BASE(gl)
100521                 gl_M4_BASE(gl/m4)
100522                 gl_MODULES(error getopt etcetera)
100523                 gl_INIT
100524         you can import all you need by running:
100525                 ../gnulib/gnulib-tool --import
100527         * modules/getopt (Files): Rename getopt.h to getopt_.h.
100528         (Makefile.am): Rewrite, use logic from argz.
100529         (Include): Use <getopt.h> instead of "getopt.h".
100531 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
100533         * modules/argp (Files): Add m4/unlocked-io.m4.
100534         (Depends-on): Add extensions.
100536 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
100538         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
100539         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
100540         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
100541         Check for program_invocation_name, program_invocation_short_name,
100542         flockfile, funlockfile, features.h, _getopt_long_only_r.
100544 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
100546         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
100547         its complicated substitute.
100548         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
100549         and program_invocation_name.
100550         (__argp_basename) [!_LIBC]: Remove; the only use was
100551         replaced by its body.
100552         (__argp_short_program_name): Change condition from
100553         !defined __argp_short_program_name to
100554         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
100555         to match argp-namefrob.h.
100556         (__argp_failure): Don't assume strerror_r returns char *.
100557         * lib/argp-parse.c (N_): Define unconditionally.
100558         (argp_default_options): Fill out initializers with 0 to avoid
100559         gcc warnings.
100561 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
100563         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
100564         getopt1.c.
100566 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
100568         Merge from coreutils.
100570         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
100572         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
100573         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
100575 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
100577         Merge from coreutils.
100579         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
100580         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
100581         for Reliant Unix 5.43.
100583         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
100584         (union fooround): Use uintmax_t, not long int.
100585         The rest is a merge from libc:
100586         [defined _LIBC]: Include <shlib-compat.h>.
100587         (_obstack) [defined _LIBC]: Remove after 2.3.4.
100589         * lib/settime.c (settime): Recode to avoid warning with
100590         Sun Forte C 6U2.
100592         * lib/strverscmp.c: Convert to UTF-8.
100594 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
100596         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
100597         m4/uintmax_t.m4.
100599 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
100601         * modules/xalloc-die: New file.
100602         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
100604         * modules/md5 (Files): Add m4/uint32_t.m4.
100605         * modules/sha1: Renamed from modules/sha.
100606         (Files):
100607         Rename lib/sha.h to lib/sha1.h.
100608         Rename lib/sha.c to lib/sha1.c.
100609         Rename m4/sha.m4 to m4/sha1.m4.
100610         (lib_SOURCES): Likewise.
100611         (configure.ac): Rename gl_SHA to gl_SHA1.
100612         (Include): sha.h -> sha1.h.
100614 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
100616         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
100617         * m4/sha1.m4: Renamed from sha.m4.
100618         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
100620 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
100622         * lib/obstack.h (obstack_empty_p):
100623         Don't assume that chunk->contents is suitably aligned.
100624         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
100625         Likewise. Problem reported by Benno in
100626         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
100628         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
100629         readable.  This could be improved further but it'd take some work.
100631 2004-08-08  Simon Josefsson  <jas@extundo.com>
100633         * modules/xgethostname (Depends-on): Remove exit and error (not
100634         used).
100636         * modules/getpass-gnu: Add getpass.h.
100637         (Depends-on): Add stdbool.
100638         * modules/getpass: Add getpass.h.
100640 2004-08-08  Simon Josefsson  <jas@extundo.com>
100642         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
100643         Check getpass declaration.
100645 2004-08-08  Simon Josefsson  <jas@extundo.com>
100647         * lib/xgethostname.c: Don't include error.h (not used).
100649         * lib/getpass.h: Add.
100650         * lib/getpass.c: Include getpass.h first.
100652 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
100654         * lib/xalloc-die.c: New file.
100655         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
100656         All uses removed.
100657         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
100658         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
100659         xalloc-die.c.
100660         (_, N_, xalloc_die): Move to xalloc-die.c.
100661         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
100662         so that we needn't mess with xalloc_msg_memory_exhausted.
100664         * lib/sha1.h: Renamed from sha.h.
100665         (SHA1_H): Renamed from _SHA_H.
100666         (sha1_ctx): Renamed from sha_ctx.
100667         (sha1_init_ctx): Renamed from sha_init_ctx.
100668         (sha1_process_block): Renamed from sha_process_block.
100669         (sha1_process_bytes): Renamed from sha_process_bytes.
100670         (sha1_finish_ctx): Renamed from sha_finish_ctx.
100671         (sha1_read_ctx): Renamed from sha_read_ctx.
100672         (sha1_stream): Renamed from sha_stream.
100673         (sha1_buffer): Renamed from sha_buffer.
100674         * lib/sha1.c: Likewise; renamed from sha.c.
100675         Do not include <sys/types.h>.
100676         Include <stddef.h> rather than <stdlib.h>.
100678 2004-08-08  Bruno Haible  <bruno@clisp.org>
100680         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
100681         FILESYSTEM_PREFIX_LEN.
100682         * lib/progreloc.c: Likewise.
100683         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
100685 2004-08-06  Simon Josefsson  <jas@extundo.com>
100687         * modules/progname (Depends-on): Don't depend on stdbool.
100689 2004-08-06  Simon Josefsson  <jas@extundo.com>
100691         * modules/getsubopt: New file.
100692         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
100693         getsubopt.
100695 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
100697         More merge from coreutils.
100699         * m4/utimens.m4, m4/utimecmp.m4: New files.
100700         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
100701         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
100702         prereq.m4, sha.m4: Import changes from coreutils.
100704 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
100706         More merge from coreutils.
100707         * modules/raise, modules/readtokens0, modules/utimens:
100708         * modules/utimecmp, module/xnanosleep: New files.
100709         * modules/strftime: Add lib/strftime.h.
100710         Change include from <time.h> to "strftime.h".
100711         * modules/yesno: Add lib/yesno.h.
100712         * modules/backupfile: Remove lib/addext.c.
100713         * modules/euidaccess: Add stat-macros.h.
100714         * modules/canonicalize, modules/euidaccess,
100715         modules/filemode, modules/lchown, modules/makepath,
100716         modules/rmdir, modules/stat: Likewise.
100718 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
100720         Merge from tar.
100721         * lib/argp-help.c (make_hol, hol_append): Don't assume that
100722         SIZE_MAX is a valid preprocessor constant.
100723         (__argp_basename): Change from "#ifndef _LIBC"
100724         to "#ifndef __argp_short_program_name", so that
100725         we don't compile these functions for tar.
100727         More merges from coreutils.
100728         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
100729         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
100730         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
100731         * lib/addext.c: Remove; no longer needed.
100732         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
100733         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
100734         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
100735         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
100736         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
100737         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
100738         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
100739         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
100740         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
100741         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
100742         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
100743         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
100744         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
100745         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
100746         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
100747         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
100748         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
100749         Import changes from coreutils.
100751 2004-08-05  Simon Josefsson  <jas@extundo.com>
100753         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
100755 2004-08-05  Simon Josefsson  <jas@extundo.com>
100757         * m4/getsubopt.m4: New file.
100759 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
100761         Merge from coreutils.
100763         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
100764         * m4/getcwd-path-max.m4: New files.
100766         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
100767         FILESYSTEM_PREFIX_LEN ->
100768         FILE_SYSTEM_PREFIX_LEN.
100769         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
100770         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
100771         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
100772         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
100774         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
100775         prerequisite modules now handle the DOS stuff.
100776         Don't check for unistd.h.
100778 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
100780         Merge from coreutils.
100782         * lib/.gdb-history: Remove; this doesn't belong here.
100784         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
100785         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
100786         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
100787         * lib/getcwd.c: New files.
100789         * lib/dirname.h: Include <stdbool.h>.
100790         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
100791         for consistency with POSIX terminology.  All uses changed.
100792         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
100793         (strip_trailing_slashes): Use bool for booleans.
100794         * lib/stripslash.c (strip_trailing_slashes): Likewise.
100796         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
100797         sometimes returns a positive errno value even when it succeeds.
100798         (print_errno_message) [!LIBC]: Fall back on strerror if
100799         __strerror_r fails.
100801         * lib/path-concat.c (mempcpy): Don't define if a system header defines
100802         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
100803         (longest_relative_suffix): New function.
100804         (path_concat): Use it.  Assume first argument is not NULL.
100805         Port to DOS.  Omit redundant separators.
100806         Report an error instead of returning NULL.
100807         Use mempcpy instead of memcpy.
100808         (xpath_concat): Remove: not declared or used.
100810         * lib/same.h: Include <stdbool.h>
100811         (same_name): Return bool, not int.
100812         * lib/same.c (same_name): Likewise.
100813         (errno): Don't declare; we assume C89 or better now.
100815         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
100816         if not already defined.
100818         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
100819         * lib/dup-safer.c (errno): Likewise.
100821 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
100823         Merge from coreutils.
100824         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
100825         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
100826         * modules/path-concat: Don't depend on strdup.
100828 2004-08-03  Simon Josefsson  <jas@extundo.com>
100830         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
100831         * lib/progname.h: Don't include stdbool.h.
100833 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
100835         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
100836         * MODULES.html.sh (func_all_modules): Remove fatal.
100838 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
100840         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
100842 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
100844         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
100845         working.
100847 2004-08-02  Simon Josefsson  <jas@extundo.com>
100849         * lib/getsubopt.h: New file, with comments from Bruno Haible.
100850         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
100851         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
100853 2004-08-01  Simon Josefsson  <jas@extundo.com>
100855         * lib/xgetdomainname.c: Include stdlib.h, for free().
100857 2004-07-19  Bruno Haible  <bruno@clisp.org>
100859         * MODULES.html.sh (func_all_modules): Add dummy.
100861 2004-07-16  Simon Josefsson  <jas@extundo.com>
100863         * modules/dummy: New file.
100865 2004-07-16  Simon Josefsson  <jas@extundo.com>
100867         * lib/dummy.c: New file.
100869 2004-07-16  Bruno Haible  <bruno@clisp.org>
100871         * lib/backupfile.h: Add extern "C" for C++.
100872         * lib/closeout.h: Likewise.
100873         * lib/copy-file.h: Likewise.
100874         * lib/findprog.h: Likewise.
100875         * lib/full-write.h: Likewise.
100876         * lib/pathname.h: Likewise.
100877         * lib/progname.h: Likewise.
100878         * lib/stpcpy.h: Likewise.
100879         * lib/stpncpy.h: Likewise.
100880         * lib/strcase.h: Likewise.
100881         * lib/strstr.h: Likewise.
100882         * lib/xalloc.h: Likewise.
100884         * lib/mbswidth.h: Add extern "C" for C++.
100885         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
100887 2004-07-13  Robert Millan  <robertmh@gnu.org>
100889         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
100891 2004-07-09  Simon Josefsson  <jas@extundo.com>
100893         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
100894         failed without this.)
100896 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
100898         * modules/chown (Files): Add lib/fchown-stub.c, since
100899         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
100901 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
100903         * lib/fchown-stub.c: New file.
100905 2004-06-24  Jim Meyering  <jim@meyering.net>
100907         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
100909 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100911         * modules/argz: Omit "#include".
100913         * MODULES.html.sh (func_all_modules): Add calloc, to match
100914         2004-06-01 addition of calloc module.
100916 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100918         * m4/argz.m4: New file, which is autoupdated from libtool.
100920 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100922         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
100923         libtool.
100925 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100927         * config/srclist-update: Don't insist on "USA." before the
100928         close-comment, as libtool omits the period and puts the */ on a
100929         separate line.
100930         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
100931         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
100933 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
100935         * modules/argz: New file.
100936         * MODULES.html.sh (func_all_modules): Add argz.
100938 2004-06-12  Jim Meyering  <jim@meyering.net>
100939         and  Paul Eggert  <eggert@cs.ucla.edu>
100941         * modules/hash (Files): Add lib/xalloc.h.
100942         * modules/pipe (Depends-on): Add wait-process.
100943         * modules/stat (Depends-on): Add xalloc.
100944         * modules/userspec (Files): Add lib/userspec.h.
100945         * modules/xstrto
100947         Upgrade from gettext-0.13.
100948         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
100949         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
100950         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
100952 2004-06-10  Jim Meyering  <jim@meyering.net>
100954         * lib/calloc.c: New file.
100956 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
100958         * lib/getdate.y (yylex): Allow space between sign and number.
100959         Problem reported by Dan Jacobson.
100961 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
100963         Merge from coreutils CVS.
100965         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
100966         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
100967         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
100968         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
100969         xstrtol.m4: Fix copyright date and/or serial number.
100971         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
100972         See if we need an fchown replacement.
100973         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
100974         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
100975         and use the replacement function if we detect either defect.
100977         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
100978         gl_UTIMECMP.
100980 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
100981         and  Jim Meyering  <jim@meyering.net>
100983         Merge from coreutils CVS.
100985         * lib/stat-macros.h: New file, with contents from file-type.h
100986         and coreutils' system.h.
100987         * lib/file-type.c: Include "stat-macros.h".
100988         * lib/file-type.h (file_type): Move all macro definitions to new file,
100989         stat-macros.h.
100991         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
100992         Wrap old code with this conditional.
100993         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
100994         function that does not dereference symlinks.
100995         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
100997         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
100998         dependency problems.
100999         (xreadlink): Accept new arg SIZE, for efficiency.
101000         All decls and uses changed.
101001         * lib/xreadlink.h: Include <stddef.h>, for size_t.
101003         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
101004         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
101006         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
101007         sysexits.h.
101009 2004-06-01  Jim Meyering  <jim@meyering.net>
101011         * m4/calloc.m4: New file.
101013 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
101015         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
101016         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
101017         Also, fix a typo in a diagnostic.
101019 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
101021         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
101022         or AC_FUNC_REALLOC.
101024 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
101026         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
101027         macros to be defined.
101028         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
101029         the allocator returns NULL because the requested size is zero.
101031 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
101033         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
101034         var.  Add comment explaining why libc still defines it.  This
101035         merges the following patch from glibc:
101036         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
101038 2004-05-20  Andreas Schwab  <schwab@suse.de>
101040         * m4/free.m4: Replace free if it not known to work, not the other
101041         way round.
101043 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
101045         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
101046         present in glibc since revision 1.1 of this file.
101047         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
101048         obstack_alignment_mask, obstack_alloc, obstack_base,
101049         obstack_blank, obstack_blank_fast, obstack_chunk_size,
101050         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
101051         obstack_grow0, obstack_init, obstack_int_grow,
101052         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
101053         obstack_next_free, obstack_object_size, obstack_ptr_grow,
101054         obstack_ptr_grow_fast, obstack_room): Remove declarations of
101055         nonexistent functions.
101057 2004-05-18  Karl Berry  <karl@gnu.org>
101059         * config/srclist.txt: break link for vasnprintf.c.
101061 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
101063         Port obstack to the AS/400, where pointers are 16 bytes wide and
101064         you cannot cast an integer to a valid pointer.  This patch is
101065         currently waiting to be integrated into glibc; see
101066         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
101068         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
101069         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
101070         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
101071         (struct obstack): temp member is now a union of a pointer and
101072         an integer, instead of an integer.  All integer uses changed.
101073         This does not affect the physical layout of struct obstack,
101074         except on hosts (like the AS/400) where the size or alignment of
101075         void * is greater than that of ptrdiff_t.
101076         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
101077         __STDC__)]: Store temporary in pointer member of union, not
101078         integer member.
101079         * lib/obstack.c: Include <stddef.h>, for offsetof.
101080         (struct fooalign): Remove; it doesn't need a name.
101081         (union fooround): Change double to long double, and add void *.
101082         (DEFAULT_ALIGNMENT): Use offsetof to compute.
101083         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
101084         not a macro.  Hence the values are always int; so remove all
101085         casts-to-int in uses.
101087 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
101089         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
101090         we can get this patch merged into glibc.
101092 2004-05-17  Derek R. Price  <derek@ximbiot.com>
101093             Paul Eggert  <eggert@cs.ucla.edu>
101095         * m4/argp: Depend on alloca.
101097 2004-05-17  Derek R. Price  <derek@ximbiot.com>
101098             Paul Eggert  <eggert@cs.ucla.edu>
101100         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
101101         freecoding.
101103 2004-05-17  Bruno Haible  <bruno@clisp.org>
101105         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
101106         precision that consists of a '.' followed by an empty digit string.
101107         Patch by Tor Lillqvist <tml@iki.fi>.
101109 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
101111         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
101112         for backward compatibility with older code.  We need our own
101113         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
101114         it under some other name, and our alloca.h will define it.
101116 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
101117             Derek Price  <derek@ximbiot.com>
101119         * lib/alloca.c: Include <alloca.h>, to get our interface.
101120         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
101121         include <alloca.h> first.  Use C89 prototype for alloca; this
101122         requires including <stddef.h> for size_t.  Use extern "C" if C++.
101123         Use #elif for simplicity, since we can assume C89 now.
101124         Don't try to source the system alloca.h since it will not be found
101125         and to prevent recursively including its replacement.
101126         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
101127         * lib/regex.c: Likewise.
101129 2004-05-16  Derek Price  <derek@ximbiot.com>
101130             Paul Eggert  <eggert@cs.ucla.edu>
101132         getline cleanup.  This changes the getndelim2 API: both order of
101133         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
101134         no delimiter).
101136         * lib/getline.c: Don't include stddef.h or stdio.h, since our
101137         interface does that.
101138         (getline): Always use getdelim, so that we don't have two
101139         copies of this code.
101140         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
101141         if available.
101142         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
101143         (GETNDELIM2_MAXIMUM): New macro.
101144         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
101145         instead of the old practice of delim2==0.  All callers changed.
101146         Return -1 on overflow, instead of returning junk.
101147         Do not set *linesize unless allocation succeeds.
101148         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
101149         that we include sys/types.h.
101150         * lib/getnline.h: Likewise.
101151         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
101152         (getndelim2): Reorder arguments.
101153         * lib/getnline.c (getnline, getndelim):
101154         Don't discard the NMAX argument.
101155         (getnline): Invoke getndelim, to avoid code duplication.
101156         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
101157         of (size_t) -1 by callers of the getnline family.
101159 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
101161         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
101162         Check for gettimeofday.
101163         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
101164         Check for settimeofday, stime.
101166 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
101168         * lib/nanosleep.c (suspended): Change its type from int to
101169         sig_atomic_t volatile.
101170         (first_call): Make it private to rpl_nanosleep, and have it
101171         be zero initially as that's a bit faster.
101172         (my_usleep): Round up fractional times instead of truncating them,
101173         as this is the usual meaning for 'sleep'.
101175         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
101176         doesn't work.
101177         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
101178         (ENOSYS): Define if not defined.
101179         (settime): Fall back on stime if it exists and settimeofday fails.
101180         But don't bother with fallbacks if a method fails with errno == EPERM.
101182 2004-05-11  Jim Meyering  <jim@meyering.net>
101184         Prior to this change, the save_cwd caller required read access to the
101185         current directory on most systems (ones with the fchdir function).
101187         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
101188         fails, try write-only, and finally, resort to using xgetcwd.
101190 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
101192         * lib/obstack.c, obstack.h: Import changes from libc.
101194 2004-04-28  Bruno Haible  <bruno@clisp.org>
101196         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
101197         also implicitly appends .exe to executables.
101198         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
101199         accepts Windows pathnames.
101200         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
101201         Treat Cygwin like Windows, since it now accepts Windows pathnames.
101202         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
101203         Treat Cygwin like Windows, since it now accepts Windows pathnames.
101204         Reported by Derek Robert Price <derek@ximbiot.com>.
101206 2004-04-21  Karl Berry  <karl@gnu.org>
101208         * config/srclist.txt (localcharset.c): break sync.
101210 2004-04-20  Paul Eggert  <eggert@twinsun.com>
101212         * m4/host-os.m4: Add a copyright notice.
101214 2004-04-20  Jim Meyering  <jim@meyering.net>
101216         Change UTILS_ to gl_ in AC_DEFINE'd names.
101217         Change utils_- and jm_-prefixed variables, too.
101218         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
101219         UTILS_FUNC_MKDIR_TRAILING_SLASH.
101220         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
101222         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
101223         Don't emit trailing blanks.
101224         Also rename jm_-prefixed variables to have gl_ prefix.
101226         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
101227         Also rename jm_-prefixed variables to have gl_ prefix.
101229         * m4/jm-macros.m4: Reflect the renamings.
101230         * m4/prereq.m4: Likewise.
101232 2004-04-20  Jim Meyering  <jim@meyering.net>
101234         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
101235         memory.
101237 2004-04-20  Jim Meyering  <jim@meyering.net>
101238             Bruno Haible  <bruno@clisp.org>
101240         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
101241         memory when realloc fails.
101243 2004-04-19  Jim Meyering  <jim@meyering.net>
101245         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
101246         now that readutmp.c may call `free (0)'.
101248 2004-04-19  Bruno Haible  <bruno@clisp.org>
101250         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
101251         * m4/inttypes_h.m4: Likewise.
101252         * m4/stdint_h.m4: Likewise.
101253         * m4/intmax_t.m4: Likewise.
101254         * m4/uintmax_t.m4: Likewise.
101256 2004-04-18  Jim Meyering  <jim@meyering.net>
101258         * m4/prereq.m4: Don't forbid jm_ prefix.
101260         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
101261         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
101262         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
101263         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
101264         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
101265         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
101266         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
101267         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
101268         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
101269         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
101270         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
101271         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
101272         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
101273         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
101274         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
101275         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
101276         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
101277         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
101278         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
101280 2004-04-18  Jim Meyering  <jim@meyering.net>
101282         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
101283         failure, don't leak memory and do call END_UTMP_ENT.
101285 2004-04-16  Jim Meyering  <jim@meyering.net>
101287         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
101288         coreutils' stat program.
101289         (gl_PREREQ): Don't require jm_PREREQ_STAT.
101291 2004-04-11  Paul Eggert  <eggert@twinsun.com>
101293         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
101294         C89.
101295         (CHAR_BIT): Remove, since we assume C89.
101296         Include <stdint.h> if available, as per current Autoconf CVS advice.
101298 2004-03-31  Jim Meyering  <jim@meyering.net>
101300         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
101301         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
101302         * m4/xalloc.m4: Likewise.
101304 2004-03-30  Paul Eggert  <eggert@twinsun.com>
101306         Merge from coreutils.
101308         * m4/inttostr.m4: New file.
101309         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
101310         Require AM_STDBOOL_H and gl_TIMESPEC instead.
101311         Require gl_CLOCK_TIME.
101312         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
101314 2004-03-30  Paul Eggert  <eggert@twinsun.com>
101316         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
101317         not bool, to be more consistent with Unix conventions.
101318         Suggested by Bruno Haible.
101320         Merge from coreutils.
101322         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
101323         * lib/umaxtostr.c: New files.
101325         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
101326         the usual <time.h> dance.
101327         (get_date): Change signature to support fractional time stamps.
101328         All callers changed.
101329         * lib/getdate.y: Include "getdate.h" first, as we can now
101330         assume C89 and don't need to worry about 'const'.
101331         Similarly, include "unlocked-io.h" near start, not in middle.
101332         Include <limits.h>.
101333         (textint.value): Use long int rather than int.
101334         (textint.digits): Use size_t rather than int.
101335         (BILLION, LOG10_BILLION): New constants.
101336         (parser_control): New member rel_ns.  Members day_ordinal,
101337         time_zone, month, day, hour, minutes, rel_year, rel_month,
101338         rel_day, rel_hour, rel_minutes, rel_seconds
101339         are now long int, not int.  Member seconds is now struct timespec,
101340         not int.  New member timespec_seen.  Members dates_seen, days_seen,
101341         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
101342         not int.
101343         (%union.intval): Now long int, not int.
101344         New member timespec.
101345         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
101346         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
101347         (spec): Now is a timespec or an item list.
101348         (timespec, items): New nonterminals.
101349         (time, rel, relunit, number, get_date):
101350         Add support for fractional seconds.
101351         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
101352         (gmtime, localtime, mktime): Remove decls; not needed with C89.
101353         (to_hour): First arg is now long int, not int.
101354         (to_year): Returns long int, not int.
101355         Don't treat year -70 like 70.
101356         (tm_diff): Returns long int, not int.
101357         (lookup_word): Use bool instead of int when appropriate.
101358         (yylex): Use size_t for count, not int.
101359         Detect overflow when parsing large integer constants.
101360         Add support for fractions.
101361         (get_date): Make pointers 'const' if possible.
101362         Use more-portable code to detect integer overflow.
101363         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
101364         Don't use ctime; it's not reliable if the year has >4 digits.
101366         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
101367         This is for compatibility with BSD.
101369         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
101370         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
101371         From coreutils' system.h.
101373         * lib/userspec.c: Don't include "posixver.h".
101374         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
101375         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
101376         compatible extension.  Simplify code by removing a boolean int
101377         that was always nonzero if a string was nonnull.
101379 2004-03-30  Jim Meyering  <jim@meyering.net>
101381         Merge from coreutils.
101383         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
101384         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
101385         on some systems one must include <grp.h> before it.
101386         Reported by Christian Krackowizer.
101388 2004-03-30  Jim Meyering  <jim@meyering.net>
101390         Merge from coreutils.
101392         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
101394         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
101395         an empty input stream.
101397         * lib/readtokens.c: Include <stdbool.h>.
101398         (readtoken): Use `size_t' rather than int/long.
101399         All callers adjusted.
101400         Use `bool' rather than `int' where appropriate.
101401         Use memset rather than an explicit loop.
101402         Use x2nrealloc rather than xrealloc.
101403         Allow the use of `\0' as a delimiter.
101404         (readtokens): Likewise.
101405         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
101407 2004-03-30  Jim Meyering  <jim@meyering.net>
101409         * m4/realloc.m4: Remove file, since now it does no more than
101410         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
101411         the `configure.ac' section of module/realloc.
101412         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
101414 2004-03-30  Bruno Haible  <bruno@clisp.org>
101416         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
101417         nonnull.
101419 2004-03-29  Paul Eggert  <eggert@twinsun.com>
101421         Merge changes to getloadavg.c from coreutils and Emacs.
101423         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
101424         Define to an expression, not to the empty string.
101425         Include cloexec.h and xalloc.h.
101426         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
101427         Use set_cloexec_flag rather than rolling our own.
101428         * lib/cloexec.c, lib/cloexec.h: New files.
101430 2004-03-29  Paul Eggert  <eggert@twinsun.com>
101432         * m4/cloexec.m4: New file.
101434 2004-03-18  Paul Eggert  <eggert@twinsun.com>
101436         * lib/getopt.h: Sync with libc CVS.
101438 2004-03-18  Paul Eggert  <eggert@twinsun.com>
101439             Bruno Haible  <bruno@clisp.org>
101441         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
101442         mbswidth.
101444 2004-03-18  Paul Eggert  <eggert@twinsun.com>
101445             Bruno Haible  <bruno@clisp.org>
101447         * lib/mbswidth.h: Include <wchar.h> only if
101448         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
101449         <wchar.h>.
101450         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
101452 2004-03-09  Paul Eggert  <eggert@twinsun.com>
101454         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
101455         Sync with libc CVS.
101456         * lib/getopt_int.h: New file, also synced from libc.
101458 2004-03-09  Paul Eggert  <eggert@twinsun.com>
101460         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
101461         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
101462         Bring back getopt.c, getopt.h, getopt1.c.
101464 2004-03-07  Paul Eggert  <eggert@twinsun.com>
101466         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
101467         All uses changed.  Check for sa_sigaction member; this fixes
101468         a bug first reported by Jason Andrade in
101469         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
101471 2004-03-07  Paul Eggert  <eggert@twinsun.com>
101473         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
101474         '#if' expressions.  Unlike the code it replaces, it does not
101475         depend on (defined _SC_PAGESIZE).  However, it does depend on
101476         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
101477         first reported by Jason Andrade in
101478         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
101480 2004-02-25  Simon Josefsson  <jas@extundo.com>
101482         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
101484 2004-02-25  Simon Josefsson  <jas@extundo.com>
101486         * lib/strdup.h: New file.
101487         * lib/strdup.c: Include it.
101488         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
101489         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
101491 2004-02-23  Karl Berry  <karl@gnu.org>
101493         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
101494         (from fencepost.gnu.org:/gd/gnuorg).
101496 2004-02-23  Karl Berry  <karl@gnu.org>
101498         * config/srclistvars.sh (GNUORG) [karl]: redefine.
101499         * config/srclist.txt: add maintain/standards documents.
101501 2004-02-18  Bruno Haible  <bruno@clisp.org>
101503         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
101504         Reported by Derek Robert Price <derek@ximbiot.com>.
101506 2004-02-16  Karl Berry  <karl@gnu.org>
101508         * config/mkinstalldirs, install-sh: update from automake.
101510 2004-02-06  Karl Berry  <karl@gnu.org>
101512         * m4/po.m4: update from gettext 0.14.1.
101514 2004-02-06  Karl Berry  <karl@gnu.org>
101516         * lib/config.charset: update from gettext 0.14.1.
101518 2004-02-05  Paul Eggert  <eggert@twinsun.com>
101520         Add comments and code, prompted by suggestions from Bruno Haible
101521         for sh-quote.
101522         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
101523         describing the enum quoting_style values.
101524         * lib/quotearg.c (quotearg_alloc): New function.
101525         (quotearg_buffer_restyled): Treat lone { and } as special.
101526         Treat = as special.  Work around bug with older shells
101527         that "see" a '\' that is really the 2nd byte of a multibyte char.
101528         Quote empty string with shell_quoting_style.
101530 2004-02-03  Bruno Haible  <bruno@clisp.org>
101532         * m4/pipe.m4: New file, from GNU gettext.
101534 2004-02-03  Bruno Haible  <bruno@clisp.org>
101536         * lib/pipe.h: New file, from GNU gettext.
101537         * lib/pipe.c: New file, from GNU gettext.
101539 2004-01-27  Bruno Haible  <bruno@clisp.org>
101541         * m4/execute.m4: New file, from GNU gettext.
101543 2004-01-27  Bruno Haible  <bruno@clisp.org>
101545         * lib/execute.h: New file, from GNU gettext.
101546         * lib/execute.c: New file, from GNU gettext.
101547         * lib/w32spawn.h: New file, from GNU gettext.
101549 2004-01-24  Paul Eggert  <eggert@twinsun.com>
101551         Merge from diffutils.
101553         * lib/file-type.c (file_type): Add typed memory objects.
101554         * lib/file-type.h (S_TYPEISTMO): New macro.
101556         * lib/c-stack.h (c_stack_action): Remove argv argument.
101557         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
101558         (die): Don't calculate message unless segv_action returns.
101559         (get_stack_location, min_address_from_argv, max_address_from_argv,
101560         volatile stack_base, volatile_stack_size): Remove.
101561         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
101562         that every segmentation violation is a stack overflow.  (Ouch!)
101563         See Debian bug 136249 (still outstanding) for more info about why
101564         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
101566 2004-01-24  Paul Eggert  <eggert@twinsun.com>
101568         Exit-status fix from coreutils.
101570         Use exit_failure consistently in place of EXIT_FAILURE,
101571         so that program exit statuses are consistent on failure.
101573         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
101574         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
101575         * lib/argmatch.h: Comment fix to match the above.
101576         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
101577         Now a macro referring to exit_failure, instead of a separate
101578         variable.  Include "exitfail.h" to get it.
101579         * lib/xstrtol.h: Include "exitfail.h".
101580         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
101582         * lib/long-options.c (parse_long_options): Use prototype
101583         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
101584         for clarity.
101586 2004-01-21  Jim Meyering  <jim@meyering.net>
101588         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
101589         so as not to conflict with a different-sized __mktime_internal
101590         function in GNU libc.
101591         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
101592         Problem building statically-linked `ls' reported by Michael Brunnbauer.
101594 2004-01-20  Karl Berry  <karl@gnu.org>
101596         * config/config.guess: update from config.
101598         * config/srclistvars.sh: GNUWWWLICENSES for karl.
101600 2004-01-20  Bruno Haible  <bruno@clisp.org>
101602         Safer stack allocation.
101603         * lib/setenv.c: Include allocsa.h.
101604         (alloca): Remove fallback definition.
101605         (freea): Remove macro.
101606         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
101607         instead of freea.
101609 2004-01-20  Bruno Haible  <bruno@clisp.org>
101611         * m4/eealloc.m4: New file, from GNU gettext.
101613 2004-01-20  Bruno Haible  <bruno@clisp.org>
101615         * m4/allocsa.m4: New file, from GNU gettext.
101617 2004-01-20  Bruno Haible  <bruno@clisp.org>
101619         * lib/xallocsa.h: New file, from GNU gettext.
101620         * lib/xallocsa.c: New file, from GNU gettext.
101622 2004-01-20  Bruno Haible  <bruno@clisp.org>
101624         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
101626 2004-01-20  Bruno Haible  <bruno@clisp.org>
101628         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
101629         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
101630         specially.
101632 2004-01-20  Bruno Haible  <bruno@clisp.org>
101634         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
101635         patch.
101637 2004-01-20  Bruno Haible  <bruno@clisp.org>
101639         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
101641 2004-01-20  Bruno Haible  <bruno@clisp.org>
101643         * lib/eealloc.h: New file.
101645 2004-01-20  Bruno Haible  <bruno@clisp.org>
101647         * lib/binary-io.h: Avoid warnings on Cygwin.
101649 2004-01-20  Bruno Haible  <bruno@clisp.org>
101651         * lib/allocsa.h: New file, from GNU gettext.
101652         * lib/allocsa.c: New file, from GNU gettext.
101654 2004-01-18  Karl Berry  <karl@gnu.org>
101656         * doc/gpl.texi, doc/lgpl.texi: new files.
101658 2004-01-18  Karl Berry  <karl@gnu.org>
101660         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
101661         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
101663 2004-01-15  Paul Eggert  <eggert@twinsun.com>
101665         Merge from coreutils.
101667         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
101668         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
101669         (gl_DEFAULT_POSIX2_VERSION): Move
101670         the documentation from 'configure' into 'config.hin',
101671         so that 'configure --help' isn't burdened by it and
101672         we don't have to worry about its formatting there.
101673         Reword the documentation so that it's more succinct
101674         and can be run together into a single paragraph.
101675         * m4/same.m4 (gl_SAME): Check for pathconf.
101677 2004-01-15  Paul Eggert  <eggert@twinsun.com>
101679         Merge from coreutils.
101681         * lib/posixver.c: Include posixver.h.
101683         * lib/same.c: Include <stdbool.h>, <limits.h>.
101684         (_POSIX_NAME_MAX): Define if not defined.
101685         (MIN): New macro.
101686         (same_name): If file names are silently truncated, report
101687         that the file names are the same if they are the same after
101688         the silent truncation.
101690         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
101691         conversion function.
101692         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
101693         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
101694         longer needed.
101696 2004-01-15  Jim Meyering  <jim@meyering.net>
101698         Merge from coreutils.
101700         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
101701         if no library is required.
101702         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
101703         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
101704         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
101705         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
101706         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
101707         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
101708         value, $ac_cv_search_crypt, if it's "none required".
101709         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
101710         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
101711         not gl_FUNC_GETLOADAVG.
101712         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
101713         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
101715 2004-01-15  Jim Meyering  <jim@meyering.net>
101717         Merge from coreutils.
101719         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
101720         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
101721         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
101723         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
101724         optional configure-time default.
101726         * lib/version-etc.c (version_etc_copyright): Update copyright date.
101728         * lib/xreadlink.c (xreadlink): Correct outdated comment.
101730 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
101732         Merge from coreutils.
101734         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
101735         value, $ac_cv_search_nanosleep, if it's "none required".
101737 2004-01-14  Paul Eggert  <eggert@twinsun.com>
101739         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
101740         with like-named macro in fnmatch.c.
101741         (EXT): Use an internal constant instead.
101743         Merge fnmatch patches from glibc.
101744         * lib/fnmatch.c (mbsinit): Remove define.
101745         Add libc_hidden_ver (__fnmatch, fnmatch).
101746         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
101747         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
101749 2004-01-14  Karl Berry  <karl@gnu.org>
101751         * config/install-sh: update from automake.
101753 2004-01-13  Karl Berry  <karl@gnu.org>
101755         * config/install-sh: update from automake.
101757 2004-01-09  Karl Berry  <karl@gnu.org>
101759         * config/install-sh: update from automake.
101761 2004-01-05  Karl Berry  <karl@gnu.org>
101763         * config/config.{sub,guess}: update from config.
101765 2003-12-31  Karl Berry  <karl@gnu.org>
101767         * config/depcomp: update from automake.
101769 2003-12-14  Karl Berry  <karl@gnu.org>
101771         * lib/config.charset: update from gettext-runtime.
101773 2003-12-03  Paul Eggert  <eggert@twinsun.com>
101775         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
101776         Bug reported by Alfred M. Szmidt.
101778 2003-12-03  Bruno Haible  <bruno@clisp.org>
101780         * m4/gettext.m4: Upgrade from gettext-0.13.
101781         * m4/po.m4: Upgrade from gettext-0.13.
101782         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
101783         * m4/intmax.m4: New file, from gettext-0.13.
101784         * m4/printf-posix.m4: New file, from gettext-0.13.
101786 2003-11-29  Karl Berry  <karl@gnu.org>
101788         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
101790 2003-11-25  Paul Eggert  <eggert@twinsun.com>
101791             Bruno Haible  <bruno@clisp.org>
101793         * lib/printf-parse.h: Don't include sys/types.h.
101794         (ARG_NONE): New macro.
101795         (char_directive): Change type of *arg_index fields to size_t.
101796         * lib/printf-parse.c: Don't include sys/types.h.
101797         (SSIZE_MAX): Remove macro.
101798         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
101799         Remove unnecessary overflow check.
101800         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
101801         fields.
101803 2003-11-25  Bruno Haible  <bruno@clisp.org>
101805         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
101807 2003-11-25  Bruno Haible  <bruno@clisp.org>
101809         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
101810         gt_TYPE_SSIZE_T.
101812 2003-11-24  Paul Eggert  <eggert@twinsun.com>
101814         * modules/alloca: Remove dependency on xalloc.
101816 2003-11-24  Paul Eggert  <eggert@twinsun.com>
101818         * lib/alloca.c: Remove dependency on xalloc module.
101819         (xalloc_die): Remove.
101820         (memory_full) [!defined emacs]: New macro.
101821         [!defined emacs]: Don't include xalloc.h.
101822         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
101823         address arithmetic overflows.  Change datatypes a bit to avoid
101824         unnecessary casts.
101826 2003-11-22  Jim Meyering  <jim@meyering.net>
101828         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
101829         s/size/size_t/.
101831 2003-11-21  Karl Berry  <karl@gnu.org>
101833         * config/config.{sub,guess}: update from config.
101835 2003-11-18  Karl Berry  <karl@gnu.org>
101837         * config/config.{sub,guess}: update from config.
101839         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
101841 2003-11-17  Paul Eggert  <eggert@twinsun.com>
101843         * README: Mention that S+T cannot overflow if S is the size of
101844         an existing object and T is sufficiently small.
101846 2003-11-17  Jim Meyering  <jim@meyering.net>
101848         On systems without utime and without a utimes function capable of
101849         dealing with a NULL struct utimbuf* argument, this utime replacement
101850         could -- in unusual circumstances -- leak a file descriptor.
101851         * lib/utime.c: Include <unistd.h> and <errno.h>.
101852         (utime_null): Be sure to close `fd' and to preserve errno.
101853         Reported by Geoff Collyer via Arnold Robbins.
101855 2003-11-17  Bruno Haible  <bruno@clisp.org>
101857         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
101858         (Depends-on): Add xsize.
101860 2003-11-17  Bruno Haible  <bruno@clisp.org>
101862         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
101864 2003-11-17  Bruno Haible  <bruno@clisp.org>
101866         * lib/vasnprintf.c (alloca): Remove fallback definition.
101867         (freea): Remove definition.
101868         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
101869         Reported by Paul Eggert.
101871 2003-11-16  Paul Eggert  <eggert@twinsun.com>
101872             Bruno Haible  <bruno@clisp.org>
101874         Protect against address arithmetic overflow.
101875         * lib/printf-args.h: Include stddef.h.
101876         (arguments): Change type of field 'count' to size_t.
101877         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
101878         'unsigned int' where appropriate.
101879         * lib/printf-parse.h: Include sys/types.h.
101880         (char_directive): Change type of *arg_index fields to ssize_t.
101881         (char_directives): Change type of fields 'count', max_*_length to
101882         size_t.
101883         * lib/printf-parse.c: Include sys/types.h and xsize.h.
101884         (SSIZE_MAX): Define fallback value.
101885         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
101886         instead of 'int' where appropriate. Check a_allocated, d_allocated
101887         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
101888         * lib/vasnprintf.c: Include xsize.h.
101889         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
101890         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
101891         overflow. Avoid wraparound when converting a width or precision from
101892         decimal to binary.
101894 2003-11-16  Bruno Haible  <bruno@clisp.org>
101896         Update from GNU gettext.
101897         * lib/printf-parse.c: Generalize to it can be compiled for wide
101898         strings.
101899         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
101900         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
101901         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
101902         SNPRINTF): New macros.
101903         Don't include <alloca.h> if the file is used inside libintl.
101904         (local_wcslen): New function, for Solaris 2.5.1.
101905         (VASNPRINTF): Use it instead of wcslen.
101907 2003-11-16  Bruno Haible  <bruno@clisp.org>
101909         * lib/xsize.h (xmax): New function.
101910         (xsum, xsum3, xsum4): Declare as "pure" functions.
101912 2003-11-12  Paul Eggert  <eggert@twinsun.com>
101914         * modules/xalloc (Files): Undo latest change, since xalloc.h
101915         no longer needs SIZE_MAX or PTRDIFF_MAX.
101917 2003-11-12  Paul Eggert  <eggert@twinsun.com>
101919         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
101920         gl_PTRDIFF_MAX.
101922 2003-11-12  Paul Eggert  <eggert@twinsun.com>
101924         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
101925         "return", to pacify some unknown compiler.  Problem reported
101926         by Joerg Schilling.
101928 2003-11-12  Paul Eggert  <eggert@twinsun.com>
101930         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
101931         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
101932         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
101933         heuristic is just as accurate as far as we know, and it removes a
101934         dependency on size_max.m4 and ptrdiff_max.m4.
101936 2003-11-11  Bruno Haible  <bruno@clisp.org>
101938         * modules/xsize (Files): Add m4/size_max.m4.
101939         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
101941 2003-11-11  Bruno Haible  <bruno@clisp.org>
101943         * m4/size_max.m4: New file.
101944         * m4/ptrdiff_max.m4: New file.
101945         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
101946         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
101947         (gl_XALLOC): Invoke it.
101949 2003-11-11  Bruno Haible  <bruno@clisp.org>
101951         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
101952         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
101953         defined.
101955 2003-11-10  Paul Eggert  <eggert@twinsun.com>
101957         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
101958         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
101959         rejected some allocations of exactly SIZE_MAX - 2 bytes.
101960         From Bruno Haible.
101961         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
101962         not (size_t) -1, since it's defined here.
101964 2003-11-09  Karl Berry  <karl@gnu.org>
101966         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
101968 2003-11-06  Paul Eggert  <eggert@twinsun.com>
101970         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
101971         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
101972         Reject sizes of exactly SIZE_MAX bytes.
101973         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
101974         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
101976 2003-11-05  Bruno Haible  <bruno@clisp.org>
101978         * lib/xsize.h: Include limits.h, to avoid a possible collision with
101979         SIZE_MAX defined in <limits.h> on Solaris.
101981 2003-11-04  Jim Meyering  <jim@meyering.net>
101983         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
101984         variable names, rather than @VAR@.
101985         * modules/poll: Likewise.
101987 2003-11-04  Bruno Haible  <bruno@clisp.org>
101989         * modules/xsize: New file.
101990         * modules/linebreak: Depend on xsize.
101991         * MODULES.html.sh (func_all_modules): Add xsize.
101993 2003-11-04  Bruno Haible  <bruno@clisp.org>
101995         * m4/xsize.m4: New file.
101997 2003-11-04  Bruno Haible  <bruno@clisp.org>
101999         * lib/xsize.h: New file.
102000         * lib/linebreak.c: Include xsize.h.
102001         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
102002         argument for overflow.
102003         Suggested by Paul Eggert.
102005 2003-11-03  Karl Berry  <karl@gnu.org>
102007         * config/config.{guess,sub}: update from config.
102009 2003-11-03  Jim Meyering  <jim@meyering.net>
102011         * modules/userspec (lib_SOURCES): Add userspec.h.
102012         (Include): Add "userspec.h".
102013         Improve description.
102015 2003-11-03  Jim Meyering  <jim@meyering.net>
102017         * lib/userspec.c: Include "userspec.h".
102018         * lib/userspec.h: New file.
102020 2003-11-03  Bruno Haible  <bruno@clisp.org>
102022         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
102024 2003-11-03  Bruno Haible  <bruno@clisp.org>
102026         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
102027         available, to avoid (extremely rare) race condition.
102028         Suggested by Paul Eggert.
102030 2003-11-02  Karl Berry  <karl@gnu.org>
102032         * config/srclist.txt (vasprintf.c): sync broken, sigh.
102034 2003-10-31  Paul Eggert  <eggert@twinsun.com>
102036         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
102037         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
102038         (read_filesystem_list): Set and use me_type_malloced.
102039         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
102040         whatever the type happens to be), for brevity and consistency.
102041         Check for size calculation overflow on Alphas running OSF/1.
102043 2003-10-31  Jim Meyering  <jim@meyering.net>
102045         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
102047         * lib/linebuffer.c: Include <string.h> for declaration of memset.
102049 2003-10-30  Paul Eggert  <eggert@twinsun.com>
102050             Bruno Haible  <bruno@clisp.org>
102052         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
102053         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
102055 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102057         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
102058         netbsd*-gnu*.  Suggested by Robert Millan.
102060 2003-10-29  Paul Eggert  <eggert@twinsun.com>
102062         * modules/group-member: Depend on stdbool.
102064 2003-10-29  Paul Eggert  <eggert@twinsun.com>
102066         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
102068 2003-10-29  Paul Eggert  <eggert@twinsun.com>
102070         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
102071         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
102072         after the 'gnu' in these cases.  This fixes some bugs in the
102073         previous change, and is based on suggestions by Robert Millan.
102075 2003-10-29  Paul Eggert  <eggert@twinsun.com>
102077         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
102078         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
102079         no longer needed.
102080         * lib/quotearg.c (quotearg_n_options): Use it.
102081         * lib/group-member.c: Include <stdbool.h>.
102082         (free_group_info): Arg is now const *; don't free arg.
102083         (get_group_info): Now returns bool and accepts struct group_info *,
102084         rather than returning a malloc'ed struct group_info *.
102085         All uses changed.  Check for overflow in internal size calculation.
102087         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
102088         rather than xmalloc/xrealloc.
102089         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
102090         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
102091         conformance bug: the old code used a pointer after freeing the
102092         storage that it addressed.
102093         * lib/hash.c (hash_initialize): Simplify the code by using
102094         xalloc_oversized rather than doing it by hand.
102095         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
102096         the buffer preserved.  Use free and xmalloc instead.
102097         * lib/quotearg.c (quotearg_n_options): Likewise.
102098         Use a simpler test for size overflow.  Don't use xalloc_oversized
102099         because unsigned int might be wider than size_t (!); this suggests
102100         that we should switch from unsigned int to size_t for slot numbers.
102102 2003-10-28  Paul Eggert  <eggert@twinsun.com>
102104         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
102105         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
102106         NetBSD kernels.  Requested by Richard Stallman.
102108 2003-10-27  Paul Eggert  <eggert@twinsun.com>
102110         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
102111         to allocate the returned structure.  Do not allocate a subarray,
102112         as x2nrealloc will do that.
102113         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
102114         instead of xnrealloc.
102115         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
102117 2003-10-27  Bruno Haible  <bruno@clisp.org>
102119         * lib/stdbool_.h: Better support for BeOS.
102121 2003-10-26  Paul Eggert  <eggert@twinsun.com>
102123         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
102124         now uses inline.
102126 2003-10-26  Paul Eggert  <eggert@twinsun.com>
102128         * lib/xalloc.h (xalloc_oversized): New static inline function, for
102129         callers that want to do their own size-overflow checking.  Include
102130         <stdbool.h>, since xalloc_oversized returns bool.
102131         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
102132         to use xalloc_oversized.
102134         Add two functions x2realloc, x2nrealloc, for programs that grow
102135         arrays dynamically by doubling their sizes.
102136         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
102137         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
102138         New functions.
102140         Port to C99 semantics for 'inline' of external functions.
102141         Bug reported by Bruno Haible.
102142         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
102143         with the old contents of xnmalloc.
102144         (xnmalloc, xmalloc): Use it.
102145         (xnrealloc_inline): New static inline function,
102146         with the old contents of xnrealloc.
102147         (xnrealloc, xrealloc): Use it.
102149         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
102150         that.
102152 2003-10-26  Karl Berry  <karl@gnu.org>
102154         * config/srclist.txt (COPYING.DOC): no longer available from
102155         /gd/gnuorg; don't know where the ultimate source is.
102157 2003-10-25  Paul Eggert  <eggert@twinsun.com>
102159         Fix several address-calculation bugs in the hash modules,
102160         plus some minor code cleanup.
102162         * lib/hash.h: Include <stdbool.h>, for bool.
102163         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
102164         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
102165         hash_get_n_entries, hash_get_max_bucket_length,
102166         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
102167         hash_rehash): Use size_t rather than unsigned.
102168         * lib/hash.c (struct hash_table, hash_get_n_buckets,
102169         hash_get_n_buckets_used, hash_get_n_entries,
102170         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
102171         hash_get_entries, hash_do_for_each, hash_string, is_prime,
102172         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
102173         Likewise.
102174         (SIZE_MAX): Define if not defined.
102175         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
102176         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
102177         hash_print):
102178         Use const * when possible.
102179         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
102180         (check_tuning): Fix bug: if tuning parameters were very close to
102181         0 or 1, rounding errors could have caused subscript violations.
102182         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
102183         (hash_initialize): Add 'fail:' label
102184         to free table and return NULL, and use it to simplify code.
102185         Use calloc rather than clearing the storage ourself.
102186         (hash_initialize, hash_rehash): Check for arithmetic overflow in
102187         buffer size calculations.
102188         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
102189         Include <stddef.h>, for size_t.
102190         * lib/hash-pjw.c (hash_pjw): Likewise.
102191         Switch to method described by Bruno Haible.
102192         Include <limits.h>, for CHAR_BIT.
102193         (SIZE_BITS): New macro.
102195 2003-10-23  Paul Eggert  <eggert@twinsun.com>
102197         * m4/getline.m4 (AM_FUNC_GETLINE):
102198         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
102199         hosts.  Problem reported by Derek Robert Price in
102200         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
102201         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
102202         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
102204 2003-10-21  Paul Eggert  <eggert@twinsun.com>
102206         * lib/getndelim2.c (getndelim2): When size calculation overflows,
102207         ceiling the allocation at NMAX bytes rather than silently
102208         discarding input bytes before NMAX is reached.  This makes
102209         a difference only if NMAX exceeds SIZE_MAX / 2.
102211         * lib/obstack.c: Merge from glibc.
102212         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
102213         Add libc_hidden_def (_obstack_newchunk).
102214         (_obstack_free) [! defined _LIBC]: Remove.
102215         [defined _LIBC]: Make a strong alias from obstack_free, rather than
102216         a clone of the function body.
102217         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
102218         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
102220         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
102221         glibc.
102222         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
102223         arg to memcpy.
102225         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
102226         (obstack_ptr_grow_fast, obstack_int_grow_fast):
102227         Don't use lvalue casts, as GCC plans to remove support for them
102228         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
102229         was also present in the non-GCC version, indicating that this
102230         code had always been buggy and had never been widely used.
102231         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
102232         Use the fast variant of each macro, rather than copying the
102233         definiens of the fast variant; that way, we'll be more likely to
102234         catch future bugs in the fast variants.
102236 2003-10-20  Bruno Haible  <bruno@clisp.org>
102238         * modules/wait-process: New file.
102239         * MODULES.html.sh (func_all_modules): Add wait-process.
102241 2003-10-20  Bruno Haible  <bruno@clisp.org>
102243         * m4/wait-process.m4: New file.
102245 2003-10-20  Bruno Haible  <bruno@clisp.org>
102247         * lib/wait-process.h: New file, from GNU gettext.
102248         * lib/wait-process.c: New file, from GNU gettext.
102250 2003-10-19  Jim Meyering  <jim@meyering.net>
102252         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
102253         HPUX 10.20.
102255 2003-10-18  Karl Berry  <karl@gnu.org>
102257         * config/config.guess: update from config.
102259 2003-10-16  Paul Eggert  <eggert@twinsun.com>
102261         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
102262         (getgroups): First arg is int, not size_t.
102263         Don't let 'free' mangle errno.
102265 2003-10-16  Paul Eggert  <eggert@twinsun.com>
102267         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
102269 2003-10-16  Karl Berry  <karl@gnu.org>
102271         * config/config.{guess,sub}: update from config.
102273 2003-10-16  Jim Meyering  <jim@meyering.net>
102275         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
102276         memcpy.
102278 2003-10-15  Paul Eggert  <eggert@twinsun.com>
102280         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
102281         (SIZE_MAX): Remove.
102282         (new_exclude, add_exclude_file): Initial size no longer needs to
102283         be a power of 2.
102284         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
102285         our own address arithmetic overflow checking.
102287         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
102288         (fnmatch): Do not alloca more than 2000 wide characters;
102289         instead, use malloc for large buffers.
102290         Check for address arithmetic overflow, and return -1
102291         with errno set to ENOMEM in that case.
102292         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
102293         (NEW_PATTERN): Do not alloca more than 8000 bytes;
102294         instead, return -1.  Check for address arithmetic overflow.
102296 2003-10-14  Paul Eggert  <eggert@twinsun.com>
102298         Handle invalid suffixes and overflow independently, so that
102299         callers can treat them independently as needed.  Fix some bugs in
102300         suffix handling, e.g., "100k@" was not diagnosed as an invalid
102301         suffix for a human-readable blocksize.  The major caller-visible
102302         change is the addition of a new
102303         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
102304         that both overflow and suffix chars were found.
102306         * lib/human.c (humblock): Don't check separately for invalid suffix
102307         char; that is xstrtoumax's job (now that its bug is fixed).
102308         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
102309         INTMAX_MAX]: New macros.
102310         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
102311         TYPE_MAXIMUM): New macros.
102312         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
102313         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
102314         if overflow occurs, as it's what __strtol does and it's more useful
102315         in practice.
102316         (__xstrtol): If __strtol reports some error other than ERANGE,
102317         reflect it to the caller as LONGINT_INVALID.  If it reports
102318         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
102319         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
102320         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
102321         value.
102322         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
102323         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
102324         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
102325         [defined UINTMAX_MAX]: New macros.
102327 2003-10-14  Bruno Haible  <bruno@clisp.org>
102329         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
102331 2003-10-14  Bruno Haible  <bruno@clisp.org>
102333         * m4/sig_atomic_t: New file, from GNU gettext.
102334         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
102336 2003-10-14  Bruno Haible  <bruno@clisp.org>
102338         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
102339         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
102340         Also use volatile where needed.
102342 2003-10-12  Paul Eggert  <eggert@twinsun.com>
102344         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
102345         Change maintainer from Bruno Haible to 'all'.
102347 2003-10-12  Paul Eggert  <eggert@twinsun.com>
102349         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
102351 2003-10-12  Paul Eggert  <eggert@twinsun.com>
102353         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
102354         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
102355         and define in terms of the other primitives.
102356         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
102357         (SIZE_MAX): Define if not already defined.
102358         (array_size_overflow): New function.
102359         (xalloc_die): Abort instead of exiting if 'error' returns.
102360         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
102361         (xmalloc, xrealloc): Use them.
102362         (xcalloc): Check for address arithmetic overflow.
102363         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
102364         a bit faster than strcpy.
102366 2003-10-10  Simon Josefsson  <jas@extundo.com>
102368         * modules/argp (Depends-on): Add restrict and strcase.
102370 2003-10-10  Simon Josefsson  <jas@extundo.com>
102372         * m4/argp.m4: Add AC_C_INLINE.
102374 2003-10-08  Paul Eggert  <eggert@twinsun.com>
102376         Merge getpass from libc, plus a few fixes.
102378         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
102379         Include <stdbool.h>.
102380         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
102381         __fsetlocking to empty.
102382         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
102383         do include <bits/libc-lock.h>.
102384         Do not include <fcntl.h>; not needed.
102385         [_LIBC]: Include <wchar.h>.
102386         (NOTCANCEL_MODE): New macro.
102387         (flockfile, funlockfile) [_LIBC]: New macros.
102388         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
102389         [!_LIBC]: New macros.
102390         (call_fclose): New function.
102391         (getpass): Use it.  Save tty stream separately; this simplifies the
102392         code and makes it more reliable if stdin happens to equal stdout.
102393         Invoke __fsetlocking on tty.
102394         Handle thread cancellation if needed.
102395         Namespace cleanup (use __tcgetattr, __getline).
102396         Use bool for Booleans.
102397         [USE_IN_LIBIO]: Handle wide streams.
102398         [!_LIBC]: Unconditionally do the fseek, since we don't know what
102399         stream might go where.
102401         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
102402         doesn't have to include <stdio.h> before us.
102403         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
102404         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
102405         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
102406         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
102407         if not declared, so that we can use getpass.c code from libc without
102408         rewriting it.
102409         (flockfile, ftrylockfile, funlockfile): New macros.
102411 2003-10-08  Paul Eggert  <eggert@twinsun.com>
102413         * modules/getpass: Depend on stdbool.
102415 2003-10-08  Paul Eggert  <eggert@twinsun.com>
102417         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
102419 2003-10-07  Karl Berry  <karl@gnu.org>
102421         * config/config.{guess,sub}: update from config.
102423 2003-10-06  Jim Meyering  <jim@meyering.net>
102424             Bruno Haible  <bruno@clisp.org>
102426         This lets translators provide better translations for the
102427         "Written by ..." part of --version output.
102428         * lib/version-etc.h: Include stdarg.h.
102429         (version_etc_copyright): Declare as readonly.
102430         (version_etc): Make this function variadic with a NULL-terminated list
102431         of author name strings.
102432         (version_etc_va): New declaration.
102433         * lib/version-etc.c: Include stdarg.h, stdlib.h.
102434         (version_etc_copyright): Declare as readonly.
102435         (version_etc_va): New function. Provide a different translatable string
102436         for each possible number of authors < 10. Abbreviate when there are 10
102437         authors or more.
102438         (version_etc): Make this function variadic. Call version_etc_va.
102439         Suggestion from Gary V. Vaughan.
102441         * lib/long-options.h (parse_long_options): Change prototype: the
102442         authors string is moved to the end and becomes variadic.
102443         * lib/long-options.c: Include stdarg.h.
102444         (parse_long_options): Make this function variadic, too.
102445         Call version_etc_va, not version_etc.
102447 2003-10-06  Bruno Haible  <bruno@clisp.org>
102449         * modules/version-etc-2: Remove file.
102450         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
102452 2003-10-06  Bruno Haible  <bruno@clisp.org>
102454         * modules/fatal-signal: New file.
102455         * MODULES.html.sh (func_all_modules): Add fatal-signal.
102457 2003-10-06  Bruno Haible  <bruno@clisp.org>
102459         * m4/fatal-signal.m4: New file.
102460         * m4/signalblocking.m4: New file, from GNU gettext.
102462 2003-10-06  Bruno Haible  <bruno@clisp.org>
102464         * lib/version-etc-2.h: Remove file.
102465         * lib/version-etc-2.c: Remove file.
102467 2003-10-06  Bruno Haible  <bruno@clisp.org>
102469         * lib/fatal-signal.h: New file, from GNU gettext.
102470         * lib/fatal-signal.c: New file, from GNU gettext.
102472 2003-10-05  Paul Eggert  <eggert@twinsun.com>
102474         * README: Rework advice for preventing empty .o files.
102475         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
102476         not <sys/types.h>.
102478 2003-10-04  Karl Berry  <karl@gnu.org>
102480         * lib/argp*: update from libc.
102482 2003-10-04  Karl Berry  <karl@gnu.org>
102484         * config/config.{guess,sub}: update from config.
102486 2003-10-02  Bruno Haible  <bruno@clisp.org>
102488         * modules/lchown (Include): Add lchown.h.
102489         * modules/time_r (Include): Use "..." syntax.
102490         * modules/xgetdomainname (Include): Add xgetdomainname.h.
102492 2003-10-01  Simon Josefsson  <jas@extundo.com>
102494         * MODULES.html.sh (func_all_modules): Move gethostname from section
102495         'based on' to section 'lacking' POSIX:2001.
102497 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
102499         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
102500         to output mode on the same stream.
102502 2003-09-29  Paul Eggert  <eggert@twinsun.com>
102504         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
102505         Fix arg typo in previous patch.
102507 2003-09-28  Jim Meyering  <jim@meyering.net>
102509         * lib/error.c: Correct cpp indentation.
102511 2003-09-27  Paul Eggert  <eggert@twinsun.com>
102513         * modules/free: New file.
102515 2003-09-27  Paul Eggert  <eggert@twinsun.com>
102517         * m4/free.m4: New file.
102519 2003-09-27  Paul Eggert  <eggert@twinsun.com>
102521         * lib/minmax.h (MIN, MAX)
102522         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
102523         Omit the special code that used __typeof__, since we worry that
102524         it could be more trouble than it's worth.  See:
102525         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
102526         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
102528         * lib/free.c: New file.
102530 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
102532         Trivial fixes to Makefile.am parts of module listings.
102533         * modules/strstr: Append strstr.h to lib_SOURCES.
102534         * modules/strcase: Likewise, for strcase.h.
102536 2003-09-27  Karl Berry  <karl@gnu.org>
102538         * config/mkinstalldirs: update from automake.
102540 2003-09-26  Paul Eggert  <eggert@twinsun.com>
102542         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
102543         (error_tail): Do not loop, reallocating temporary buffer, since
102544         the output cannot contain more wide characters than the input
102545         contains bytes, the size must be big enough already.  This avoids
102546         one potential size overflow calculation.  Check for size overflow
102547         when calculating temporary buffer size.  Free temporary buffer
102548         when done, if it was allocated with malloc; this plugs a memory
102549         leak.  Remove casts from void * to pointers, that are no longer
102550         needed now that we're assuming C89 or better.
102552         Merge error changes from glibc.
102554         * lib/error.c, error.h: Update copyright notice header to match glibc.
102555         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
102556         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
102557         Disable cancellation while printing error.
102558         * lib/error.h: Prepend __ to parameter names.
102560 2003-09-26  Jim Meyering  <jim@meyering.net>
102562         * lib/error.c (error_tail): Move some declarations
102563         into inner scope where the local variables are used.
102565 2003-09-26  Bruno Haible  <bruno@clisp.org>
102567         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
102568         stpncpy().
102569         Don't define stpncpy through config.h; it's now done through stpncpy.h.
102571 2003-09-26  Bruno Haible  <bruno@clisp.org>
102573         * lib/stpncpy.h (gnu_stpncpy): New declaration.
102574         (stpncpy): Define as alias for gnu_stpncpy.
102575         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
102577 2003-09-25  Simon Josefsson  <jas@extundo.com>
102579         * lib/xgetdomainname.h: New file.
102580         * lib/xgetdomainname.c: New file.
102582 2003-09-25  Simon Josefsson  <jas@extundo.com>
102583             Bruno Haible  <bruno@clisp.org>
102585         * modules/getdomainname: New file.
102586         * modules/xgetdomainname: New file.
102587         * MODULES.html.sh (func_all_modules): Add getdomainname,
102588         xgetdomainname.
102590 2003-09-25  Simon Josefsson  <jas@extundo.com>
102591             Bruno Haible  <bruno@clisp.org>
102593         * m4/getdomainname.m4: New file.
102595 2003-09-25  Simon Josefsson  <jas@extundo.com>
102596             Bruno Haible  <bruno@clisp.org>
102598         * lib/getdomainname.h: New file.
102599         * lib/getdomainname.c: New file.
102601 2003-09-25  Karl Berry  <karl@gnu.org>
102603         * lib/argp-fmtstream.c, argp-help.c: update from libc.
102605 2003-09-25  Karl Berry  <karl@gnu.org>
102607         * config/install-sh: update from automake.
102609 2003-09-25  Bruno Haible  <bruno@clisp.org>
102611         * modules/version-etc-2: New file, from modules/version-etc with
102612         modifications.
102613         * MODULES.html.sh (func_all_modules): Add version-etc-2.
102615 2003-09-25  Bruno Haible  <bruno@clisp.org>
102617         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
102618         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
102620 2003-09-24  Simon Josefsson  <jas@extundo.com>
102622         * modules/xgethostname: Add xgethostname.h.
102624 2003-09-24  Paul Eggert  <eggert@twinsun.com>
102626         * lib/linebuffer.c (freebuffer): Don't free the argument, just
102627         the buffer associated with the argument.  Bug reported by
102628         Simon Josefsson.
102630 2003-09-24  Paul Eggert  <eggert@twinsun.com>
102632         * README: Document assumptions that 'int' is at least 32 bits
102633         wide, that integer arithmetic is 2's complement without overflow,
102634         that there are no holes in integer values, that adding sizes of
102635         two nonoverlapping objects can't overflow, and that all-bits-zero
102636         yields scalar zero.  Fix spelling and capitalization typos.
102638 2003-09-19  Karl Berry  <karl@gnu.org>
102640         * lib/argp.h: update from libc.
102642 2003-09-17  Paul Eggert  <eggert@twinsun.com>
102644         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
102645         to avoid spurious warnings like "AC_RUN_IFELSE was called before
102646         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
102648 2003-09-17  Paul Eggert  <eggert@twinsun.com>
102650         * gnulib-tool: Use "test -h", not "test -L", for portability
102651         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
102652         (tags_regexp): Remove, since \| doesn't conform to POSIX.
102653         (sed_extract_prog): Issue s commands one-by-one, rather than
102654         using \| in one s command.
102656 2003-09-16  Paul Eggert  <eggert@twinsun.com>
102658         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
102659         input error, instead of returning NULL the next time we are called
102660         (and therefore losing track of errno).
102662 2003-09-16  Bruno Haible  <bruno@clisp.org>
102664         * gnulib-tool (func_create_testdir): Warn about duplicated
102665         dependencies.
102667 2003-09-15  Paul Eggert  <eggert@twinsun.com>
102669         * modules/argmatch, modules/fatal, modules/obstack,
102670         modules/xalloc, modules/xgethostname: Sort dependencies by
102671         importance, not alphabetically.
102673 2003-09-15  Paul Eggert  <eggert@twinsun.com>
102675         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
102676         fails, so that the caller gets the proper errno.
102678         * lib/readutmp.c (read_utmp): Likewise.
102679         Check for fstat error.  Close stream and free storage
102680         when failing.
102682 2003-09-14  Karl Berry  <karl@gnu.org>
102684         * config/srclist.txt (strdup.c): disable for c89 changes.
102686 2003-09-14  Jim Meyering  <jim@meyering.net>
102688         * lib/getloadavg.c: Correct cpp indentation.
102689         * lib/strdup.c: Likewise.
102690         * lib/vasnprintf.c: Likewise.
102692 2003-09-14  Bruno Haible  <bruno@clisp.org>
102694         * modules/fwriteerror: New file.
102695         * MODULES.html.sh (func_all_modules): Add fwriteerror.
102697 2003-09-14  Bruno Haible  <bruno@clisp.org>
102699         * lib/fwriteerror.h: New file.
102700         * lib/fwriteerror.c: New file.
102702 2003-09-12  Paul Eggert  <eggert@twinsun.com>
102704         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
102705         modules/xgethostname, modules/xalloc: Depend on exit.
102707 2003-09-12  Paul Eggert  <eggert@twinsun.com>
102709         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
102711         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
102712         and AC_MINIX, too, so that their extensions are available.
102714         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
102715         This macro has been superseded by gl_BACKUPFILE.
102717         More patches to assume C89 or better.
102719         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
102721         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
102722         unconditionally.
102723         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
102724         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
102725         Include <string.h>, <stdlib.h> unconditionally.
102726         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
102727         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
102728         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
102729         headers or for string.h.
102730         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
102731         or strtoul.
102733         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
102734         headers.
102735         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
102736         * m4/userspec.m4 (gl_USERSPEC): Likewise.
102737         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
102738         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
102739         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
102740         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
102741         memcpy, memset.
102742         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
102743         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
102744         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
102745         strtol.
102746         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
102747         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
102748         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
102749         strtoul.
102751 2003-09-12  Paul Eggert  <eggert@twinsun.com>
102753         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
102754         * lib/obstack.c [!defined _LIBC]: Likewise.
102755         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
102756         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
102757         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
102759         More changes to assume C89 or better.
102761         * lib/error.c (error_tail): Assume vprintf.
102763         * lib/argmatch.c (getenv): Remove decl.
102764         * lib/progreloc.c (get_full_program_name): Define via prototype.
102765         * lib/setenv.c (clearenv): Likewise.
102766         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
102767         needed.
102768         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
102769         (malloc, memcpy): Remove decls.
102770         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
102771         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
102772         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
102773         (memcpy): Remove macro.
102774         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
102775         (__P): Remove.  All uses removed.
102776         (PTR): Remove.  All uses changed to void *.
102777         (CHAR_BIT, NULL): Remove.
102778         (spaces, zeros, memset_space, memset_zero)
102779         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
102780         Remove.
102781         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
102782         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
102783         Define with prototype.
102784         Remove now-unnecessary prototype decl.
102785         (extra_args_spec): Assume ANSI C.  All uses changed.
102786         (extra_args_spec_iso): Remove.
102787         (my_strftime, emacs_strftimeu): Define via prototype.
102788         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
102789         unconditionally.
102790         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
102791         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
102792         (strtoul, strtol): Remove decls.
102793         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
102794         LONG_MAX): Remove.
102795         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
102796         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
102797         (LOCALE_PARAM_PROTO): New macro.
102798         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
102799         (INTERNAL (strtol), strtol): Define with a prototype.
102800         (PARAMS): Remove.  All uses removed.
102801         * lib/tempname.c: Include <string.h> unconditionally.
102802         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
102803         * lib/xgethostname.c (main): Define with a prototype.
102804         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
102805         Include <stdlib.h> unconditionally.
102806         (calloc, malloc, realloc, free): Remove decls.
102807         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
102808         Include <stdlib.h> unconditionally.  Sort include file names.
102809         (strtod): Remove.
102810         (xstrtod): Define with a prototype.
102811         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
102812         (strtol, strtoul): Remove decls.
102814 2003-09-11  Paul Eggert  <eggert@twinsun.com>
102816         More patches to assume C89 or better.
102817         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
102818         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
102819         string.h, memchr, STDC_HEADERS.
102821 2003-09-11  Paul Eggert  <eggert@twinsun.com>
102823         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
102824         Include <stdlib.h>, <string.h> unconditionally.
102825         Remove now-unnecessary cast to char *.
102826         * lib/strnlen.c: Include <string.h> unconditionally.
102827         * lib/yesno.c (yesno): Define with a prototype.
102829 2003-09-11  Bruno Haible  <bruno@clisp.org>
102831         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
102833 2003-09-10  Jim Meyering  <jim@meyering.net>
102835         * lib/error.c: Correct indentation of cpp directives.
102837 2003-09-10  Bruno Haible  <bruno@clisp.org>
102839         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
102840         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
102841         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
102842         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
102843         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
102844         <stdlib.h> and <string.h> checks.
102845         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
102846         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
102848 2003-09-10  Bruno Haible  <bruno@clisp.org>
102850         * lib/strcspn.c: Include <string.h> unconditionally.
102851         * lib/strpbrk.c: Include <string.h> unconditionally.
102852         * lib/strstr.c: Include <string.h> unconditionally.
102853         * lib/unicodeio.c: Include <string.h> unconditionally.
102854         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
102855         * lib/unsetenv.c: Likewise.
102856         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
102857         * lib/yesno.c: Include <stdlib.h> unconditionally.
102858         (rpmatch): Add prototype.
102860 2003-09-09  Paul Eggert  <eggert@twinsun.com>
102862         More patches to assume C89 or better.
102863         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
102864         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
102865         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
102866         or for string.h.
102867         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
102868         stdlib.h.
102869         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
102870         C headers.
102871         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
102872         string.h.
102873         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
102874         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
102875         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
102876         or for string.h.
102877         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
102878         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
102879         C headers.
102880         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
102881         memcpy.
102882         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
102883         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
102884         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
102885         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
102886         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
102887         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
102888         string.h, free.
102889         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
102890         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
102891         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
102892         C headers, or for string.h.
102893         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
102894         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
102895         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
102896         headers, memory.h, stdlib.h, string.h, strings.h.
102897         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
102898         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
102899         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
102900         strchr.
102901         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
102902         headers, memory.h, string.h.
102903         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
102904         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
102905         free.
102906         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
102907         headers.
102908         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
102909         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
102910         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
102911         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
102912         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
102914 2003-09-09  Paul Eggert  <eggert@twinsun.com>
102916         More K&R removal.
102918         * lib/acosl.c (main): Use a prototype.
102919         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
102920         tanl.c: Likewise.
102922         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
102924         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
102925         (getopt, etopt_long, getopt_long_only, _getopt_internal)
102926         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
102927         with a prototype.
102928         * lib/getopt.c (const): Remove macro.
102929         Include <string.h> unconditionally.
102930         (my_index): Remove; all uses changed to strchr.
102931         (strlen): Remove decl.
102932         (exchange): Remove forward decl; no longer needed.
102933         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
102934         Define with prototype.
102935         * lib/getopt1.c (const): Remove macro.
102936         (getopt_long, getopt_long_only, main): Define with prototype.
102938         * lib/getugroups.c: Include <string.h> unconditionally.
102940         * lib/getusershell.c: Include <stdlib.h> unconditionally.
102941         (getusershell, setusershell, endusershell, readname, main):
102942         Define with prototypes.
102944         * lib/group-member.c: Include group-member.h first.
102945         Include <stdlib.h> unconditionally.
102947         * lib/hard-locale.c: Include hard-locale.h first.
102948         Include <stdlib.h>, <string.h> unconditionally.
102950         * lib/hash.c (free, malloc): Remove decls.
102951         Include <stdlib.h> unconditionally.
102953         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
102954         (getenv): Do not declare.
102956         * lib/idcache.c: Include <string.h> unconditionally.
102958         * lib/long-options.c: Include long-options.h first, to test interface.
102959         Include <stdlib.h> unconditionally.
102961         * lib/makepath.c: Include makepath.h first, to test interface.
102962         Include <stdlib.h> and <string.h> unconditionally.
102964         * lib/linebuffer.c: Include <stdlib.h>.
102965         (free): Remove decl.
102967         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
102968         stddef.h. rpl_malloc returns void *, not char *.
102969         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
102970         prototype.
102972         * lib/md5.h: Include <limits.h> unconditionally.
102973         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
102974         (__P): Remove; all uses removed.
102975         * lib/md5.c: Include "md5.h" first.
102976         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
102977         md5_buffer, md5_process_bytes, md5_process_block):
102978         Define with prototypes.
102979         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
102980         * lib/sha.c: Include "sha.h" first.
102981         Include <stdlib.h>, <string.h> unconditionally.
102983         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
102984         * lib/memcmp.c (__ptr_t): Likewise.
102985         * lib/memrchr.c (__ptr_t): Likewise.
102986         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
102987         Include <string.h> unconditionally.
102988         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
102989         * lib/memchr.c: Include <stdlib.h> unconditionally.
102990         * lib/memchr.c (LONG_MAX): Remove.
102991         * lib/memrchr.c (LONG_MAX): Likewise.
102992         * lib/memchr.c (__memchr): Define via a prototype.
102993         * lib/memrchr.c (__memrchr): Likewise.
102994         * lib/memcmp.c (__P): Remove, and remove all uses.
102995         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
102996         Remove forward decls; no longer needed.
102997         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
102998         Use types required by C89 in prototype.
103000         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
103001         * lib/savedir.c: Likewise.
103002         * lib/mkdir.c (free): Remove decl.
103003         * lib/rmdir.c (rmdir): Define with a prototype.
103004         * lib/savedir.c: Include savedir.h first, to test interface.
103006         * lib/mktime.c (STDC_HEADERS): Remove.
103007         Include <stdlib.h>, <string.h> unconditionally.
103009         * lib/modechange.c: Include <stdlib.h> unconditionally.
103010         (malloc): Remove decl.
103012         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
103013         (free): Remove decl.
103015         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
103016         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
103017         (This type really should be intptr_t, but that's a C99ism.)
103018         (_obstack_memcpy): Remove: all uses changed to memcpy.
103019         Include <string.h> unconditionally.
103020         (struct obstack): Assume __STDC__ for types of members
103021         chunkfun, freefun, extra_arg.
103022         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
103023         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
103024         obstack_begin, obstack_specify_allocation,
103025         obstack_specify_allocation_with_arg, obstack_chunkfun,
103026         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
103027         Remove unprototyped decls and the macros that use them.
103028         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
103029         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
103030         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
103031         (defined __STDC__ && __STDC__)]:
103032         Remove nonprototyped code.
103033         Include <stdlib.h> unconditionally.
103034         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
103035         _obstack_allocated_p, _obstack_free, obstack_free,
103036         _obstack_memory_used, print_and_abort):
103037         Define using prototypes.
103038         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
103039         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
103040         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
103041         obstack_next_free, obstack_object_size, obstack_room) [0]:
103042         Remove unused, unprototyped code.
103044         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
103046         * lib/physmem.c (physmem_total, physmem_available, main): Define
103047         with prototypes.
103049         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
103050         (main): Define with a prototype.
103052         * lib/posixver.c (getenv): Remove decl.
103054         * lib/putenv.c (malloc): Returns void *, not char *.
103055         Include <string.h> unconditionally.
103056         (strchr, memcpy, NULL): Do not define.
103058         * lib/readtokens.c: Include readtokens.h first, to test interface.
103059         Include <stdlib.h>, <string.h> unconditionally.
103060         (init_tokenbuffer): Define with a prototype.
103062         * lib/regex.c (PARAMS): Remove.  All uses removed.
103063         All uses of _RE_ARGS removed, too.
103064         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
103065         unconditionally.
103066         (bzero): Assume memset exists.
103067         (memcmp, memcpy, NULL): Remove.
103068         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
103069         char, or assignments to local vars of type signed char.
103070         (init_syntax_once, PREFIX(extract_number_and_incr),
103071         PREFIX(print_partial_compiled_pattern),
103072         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
103073         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
103074         PREFIX(regex_grow_registers), PREFIX(regex_compile),
103075         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
103076         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
103077         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
103078         wcs_compile_range, byte_compile_range, truncate_wchar,
103079         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
103080         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
103081         count_mbs_length, wcs_re_match_2_internal,
103082         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
103083         PREFIX(alt_match_null_string_p),
103084         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
103085         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
103086         regfree, PREFIX(extract_number)): Define with prototype.  Remove
103087         now-unnecessary declaration, if any.
103088         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
103089         regcomp, regexec):
103090         Remove now-unnecessary casts among pointer types.
103091         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
103093         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
103094         (free): Remove decl.
103096         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
103098         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
103099         (free): Remove decl.
103101         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
103102         * lib/xgetcwd.c: Likewise.
103104         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
103105         (free): Remove decl.
103107         * lib/strchrnul.c (strchrnul): Define with a prototype.
103108         Fix bug: c_in was not converted to char before searching.
103110         The following changes are not K&R related:
103112         * lib/group-member.h: Include <sys/types.h>, so that this file is
103113         self-contained.
103114         * lib/makepath.h: Likewise.
103116         * lib/getusershell.c (readname, default_index, line_size, readname):
103117         Use size_t, not int, for sizes.
103118         (readname): If the size overflows, report an error instead of
103119         looping forever.
103121 2003-09-09  Paul Eggert  <eggert@twinsun.com>
103123         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
103124         libc.
103126 2003-09-09  Paul Eggert  <eggert@twinsun.com>
103128         * README: New section: portability guidelines.
103130 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
103132         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
103133         C89 spec.
103135 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
103137         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
103139 2003-09-08  Paul Eggert  <eggert@twinsun.com>
103141         Assume C89 or better; remove K&R cruft.
103142         A few of these changes were first proposed by Derek Robert Price
103143         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
103145         * lib/addext.c: Include <string.h> unconditionally.
103146         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
103147         Don't declare getenv or malloc.
103149         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
103150         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
103151         (NULL): Remove.
103152         (find_stack_direction, alloca): Use prototypes.
103154         * lib/atexit.c (atexit): Define using a prototype.
103156         * lib/basename.c, dirname.c, stripslash.c:
103157         Include <string.h> unconditionally.
103159         * lib/bcopy.c: Include <stddef.h>.
103160         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
103162         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
103164         * lib/error.h (error, error_at_line, error_print_progname)
103165         [! (defined (__STDC__) && __STDC__)]: Remove decls.
103166         * lib/error.c: Include error.h first, to check interface.
103167         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
103168         (VA_START): Remove; all uses changeed to va_start.
103169         (exit, strerror): Remove decls.
103170         (error_print_progname): Prototype uncondionally.
103171         Don't include <errno.h>; no longer needed.
103172         (private_strerror): Remove.
103173         (error_tail): Always define.
103174         (error, error_at_line): Assume C89 or better; always use prototypes.
103175         * lib/fatal.c: Include "fatal.h" first, to test interface.
103176         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
103177         (VA_START): Remove; all uses changed to va_start.
103178         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
103179         this case.
103180         (exit): Remove decl.
103181         (fatal): Prototype unconditionally.  Assume va_start works.
103182         Abort at end, to pacify gcc.
103184         * lib/euidaccess.c (main): Define with a prototype.
103186         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
103188         * lib/exitfail.c: Include <stdlib.h> unconditionally.
103190         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
103191         prototypes.
103192         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
103193         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
103194         (getenv): Remove decl.
103195         (fnmatch): Define using a prototype.
103196         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
103197         (FCT): Define using a prototype.
103199         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
103201         * lib/gethostname.c: Include <stddef.h>.
103202         (gethostname): Define with prototype.  Length is size_t, not int.
103204 2003-09-08  Paul Eggert  <eggert@twinsun.com>
103206         Assume C89 or better; remove K&R cruft.
103207         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
103208         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
103209         string.h, getenv, malloc.
103210         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
103211         headers.
103212         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
103213         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
103214         do not check for strerror.
103215         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
103216         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
103217         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
103218         do not check for doprnt or vprintf.
103219         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
103220         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
103222 2003-09-08  Paul Eggert  <eggert@twinsun.com>
103224         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
103225         getversion.c should have been removed then, but was accidentally
103226         preserved.
103228         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
103229         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
103231 2003-09-08  Karl Berry  <karl@gnu.org>
103233         * config/config.sub, config.guess, srclistvars.sh: update from savannah
103234                 config, forget about prep.
103236         * config/depcomp, missing: update from automake.
103238 2003-09-07  Paul Eggert  <eggert@twinsun.com>
103240         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
103241         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
103243 2003-09-07  Paul Eggert  <eggert@twinsun.com>
103245         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
103246         copy_tm_result.  Bug reported by Simon Josefsson in
103247         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
103249 2003-09-06  Paul Eggert  <eggert@twinsun.com>
103251         * m4/time_r.m4: New file.
103252         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
103253         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
103254         is. Check for timegm declaration.
103255         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
103256         Do not check for gmtime_r.
103257         Replace mktime if __mktime_internal does not exist and if mktime
103258         hasn't been replaced already.
103260 2003-09-06  Paul Eggert  <eggert@twinsun.com>
103262         * lib/time_r.c, lib/time_r.h: New files.
103264         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
103265         __localtime_r.
103266         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
103267         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
103269         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
103270         __gmtime_r.
103271         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
103272         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
103273         Include <time_r.h>.
103275         * lib/timegm.c: Switch to glibc implementation, with the following
103276         changes:
103277         [defined HAVE_CONFIG_H]: Include <config.h>.
103278         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
103279         (__mktime_internal) [!defined _LIBC]: New decl.
103280         (__gmtime_r) [!defined _LIBC]: New macro and function.
103281         (timegm): Use a prototype, since gnulib assumes C89.
103282         Do not bother declaring tmp to be const, as it's not really usefu.
103283         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
103284         (timegm): Declare only if HAVE_DECL_TIMEGM.
103286 2003-09-06  Paul Eggert  <eggert@twinsun.com>
103288         * MODULES.html.sh (func_all_modules): Add time_r.
103289         * modules/time_r: New file.
103290         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
103291         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
103293 2003-09-03  Paul Eggert  <eggert@twinsun.com>
103295         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
103296         Bug reported by Lute Kamstra in
103297         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
103299         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
103300         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
103301         course with correspondingly smaller numbers for tomorrow and
103302         yesterday.  From Tadayoshi Funaba.  Originally installed into
103303         sh-utils on 1999-08-07, but the patch got lost (I guess during the
103304         coreutils merge?).
103306 2003-08-31  Simon Josefsson  <jas@extundo.com>
103308         * modules/timegm: New file.
103309         * MODULES.html.sh (func_all_modules): Add timegm.
103311 2003-08-31  Simon Josefsson  <jas@extundo.com>
103313         * m4/timegm.m4: New file.
103315 2003-08-31  Simon Josefsson  <jas@extundo.com>
103317         * lib/timegm.h: New file.
103318         * lib/timegm.c: New file.  Based on
103319         wget-1.8.2/src/http.c:mktime_from_utc.
103321 2003-08-31  Karl Berry  <karl@gnu.org>
103323         * lib/argp.h: update from libc.
103325 2003-08-28  Bruno Haible  <bruno@clisp.org>
103327         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
103328         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
103329         followed by '#define fnmatch fnmatch_posix' gives an error.
103331 2003-08-28  Bruno Haible  <bruno@clisp.org>
103333         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
103334         warning on QNX, which defines O_BINARY to 000000.
103336 2003-08-27  Jim Meyering  <jim@meyering.net>
103338         * m4/mkstemp.m4: Require that the system mkstemp be able to create
103339         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
103340         would fail after 32.  Reported by Danny Levinson.  Details here:
103341         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
103343 2003-08-24  Bruno Haible  <bruno@clisp.org>
103345         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
103346         MSVC7 <stdio.h> is included later.
103348 2003-08-22  Simon Josefsson  <jas@extundo.com>
103350         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
103352 2003-08-20  Karl Berry  <karl@gnu.org>
103354         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
103356 2003-08-20  Bruno Haible  <bruno@clisp.org>
103358         * modules/progname: New file.
103359         * MODULES.html.sh (func_all_modules): Add progname.
103361 2003-08-20  Bruno Haible  <bruno@clisp.org>
103363         * lib/progname.h: New file, from GNU gettext.
103364         * lib/progname.c: New file, from GNU gettext.
103365         * lib/progreloc.c: New file, from GNU gettext.
103367 2003-08-19  Jim Meyering  <jim@meyering.net>
103369         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
103370         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
103372 2003-08-19  Bruno Haible  <bruno@clisp.org>
103374         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
103375         more.
103377 2003-08-19  Bruno Haible  <bruno@clisp.org>
103379         * lib/xstrdup.c: Assume <string.h> exists.
103381 2003-08-18  Paul Eggert  <eggert@twinsun.com>
103383         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
103384         in makefile rules.
103386 2003-08-18  Jim Meyering  <jim@meyering.net>
103388         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
103389         * m4/lib-ld.m4: Likewise.
103391 2003-08-18  Jim Meyering  <jim@meyering.net>
103393         * lib/setenv.h: Indent nested cpp directive.
103394         * lib/vasnprintf.c: Remove trailing blanks.
103396 2003-08-17  Simon Josefsson  <jas@extundo.com>
103398         * modules/xstrndup: New file.
103399         * MODULES.html.sh (func_all_modules): Add xstrndup.
103401 2003-08-17  Simon Josefsson  <jas@extundo.com>
103403         * modules/argp: Fix autoconf macro name. Add more dependencies.
103405 2003-08-17  Simon Josefsson  <jas@extundo.com>
103407         * m4/xstrndup.m4: New file.
103409 2003-08-17  Simon Josefsson  <jas@extundo.com>
103411         * m4/argp.m4: New file.
103413 2003-08-17  Simon Josefsson  <jas@extundo.com>
103414             Bruno Haible  <bruno@clisp.org>
103416         * lib/xstrndup.h: New file.
103417         * lib/xstrndup.c: New file.
103419 2003-08-17  Bruno Haible  <bruno@clisp.org>
103421         * modules/strndup (Files, Include): Add lib/strndup.h.
103423 2003-08-17  Bruno Haible  <bruno@clisp.org>
103425         * modules/euidaccess (Files): Add lib/euidaccess.h.
103427 2003-08-17  Bruno Haible  <bruno@clisp.org>
103429         * lib/strndup.h: New file.
103431 2003-08-17  Bruno Haible  <bruno@clisp.org>
103433         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
103434         like AC_GNU_SOURCE.
103435         * modules/extensions (configure.ac): Comment out the invocation of
103436         gl_USE_SYSTEM_EXTENSIONS.
103438 2003-08-16  Paul Eggert  <eggert@twinsun.com>
103440         Merges from coreutils, etc.
103441         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
103442         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
103443         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
103444         fixing a typo.
103445         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
103446         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
103448 2003-08-16  Paul Eggert  <eggert@twinsun.com>
103450         Document merge from coreutils.
103451         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
103452         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
103453         * modules/utime: Add m4/utimes-null.m4.
103455 2003-08-16  Paul Eggert  <eggert@twinsun.com>
103457         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
103458         space, undoing this 2003-08-12 change:
103459         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
103461 2003-08-16  Paul Eggert  <eggert@twinsun.com>
103463         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
103464         strtoul.c from libc, undoing this 2003-08-12 change:
103465         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
103467 2003-08-16  Jim Meyering  <jim@meyering.net>
103469         Merges from coreutils.
103470         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
103471         prefix.  Adjust cache variables similarly.  Create 500 rather than
103472         just 300 files, to exercise bug on Darwin6.5, too.
103473         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
103474         $missing_dir.
103475         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
103476         AM_SYS_POSIX_TERMIOS.
103477         Reported by mkc@mathdogs.com.
103478         Also change use of $am_cv_sys_posix_termios
103479         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
103480         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
103481         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
103482         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
103483         in /proc/mounts until it finds one with matching device number.  This
103484         is unnecessary when the FILE argument *is* a mount point.  No stat call
103485         is necessary in that case.  So, disable the statvfs-testing code on
103486         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
103487         as RedHat bug# 84846.
103488         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
103489         to 1MB, so as not to render systems with no stack size limit (e.g.,
103490         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
103491         Include <unistd.h>.  On some systems,
103492         it is required for the definition of _SC_PAGESIZE.
103494 2003-08-16  Jim Meyering  <jim@meyering.net>
103496         Merge from coreutils.
103497         * lib/xstrtoimax.c: #else #if -> #elif.
103498         * lib/xstrtoumax.c: Likewise.
103500 2003-08-16  Jim Meyering  <jim@meyering.net>
103502         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
103503         * m4/utimes.m4: Removed.
103504         * m4/utimes-null.m4: Renamed from utimes.m4.
103506         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
103507         to 1MB, so as not to render systems with no stack size limit (e.g.,
103508         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
103509         Include <unistd.h>.  On some systems,
103510         it is required for the definition of _SC_PAGESIZE.
103512 2003-08-16  Jim Meyering  <jim@meyering.net>
103513         and Paul Eggert  <eggert@cs.ucla.edu>
103515         Merges from coreutils, etc.
103517         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
103518         using the latest version from cvs.  This avoids problems with #line
103519         directives using a vendor (Sun) compiler.
103520         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
103521         Don't set GETGROUPS_LIB here; now it's
103522         done via getgroups.m4's wrapper function.
103523         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
103524         rather than just in sh-util/configure.in, so that the
103525         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
103526         same.
103527         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
103528         AC_FUNC_GETLOADAVG where to find getloadavg.c.
103529         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
103530         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
103531         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
103532         Remove code that is now done by the newly-required macros.
103533         Append $(EXEEXT) to DF_PROG.
103534         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
103535         Do not invoke or require the following here,
103536         since prereq.m4 or some gnulib .m4 now does this for us:
103537         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
103538         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
103539         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
103540         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
103541         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
103542         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
103543         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
103544         AC_FUNC_OBSTACK.
103545         Do not replace the following functions, as this is now the job
103546         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
103547         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
103548         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
103549         atexit getpass, strdup, getpagesize.
103550         Replace 'raise'.
103551         Do not check for the following functions, as this is now the job
103552         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
103553         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
103554         setregid.
103555         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
103556         Check for sys/sysctl.h.
103557         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
103558         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
103559         of checking for ssize_t ourselves.
103561         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
103562         Require every macro that gnulib/modules/* suggests for us.
103563         (jm_PREREQ_ADDEXT): New macro.
103564         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
103565         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
103567         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
103568         (gl_PHYSMEM): Use it.
103569         Also check for `table' function.
103570         Check for new headers and functions.
103571         Add check for sys/sysmp.h.
103572         With suggestions from Kaveh Ghazi.
103573         Ignore headers that are present but cannot be compiled.  This
103574         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
103575         C 5.4.
103577 2003-08-15  Paul Eggert  <eggert@twinsun.com>
103579         Document merge from coreutils.
103580         * modules/userspec: Depend on posixver.
103581         * modules/strftime: Depend on tzset.
103583 2003-08-15  Paul Eggert  <eggert@twinsun.com>
103585         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
103586         rather than tab, after '#' in shell-script copyright notices.
103587         Suggested by Bruno Haible.
103589 2003-08-15  Paul Eggert  <eggert@twinsun.com>
103591         * config/srclist-update: Use three spaces, rather than tab, after '#'
103592         in shell-script copyright notices.  Suggested by Bruno Haible.
103593         Remove unnecessary parenthesization in regular expression.
103595 2003-08-15  Jim Meyering  <jim@meyering.net>
103597         Merge from coreutils.
103598         * lib/xgethostname.c: Include <stdlib.h>.
103599         (xghostname): Don't exit for anything other than memory-related
103600         failure; just return NULL.
103601         * lib/userspec.c: Include "posixver.h".
103602         (parse_user_spec): Accept `.' as a separator only
103603         in pre-POSIX-200112 mode.
103604         * lib/strtoimax.c: Use #elif rather than #else #if.
103605         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
103606         Remove function, now that we can rely on a working tzset function.
103607         [!_LIBC]: Ensure that the required autoconf test has been run.
103608         [!defined _NL_CURRENT && HAVE_STRFTIME]:
103609         Use underlying_strftime for %r.
103610         * lib/sha.c: Merge in some clean-up and optimization changes from
103611         glibc.
103612         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
103613         Ensure that it is a multiple of 64.
103614         Rearrange loop exit tests so as to avoid performing an
103615         additional fread after encountering an error or EOF.
103616         * lib/realloc.c: Update copyright date.
103618 2003-08-15  Jim Meyering  <jim@meyering.net>
103619         and Paul Eggert  <eggert@twinsun.com>
103621         Merge from coreutils.
103622         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
103623         member but strut utmpx does not.  Needed for AIX 4.3.3.
103624         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
103626 2003-08-15  Jim Meyering  <jim@meyering.net>
103627         and Paul Eggert  <eggert@cs.ucla.edu>
103629         Merges from coreutils, etc.
103630         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
103631         Require gl_FUNC_TZSET_CLOBBER.
103632         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
103633         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
103634         members.
103636 2003-08-14  Paul Eggert  <eggert@twinsun.com>
103638         Help the merge from coreutils.
103639         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
103640         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
103641         * m4/tzset.m4: Use it too.
103643 2003-08-14  Paul Eggert  <eggert@twinsun.com>
103645         * modules/tzset: New file.
103647 2003-08-14  Jim Meyering  <jim@meyering.net>
103649         Merges from coreutils.
103650         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
103651         variable names, rather than @FNMATCH_H@.
103652         * modules/alloca: Likewise for $(ALLOCA_H).
103654         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
103655         the three copies of the literal target, `fnmatch.h'.
103656         * modules/alloca (alloca.h): Likewise.
103658 2003-08-14  Jim Meyering  <jim@meyering.net>
103660         Merge from coreutils.
103661         * m4/tzset.m4: New file.
103662         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
103663         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
103664         otherwise, AIX 5.1 systems would end up using the latter.
103665         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
103666         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
103667         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
103668         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
103670 2003-08-14  Jim Meyering  <jim@meyering.net>
103672         Merge from coreutils.
103673         * lib/obstack.h: Whitespace changes.
103674         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
103675         and xcalloc return values.
103676         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
103677         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
103678         hang on OSF/1 5.1 for DIR on both local and remote file systems.
103679         Reported by (and fix confirmed by) Nelson H. F. Beebe.
103680         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
103681         error from mntctl.
103682         Use mntctl's return value to drive the entry-processing loop, since
103683         we can't rely on the value of the vmt_length member in the last
103684         entry.  On some systems doing so could result in exhausting
103685         virtual memory.  Based in part on a patch from Mike Jetzer.
103687 2003-08-14  Jim Meyering  <jim@meyering.net>
103688         and Paul Eggert  <eggert@twinsun.com>
103690         Merges from coreutils, plus other fixes.
103691         * lib/physmem.c: Merge in portability changes from gcc/libiberty
103692         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
103693         for credits and details.  Thanks to Kaveh Ghazi for helping
103694         to keep these files in sync.
103695         (ARRAY_SIZE): Define it.
103696         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
103697         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
103698         (memcasecmp): Don't assume size_t fits in unsigned int.
103699         Remove casts and duplicate code.
103700         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
103701         (memcpy): Remove definition.
103702         Merge in some clean-up and optimization changes from glibc.
103703         [BLOCKSIZE]: Move definition to top of file.
103704         Ensure that it is a multiple of 64.
103705         Rearrange loop exit tests so as to avoid performing an
103706         additional fread after encountering an error or EOF.
103707         * lib/md5.h (md5_uintptr): Define.
103708         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
103709         return to the initial working directory.  Preserve errno
103710         for caller.
103711         * lib/idcache.c: Include "xalloc.h".
103712         (xmalloc, xrealloc): Remove decls.
103713         (getuser): Remove casts no longer required in C89.
103714         * lib/human.c: Include stdio.h, for sprintf.
103715         * lib/group-member.c: Include "xalloc.h".
103716         (xmalloc, xrealloc): Remove decls.
103717         (get_group_info): Remove casts no longer required in C89.
103718         * lib/getusershell.c (readname): Remove casts no longer required in
103719         C89.
103720         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
103721         * lib/getline.c: Whitespace fix, from coreutils.
103723 2003-08-13  Paul Eggert  <eggert@twinsun.com>
103725         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
103726         Check for isascii.
103728         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
103729         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
103730         Undo previous (whitespace-only) change.
103732 2003-08-13  Paul Eggert  <eggert@twinsun.com>
103734         * lib/exclude.c: Include <ctype.h>
103735         (IN_CTYPE_DOMAIN): New macro.
103736         (is_space): New fn.
103737         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
103738         and empty lines.
103740         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
103741         Undo previous (whitespace-only) change.
103743 2003-08-13  Paul Eggert  <eggert@twinsun.com>
103745         * config/srclist-update: Change update back to the old behavior,
103746         leaving whitespace alone.  Use one 'sed' command rather than a
103747         pipeline.
103748         (fixlicense): Now a variable, not a function.
103749         (remove_trailing_blanks): Remove.
103750         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
103751         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
103752         Undo previous (whitespace-only) change.
103754 2003-08-12  Paul Eggert  <eggert@twinsun.com>
103756         Merge from coreutils.
103757         * modules/euidaccess: Add lib_SOURCES, include for new
103758         file euidaccess.h
103760 2003-08-12  Paul Eggert  <eggert@twinsun.com>
103762         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
103763         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
103764         Normalize leading white space and remove trailing white space.
103766         Merge from coreutils
103767         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
103769         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
103770         0.12.1.  These files are now being upgraded automatically by
103771         ../config/srclist-update.
103773 2003-08-12  Paul Eggert  <eggert@twinsun.com>
103775         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
103776         Normalize leading white space and remove trailing white space.
103777         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
103778         notice, as per ../config/srclist-update.
103780         Merge from coreutils.
103781         * lib/euidaccess.h: New file.
103782         * lib/euidaccess.c: Include it.
103783         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
103784         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
103785         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
103787 2003-08-12  Paul Eggert  <eggert@twinsun.com>
103789         * config/srclist-update: Add copyright notice.
103790         (remove_id_lines, remove_trailing_blanks): New constants.
103791         (fixfile): Use them to normalize spacing a bit in copied files.
103792         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
103793         Normalize leading white space and remove trailing white space.
103795         * config/texinfo.tex: Sync with texinfo.
103797         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
103798         strtoul.c from libc, to merge coreutils whitespace changes.
103800         * config/srclist.txt: Get the following m4 files from gettext:
103801         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
103802         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
103803         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
103804         wint_t.m4.
103806 2003-08-12  Karl Berry  <karl@gnu.org>
103808         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
103809         been made.
103811 2003-08-11  Paul Eggert  <eggert@twinsun.com>
103813         * modules/gnu-source, m4/gnu-source.m4:
103814         Remove; we're assuming Autoconf 2.54 or later now.
103815         Suggested by Bruno Haible.
103816         * MODULES.html.sh (func_all_modules): Remove gnu-source.
103818 2003-08-11  Bruno Haible  <bruno@clisp.org>
103820         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
103822 2003-08-11  Bruno Haible  <bruno@clisp.org>
103824         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
103825         (vasnprintf): Use it instead of wcslen.
103827 2003-08-11  Bruno Haible  <bruno@clisp.org>
103829         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
103830         value to ensure that _Bool promotes to int. Use #define for _Bool when
103831         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
103833 2003-08-10  Karl Berry  <karl@gnu.org>
103835         * lib/regex.h: update from libc (whitespace fix).
103837 2003-08-09  Paul Eggert  <eggert@twinsun.com>
103839         Merge some files from coreutils.  These changes were
103840         originally made by Jim Meyering.
103841         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
103842         many older Unixes require this.
103843         * lib/alloca.c (alloca): Remove cast to argument of free;
103844         no longer needed in C89.
103845         * lib/alloca_.h, regex.h: Fix white space to match
103846         what GNU indent does.
103848 2003-08-09  Paul Eggert  <eggert@twinsun.com>
103850         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
103851         apparently Emacs's Unicode mode got confused before my 2003-08-05
103852         checkin.
103854 2003-08-08  Paul Eggert  <eggert@twinsun.com>
103856         * m4/extensions.m4: New file.
103857         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
103858         Require gl_USE_SYSTEM_EXTENSIONS.
103859         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
103860         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
103862 2003-08-08  Paul Eggert  <eggert@twinsun.com>
103864         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
103865         * modules/extensions, modules/gnu-source: New files.
103866         * modules/timespec, modules/unlocked-io: Depend on extensions.
103868 2003-08-07  Paul Eggert  <eggert@twinsun.com>
103870         * modules/restrict: New file.
103871         * MODULES.html.sh (func_all_modules): Add restrict.
103872         * modules/regex: Depend on restrict.
103874 2003-08-07  Paul Eggert  <eggert@twinsun.com>
103876         * m4/restrict.m4: New file.
103877         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
103879 2003-08-07  Bruno Haible  <bruno@clisp.org>
103881         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
103882         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
103884 2003-08-07  Bruno Haible  <bruno@clisp.org>
103886         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
103887         makes the module 'getndelim2' compatible with the module 'getline'.
103889 2003-08-05  Paul Eggert  <eggert@twinsun.com>
103891         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
103892         byte with "\201" to avoid glitches when editing that source file
103893         with multi-gnome-terminal.
103895 2003-08-05  Paul Eggert  <eggert@twinsun.com>
103897         * lib/bumpalloc.h: Remove.
103899 2003-08-05  Paul Eggert  <eggert@twinsun.com>
103901         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
103902         * modules/bumpalloc: Remove.
103904 2003-08-04  Paul Eggert  <eggert@twinsun.com>
103906         * lib/getloadavg.c: Change copyright notice and spacing to conform to
103907         GNU coding style.
103909         Merge from coreutils.
103910         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
103911         1. From glibc.
103912         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
103913         from Karl Berry, implemented by Jim Meyering.
103914         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
103915         from Dmitry V. Levin.
103916         Remove anachronistic cast of xrealloc.
103917         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
103918         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
103919         type. Otherwise, it wouldn't compile with at least /bin/cc on
103920         ymp-cray-unicos9.0.2.X.
103921         Combine two mostly-identical uses of alloca into one.
103922         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
103924 2003-08-04  Dave Love  <d.love@dl.ac.uk>
103926         [From Emacs.]
103928         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
103929         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
103930         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
103931         obsolete NLIST_NAME_UNION.
103932         [__GNU__]: Undef BSD and FSCALE.
103933         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
103935 2003-08-03  Paul Eggert  <eggert@twinsun.com>
103937         * lib/stdbool_.h (_Bool): Make it signed char, instead of
103938         an enum type, so that it's guaranteed to promote to int.  See:
103939         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
103941 2003-08-03  Karl Berry  <karl@gnu.org>
103943         * config/depcomp: update from automake.
103945 2003-07-31  Paul Eggert  <eggert@twinsun.com>
103947         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
103948         (strerror): Don't assume that a printable int fits in 14 bytes.
103950 2003-07-31  Bruno Haible  <bruno@clisp.org>
103952         * modules/getpass-gnu: New file.
103953         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
103955 2003-07-31  Bruno Haible  <bruno@clisp.org>
103957         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
103959 2003-07-24  Karl Berry  <karl@gnu.org>
103961         * config/missing: update from automake.
103963 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
103964             Bruno Haible  <bruno@clisp.org>
103966         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
103967         * lib/getline.c (getline, getdelim): Likewise.
103968         Remove _GNU_SOURCE define; now it's defined in config.h through
103969         m4/getline.m4.
103971 2003-07-23  Karl Berry  <karl@gnu.org>
103973         * config/config.sub: update from prep.
103975 2003-07-22  Paul Eggert  <eggert@twinsun.com>
103977         * modules/xalloc (Depends-on): Add exitfail.
103978         * modules/xmemcoll: Likewise.
103980 2003-07-22  Paul Eggert  <eggert@twinsun.com>
103982         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
103983         over-parenthesization in macros.
103985         Sync with coreutils.
103987         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
103988         required by C99.
103990         Use `exit_failure' for xalloc and xmemcoll instead of their own
103991         private exit-failure variables.
103992         * lib/xalloc.h (xalloc_exit_failure): Remove.
103993         * lib/xmalloc.c: Likewise.  Include exitfail.h.
103994         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
103995         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
103996         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
103997         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
103999 2003-07-20  Jim Meyering  <jim@meyering.net>
104001         * modules/closeout (Depends-on): Add exitfail.
104002         Suggestion from Bruno Haible.
104004 2003-07-19  Karl Berry  <karl@gnu.org>
104006         * config/config.sub: update from prep.
104008 2003-07-18  Paul Eggert  <eggert@twinsun.com>
104010         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
104011         Remove.
104012         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
104013         to test that it can stand by itself.  Include "exitfail.h".
104014         Clients should set exit_failure instead.
104015         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
104017 2003-07-18  Bruno Haible  <bruno@clisp.org>
104019         * modules/getndelim2: New file.
104020         * modules/getline: Share files with module getndelim2.
104021         * modules/getnline: Depend on getndelim2 instead of sharing files with
104022         it. Add getnline.c to lib_SOURCES.
104023         * MODULES.html.sh (func_all_modules): Add getndelim2.
104025 2003-07-18  Bruno Haible  <bruno@clisp.org>
104027         * m4/getndelim2.m4: New file.
104028         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
104029         invoke gl_PREREQ_GETNDELIM2.
104030         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
104031         gl_PREREQ_GETNDELIM2.
104032         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
104033         gl_GETNDELIM2.
104035 2003-07-18  Bruno Haible  <bruno@clisp.org>
104037         * lib/getndelim2.h: New file.
104038         * lib/getndelim2.c: Make into a module of its own. Include config.h,
104039         getndelim2.h.
104040         (getndelim2): Make non-static. Change return type to ssize_t.
104041         * lib/getline.h: Change argument names.
104042         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
104043         * lib/getnline.c: Include getndelim2.h.
104045 2003-07-18  Andreas Schwab  <schwab@suse.de>
104047         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
104049 2003-07-17  Karl Berry  <karl@gnu.org>
104051         * config/config.sub: update from prep.
104053 2003-07-17  Bruno Haible  <bruno@clisp.org>
104055         * modules/getnline: New file.
104056         * modules/getline: Add lib/getndelim2.c to source file list.
104057         * MODULES.html.sh (func_all_modules): Add getnline.
104059 2003-07-17  Bruno Haible  <bruno@clisp.org>
104061         * m4/getnline.m4: New file.
104063 2003-07-17  Bruno Haible  <bruno@clisp.org>
104065         * m4/Makefile.am.in: Remove file.
104066         * m4/Makefile.am: Remove file.
104067         * m4/Makefile.in: Remove file.
104069 2003-07-17  Bruno Haible  <bruno@clisp.org>
104071         * lib/getnline.h: New file.
104072         * lib/getnline.c: New file.
104073         * lib/getndelim2.c: New file, extracted from getline.c.
104074         (getndelim2): Renamed from getdelim2, with added nmax argument.
104075         * lib/getline.c: Include getndelim2.c.
104076         (getdelim2): Moved out to getndelim2.c.
104077         (getline, getdelim): Update.
104079 2003-07-17  Bruno Haible  <bruno@clisp.org>
104081         * lib/Makefile.am: Remove file.
104082         * lib/Makefile.in: Remove file.
104084 2003-07-17  Bruno Haible  <bruno@clisp.org>
104086         * configure.in: Remove file.
104087         * Makefile.in: Remove file.
104089 2003-07-17  Bruno Haible  <bruno@clisp.org>
104091         * MODULES.html.sh: Put the </BODY> right before </HTML>.
104093 2003-07-16  Karl Berry  <karl@gnu.org>
104095         * config/srclist-update: was running fixlicense twice, which caused
104096                 texinfo.tex to be nullified for some reason.  Simplify,
104097                 $gplsrc is no longer needed as far as I can see?
104099 2003-07-16  Jim Meyering  <jim@meyering.net>
104101         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
104103 2003-07-15  Paul Eggert  <eggert@twinsun.com>
104105         * config/srclist.txt: Get the following files from gettext-runtime/intl
104106         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
104107         ref-del.sin.  From Bruno Haible.
104108         * config/srclist-update (fixfile): Change grep pattern again, since the
104109         previous fix didn't work (there was another trailing $).  Use
104110         '[$]' to escape the $s.
104112 2003-07-15  Karl Berry  <karl@gnu.org>
104114         * lib/vasnprintf.c: update from gettext.
104116 2003-07-15  Karl Berry  <karl@gnu.org>
104118         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
104119         gets expanded when surrounded by '$'.
104121 2003-07-15  Jim Meyering  <jim@meyering.net>
104123         * modules/save-cwd: Don't depend on error.  From Derek Price.
104125 2003-07-15  Jim Meyering  <jim@meyering.net>
104127         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
104129 2003-07-14  Simon Josefsson  <jas@extundo.com>
104131         * modules/mempcpy: New file.
104132         * MODULES.html.sh (func_all_modules): Add mempcpy.
104134 2003-07-14  Simon Josefsson  <jas@extundo.com>
104136         * m4/mempcpy.m4: New file.
104138 2003-07-14  Simon Josefsson  <jas@extundo.com>
104140         * lib/mempcpy.h: New file.
104141         * lib/mempcpy.c: New file.
104143 2003-07-14  Paul Eggert  <eggert@twinsun.com>
104145         * modules/getdate, modules/posixtm: Depend on mktime.
104147 2003-07-14  Paul Eggert  <eggert@twinsun.com>
104149         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
104150         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
104151         unicodeio.c, unicodeio.h, unlocked-io.h:
104152         Switch from LGPL to GPL.
104154 2003-07-14  Paul Eggert  <eggert@twinsun.com>
104156         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
104157         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
104158         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
104159         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
104160         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
104161         updated automatically by ../config/srclist-update.  This changes
104162         their license from LPGL to GPL.
104164 2003-07-14  Paul Eggert  <eggert@twinsun.com>
104166         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
104167         assumed to refer to the root of the most recent stable gettext version.
104168         * config/srclistvars.sh: Add defaults for eggert.
104169         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
104170         Match "This program" as well as "The program".  This is needed
104171         for gettext.
104173 2003-07-14  Jim Meyering  <jim@meyering.net>
104175         Don't emit diagnostics.  Let callers do that.
104176         * lib/save-cwd.c: Don't include "error.h".
104177         (save_cwd): Don't call error.  Ensure that errno is valid
104178         when returning nonzero.
104180         * lib/save-cwd.h (restore_cwd): Update prototype.
104181         * lib/save-cwd.c (restore_cwd): Remove two parameters.
104182         Simplify.  Don't call error upon failure.  Let callers do that.
104183         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
104184         when auditing is enabled.  But don't bother updating the #if.
104186 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
104188         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
104189         it breaks C++ compilation.
104190         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
104192 2003-07-10  Simon Josefsson  <jas@extundo.com>
104194         * modules/strchrnul (Makefile.am): Add strchrnul.h.
104196 2003-07-10  Jim Meyering  <jim@meyering.net>
104198         * m4/clock_time.m4: Remove trailing blank.
104199         * m4/intmax_t.m4: Likewise.
104201 2003-07-10  Jim Meyering  <jim@meyering.net>
104203         * lib/vasnprintf.c: Remove trailing blanks.
104204         Make cpp indentation consistent.
104206 2003-07-09  Paul Eggert  <eggert@twinsun.com>
104208         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
104209         posixver.c, strftime.c, strnlen.c, strverscmp.c:
104210         Switch from LGPL to GPL.
104212 2003-07-09  Paul Eggert  <eggert@twinsun.com>
104214         * config/srclist.txt: Sort sublists.  Add
104215         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
104216         that differ from gnulib for one reason or another; we'd like this list
104217         to be smaller but for now let's document what we have.
104219 2003-07-08  Paul Eggert  <eggert@twinsun.com>
104221         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
104222         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
104223         and sweeter "eval x=$x".
104224         * config/srclist.txt: Get lib/argp* from glibc.
104226 2003-07-07  Paul Eggert  <eggert@twinsun.com>
104228         * lib/mktime.c: Fix some boundary cases and remove need for floating
104229         point.
104231         Issue a compile-time diagnostic if time_t is floating point, or if
104232         two's complement arithmetic is not in effect, or if arithmetic
104233         right shift does not propagate the sign.  These assumptions were
104234         all in the original code but they weren't checked.
104236         (TIME_T_MIDPOINT, verify): New macros.
104237         (__isleap): Remove; it has integer overflow problems.
104238         (leapyear): New function, without those problems.
104239         (ydhms_tm_diff): Remove; splitting into two parts.
104240         (ydhms_diff): New function, containing the arithmetic part of
104241         the old ydhms_tm_diff function.  Issue a compile-time
104242         diagnostic if we are not using C99 integer division.
104243         Avoid casts when possible.
104244         (guess_time_tm): New function, containing the checking part of
104245         the old ydhms_tm_diff function.  Return the new value, rather than
104246         the difference between it and the old.  Accept a new argument T
104247         so that *T specifies the old value.  Check for overflow in the result.
104249         (__mktime_internal): Use a time_t offset, not a long int offset.
104250         This undoes the 2003-06-04 change, which is no longer needed now
104251         that we have better overflow checking.
104252         (localtime_offset): Likewise.
104254         (__mktime_internal): Avoid harmful overflow on hosts where time_t
104255         and long are 64-bit but int is only 32-bit.
104256         (ydhms_diff): Use long int to store year1 and yday1.
104257         Issue a compile-time diagnostic if long int is not wide enough.
104259         (__mktime_internal): Use long int to store adjusted year and yday.
104260         Use plain C rather than preprocessor commands, if that doesn't
104261         affect efficiency.
104262         Check for overflow (and try to repair) after each probe
104263         rather than checking only at the very end.  This avoids some bugs
104264         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
104265         does not equal GMT offset at maximum time).
104266         Use integer to check for overflow rather than floating point; this
104267         is more portable to non-IEEE hosts, and is a tad faster.
104268         When we detect that we are oscillating between two values,
104269         don't check whether tm_isdst has the requested value, since
104270         we already know the answer.  When tm_isdst has the wrong value,
104271         use a different heuristic to find the right one, based on the
104272         extreme values actually observed in practice in tz2003a,
104273         rather than the (overly optimistic) "previous 3 calendar quarters".
104275         (not_equal_tm, print_tm, check_result): Use "const T" rather than
104276         "T const" to accommodate glibc style.
104277         (check_result): Use less-confusing report format.  "long" -> "long int.
104278         (main): Likewise.
104279         Don't loop if the iteration overflows time_t.
104280         Allow a negative step in the iteration.
104282 2003-07-06  Karl Berry  <karl@gnu.org>
104284         * config/depcomp: update from automake.
104285         * config/config.sub: update from prep.
104287 2003-07-03  Karl Berry  <karl@gnu.org>
104289         * config/config.guess: update from prep.
104291 2003-07-01  Paul Eggert  <eggert@twinsun.com>
104293         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
104294         xreadlink.c now includes it unconditionally.
104296 2003-07-01  Paul Eggert  <eggert@twinsun.com>
104298         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
104299         having it depend on HAVE_SYS_TYPES_H.
104301 2003-07-01  Bruno Haible  <bruno@clisp.org>
104303         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
104304         <sys/types.h> should be sufficient.
104305         Reported by Paul Eggert.
104307 2003-06-26  Karl Berry  <karl@gnu.org>
104309         * config/depcomp: update from automake.
104311 2003-06-26  Bruno Haible  <bruno@clisp.org>
104313         * modules/human: Depend on module stdbool.
104315 2003-06-25  Bruno Haible  <bruno@clisp.org>
104317         * modules/readlink: New file.
104318         * modules/xreadlink: Depend on it.
104319         * MODULES.html.sh (func_all_modules): Add readlink.
104321 2003-06-25  Bruno Haible  <bruno@clisp.org>
104323         * m4/readlink.m4: New file.
104325 2003-06-25  Bruno Haible  <bruno@clisp.org>
104327         * lib/readlink.c: New file.
104329 2003-06-22  Karl Berry  <karl@gnu.org>
104331         * config/srclist.txt: update mkinstalldirs from automake.
104332         * config/mkinstalldirs: update.
104334 2003-06-22  Bruno Haible  <bruno@clisp.org>
104336         Portability to mingw32.
104337         * m4/ssize_t.m4: New file, from GNU gettext.
104338         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
104339         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
104341 2003-06-22  Bruno Haible  <bruno@clisp.org>
104343         * modules/safe-read: Add m4/ssize_t.m4.
104344         * modules/xreadlink: Add m4/ssize_t.m4.
104346 2003-06-20  Bruno Haible  <bruno@clisp.org>
104348         Assume C89, so PARAMS isn't needed.
104349         * lib/unicodeio.h (PARAMS): Remove.
104350         * lib/unicodeio.c: Don't use PARAMS.
104352 2003-06-18  Karl Berry  <karl@gnu.org>
104354         * config/config.{guess,sub}: update from prep.
104356 2003-06-18  Jim Meyering  <jim@meyering.net>
104358         Merge changes from coreutils.
104359         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
104360         Remove explicit declarations of xmalloc and realloc.
104361         Include xalloc.h.
104362         (read_utmp): Remove anachronistic cast of xmalloc.
104364 2003-06-17  Paul Eggert  <eggert@twinsun.com>
104366         Assume C89, so PARAMS isn't needed.
104367         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
104368         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
104369         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
104370         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
104371         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
104372         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
104373         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
104374         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
104375         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
104376         lib/xstrtod.h, lib/xstrtol.h: Likewise.
104377         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
104378         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
104379         no longer needed. Anyway, config.h should always be included before any
104380         other file.
104382 2003-06-11  Simon Josefsson  <jas@extundo.com>
104384         * modules/sysexits: New file.
104385         * MODULES.html.sh (func_all_modules): Add sysexits.
104387 2003-06-11  Simon Josefsson  <jas@extundo.com>
104389         * lib/sysexit_.h: New file.
104391 2003-06-11  Derek Price  <derek@ximbiot.com>
104393         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
104394         necessary.
104396 2003-06-11  Bruno Haible  <bruno@clisp.org>
104398         * m4/sysexits.m4: New file.
104400 2003-06-10  Simon Josefsson  <jas@extundo.com>
104402         * lib/argp.h: New file, from glibc.
104403         * lib/argp-ba.c: New file, from glibc.
104404         * lib/argp-eexst.c: New file, from glibc.
104405         * lib/argp-fmtstream.c: New file, from glibc.
104406         * lib/argp-fmtstream.h: New file, from glibc.
104407         * lib/argp-fs-xinl.c: New file, from glibc.
104408         * lib/argp-help.c: New file, from glibc.
104409         * lib/argp-namefrob.h: New file, from glibc.
104410         * lib/argp-parse.c: New file, from glibc.
104411         * lib/argp-pv.c: New file, from glibc.
104412         * lib/argp-pvh.c: New file, from glibc.
104413         * lib/argp-xinl.c: New file, from glibc.
104415 2003-06-10  Simon Josefsson  <jas@extundo.com>
104417         * modules/strchrnul: New file.
104419 2003-06-10  Simon Josefsson  <jas@extundo.com>
104421         * modules/argp: New file.
104423 2003-06-10  Simon Josefsson  <jas@extundo.com>
104425         * m4/strchrnul.m4: New file.
104427 2003-06-10  Simon Josefsson  <jas@extundo.com>
104429         * lib/strchrnul.h: New file.
104430         * lib/strchrnul.c: New file.
104432 2003-06-10  Bruno Haible  <bruno@clisp.org>
104434         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
104436 2003-06-07  Karl Berry  <karl@gnu.org>
104438         * config/config.{guess,sub}: update from prep.
104440 2003-06-07  Jim Meyering  <jim@meyering.net>
104442         * modules/strtod: Use $(...) notation, not @...@ for
104443         AC_REPLACE'd variables.
104444         * modules/localcharset: Likewise.
104446 2003-06-07  Jim Meyering  <jim@meyering.net>
104448         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
104449         in place of my name in the copyright comment.
104450         Remove definition and uses of __P.
104452         From coreutils.
104453         * lib/stat.c: Don't declare xmalloc explicitly.
104454         Instead, include "xalloc.h".
104455         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
104456         xrealloc, and xcalloc return values.
104457         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
104458         Improve comment.
104459         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
104461 2003-06-07  Bruno Haible  <bruno@clisp.org>
104463         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
104464         avoid AC_CONFIG_LINKS.
104465         * modules/fnmatch (Makefile.am): Use explicit creation rule for
104466         fnmatch.h, to avoid AC_CONFIG_LINKS.
104467         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
104469 2003-06-07  Bruno Haible  <bruno@clisp.org>
104471         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
104472         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
104473         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
104474         directory.
104475         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
104476         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
104477         directory.
104479 2003-06-06  Jim Meyering  <jim@meyering.net>
104481         Merge from coreutils.
104482         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
104483         Consolidate declarations and initializations of *_base* locals.
104485         Merge from coreutils.
104486         This avoids a core dump on systems without GNU putenv,
104487         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
104488         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
104489         (unsetenv): New static function, from GNU libc.
104490         (rpl_putenv): Use it.
104492         * lib/modechange.c: Remove trailing blanks.
104494         Merge from coreutils.
104495         * lib/fsusage.c: Remove declaration of statfs.
104496         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
104498         * lib/posixtm.c: Include <stdbool.h> unconditionally.
104500 2003-06-06  Jim Meyering  <jim@meyering.net>
104502         * lib/stdbool_.h: Renamed from stdbool.h.in.
104504 2003-06-06  Jim Meyering  <jim@meyering.net>
104505             Bruno Haible  <bruno@clisp.org>
104507         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
104508         Adjust Makefile.am snippet not to redirect directly to target.
104509         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
104511 2003-06-05  Paul Eggert  <eggert@twinsun.com>
104513         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
104514         mismatch, look in future quarters as well as past.  This fixes a
104515         bug when processing fall-backwards gaps immediately after a long
104516         period of daylight-saving time.
104518         * lib/mktime.c: Assume freestanding C89 or better.
104519         (HAVE_LIMITS_H): Remove.  Assume it's 1.
104520         (__P): Remove; not used.
104521         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
104522         (mktime, not_equal_tm, print_tm, check_result,
104523         main): Use prototypes.  Use const * where appropriate.
104524         (main): Fix typo in testing code that uncovered by above changes.
104525         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
104527 2003-06-04  Paul Eggert  <eggert@twinsun.com>
104529         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
104530         locale.h, localeconv.  This merges changes from coreutils.
104532         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
104533         It can be removed after the next Autoconf is released.
104534         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
104535         needed.
104537 2003-06-04  Paul Eggert  <eggert@twinsun.com>
104539         * lib/mktime.c: Fix Debian bug 177940
104540         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
104541         (localtime_offset): Now long int, not time_t, because we want it
104542         to be guaranteed to be signed.  All uses changed.
104543         (__mktime_internal): If overflow would occur when adding offset,
104544         don't add it.
104546         Merge 'human' changes from coreutils.  Rewrite to support
104547         locale-specific notations like thousands separators.
104548         * lib/human.c: Simplify authorship notice.
104549         Include human.h immediately after config.h.
104550         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
104551         <limits.h>: Do not include, since human.h does.
104552         (SIZE_MAX, UINTMAX_MAX): New macros.
104553         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
104554         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
104555         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
104556         (power_letter): Renamed from suffixes.
104557         (generate_suffix_backwards): Remove.
104558         (adjust_value): Now takes int style (because of human.h changes)
104559         and long double value (for greater precision on some platforms).
104560         (group_number): New function.
104561         (human_readable): Use it.  Use integer options, not enum.
104562         Put the options before the sizes in the arg list.
104563         Support all the new options.
104564         The old human_readable function has been removed;
104565         use inttostr.h instead.
104566         (human_readable, default_block_size, humblock):
104567         Use uintmax_t, not int, for block sizes.
104568         (human_readable_inexact, block_size_types): Remove.
104569         (block_size_opts): New constant.
104570         (human_options): Renamed from human_block_size, with new signature
104571         that allows block sizes up to UINTMAX_MAX.  All callers changed.
104572         * lib/human.h: Add copyright and authorship notice.
104573         Include <limits.h> and <stdbool.h> unconditionally.
104574         (PARAMS): Remove.  All uses removed.
104575         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
104576         (enum human_inexact_style): Remove tag; now a nameless enum.
104577         (human_floor, human_ceiling, human_round_to_even): Now have
104578         values 2, 0, 1 rather than -1, 1, 0.
104579         (human_group_digits, human_suppress_point_zero, human_autoscale,
104580         human_base_1024, human_SI, human_B): New constants.
104581         (human_readable_inexact, human_block_size): Remove.
104582         (human_readable): Size args are now uintmax_t, not int.
104583         (human_options): New decl.
104585         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
104586         unnecessary now that we assume C89 or better.  This change
104587         imported from coreutils.
104589         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
104590         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
104591         in the 2003-05-30 sync from glibc.
104593         .h files should stand alone, but we shouldn't include <sys/types.h>
104594         if we can get away with just <stddef.h>.
104596         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
104597         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
104598         rather than <sys/types.h>, as we merely need size_t.
104599         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
104600         to get size_t.
104601         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
104602         Include <stdio.h>, to get FILE.
104603         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
104604         memcasecmp.h has included <stddef.h> and all we need is size_t.
104605         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
104606         our interface, instead of including <sys/types.h>
104608 2003-06-04  Paul Eggert  <eggert@twinsun.com>
104610         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
104611         now, as glibc mktime is buggy on non-glibc systems.
104613 2003-06-03  Karl Berry  <karl@gnu.org>
104615         * config/config.sub: update from prep.
104617 2003-06-02  Paul Eggert  <eggert@twinsun.com>
104619         [from coreutils]
104620         Fix some minor time-related bugs with POSIX time arguments.
104621         Some valid time stamps were being rejected (notably -1, and
104622         time stamps before 1900 on 64-bit hosts).  And some invalid
104623         time stamps were being accepted, e.g. September 31.
104625         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
104626         that we can return (time_t) -1 successfully.
104627         * lib/posixtm.c: Likewise.
104628         [HAVE_STDBOOL_H]: Include <stdbool.h>.
104629         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
104630         (t): Remove static var.
104631         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
104632         of static var.  All uses changed.
104633         (year): Do not reject years before 1900; they can occur with
104634         64-bit time_t.
104635         (posix_time_parse): Do not check for out-of-range components;
104636         that is now the caller's responsibility, since our checks were
104637         only approximations.
104638         (posixtime): Use mktime to check for out-of-range components,
104639         since it knows them exactly.
104640         If mktime returns (time_t) -1, check whether an error actually occurred
104641         by invoking localtime on -1.
104642         (main) [TEST_POSIXTIME]: Check for input data errors, and report
104643         posixtime failures better.
104644         Improve the test data (in comments only).
104646 2003-06-02  Karl Berry  <karl@gnu.org>
104648         * config/mkinstalldirs (version): new variable.
104649         (--version): new option.
104650         (usage): improve message.
104652 2003-05-30  Karl Berry  <karl@gnu.org>
104654         * lib/mktime.c: update from libc.
104656 2003-05-30  Bruno Haible  <bruno@clisp.org>
104658         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
104659         * config/config.rpath: Upgrade to gettext-0.12.1.
104661 2003-05-30  Bruno Haible  <bruno@clisp.org>
104663         * m4/gettext.m4: Upgrade to gettext-0.12.1.
104664         * m4/nls.m4: New file, from gettext-0.12.1.
104665         * m4/po.m4: New file, from gettext-0.12.1.
104666         * m4/progtest.m4: Upgrade to gettext-0.12.1.
104668 2003-05-30  Bruno Haible  <bruno@clisp.org>
104670         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
104671         * lib/localcharset.h: Likewise.
104672         * lib/localcharset.c: Likewise.
104674 2003-05-29  Karl Berry  <karl@gnu.org>
104676         * config/config.rpath: update from gettext.
104678 2003-05-28  Paul Eggert  <eggert@twinsun.com>
104680         Assume the headers required for C89 freestanding compilers.
104681         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
104682         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
104683         * m4/human.m4 (gl_HUMAN): Likewise.
104684         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
104685         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
104686         * m4/userspec.m4 (gl_USERSPEC): Likewise.
104687         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
104688         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
104689         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
104691 2003-05-28  Paul Eggert  <eggert@twinsun.com>
104693         Assume the headers required for C89 freestanding compilers.
104694         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
104695         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
104696         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
104697         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
104698         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
104699         define, since <limits.h> is guaranteed to do that.
104700         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
104701         * lib/exclude.c: Include <stdbool.h> unconditionally.
104702         * lib/tempname.c: Include <stddef.h> unconditionally.
104703         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
104704         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
104705         <stddef.h> does that.
104706         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
104707         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
104708         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
104709         needed.
104710         * lib/xstrtol.c: Likewise.
104711         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
104712         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
104714         * lib/addext.c (addext): Use assignment rather than cast, to avoid
104715         warnings on some platforms.
104717         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
104718         arbitrarily.
104720 2003-05-26  Jim Meyering  <jim@meyering.net>
104722         Merge in a change from coreutils:
104723         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
104724         that is guaranteed to be `no'.  Use `no_such_member' to indicate
104725         that condition, rather than `-1' which is slightly misleading.
104726         Change the name of the cache variable to have the gl_ prefix.
104727         Prompted by a patch from Richard Dawe for DJGPP.
104729 2003-05-24  Karl Berry  <karl@gnu.org>
104731         * config/config.guess: update from prep.
104733 2003-05-22  Karl Berry  <karl@gnu.org>
104735         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
104737 2003-05-20  Karl Berry  <karl@gnu.org>
104739         * config/config.guess: update from prep.
104741 2003-05-18  Karl Berry  <karl@gnu.org>
104743         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
104744         might actually be set by the user.
104746         * config/depcomp, install-sh, mdate-sh: update from automake.
104748 2003-05-17  Bruno Haible  <bruno@clisp.org>
104750         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
104751         invalid expansion for AC_EGREP_CPP.
104752         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
104753         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
104754         Suggested by Akim Demaille <akim@epita.fr> in
104755         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
104757 2003-05-12  Jim Meyering  <jim@meyering.net>
104759         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
104760         the space-padded-by-default conversion specifiers, %e, %k, %l.
104762 2003-05-12  Bruno Haible  <bruno@clisp.org>
104764         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
104765         the string is longer than 4 KB.
104767 2003-05-11  Karl Berry  <karl@gnu.org>
104769         * config/config.{guess,sub}: update from prep.
104771 2003-05-09  Bruno Haible  <bruno@clisp.org>
104773         * modules/error: Add m4/strerror_r.m4 to file list.
104775 2003-05-03  Bruno Haible  <bruno@clisp.org>
104777         Upgrade to Unicode-4.0.
104778         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
104779         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
104780         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
104781         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
104782         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
104783         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
104784         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
104785         Change width of U+E0100..U+E01EF from 1 to 0.
104787 2003-04-25  Jim Meyering  <jim@meyering.net>
104789         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
104790         of type size_t, not int.
104792 2003-04-25  Bruno Haible  <bruno@clisp.org>
104794         * lib/copy-file.c: Include <stddef.h>, for size_t.
104796 2003-04-21  Paul Eggert  <eggert@twinsun.com>
104798         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
104799         code which expansion is under static control.  Patch imported from
104800         Akim Demaille's patch to Bison; see
104801         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
104803 2003-04-14  Bruno Haible  <bruno@clisp.org>
104805         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
104807 2003-04-11  Jim Meyering  <jim@meyering.net>
104809         Merge changes from Coreutils.
104811         2003-03-22  Jim Meyering  <jim@meyering.net>
104813         * lib/strftime.c (widen): Cast alloca return value to proper type.
104815         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
104817         From GNU libc.
104818         * lib/strftime.c (my_strftime): Handle very large width
104819         specifications for numeric values correctly.  Improve checks for
104820         overflow.
104822         2003-01-19  Jim Meyering  <jim@meyering.net>
104824         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
104825         definitions.
104826         (nl_get_alt_digit) [! defined my_strftime]: Define.
104827         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
104828         _nl_get_alt_digit and _nl_get_walt_digit.
104830         * lib/strftime.c (my_strftime): Merge in locale-related changes from
104831         libc. These changes have no effect outside of _LIBC.
104833 2003-04-10  Bruno Haible  <bruno@clisp.org>
104835         * modules/findprog: New file.
104836         * MODULES.html.sh (func_all_modules): Add it.
104838 2003-04-10  Bruno Haible  <bruno@clisp.org>
104840         * m4/findprog.m4: New file.
104841         * m4/eaccess.m4: New file.
104843 2003-04-10  Bruno Haible  <bruno@clisp.org>
104845         * lib/findprog.h: New file, from GNU gettext.
104846         * lib/findprog.c: New file, from GNU gettext.
104848 2003-04-05  Jim Meyering  <jim@meyering.net>
104850         Merge changes from Coreutils.
104852         * lib/exclude.h (PARAMS): Remove definition and uses.
104853         * lib/exclude.c: Remove uses of `PARAMS'.
104855         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
104856         Add test-cases for DOS filenames. Declare program_name.
104857         (main): Set up program_name.  Patch by Rich Dawe.
104859         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
104860         error from mntctl.
104861         Use mntctl's return value to drive the entry-processing loop, since
104862         we can't rely on the value of the vmt_length member in the last
104863         entry.  On some systems doing so could result in exhausting
104864         virtual memory.  Based in part on a patch from Mike Jetzer.
104866 2003-04-04  Bruno Haible  <bruno@clisp.org>
104868         * modules/linebreak: New file.
104869         * MODULES.html.sh (func_all_modules): Add it.
104871 2003-04-04  Bruno Haible  <bruno@clisp.org>
104873         * m4/linebreak.m4: New file.
104875 2003-04-04  Bruno Haible  <bruno@clisp.org>
104877         * lib/linebreak.h: New file, from GNU gettext.
104878         * lib/linebreak.c: New file, from GNU gettext with slight
104879         modifications.
104880         * lib/lbrkprop.h: New file, from GNU gettext.
104882 2003-04-03  Bruno Haible  <bruno@clisp.org>
104884         * modules/utf8-ucs4: New file.
104885         * modules/utf16-ucs4: New file.
104886         * modules/ucs4-utf8: New file.
104887         * modules/ucs4-utf16: New file.
104888         * MODULES.html.sh (func_all_modules): Add them.
104890 2003-04-03  Bruno Haible  <bruno@clisp.org>
104892         * m4/utf-ucs4.m4: New file.
104893         * m4/ucs4-utf.m4: New file.
104895 2003-04-03  Bruno Haible  <bruno@clisp.org>
104897         * lib/utf8-ucs4.h: New file, from GNU gettext.
104898         * lib/utf16-ucs4.h: New file, from GNU gettext.
104899         * lib/ucs4-utf8.h: New file, from GNU gettext.
104900         * lib/ucs4-utf16.h: New file, from GNU gettext.
104902 2003-04-02  Bruno Haible  <bruno@clisp.org>
104904         * modules/binary-io: New file.
104905         * MODULES.html.sh (func_all_modules): Add it.
104907 2003-04-02  Bruno Haible  <bruno@clisp.org>
104909         * lib/binary-io.h: New file, from GNU gettext.
104911 2003-04-01  Bruno Haible  <bruno@clisp.org>
104913         * modules/pathname: New file.
104914         * MODULES.html.sh (func_all_modules): Add it.
104916 2003-04-01  Bruno Haible  <bruno@clisp.org>
104918         * lib/pathname.h: New file, from GNU gettext.
104919         * lib/concatpath.c: New file, from GNU gettext.
104921 2003-03-30  Bruno Haible  <bruno@clisp.org>
104923         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
104925 2003-03-30  Bruno Haible  <bruno@clisp.org>
104927         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
104928         function chown() doesn't exist.
104930 2003-03-28  Bruno Haible  <bruno@clisp.org>
104932         * modules/copy-file: New file.
104933         * MODULES.html.sh (func_all_modules): Add it.
104935 2003-03-28  Bruno Haible  <bruno@clisp.org>
104937         * m4/copy-file.m4: New file.
104939 2003-03-28  Bruno Haible  <bruno@clisp.org>
104941         * lib/copy-file.h: New file, from GNU gettext.
104942         * lib/copy-file.c: New file, from GNU gettext.
104944 2003-03-18  Jim Meyering  <jim@meyering.net>
104946         * lib/quote.c (quote_n): Fix typo in comment.
104948 2003-03-18  Bruno Haible  <bruno@clisp.org>
104950         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
104951         checking.
104952         * m4/onceonly_2_57.m4: Likewise.
104954 2003-03-17  Bruno Haible  <bruno@clisp.org>
104956         * m4/onceonly.m4: Require autoconf 2.54 or newer.
104957         (m4_quote): Remove macro.
104958         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
104960 2003-03-14  Jim Meyering  <jim@meyering.net>
104962         Merge changes from Coreutils.
104963         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
104964         to be const, in order to avoid warnings.
104965         (obstack_room): Likewise.
104966         (obstack_empty_p): Likewise.
104968 2003-03-14  Bruno Haible  <bruno@clisp.org>
104970         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
104971         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
104973 2003-03-13  Paul Eggert  <eggert@twinsun.com>
104975         Merge changes from Bison.
104976         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
104977         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
104978         when compiling Bison 1.875's `bitset bset = obstack_alloc
104979         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
104980         * lib/hash.c: Include <stdbool.h> unconditionally.
104982 2003-03-13  Paul Eggert  <eggert@twinsun.com>
104984         * m4/onceonly.m4 (m4_quote): New macro.
104985         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
104986         Quote AC_FOREACH variable-expansions properly.
104988 2003-03-13  Paul Eggert  <eggert@twinsun.com>
104990         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
104992 2003-03-09  Paul Eggert  <eggert@twinsun.com>
104994         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
104995         Reported by Bruce Becker; see:
104996         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
104998 2003-03-03  Paul Eggert  <eggert@twinsun.com>
104999             Bruno Haible  <bruno@clisp.org>
105001         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
105002         Reported by John Hughes, see
105003         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
105005 2003-02-20  Bruno Haible  <bruno@clisp.org>
105007         * MODULES.html.sh (func_all_modules): Add poll.
105009 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
105011         * modules/poll: New file.
105013 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
105015         * lib/poll_.h: New file.
105016         * lib/poll.c: New file.
105018 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
105020         * m4/poll.m4: New file.
105022 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
105024         * modules/mathl: New file.
105026 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
105028         * lib/mathl.h: New file.
105029         * lib/acosl.c: New file.
105030         * lib/asinl.c: New file.
105031         * lib/atanl.c: New file.
105032         * lib/ceill.c: New file.
105033         * lib/cosl.c: New file.
105034         * lib/expl.c: New file.
105035         * lib/floorl.c: New file.
105036         * lib/frexpl.c: New file.
105037         * lib/ldexpl.c: New file.
105038         * lib/logl.c: New file.
105039         * lib/sincosl.c: New file.
105040         * lib/sinl.c: New file.
105041         * lib/sqrtl.c: New file.
105042         * lib/tanl.c: New file.
105043         * lib/trigl.c: New file.
105044         * lib/trigl.h: New file.
105046 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
105048         * m4/mathl.m4: New file.
105050 2003-02-18  Bruno Haible  <bruno@clisp.org>
105052         * MODULES.html.sh (func_all_modules): Add mathl.
105054 2003-02-17  Bruno Haible  <bruno@clisp.org>
105056         * modules/mkdtemp: New module.
105057         * MODULES.html.sh (func_all_modules): Add it.
105059 2003-02-17  Bruno Haible  <bruno@clisp.org>
105061         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
105063 2003-02-17  Bruno Haible  <bruno@clisp.org>
105065         * lib/mkdtemp.h: New file, from GNU gettext.
105066         * lib/mkdtemp.c: New file, from GNU gettext.
105068 2003-02-02  Jim Meyering  <jim@meyering.net>
105070         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
105071         e.g. glibc-2.2.93.
105073 2003-01-31  Bruno Haible  <bruno@clisp.org>
105075         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
105076         'rpl_rename'.
105077         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
105078         'rpl_strnlen'.
105079         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
105080         'rpl_strtod'.
105081         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
105082         'rpl_utime'.
105084 2003-01-31  Bruno Haible  <bruno@clisp.org>
105086         * lib/rename.c: #undef rename before defining rpl_rename.
105087         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
105089 2003-01-30  Bruno Haible  <bruno@clisp.org>
105091         * modules/vasnprintf, modules/vasprintf: New modules.
105092         * MODULES.html.sh (func_all_modules): Add them.
105094 2003-01-30  Bruno Haible  <bruno@clisp.org>
105096         * m4/signed.m4: New file, from GNU gettext.
105097         * m4/longdouble.m4: New file, from GNU gettext.
105098         * m4/wchar_t.m4: New file, from GNU gettext.
105099         * m4/wint_t.m4: New file, from GNU gettext.
105100         * m4/vasnprintf.m4: New file.
105101         * m4/vasprintf.m4: New file.
105103 2003-01-30  Bruno Haible  <bruno@clisp.org>
105105         * lib/printf-args.h: New file, from GNU gettext.
105106         * lib/printf-args.c: New file, from GNU gettext.
105107         * lib/printf-parse.h: New file, from GNU gettext.
105108         * lib/printf-parse.c: New file, from GNU gettext.
105109         * lib/vasnprintf.h: New file, from GNU gettext.
105110         * lib/vasnprintf.c: New file, from GNU gettext.
105111         * lib/asnprintf.c: New file, from GNU gettext.
105112         * lib/vasprintf.h: New file, from GNU gettext with modifications.
105113         * lib/vasprintf.c: New file, from GNU gettext.
105114         * lib/asprintf.c: New file, from GNU gettext.
105116 2003-01-29  Bruno Haible  <bruno@clisp.org>
105118         * modules/stpncpy: New module.
105119         * MODULES.html.sh (func_all_modules): Add it.
105121 2003-01-29  Bruno Haible  <bruno@clisp.org>
105123         * m4/stpncpy.m4: New file.
105125 2003-01-29  Bruno Haible  <bruno@clisp.org>
105127         * lib/stpncpy.h: New file, from GNU gettext with modifications.
105128         * lib/stpncpy.c: New file, from GNU gettext with modifications.
105130 2003-01-28  Bruno Haible  <bruno@clisp.org>
105132         * modules/c-ctype: New module.
105133         * MODULES.html.sh (func_all_modules): Add it.
105135 2003-01-28  Bruno Haible  <bruno@clisp.org>
105137         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
105138         Paul Eggert.
105139         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
105140         Paul Eggert.
105142 2003-01-27  Bruno Haible  <bruno@clisp.org>
105144         * modules/xsetenv: New module.
105145         * MODULES.html.sh (func_all_modules): Add it.
105147 2003-01-27  Bruno Haible  <bruno@clisp.org>
105149         * lib/xsetenv.h: New file, from GNU gettext.
105150         * lib/xsetenv.c: New file, from GNU gettext.
105152 2003-01-23  Jim Meyering  <jim@meyering.net>
105154         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
105155         from working on systems without dirfd (at least Irix and OSF1/Tru64).
105157 2003-01-23  Bruno Haible  <bruno@clisp.org>
105159         * modules/minmax: New module.
105160         * MODULES.html.sh (func_all_modules): Add it.
105162 2003-01-23  Bruno Haible  <bruno@clisp.org>
105164         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
105165         Eggert.
105167 2003-01-22  Bruno Haible  <bruno@clisp.org>
105169         * modules/exit: New module.
105170         * MODULES.html.sh (func_all_modules): Add it.
105172 2003-01-22  Bruno Haible  <bruno@clisp.org>
105174         * lib/exit.h: New file, from GNU gettext.
105176 2003-01-19  Bruno Haible  <bruno@clisp.org>
105178         * gnulib-tool: Recognize option --extract-maintainer.
105179         (func_get_maintainer): New function.
105180         * modules/*: Add Maintainer entry.
105182 2003-01-16  Jim Meyering  <jim@meyering.net>
105184         * m4/regex.m4: The `regex' struct is both input and output.
105185         Initialize it before each use.  Patch by Tim Waugh.
105187 2003-01-16  Bruno Haible  <bruno@clisp.org>
105189         * MODULES.html.sh: Add a table of contents. Add the module name as
105190         leftmost column. Add hyperlinks.
105192 2003-01-15  Bruno Haible  <bruno@clisp.org>
105194         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
105196 2003-01-15  Bruno Haible  <bruno@clisp.org>
105198         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
105199         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
105200         suffix.
105202 2003-01-15  Bruno Haible  <bruno@clisp.org>
105204         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
105206 2003-01-15  Bruno Haible  <bruno@clisp.org>
105208         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
105209         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
105211 2003-01-14  Jim Meyering  <jim@meyering.net>
105213         * lib/same.c (same_name): Tweak a comment.
105215 2003-01-14  Bruno Haible  <bruno@clisp.org>
105217         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
105218         when a string comparison is sufficient.
105220 2003-01-14  Bruno Haible  <bruno@clisp.org>
105222         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
105223         'unsigned int'.
105225 2003-01-14  Bruno Haible  <bruno@clisp.org>
105227         * lib/hash-pjw.c: Add comment about low quality of this function.
105229 2003-01-13  Bruno Haible  <bruno@clisp.org>
105231         * modules/stpcpy: Distribute lib/stpcpy.h.
105232         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
105234 2003-01-13  Bruno Haible  <bruno@clisp.org>
105236         * modules/*: Add a description.
105237         * modules/strpbrk: Fix Makefile.am snippet.
105238         * modules/strtoimax: Fix dependencies.
105239         * modules/strtoumax: Likewise.
105241 2003-01-13  Bruno Haible  <bruno@clisp.org>
105243         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
105244         * modules/alloca (Makefile.am): All object files depend on alloca.h.
105245         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
105247 2003-01-13  Bruno Haible  <bruno@clisp.org>
105249         * gnulib-tool (func_create_testdir): Store config/* files in the main
105250         directory.
105251         * config.rpath: Move to ...
105252         * config/config.rpath: ... here.
105253         * modules/gettext: Contains config/config.rpath, not config.rpath.
105254         * modules/iconv: Likewise.
105256 2003-01-12  Paul Eggert  <eggert@twinsun.com>
105258         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
105259         to avoid collisions with libcurses and libreadline.
105261         * m4/getstr.m4: Remove.
105262         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
105264 2003-01-12  Paul Eggert  <eggert@twinsun.com>
105266         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
105267         to avoid collisions with libcurses and libreadline.
105269         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
105270         * lib/getstr.h, getstr.c: Remove.
105271         * lib/getline.c: Include "getline.h", to check interface.
105272         Move body of old getstr.c here: this defines MIN_CHUNK and
105273         declares getdelim2, which is renamed from getstr.
105274         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
105276         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
105277         All uses changed.
105278         * lib/linebuffer.h: Likewise.
105279         (readline): Remove backward-compatibility macro.
105281 2003-01-12  Paul Eggert  <eggert@twinsun.com>
105283         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
105284         to avoid collisions with libcurses and libreadline.
105285         * getstr: Remove.
105286         * MODULES.html.sh: Remove getstr.
105287         * modules/getline: Depend on unlocked-io, not getstr.
105289 2003-01-12  Jim Meyering  <jim@meyering.net>
105291         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
105293 2003-01-10  Bruno Haible  <bruno@clisp.org>
105295         * modules/alloca: Change Makefile.am requirements. Simplify Include
105296         requirements. Add lib/alloca_.h to file list.
105298 2003-01-10  Bruno Haible  <bruno@clisp.org>
105300         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
105302 2003-01-10  Bruno Haible  <bruno@clisp.org>
105304         * lib/alloca_.h: New file.
105305         * lib/getdate.y: Unconditionally include alloca.h.
105306         * lib/makepath.c: Likewise.
105307         * lib/setenv.c: Likewise.
105308         * lib/userspec.c: Likewise.
105310 2003-01-09  Karl Berry  <karl@gnu.org>
105312         * MODULES.html.sh: include `dirname $0` in PATH, to find
105313         gnulib-tool.
105315 2003-01-09  Bruno Haible  <bruno@clisp.org>
105317         * modules/stdbool: Change configure.ac, Makefile.am requirements.
105318         Simplify Include requirements. Add lib/stdbool.h.in to file list.
105320 2003-01-09  Bruno Haible  <bruno@clisp.org>
105322         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
105324 2003-01-09  Bruno Haible  <bruno@clisp.org>
105326         * lib/stdbool.h.in: New file.
105328 2003-01-09  Bruno Haible  <bruno@clisp.org>
105330         * gnulib-tool (func_all_modules): Ignore files ending in ~.
105331         * MODULES.html.sh: Likewise.
105333 2003-01-08  Jim Meyering  <jim@meyering.net>
105335         * lib/full-write.c: Undefine and define-away `const' after inclusion
105336         of errno.h, not before.  Suggestion from Bruno Haible.
105338 2003-01-08  Bruno Haible  <bruno@clisp.org>
105340         * modules/full-read: Depend on full-write.
105342 2003-01-08  Bruno Haible  <bruno@clisp.org>
105344         * lib/safe-read.c: Include specification header first, to ensure its
105345         selfcontainedness.
105346         * lib/full-write.c: Likewise.
105348 2003-01-07  Jim Meyering  <jim@meyering.net>
105350         * lib/full-write.c: Rework so that it may serve to define full_read,
105351         too.
105352         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
105354 2003-01-07  Bruno Haible  <bruno@clisp.org>
105356         * lib/strtoimax.c: Include <stdint.h> as an alternative to
105357         <inttypes.h>.
105358         * lib/xstrtol.h: Likewise.
105359         * lib/xstrtoimax.c: Likewise.
105360         * lib/xstrtoumax.c: Likewise.
105361         * lib/human.h: Likewise.
105363         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
105364         on systems that have <inttypes.h> but not <stdint.h>.
105366 2003-01-07  Bruno Haible  <bruno@clisp.org>
105368         * MODULES.html.sh: Add copyright notice.
105369         (missed_files): Omit CVS directory entries.
105370         (func_module): Make it work with sed-3.02.
105371         * MODULES.txt: Remove file.
105373 2003-01-06  Jim Meyering  <jim@meyering.net>
105375         * lib/version-etc.c: Update year in translatable copyright string.
105377 2003-01-03  Karl Berry  <karl@gnu.org>
105379         * config/config.{guess,sub}: update from prep.
105381 2003-01-02  Karl Berry  <karl@gnu.org>
105383         * doc/COPYING.DOC: belatedly updated to 1.2.
105385 2003-01-01  Karl Berry  <karl@gnu.org>
105387         * gnulib-tool (func_verify_module): report module name $module in
105388         error message, not $1.
105389         * gnulib-tool (create-testdir): don't complain if destdir couldn't
105390         be created, only if it doesn't exist.
105391         * gnulib-tool (last_checkin_date): don't expand the $Date here.
105393 2002-12-31  Paul Eggert  <eggert@twinsun.com>
105395         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
105397 2002-12-31  Paul Eggert  <eggert@twinsun.com>
105399         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
105400         memcmp if strcoll doesn't work.
105402 2002-12-31  Bruno Haible  <bruno@clisp.org>
105404         * lib/utime.c (utime_null): No need to call ftruncate if the file was
105405         nonempty.
105407 2002-12-31  Bruno Haible  <bruno@clisp.org>
105409         * lib/memcoll.c (STRCOLL): New macro.
105410         (memcoll): Use it.
105412 2002-12-31  Bruno Haible  <bruno@clisp.org>
105414         * lib/localcharset.h: New file.
105415         * lib/localcharset.c: Include it.
105416         * lib/unicodeio.c: Likewise.
105418 2002-12-31  Bruno Haible  <bruno@clisp.org>
105420         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
105421         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
105423 2002-12-31  Bruno Haible  <bruno@clisp.org>
105425         * lib/getline.h: Include <stddef.h>, for size_t.
105427         * lib/unicodeio.h: Include <stddef.h>, for size_t.
105428         * lib/unicodeio.c: Don't include <stddef.h>.
105430 2002-12-31  Bruno Haible  <bruno@clisp.org>
105432         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
105433         HAVE_TM_ZONE.
105435 2002-12-24  Karl Berry  <karl@gnu.org>
105437         * config/config.guess: update from prep.
105439 2002-12-24  Bruno Haible  <bruno@clisp.org>
105441         General infrasructure.
105442         * m4/README: Rewritten.
105443         * m4/onceonly.m4: New file.
105444         * m4/onceonly_2_57.m4: New file.
105446         Module atexit.
105447         * m4/atexit.m4: New file.
105449         Module strtod.
105450         * m4/strtod.m4: New file.
105452         Module strtol.
105453         * m4/strtol.m4: New file.
105455         Module strtoul.
105456         * m4/strtoul.m4: New file.
105458         Module memchr.
105459         * m4/memchr.m4: New file.
105461         Module memcmp.
105462         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
105463         (jm_FUNC_MEMCMP): Invoke it.
105465         Module memcpy.
105466         * m4/memcpy.m4: New file.
105468         Module memmove.
105469         * m4/memmove.m4: New file.
105471         Module memset.
105472         * m4/memset.m4: New file.
105474         Module strcspn.
105475         * m4/strcspn.m4: New file.
105477         Module strpbrk.
105478         * m4/strpbrk.m4: New file.
105480         Module strstr.
105481         * m4/strstr.m4: New file.
105483         Module strerror.
105484         * m4/strerror.m4: New file.
105486         Module mktime.
105487         * m4/mktime.m4: Renamed from jm-mktime.m4.
105488         (gl_PREREQ_MKTIME): New macro.
105489         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
105491         Module malloc.
105492         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
105493         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
105494         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
105496         Module realloc.
105497         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
105498         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
105499         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
105501         Module strftime.
105502         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
105503         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
105504         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
105505         gl_TM_GMTOFF.
105506         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
105508         Module xalloc.
105509         * m4/xalloc.m4: New file.
105511         Module alloca.
105512         * m4/alloca.m4: New file.
105514         Module putenv.
105515         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
105516         (jm_FUNC_PUTENV): Invoke it.
105518         Module setenv.
105519         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
105520         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
105521         when invoked twice.
105522         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
105523         gt_FUNC_SETENV.
105525         Module memrchr.
105526         * m4/memrchr.m4: New file.
105528         Module stpcpy.
105529         * m4/stpcpy.m4: New file.
105531         Module strcase.
105532         * m4/strcase.m4: New file.
105534         Module strdup.
105535         * m4/strdup.m4: New file.
105537         Module strnlen.
105538         * m4/strnlen.m4: New file.
105540         Module strndup.
105541         * m4/strndup.m4: New file.
105543         Module xstrtod.
105544         * m4/xstrtod.m4: New file.
105546         Module xstrtol.
105547         * m4/xstrtol.m4: New file.
105549         Module getdate.
105550         * m4/getdate.m4: New file.
105552         Module unlocked-io.
105553         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
105554         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
105555         * m4/jm-glibc-io.m4n: Remove file.
105557         Module long-options.
105558         * m4/long-options.m4: New file.
105560         Module md5.
105561         * m4/md5.m4: New file.
105563         Module sha.
105564         * m4/sha.m4: New file.
105566         Module getstr.
105567         * m4/getstr.m4: New file.
105569         Module getline.
105570         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
105571         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
105572         <sys/types.h>, for size_t. Use the function name gnu_getline, not
105573         simply getline. Infoke gl_PREREQ_GETLINE.
105575         Module obstack.
105576         * m4/obstack.m4: New file.
105578         Module hash.
105579         * m4/hash.m4: New file.
105581         Module readtokens.
105582         * m4/readtokens.m4: New file.
105584         Module strverscmp.
105585         * m4/strverscmp.m4: New file.
105587         Module stdbool.
105588         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
105589         OSF/1.
105591         Module strtoll.
105592         * m4/strtoll.m4: New file.
105594         Module strtoull.
105595         * m4/strtoull.m4: New file.
105597         Module strtoimax.
105598         * m4/strtoimax.m4: New file.
105600         Module strtoumax.
105601         * m4/strtoumax.m4: New file.
105603         Module xstrtoimax.
105604         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
105605         jm_AC_PREREQ_XSTRTOIMAX.
105606         Moved the strtol prerequisites to strtol.m4.
105607         Moved the strtoll prerequisites to strtoll.m4.
105608         Moved the strtoimax prerequisites to strtoimax.m4.
105610         Module xstrtoumax.
105611         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
105612         jm_AC_PREREQ_XSTRTOUMAX.
105613         Moved the strtoul prerequisites to strtoul.m4.
105614         Moved the strtoull prerequisites to strtoull.m4.
105615         Moved the strtoumax prerequisites to strtoumax.m4.
105617         Module chown.
105618         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
105619         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
105621         Module dup2.
105622         * m4/dup2.m4: New file.
105624         Module ftruncate.
105625         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
105626         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
105628         Module getgroups.
105629         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
105630         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
105632         Module gettimeofday.
105633         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
105634         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
105635         gl_PREREQ_GETTIMEOFDAY.
105637         Module mkdir.
105638         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
105639         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
105641         Module mkstemp.
105642         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
105643         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
105644         jm_AC_TYPE_UINTMAX_T.
105645         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
105647         Module stat.
105648         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
105649         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
105651         Module lstat.
105652         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
105653         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
105655         Module timespec.
105656         * m4/timespec.m4 (gl_TIMESPEC): New macro.
105657         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
105658         * m4/st_mtim.m4: Indentation.
105660         Module nanosleep.
105661         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
105662         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
105663         gl_PREREQ_NANOSLEEP.
105665         Module regex.
105666         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
105667         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
105668         (gl_REGEX): New macro.
105670         Module rename.
105671         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
105672         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
105674         Module rmdir.
105675         * m4/rmdir.m4: New file.
105677         Module utime.
105678         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
105679         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
105680         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
105682         Module dirname.
105683         * m4/dirname.m4: New file.
105685         Module getopt.
105686         * m4/getopt.m4: New file.
105688         Module unistd-safer.
105689         * m4/unistd-safer.m4: New file.
105691         Module fnmatch.
105692         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
105693         declaration.
105694         (gl_PREREQ_FNMATCH_EXTRA): New macro.
105695         (gl_FUNC_FNMATCH_POSIX): New macro.
105696         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
105697         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
105698         simply fnmatch.
105700         Module exclude.
105701         * m4/exclude.m4: New file.
105703         Module human.
105704         * m4/human.m4: New file.
105706         Module acl.
105707         * m4/acl.m4: Nop.
105709         Module backupfile.
105710         * m4/backupfile.m4: New file.
105711         * m4/d-ino.m4: Indentation.
105713         Module fsusage.
105714         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
105715         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
105716         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
105718         Module dirfd.
105719         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
105720         requirements.
105722         Module euidaccess.
105723         * m4/euidaccess.m4: New file.
105725         Module file-type.
105726         * m4/file-type.m4: New file.
105728         Module fileblocks.
105729         * m4/fileblocks.m4: New file.
105731         Module filemode.
105732         * m4/filemode.m4: New file.
105734         Module isdir.
105735         * m4/isdir.m4: New file.
105737         Module lchown.
105738         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
105739         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
105741         Module makepath.
105742         * m4/makepath.m4: New file.
105744         Module modechange.
105745         * m4/modechange.m4: New file.
105747         Module mountlist.
105748         * m4/mountlist.m4: New file.
105749         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
105750         Indentation.
105752         Module path-concat.
105753         * m4/path-concat.m4: New file.
105755         Module pathmax.
105756         * m4/pathmax.m4: New file.
105758         Module same.
105759         * m4/same.m4: New file.
105761         Module save-cwd.
105762         * m4/save-cwd.m4: New file.
105764         Module savedir.
105765         * m4/savedir.m4: New file.
105767         Module xgetcwd.
105768         * m4/xgetcwd.m4: New file.
105769         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
105771         Module xreadlink.
105772         * m4/xreadlink.m4: New file.
105774         Module safe-read.
105775         * m4/safe-read.m4: New file.
105777         Module safe-write.
105778         * m4/safe-write.m4: New file.
105780         Module closeout.
105781         * m4/closeout.m4: New file.
105783         Module stdio-safer.
105784         * m4/stdio-safer.m4: New file.
105786         Module getpass.
105787         * m4/getpass.m4: New file.
105789         Module getugroups.
105790         * m4/getugroups.m4: New file.
105792         Module group-member.
105793         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
105794         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
105796         Module idcache.
105797         * m4/idcache.m4: New file.
105799         Module userspec.
105800         * m4/userspec.m4: New file.
105802         Module gettime.
105803         * m4/clock_time.m4: New file.
105804         * m4/gettime.m4: New file.
105806         Module settime.
105807         * m4/settime.m4: New file.
105809         Module posixtm.
105810         * m4/posixtm.m4: New file.
105812         Module gethostname.
105813         * m4/gethostname.m4: New file.
105815         Module canon-host.
105816         * m4/canon-host.m4: New file.
105818         Module gettext.
105819         * m4/codeset.m4: New file, from gettext-0.11.5.
105820         * m4/gettext.m4: New file, from gettext-0.11.5.
105821         * m4/glibc21.m4: New file, from gettext-0.11.5.
105822         * m4/iconv.m4: New file, from gettext-0.11.5.
105823         * m4/intdiv0.m4: New file, from gettext-0.11.5.
105824         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
105825         * m4/inttypes.m4: New file, from gettext-0.11.5.
105826         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
105827         * m4/isc-posix.m4: New file, from gettext-0.11.5.
105828         * m4/lcmessage.m4: New file, from gettext-0.11.5.
105829         * m4/lib-ld.m4: New file, from gettext-0.11.5.
105830         * m4/lib-link.m4: New file, from gettext-0.11.5.
105831         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
105832         * m4/progtest.m4: New file, from gettext-0.11.5.
105833         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
105834         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
105835         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
105837         Module localcharset.
105838         * m4/localcharset.m4: New file.
105840         Module hard-locale.
105841         * m4/hard-locale.m4: New file.
105843         Module mbswidth.
105844         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
105845         onceonly macros.
105846         * m4/mbrtowc.m4: Add comment.
105848         Module memcasecmp.
105849         * m4/memcasecmp.m4: New file.
105851         Module memcoll.
105852         * m4/memcoll.m4: New file.
105854         Module unicodeio.
105855         * m4/unicodeio.m4: New file.
105857         Module rpmatch.
105858         * m4/rpmatch.m4: New file.
105860         Module yesno.
105861         * m4/yesno.m4: New file.
105863         Module exitfail.
105864         * m4/exitfail.m4: New file.
105866         Module c-stack.
105867         * m4/c-stack.m4 (gl_C_STACK): New macro.
105868         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
105870         Module error.
105871         * m4/error.m4 (gl_ERROR): New macro.
105872         (jm_PREREQ_ERROR): Use onceonly macros.
105874         Module fatal.
105875         * m4/fatal.m4: New file.
105877         Module getloadavg.
105878         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
105879         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
105881         Module getpagesize.
105882         * m4/getpagesize.m4: New file.
105884         Module getusershell.
105885         * m4/getusershell.m4: New file.
105887         Module physmem.
105888         * m4/physmem.m4: New file.
105890         Module posixver.
105891         * m4/posixver.m4: New file.
105893         Module quotearg.
105894         * m4/quotearg.m4: New file.
105896         Module quote.
105897         * m4/quote.m4: New file.
105899         Module readutmp.
105900         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
105902         Module sig2str.
105903         * m4/sig2str.m4: New file.
105905         Other.
105906         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
105907         ulonglong.m4.
105908         * m4/intmax_t.m4: New file.
105909         * m4/d-type.m4: Indentation.
105910         * m4/jm-macros.m4: Update.
105911         * m4/prereq.m4 (jm_PREREQ): Update.
105912         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
105913         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
105914         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
105915         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
105916         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
105917         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
105918         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
105919         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
105920         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
105921         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
105922         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
105923         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
105924         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
105925         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
105926         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
105927         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
105928         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
105929         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
105930         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
105932 2002-12-24  Bruno Haible  <bruno@clisp.org>
105934         * MODULES.txt: Update according to m4/ changes.
105936         Module gettext.
105937         * config.rpath: New file, from gettext-0.11.5.
105939         * modules/*: New module descriptions.
105940         * gnulib-tool: New file.
105941         * MODULES.html.sh: New file.
105943 2002-12-21  Karl Berry  <karl@gnu.org>
105945         * doc/fdl.texi: update to version 1.2.
105947 2002-12-19  Karl Berry  <karl@gnu.org>
105949         * config/config.guess: update from prep.
105951 2002-12-18  Bruno Haible  <bruno@clisp.org>
105953         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
105954         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
105956 2002-12-17  Bruno Haible  <bruno@clisp.org>
105958         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
105959         stdlib.h, string.h.
105961 2002-12-17  Bruno Haible  <bruno@clisp.org>
105963         * lib/canon-host.c (strdup): Remove unused declaration.
105965         * lib/fsusage.c: Include full_read.h.
105966         (get_fs_usage): Use full_read instead of safe_read.
105968         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
105970 2002-12-12  Karl Berry  <karl@gnu.org>
105972         * config/config.guess: update from prep.
105974 2002-12-11  Bruno Haible  <bruno@clisp.org>
105976         * m4/setenv.m4: New file, from gettext-0.11.5.
105978 2002-12-11  Bruno Haible  <bruno@clisp.org>
105980         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
105981         not unsetenv().
105982         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
105983         modifications:
105985         2002-12-11  Bruno Haible  <bruno@clisp.org>
105987                 * setenv.c (alloca): Fall back to malloc.
105988                 (freea): New macro.
105989                 (setenv): Use freea() to free memory allocated with alloca().
105991         2002-11-13  Bruno Haible  <bruno@clisp.org>
105993                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
105994                 function declarations.
105995                 * unsetenv.c (unsetenv): Likewise.
105997         2002-03-04  Bruno Haible  <bruno@clisp.org>
105999                 Portability to AIX 4.3.3.
106000                 * unsetenv.c: New file, extracted from setenv.c.
106001                 * setenv.c: Move the unsetenv() function to unsetenv.c.
106003         2001-12-20  Bruno Haible  <bruno@clisp.org>
106005                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
106006                 use malloc instead. For SunOS 4.
106008         2001-12-11  Bruno Haible  <bruno@clisp.org>
106010                 * setenv.c: Declare alloca.
106011                 (compar_fn_t): New typedef.
106012                 (KNOWN_VALUE, STORE_VALUE): Use it.
106014         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
106015         setenv.h.
106017 2002-12-10  Paul Eggert  <eggert@twinsun.com>
106019         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
106020         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
106021         Choose values that are less likely to collide with system fnmatch
106022         options.
106023         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
106024         defined (e.g., a pure POSIX system).
106025         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
106026         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
106028 2002-12-06  Paul Eggert  <eggert@twinsun.com>
106030         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
106031         a pain in practice to deal with generated m4 files.  This change
106032         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
106034         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
106035         and jm-glibc-io.m4, as they are no longer a special case.
106036         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
106037         kludge and the auto-generation stuff.  Check only whether the
106038         functions are declared, not whether they exist, since older hosts
106039         that don't declare the functions can't use the optimization anyway.
106041 2002-12-06  Jim Meyering  <jim@meyering.net>
106043         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
106045         Merge in changes from libc's misc/error.c, in preparation
106046         for the merge of gnulib's changes back into libc.
106048         * lib/error.c (_): Define only if not already defined.
106049         Move definition to follow all #include directives.
106050         Include unlocked-io.h only if !_LIBC.
106051         [_LIBC]: Include <libio/libioP.h>.
106052         [USE_IN_LIBIO]: Include <libio/iolibio.h>
106053         (fflush): Tweak definition to use INTUSE.
106054         (putc): Define.
106056 2002-12-05  Paul Eggert  <eggert@twinsun.com>
106058         * lib/alloca.c [defined emacs]: Include "lisp.h".
106059         (xalloc_die) [defined emacs]: New macro.
106060         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
106061         [! defined emacs]: Include <xalloc.h>.
106062         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
106063         (pointer): Typedef to POINTER_TYPE *.
106064         (malloc): Remove decl; we now always use xmalloc.
106065         (alloca): Use old-style definition, since Emacs needs this.
106066         Check for arithmetic overflow when computing combined size.
106068 2002-12-04  Paul Eggert  <eggert@twinsun.com>
106070         Do not generate unlocked-io.h automatically, since it's easier to
106071         maintain it by hand.
106073         * lib/unlocked-io.h: New file, from GNU diffutils,
106074         but with proper copyright notice and attribution.
106075         * lib/gen-uio: Remove.
106076         * lib/Makefile.am: Add copyright notice.
106077         (libfetish_a_SOURCES): Add unlocked-io.h.
106078         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
106079         (DISTCLEANFILES, io_functions): Remove macros.
106080         (EXTRA_DIST): Remove gen_uio.
106081         (unlocked-io.h): Remove rule.
106083 2002-12-04  Jim Meyering  <jim@meyering.net>
106085         Reflect the fact that stat.c and lstat.c are no longer generated.
106086         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
106087         (DISTCLEANFILES): Likewise.
106088         (EXTRA_DIST): Likewise.
106089         (all_local): Don't depend on stat.c or lstat.c.
106090         (stat.c, lstat.c): Remove rules.
106091         (EXTRA_DIST): Remove xstat.in.
106093         * lib/xstat.in: Remove file.  Contents moved into stat.c.
106094         * lib/stat.c: New file.  Contents mostly from xstat.in.
106095         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
106096         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
106098         * lib/safe-read.c: Rework so that it may serve to define safe_write,
106099         too.
106100         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
106102 2002-12-03  Jim Meyering  <jim@meyering.net>
106104         * lib/safe-read.c, safe-write.c: Change variable names and comments,
106105         but not semantics, to minimize the differences between these two files.
106106         (safe_read): Change comment to mention SAFE_READ_ERROR.
106108         * lib/safe-read.c (IS_EINTR): Define.
106109         (safe_read): Use IS_EINTR in place of in-function cpp directives.
106111 2002-12-02  Jim Meyering  <jim@meyering.net>
106113         * lib/safe-read.c (EINTR): Define.
106114         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
106115         (INT_MAX): Provide fallback.
106116         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
106118         * lib/safe-read.h (SAFE_READ_ERROR): Define.
106120 2002-12-02  Bruno Haible  <bruno@clisp.org>
106122         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
106123         Define, taken from safe-read.c.
106124         (INT_MAX): Provide fallback.
106125         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
106126         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
106128         * lib/safe-read.c (EINTR): Remove definition.
106129         (safe_read): Don't use EINTR if it is absent.
106131 2002-12-01  Jim Meyering  <jim@meyering.net>
106133         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
106134         zero.
106135         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
106137 2002-11-27  Paul Eggert  <eggert@twinsun.com>
106139         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
106140         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
106141         with `if (! (value < limit)) abort ();', for readability.
106143 2002-11-26  Karl Berry  <karl@gnu.org>
106145         * lib/strdup.c: copy from libc again, with jim's ok.
106146         * lib/.cppi-disable: re-add strdup.c
106148 2002-11-25  Karl Berry  <karl@gnu.org>
106150         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
106151         instead of "strtol.c".
106153 2002-11-25  Karl Berry  <karl@gnu.org>
106155         * config/install-sh: update from automake for variable quoting, $0 in
106156         error msgs, etc.
106158         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
106159         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
106160         entry.
106162 2002-11-25  Jim Meyering  <jim@meyering.net>
106164         * lib/mktime.c: Sync from libc, now that it has the latest fix.
106166 2002-11-24  Karl Berry  <karl@gnu.org>
106168         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
106169         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
106171 2002-11-24  Jim Meyering  <jim@meyering.net>
106173         Update from coreutils:
106175         * lib/mktime.c: Merge in changes from libc.
106177         Avoid a link-time failure on some Linux systems.
106178         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
106179         (otherwise).
106180         (__mon_yday): Declare with the STATIC attribute.
106181         (__mktime_internal): Likewise.
106182         Based on a report from Greg Schafer.
106184 2002-11-23  Jim Meyering  <jim@meyering.net>
106186         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
106187         Use `unsigned', not `int', as type of index.
106189         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
106191         * lib/fsusage.c: Remove unneeded parentheses around operands of
106192         `defined'.
106194 2002-11-22  Paul Eggert  <eggert@twinsun.com>
106196         * lib/quotearg.h: Allow multiple inclusion by surrounding with
106197         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
106198         so that we can be included first.
106199         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
106200         * lib/quotearg.c: Include quotearg.h immediately after config.h.
106201         No need to include stddef.h or sys/types.h any more.
106202         Surround local include files with "", not "<>".
106203         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
106204         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
106205         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
106206         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
106207         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
106208         (ISPRINT): Remove; no longer needed now that we assume C89.
106210         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
106211         Preserve errno.
106213         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
106214         quotearg_char): Use SIZE_MAX rather than
106215         (size_t) -1 when we are talking about "infinity".
106217         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
106219 2002-11-22  Paul Eggert  <eggert@twinsun.com>
106221         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
106222         hint that one should use `if (! x) abort ();' rather than `assert
106223         (x);', and anyway it's one less thing to worry about configuring.
106224         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
106225         hash_rehash, hash_insert): Use abort rather than assert.
106227 2002-11-22  Bruno Haible  <bruno@clisp.org>
106229         * lib/safe-read.h: Assume C89. Add comments.
106230         (safe_read): Change return type to size_t.
106231         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
106232         byte counts > SSIZE_MAX correctly.
106233         * lib/safe-write.h: New file.
106234         * lib/safe-write.c: New file.
106235         * lib/full-read.h: New file.
106236         * lib/full-read.c: New file.
106237         * lib/full-write.h: Assume C89. Add comments.
106238         * lib/full-write.c: Include safe-write.h.
106239         (full_write): Rewritten to use safe_write.
106240         Suggested by Jim Meyering and Paul Eggert.
106242 2002-11-21  Jim Meyering  <jim@meyering.net>
106244         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
106246         Merge in changes from the coreutils.
106248         2002-09-25  Paul Eggert  <eggert@twinsun.com>
106249         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
106250         <stdint.h>.
106251         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
106252         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
106253         int.  Work more efficiently if X is the same width as uintmax_t.
106254         Do not compare X to -1, to avoid bogus compiler warning.
106255         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
106256         Don't assume that f_frsize and f_bsize are the same type.
106258         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
106259         warning on FreeBSD.
106261         * lib/makepath.c (make_path): Restore umask *before* creating the final
106262         component.
106263         (make_path): Minor reformatting.
106265         * lib/xmalloc.c: Adjust to work with new autoconf macros,
106266         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
106267         HAVE_MALLOC/HAVE_REALLOC.
106269         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
106270         dummy ones.  At least on GNU/Linux systems, `auto' means something
106271         else.
106272         From Michael Stone.
106274 2002-11-21  Bruno Haible  <bruno@clisp.org>
106276         Remove case insensitive option matching.
106277         * lib/argmatch.h (argcasematch): Remove declaration.
106278         (ARGCASEMATCH): Remove macro.
106279         (__xargmatch_internal): Remove case_sensitive argument.
106280         (XARGMATCH): Update.
106281         (XARGCASEMATCH): Remove macro.
106282         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
106283         case_sensitive argument.
106284         (argcasematch): Remove function.
106285         (__xargmatch_internal): Remove case_sensitive argument.
106286         (main): Use XARGMATCH instead of XARGCASEMATCH.
106288         * lib/xmalloc.c: Change compile-time error message. Add comment about
106289         required autoconf version.
106291 2002-11-20  Paul Eggert  <eggert@twinsun.com>
106293         Merge argmatch cleanups from Bison.  Assume C89.
106295         * lib/argmatch.c: Include config.h here, not in argmatch.h.
106296         Include stdlib.h, for EXIT_FAILURE.
106297         Always include <string.h>, since we assume C89.
106298         (EXIT_FAILURE): Remove pre-C89 bug workaround.
106299         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
106300         Include <stddef.h> instead, since it's all we need for size_t.
106301         (PARAMS): Remove.  All uses removed.
106302         (ARRAY_CARDINALITY): Do not bother to #undef.
106303         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
106304         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
106305         Remove unnecessary parentheses.
106306         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
106307         Insert necessary parentheses.
106308         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
106309         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
106311 2002-11-19  Bruno Haible  <bruno@clisp.org>
106313         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
106314         * lib/mbswidth.h: Include <stddef.h>, for size_t.
106316         * lib/mbswidth.h (PARAMS): Remove macro.
106317         (mbswidth, mbsnwidth): Use ANSI C function declarations.
106318         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
106320         * lib/gcd.h (PARAMS): Remove macro.
106321         (gcd): Use ANSI C function declarations.
106322         * lib/gcd.c (gcd): Likewise.
106324 2002-11-15  Bruno Haible  <bruno@clisp.org>
106326         * lib/strcspn.c: Include <stddef.h>.
106327         (strcspn): Use ANSI C function declaration. Change return type to
106328         size_t. Use NULL.
106329         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
106330         (strpbrk): Use NULL.
106331         * lib/strpbrk.h (PARAMS): Remove macro.
106332         (strpbrk): Use ANSI C function declaration.
106333         * lib/strstr.c: Don't include <sys/types.h>.
106334         * lib/strstr.h (PARAMS): Remove macro.
106335         (strstr): Use ANSI C function declarations.
106337 2002-11-14  Karl Berry  <karl@gnu.org>
106339         * config/mkinstalldirs: `do' on separate line, instead of
106340         `for var; do'.
106342 2002-11-06  Bruno Haible  <bruno@clisp.org>
106344         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
106345         * lib/gcd.c (gcd): Likewise.
106347 2002-11-05  Bruno Haible  <bruno@clisp.org>
106349         * lib/gcd.h: New file, from gettext-0.11.5.
106350         * lib/gcd.c: New file, from gettext-0.11.5.
106352 2002-11-05  Bruno Haible  <bruno@clisp.org>
106354         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
106355         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
106356         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
106357         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
106359         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
106360         <libintl.h>.
106361         * lib/makepath.c: Include gettext.h instead of <locale.h> and
106362         <libintl.h>.
106364         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
106365         * lib/human.c: Include gettext.h instead of <libintl.h>.
106366         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
106367         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
106368         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
106369         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
106370         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
106371         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
106372         (textdomain): Remove definition.
106373         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
106375         * lib/long-options.c: Remove include of <libintl.h> and definition of
106376         _.
106377         * lib/same.c: Remove include of <libintl.h> and definition of _.
106379 2002-11-04  Owen Taylor  <otaylor@redhat.com>
106381         * lib/config.charset: A few additions for Solaris.
106383 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
106385         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
106386         * lib/localcharset.c (locale_charset): Declare as extern "C".
106388 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
106390         * lib/config.charset: msdos in uk_UA uses CP1125.
106392 2002-11-04  Bruno Haible  <bruno@clisp.org>
106394         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
106395         * lib/strcase.h: New file, from GNU gettext-0.11.5.
106396         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
106397         * lib/strstr.h: New file, from GNU gettext-0.11.5.
106398         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
106400 2002-11-04  Bruno Haible  <bruno@clisp.org>
106402         * lib/localcharset.c (locale_charset): Don't return an empty string.
106404 2002-11-04  Bruno Haible  <bruno@clisp.org>
106406         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
106407         aliases.
106409 2002-11-04  Bruno Haible  <bruno@clisp.org>
106411         * lib/config.charset: Update for newest glibc. Add canonical names
106412         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
106414 2002-11-04  Bruno Haible  <bruno@clisp.org>
106416         * lib/config.charset: Add support for NetBSD.
106418 2002-11-04  Bruno Haible  <bruno@clisp.org>
106420         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
106422 2002-11-01  Bruno Haible  <bruno@clisp.org>
106424         * configure.in: Add AC_CONFIG_AUX_DIR call.
106425         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
106426         test/Makefile.
106427         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
106429 2002-09-28  Karl Berry  <karl@gnu.org>
106431         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
106432         installed automake until the next release, since changes have been
106433         made.
106435 2002-09-25  Karl Berry  <karl@gnu.org>
106437         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
106438         * lib/getopt*: copy from libc/posix.
106439         * lib/gettext.h: copy from gettext.
106440         * lib/.cppi-disable: add strdup.c, gettext.h.
106442 2002-09-25  Karl Berry  <karl@gnu.org>
106444         * config/srclist.txt: enable gettext.h check.
106445         * config/config.{guess,sub}: update from prep.
106446         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
106447                 from automake 1.6.3.
106448         See srclist*.
106450 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
106452         * regex.c (PATFETCH): Remove the translating fetch.
106453         (PATFETCH_RAW): Rename to PATFETCH.
106454         (set_image_of_range): New fun.
106455         (SET_RANGE_TABLE_WORK_AREA): Use it.
106456         (regex_compile): Don't translate the pattern chars so eagerly.
106457         Only do it when inserting an `exactn' bytecode or when handling
106458         a char-range.
106459         (mutually_exclusive_p): Avoid empty statement.
106461 2002-07-06  Jim Meyering  <meyering@lucent.com>
106463         * m4/README: Don't mention Makefile.am.in.
106464         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
106466 2002-07-01  Jim Meyering  <meyering@lucent.com>
106468         * lib/c-stack.c: Include sys/time.h.
106469         From Volker Borchert.
106471 2002-06-26  Paul Eggert  <eggert@twinsun.com>
106473         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
106475 2002-06-26  Paul Eggert  <eggert@twinsun.com>
106477         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
106478         New macro.  Use it uniformly instead of
106479         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
106480         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
106481         reported by Vin Shelton.
106483 2002-06-22  Paul Eggert  <eggert@twinsun.com>
106485         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
106486         Do not assume SA_SIGINFO behavior.
106487         Bug reported by Jim Meyering on NetBSD 1.5.2.
106489 2002-06-22  Jim Meyering  <meyering@lucent.com>
106491         * m4/c-stack.m4: New file, from diffutils-2.8.2.
106492         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
106494         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
106495         now that configure.ac uses AC_GNU_SOURCE.
106496         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
106497         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
106499         Update to latest tools.  Suggestions from Paul Eggert.
106500         * m4/stdbool.m4: New file, from diffutils-2.8.2.
106501         * m4/gnu-source.m4: Update from diffutils-2.8.2.
106502         * m4/fnmatch.m4: Likewise.
106503         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
106504         to AC_HEADER_STDBOOL
106506 2002-06-22  Jim Meyering  <meyering@lucent.com>
106508         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
106509         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
106511 2002-06-22  Jim Meyering  <meyering@lucent.com>
106513         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
106515         * lib/exitfail.c, exitfail.h: Likewise.
106516         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
106518         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
106519         of fnmatch.h.
106520         (EXTRA_DIST): Add fnmatch_loop.c.
106521         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
106523         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
106524         * lib/fnmatch.c: Update from diffutils-2.8.2.
106525         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
106526         * lib/fnmatch.h: Remove file.
106528 2002-06-21  Jim Meyering  <meyering@lucent.com>
106530         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
106531         * m4/mbrtowc.m4: Likewise.
106533         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
106534         * m4/mbswidth.m4: Reflect name change:
106535         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
106536         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
106538         * m4/lib-link.m4: Update from gettext-0.11.2.
106539         * m4/gettext.m4: Likewise.
106541         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
106542         From Alfred M. Szmidt.
106544 2002-06-18  Paul Eggert  <eggert@twinsun.com>
106546         * lib/file-type.h: Report an error if neither S_ISREG nor
106547         S_IFREG is defined, instead of using a test specific to glibc
106548         2.2.  This should be safe, since POSIX requires S_ISREG and
106549         Unix Version 7 had S_IFREG.  We don't need to check for
106550         <sys/types.h> since we don't use any symbols that it defines.
106552 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
106554         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
106555         $@-t, so that each temporary file name is unique and valid in the first
106556         8 characters, for operation under DOS.
106558 2002-06-15  Paul Eggert  <eggert@twinsun.com>
106560         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
106562 2002-06-15  Jim Meyering  <meyering@lucent.com>
106564         Work even with DJGPP 2.03, which lacks support for symlinks.
106565         From Richard Dawe.
106566         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
106567         is defined.
106568         * lib/lchown.c (S_ISLNK): Likewise.
106570 2002-06-15  Jim Meyering  <meyering@lucent.com>
106572         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
106573         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
106574         have been included before this file.
106576 2002-06-14  Jim Meyering  <meyering@lucent.com>
106578         * lib/file-type.h: Use the version from diffutils-2.8.2.
106579         * lib/file-type.c: Likewise.
106581 2002-06-07  Jim Meyering  <meyering@lucent.com>
106583         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
106584         They're needed at least for NetBSD 1.5.2.
106585         ($statxfs_includes): Include those same headers.
106586         ($statxfs_includes): Include sys/vfs.h if available.
106587         ($statxfs_includes): Likewise for sys/statvfs.h.
106588         Check for the following members in both structs statfs and statvfs:
106589         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
106591 2002-06-01  Jim Meyering  <meyering@lucent.com>
106593         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
106594         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
106596 2002-05-28  Jim Meyering  <meyering@lucent.com>
106598         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
106599         Reported by Volker Borchert.
106601 2002-05-27  Jim Meyering  <meyering@lucent.com>
106603         Fix a problem seen only on nonconforming systems whereby ls.c's
106604         use of localtime, and then of gettimeofday would cause trouble:
106605         the localtime call used to initialize rpl_gettimeofday's save
106606         mechanism would clobber ls's current local time information so
106607         that in any long listing the first file would always be listed
106608         with date 1970-01-01.  Analysis by Volker Borchert.
106610         * lib/gettimeofday.c (localtime): Undefine.
106611         (rpl_localtime): New function.
106613 2002-05-27  Jim Meyering  <meyering@lucent.com>
106615         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
106616         localtime.
106618         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
106619         use the replacement function; it wouldn't resolve at link time.
106620         Reported by Volker Borchert.
106622 2002-05-22  Jim Meyering  <meyering@lucent.com>
106624         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
106625         file-type.h.
106626         * lib/file-type.h: New file.
106627         * lib/file-type.c (file_type): New file/function.  Extracted from
106628         diffutils.
106630 2002-04-30  Jim Meyering  <meyering@lucent.com>
106632         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
106634 2002-04-29  Paul Eggert  <eggert@twinsun.com>
106636         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
106638 2002-04-29  Paul Eggert  <eggert@twinsun.com>
106640         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
106641         Do not check for alloca.h (no longer used) or stdbool.h (was never
106642         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
106644 2002-04-29  Paul Eggert  <eggert@twinsun.com>
106646         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
106648 2002-04-29  Jim Meyering  <meyering@lucent.com>
106650         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
106651         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
106652         Use AC_FUNC_STRNLEN here instead.
106654         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
106655         With autoconf-2.53a, it's part of AC_PROG_CC.
106657 2002-04-28  Paul Eggert  <eggert@twinsun.com>
106659         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
106660         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
106662 2002-04-28  Paul Eggert  <eggert@twinsun.com>
106664         * lib/sig2str.h, lib/sig2str.c: New files.
106665         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
106667 2002-04-28  Paul Eggert  <eggert@twinsun.com>
106669         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
106670         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
106671         of 127, since 64 is the largest conceivable number for ancient
106672         nonstandard hosts.
106673         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
106675 2002-04-28  Jim Meyering  <meyering@lucent.com>
106677         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
106679 2002-04-24  Jim Meyering  <meyering@lucent.com>
106681         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
106682         (jm_PREREQ): Use it.
106684         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
106685         mach/mach.h fcntl.h.
106686         Check for this function: setlocale.
106688 2002-04-24  Jim Meyering  <meyering@lucent.com>
106690         * lib/gettext.h: New file, from Gettext.
106691         * lib/Makefile.am (INCLUDES): Remove -I../intl.
106692         (libfetish_a_SOURCES): Add gettext.h.
106694 2002-04-16  Jim Meyering  <meyering@lucent.com>
106696         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
106697         ut_pid, ut_id, ut_exit.
106699 2002-04-16  Jim Meyering  <meyering@lucent.com>
106701         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
106702         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
106703         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
106705 2002-04-12  Jim Meyering  <meyering@lucent.com>
106707         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
106708         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
106709         existence of the getmntinfo function.  Needed for Darwin 5.3.
106711         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
106712         This is necessary at least on Darwin 5.3.
106714         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
106715         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
106716         strnlen.o in the library, and that makes some versions of ranlib
106717         object.
106719 2002-04-12  Jim Meyering  <meyering@lucent.com>
106721         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
106723 2002-04-09  Jim Meyering  <meyering@lucent.com>
106725         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
106726         to be more precise.  Rather than saying we're checking whether the
106727         function `works', say what we're testing.
106728         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
106729         Reported by Bruno Haible.
106731 2002-03-10  Jim Meyering  <meyering@lucent.com>
106733         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
106734         Suggestion from Santiago Vila.
106736 2002-03-08  Jim Meyering  <meyering@lucent.com>
106738         * lib/rename.c: Mention that this wrapper is needed also on
106739         mips-dec-ultrix4.4 systems.
106741 2002-03-02  Jim Meyering  <meyering@lucent.com>
106743         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
106744         not HAVE_CLOCK_SETTIME.
106746 2002-02-27  Paul Eggert  <eggert@twinsun.com>
106748         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
106749         Check for clock_settime.
106751 2002-02-27  Paul Eggert  <eggert@twinsun.com>
106753         * lib/nanosleep.h: Rename to....
106754         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
106756         * lib/gettime.c: New file.
106757         * lib/settime.c: New file.
106758         * lib/stime.c: Remove.
106760         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
106761         timespec.h.  Remove nanosleep.h.
106763 2002-02-25  Paul Eggert  <eggert@twinsun.com>
106765         * m4/acl.m4: New file.
106766         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
106767         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
106769 2002-02-25  Paul Eggert  <eggert@twinsun.com>
106771         * lib/acl.c, lib/acl.h: New files.
106772         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
106774 2002-02-24  Jim Meyering  <meyering@lucent.com>
106776         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
106777         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
106778         cause trouble.  Reported by Nelson Beebe.
106780 2002-02-23  Paul Eggert  <eggert@twinsun.com>
106782         * lib/path-concat.c (xpath_concat): Reorder code to pacify
106783         compilers that don't know that xalloc_die never returns.
106785 2002-02-20  Jim Meyering  <meyering@lucent.com>
106787         * lib/getdate.c: Regenerate using bison-1.33.
106789 2002-02-17  Jim Meyering  <meyering@lucent.com>
106791         * config/config.guess (main): Don't use `head -1'; it's no longer
106792         portable. Use `sed 1q' instead.
106794 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
106796         * m4/codeset.m4: Upgrade to gettext-0.11.
106797         * m4/gettext.m4: Upgrade to gettext-0.11.
106798         * m4/glibc21.m4: Upgrade to gettext-0.11.
106799         * m4/iconv.m4: Upgrade to gettext-0.11.
106800         * m4/isc-posix.m4: Upgrade to gettext-0.11.
106801         * m4/lcmessage.m4: Upgrade to gettext-0.11.
106802         * m4/lib-ld.m4: New file, from gettext-0.11.
106803         * m4/lib-link.m4: New file, from gettext-0.11.
106804         * m4/lib-prefix.m4: New file, from gettext-0.11.
106805         * m4/progtest.m4: Upgrade to gettext-0.11.
106807 2002-02-15  Paul Eggert  <eggert@twinsun.com>
106809         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
106810         (jm_PREREQ): Use it.
106812 2002-02-15  Paul Eggert  <eggert@twinsun.com>
106814         * lib/posixver.c, lib/posixver.h: New files.
106815         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
106817 2002-02-02  Paul Eggert  <eggert@twinsun.com>
106818             Bruno Haible  <bruno@clisp.org>
106820         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
106821         (fwrite_success_callback): New declaration.
106822         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
106823         print_unicode_char. Call failure callback instead of error.
106824         (fwrite_success_callback): New function.
106825         (exit_failure_callback): New function.
106826         (fallback_failure_callback): New function.
106827         (print_unicode_char): Call unicode_to_mb.
106829 2002-01-26  Jim Meyering  <meyering@lucent.com>
106831         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
106832         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
106834 2002-01-26  Jim Meyering  <meyering@lucent.com>
106836         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
106838 2002-01-22  Paul Eggert  <eggert@twinsun.com>
106840         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
106842 2002-01-22  Jim Meyering  <meyering@lucent.com>
106844         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
106845         Otherwise, some versions of automake would omit the rule that makes
106846         Makefile from Makefile.in.
106848 2002-01-21  Paul Eggert  <eggert@twinsun.com>
106850         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
106851         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
106852         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
106853         (memcoll): Set errno to zero if there is no error.
106855         * lib/quotearg.c (quotearg_buffer_restyled):
106856         Fix bug with quoting buffers containing NUL when backslashing escapes.
106857         This bug was exposed by the other changes in this patch.
106858         (quotearg_n_options): New arg ARGSIZE.
106859         All callers changed.
106860         (quoting_options_from_style): New function.
106861         (quotearg_n_style): Use it.
106862         (quotearg_n_style_mem): New function.
106864         * lib/quotearg.h (quotearg_n_style_mem): New function.
106866 2002-01-19  Jim Meyering  <meyering@lucent.com>
106868         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
106869         Remove useless quotes: DF_PROG="df".
106870         * m4/strnlen.m4: New file.
106872 2002-01-16  Paul Eggert  <eggert@twinsun.com>
106874         * lib/backupfile.c (ISDIGIT): Comment fix.
106875         * lib/getdate.y (ISDIGIT): Likewise.
106876         * lib/posixtm.c (ISDIGIT, year): Likewise.
106877         * lib/strverscmp.c (ISDIGIT): Likewise.
106878         * lib/userspec.c (ISDIGIT): Likewise.
106880 2002-01-16  Jim Meyering  <meyering@lucent.com>
106882         * lib/getdate.y: Add three semicolons, each just before a closing
106883         brace. Bison (as of version 1.31) no longer papers over that mistake.
106885 2002-01-05  Jim Meyering  <meyering@lucent.com>
106887         * lib/version-etc.c (version_etc_copyright): Update copyright year.
106889 2001-12-19  Paul Eggert  <eggert@twinsun.com>
106891         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
106892         not silently exit merely because the output buffer happens to
106893         have nothing pending.
106895 2001-12-18  Paul Eggert  <eggert@twinsun.com>
106897         See the big note in ../ChangeLog.
106898         * lib/human.c (suffixes): Prefer K to k for 1024.
106899         (generate_suffix_backwards): New function.
106900         (human_readable_inexact): Use it.
106901         * lib/xstrtol.c (__xstrtol): If there is no number but there
106902         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
106903         Accept 'K' as well as 'k'.
106905 2001-12-15  Jim Meyering  <meyering@lucent.com>
106907         * lib/regex.h (__restrict_arr): Update from libc.
106909         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
106910         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
106911         (STREQ): Define.
106913 2001-12-14  Jim Meyering  <meyering@lucent.com>
106915         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
106916         Suggestion from Bruno Haible.
106918 2001-12-10  Jim Meyering  <meyering@lucent.com>
106920         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
106921         xrealloc, Instead, include "xalloc.h".
106922         (initbuffer): Don't cast xmalloc return value to char*.
106923         (readline): Reword comment.
106924         Don't cast xrealloc return value to char*
106925         Return NULL, not 0.
106927 2001-12-09  Jim Meyering  <meyering@lucent.com>
106929         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
106930         about `signed and unsigned type in conditional expression'.
106931         * lib/posixtm.c (posix_time_parse): Likewise.
106933         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
106935         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
106936         to avoid a pedantic warning.
106938         * lib/getstr.c: Don't include assert.h.
106939         (getstr): Remove warning-evoking assertions.
106940         Return -1 if offset parameter is out of bounds.
106941         Change the type of a local from int to size_t.
106943         * lib/strftime.c (my_strftime_localtime_r): Include this function
106944         definition in the `#if ! HAVE_TM_GMTOFF' block.
106946         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
106947         Include xalloc.h instead.
106949 2001-12-02  Jim Meyering  <meyering@lucent.com>
106951         * lib/tempname.c: Don't declare getenv, thus reverting the change of
106952         2001-11-18.  It's no longer necessary, now that stdlib.h is always
106953         included.
106955         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
106956         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
106958 2001-11-30  Akim Demaille  <akim@epita.fr>
106960         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
106961         before being defined.
106963 2001-11-27  Paul Eggert  <eggert@twinsun.com>
106965         * lib/quotearg.h (quotearg_n, quotearg_n_style):
106966         First arg is int, not unsigned.
106967         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
106968         (SIZE_MAX, UINT_MAX): New macros.
106969         (quotearg_n_options): Abort if N is negative.
106970         Avoid overflow check on hosts where size_t is 64 bits and int
106971         is 32 bits, as overflow is impossible there.
106972         Fix off-by-one typo that caused unnecessary reallocation.
106974 2001-11-27  Jim Meyering  <meyering@lucent.com>
106976         * lib/tempname.c: Merge with version from libc.
106977         * lib/regex.c: Likewise.
106979         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
106980         systems for which STDC_HEADERS is 0, it was not included, resulting in
106981         a warning about an integer-to-pointer conversion problem with getenv.
106982         Reported by Volker Borchert.
106984 2001-11-26  Jim Meyering  <meyering@lucent.com>
106986         * lib/gtod.h: Remove file.
106987         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
106988         * lib/gettimeofday.c: Don't include gtod.h.
106989         (GTOD_init): Remove function.
106990         (rpl_gettimeofday): Do its job here instead, rather than aborting.
106991         Suggestion from Volker Borchert.
106993 2001-11-23  Jim Meyering  <meyering@lucent.com>
106995         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
106996         it.
106997         * lib/hash.c (struct hash_table): Define it here instead.
106999 2001-11-22  Jim Meyering  <meyering@lucent.com>
107001         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
107003 2001-11-20  Jim Meyering  <meyering@lucent.com>
107005         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
107006         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
107008 2001-11-19  Jim Meyering  <meyering@lucent.com>
107010         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
107011         directory.  Use "conftestXXXXXX" as the template.
107012         Suggestion from Paul Eggert.
107014         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
107015         immediately, so the test doesn't mistakenly hit the max-open-files
107016         limit.
107018 2001-11-18  Paul Eggert  <eggert@twinsun.com>
107020         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
107021         (TEMPORARIES): New macro.
107022         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
107023         removes an artificial limitation (e.g. HP-UX 10.20, where
107024         TMP_MAX is 17576).
107026 2001-11-18  Jim Meyering  <meyering@lucent.com>
107028         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
107030 2001-11-18  Jim Meyering  <meyering@lucent.com>
107032         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
107033         on SunOS 4.
107035         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
107036         files will be created before anything else.
107038 2001-11-17  Paul Eggert  <eggert@twinsun.com>
107040         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
107041         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
107043 2001-11-17  Jim Meyering  <meyering@lucent.com>
107045         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
107046         Prompted by a report from Bob Proulx.
107048         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
107049         Instead, require UTILS_FUNC_MKSTEMP.
107051 2001-11-17  Jim Meyering  <meyering@lucent.com>
107053         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
107054         Now, that's done as part of AC_FUNC_STRTOD.
107056 2001-11-17  Jim Meyering  <meyering@lucent.com>
107058         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
107059         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
107060         rather than group writable.  Patch by Juan F. Codagnone.
107062         * lib/readtokens.c: Remove explicit declarations of xmalloc and
107063         xrealloc, Instead, include "xalloc.h".
107065         * lib/mountlist.c: Include unlocked-io.h after all system headers.
107066         Remove explicit declarations of xmalloc, xrealloc,
107067         and xstrdup.  Instead, include "xalloc.h".
107069         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
107070         unlocked-io.h.
107071         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
107072         Likewise.
107073         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
107075         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
107076         Reported by Padraig Brady.
107078         * lib/mkstemp.c: #undef mkstemp.
107079         Include config.h.
107080         (rpl_mkstemp): Rename from mkstemp.
107081         Protoize.
107083 2001-11-16  Jim Meyering  <meyering@lucent.com>
107085         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
107086         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
107087         determine the amount of total physical memory, use pstat_getstatic.
107088         HPUX-11 doesn't define _SC_PHYS_PAGES.
107089         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
107090         If sysconf couldn't be used to determine the amount of available
107091         physical memory, use both pstat_getstatic and pstat_getdynamic.
107092         Based on a patch from Bob Proulx.
107094 2001-11-10  Jim Meyering  <meyering@lucent.com>
107096         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
107097         (jm_PREREQ): Use it.
107099 2001-11-09  Jim Meyering  <meyering@lucent.com>
107101         * m4/jm-macros.m4: Require autoconf-2.52f.
107102         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
107103         Use these AC_-prefixed names, not the AM_-prefixed ones.
107105         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
107107 2001-11-05  Jim Meyering  <meyering@lucent.com>
107109         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
107111 2001-11-04  Jim Meyering  <meyering@lucent.com>
107113         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
107114         $DEFS.
107116 2001-11-03  Jim Meyering  <meyering@lucent.com>
107118         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
107119         of AC_DEFUN.
107121         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
107122         know the name of the variable in the macro definition.
107124 2001-11-03  Jim Meyering  <meyering@lucent.com>
107126         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
107127         in argmatch_to_argument call.
107129         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
107130         argument.
107132         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
107133         e.g., a fault due to an attempt to free a NULL pointer.
107135 2001-11-01  Jim Meyering  <meyering@lucent.com>
107137         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
107138         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
107140 2001-11-01  Jim Meyering  <meyering@lucent.com>
107142         * lib/dirfd.c, lib/dirfd.h: New files.
107143         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
107145         * lib/hash.c (hash_print) [TESTING]: Clean up.
107147 2001-10-22  Paul Eggert  <eggert@twinsun.com>
107149         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
107150         to avoid a warning if -Wall.
107152 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
107154         * README: New file
107155         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
107156         (per RMS's instructions, this is now the canonical source)
107157         * lgpl/, gpl/: New directories.
107159 2001-10-21  Paul Eggert  <eggert@twinsun.com>
107161         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
107163 2001-10-21  Jim Meyering  <meyering@lucent.com>
107165         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
107166         this code would end up calling gettext even in packages built
107167         with --disable-nls.
107168         * lib/getopt.c (_): Likewise.
107169         * lib/regex.c (_): Likewise.
107171 2001-10-20  Paul Eggert  <eggert@twinsun.com>
107173         * m4/error.m4 (jm_PREREQ_ERROR):
107174         Do not invoke AC_CHECK_FUNCS with strerror_r, as
107175         AC_FUNC_STRERROR_R does that.
107176         Check for strerror declaration.
107178         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
107179         are supposed to have them these days.
107180         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
107181         Merge changes from latest Autoconf CVS.
107182         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
107183         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
107184         POSIX decided to standardize on the int flavor of strerror_r.
107186 2001-10-20  Paul Eggert  <eggert@twinsun.com>
107188         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
107189         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
107190         Use strerror_r that is only a macro, even if it is not a function.
107191         (strerror): Check for HAVE_DECL_STRERROR before declaring.
107192         (private_strerror): Use prototypes, not old-style function definition.
107193         (print_errno_message): New function.
107194         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
107195         char*-flavored one.
107196         (error_tail, error, error_at_line): Use it.
107198 2001-10-11  Jim Meyering  <meyering@lucent.com>
107200         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
107201         and quote_n (1, ... to avoid clobbering a buffer.
107203 2001-10-05  Jim Meyering  <meyering@lucent.com>
107205         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
107206         hash-pjw.h.
107207         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
107208         * lib/hash-pjw.h: New file.
107210 2001-09-30  Jim Meyering  <meyering@lucent.com>
107212         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
107213         `struct fsstat' has the `f_fstypename' member.
107214         Use that to define FS_TYPE, which is now used to make
107215         the getfsstat link test tighter.
107217 2001-09-30  Jim Meyering  <meyering@lucent.com>
107219         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
107220         Include <sys/ucred.h>, for Apple Darwin.
107221         Include sys/mount.h and sys/fs_types.h only if available.
107222         (FS_TYPE): Define.
107223         (read_filesystem_list): Use FS_TYPE.
107225 2001-09-29  Paul Eggert  <eggert@twinsun.com>
107227         * lib/exclude.c (excluded_filename): 0 -> false, since it's
107228         a boolean context.
107230 2001-09-29  Jim Meyering  <meyering@lucent.com>
107232         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
107233         [one-argument getmntent function]): Include stdio.h before mntent.h.
107234         SunOS 4.1.x needs it for the declaration of `FILE'.
107235         Patch by Volker Borchert.
107237         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
107238         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
107239         sys/fs_types.h, and make the link-test for getfsstat guard #include
107240         directives with appropriate #if HAVE_*_H tests so that we can
107241         detect getfsstat on Apple Darwin1.3.7 systems.
107242         Reported by Nelson Beebe.
107243         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
107245 2001-09-28  Paul Eggert  <eggert@twinsun.com>
107247         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
107248         #defines strtoimax.  Also treat the other strto* functions
107249         like strtoimax.
107251         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
107252         Check for strtoul and strtoumax,
107253         as those declarations are made even in the signed case.
107254         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
107255         Likewise, for strtol and strtoimax.
107257 2001-09-28  Paul Eggert  <eggert@twinsun.com>
107259         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
107260         #defines strtoimax.  Also treat the other strto* functions
107261         like strtoimax.
107263         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
107264         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
107265         (strtoimax, strtoumax): Do not declare if already defined as a macro.
107267 2001-09-26  Jim Meyering  <meyering@lucent.com>
107269         Most macros in unlocked-io.h had the wrong number of arguments.
107270         * lib/gen-uio: New script.
107271         (USE_UNLOCKED_IO): Define to 1 if not already defined.
107272         * lib/unlocked-io.hin: Remove file.
107273         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
107274         rather than trying to embed it here.
107275         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
107276         Reported by Padraig Brady.
107278 2001-09-25  Volker Borchert  <bt@teknon.de>
107280         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
107281         `result'.
107283 2001-09-24  Jim Meyering  <meyering@lucent.com>
107285         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
107287 2001-09-23  Jim Meyering  <meyering@lucent.com>
107289         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
107290         instead of the mere test for existence of mntent.h.  The latter
107291         would get a false-positive on AIX 3.4 systems.
107292         In the outer getmntent if-block, don't die if neither of the getmntent
107293         tests succeeds.  Instead, just fall through and continue with the
107294         remaining tests.
107296 2001-09-23  Jim Meyering  <meyering@lucent.com>
107298         * lib/mountlist.c: Remove useless parentheses in #if directives.
107299         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
107300         the deprecated MOUNTED symbol is no longer defined in mntent.h.
107302 2001-09-22  Jim Meyering  <meyering@lucent.com>
107304         * m4/gettext.m4: New file.  From gettext.
107305         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
107306         * m4/progtest.m4: Likewise
107307         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
107308         * m4/glibc21.m4: Likewise.
107310         * m4/libintl.m4: Remove.  No longer used.
107312 2001-09-22  Jim Meyering  <meyering@lucent.com>
107314         * lib/localcharset.c: Update from latest gettext.
107315         * lib/config.charset: Likewise.
107317 2001-09-20  Jim Meyering  <meyering@lucent.com>
107319         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
107320         strtoimax.
107321         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
107322         strtoumax.
107324 2001-09-20  Jim Meyering  <meyering@lucent.com>
107326         * lib/xstrtol.c (strtoimax): Guard declaration with
107327         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
107328         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
107329         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
107330         (strtoumax): Likewise, for completeness (it wasn't necessary).
107332 2001-09-17  Paul Eggert  <eggert@twinsun.com>
107334         * lib/strtoimax.c (HAVE_LONG_LONG):
107335         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
107336         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
107337         to work around bug in IBM C compiler.
107339 2001-09-17  Jim Meyering  <meyering@lucent.com>
107341         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
107342         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
107343         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
107344         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
107345         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
107346         whenever the right hand side need not be expanded by the shell.
107348 2001-09-16  Paul Eggert  <eggert@twinsun.com>
107350         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
107351         library.  It's not correct, as some older glibcs are buggy.
107352         fnmatch wasn't fixed until glibc 2.2.
107354         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
107355         special shell magic here.
107357 2001-09-16  Jim Meyering  <meyering@lucent.com>
107359         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
107360         * m4/jm-macros.m4: Require it.
107362 2001-09-16  Jim Meyering  <meyering@lucent.com>
107364         * lib/mkdir.c: New file.
107366 2001-09-15  Jim Meyering  <meyering@lucent.com>
107368         * m4/jm-macros.m4: Check for help2man.
107370 2001-09-11  Jim Meyering  <meyering@lucent.com>
107372         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
107373         The body, by Paul Eggert, was moved here from configure.in.
107374         * m4/jm-macros.m4: Require UTILS_HOST_OS.
107376 2001-09-04  Paul Eggert  <eggert@twinsun.com>
107378         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
107379         (jm_PREREQ): Use it.
107381 2001-09-04  Paul Eggert  <eggert@twinsun.com>
107383         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
107384         Use ssize_t, not int, to store result of readlink.
107385         Check for ssize_t overflow as well as size_t overflow,
107386         as POSIX says the result of readlink is implementation-defined
107387         when ssize_t overflows.
107388         Remove unnecessary cast to char*.
107389         Use free+malloc instead of realloc, as the storage doesn't need
107390         to be preserved and it's clearer and can be more efficient that way.
107391         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
107392         * lib/xreadlink.h (xreadlink): Update prototype.
107394 2001-09-04  Paul Eggert  <eggert@twinsun.com>
107396         * lib/xgetcwd.c: Revert some of the previous change; intead,
107397         fix the HAVE_GETCWD_NULL code to behave more like the
107398         !HAVE_GETCWD_NULL code used to.
107400         Include "xalloc.h".
107401         (xgetcwd): Do not return NULL when memory is exhausted; instead,
107402         invoke xalloc_die.
107404 2001-09-03  Paul Eggert  <eggert@twinsun.com>
107406         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
107407         sys/param.h, as pathmax.h includes them.
107409 2001-09-03  Paul Eggert  <eggert@twinsun.com>
107411         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
107412         (jm_PREREQ_XGETCWD): New macro.
107414         * m4/getcwd.m4: New file.
107416 2001-09-03  Paul Eggert  <eggert@twinsun.com>
107418         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
107419         like the HAVE_GETCWD_NULL code.
107420         Include pathmax.h if not HAVE_GETCWD.
107421         Do not include xalloc.h.
107422         (INITIAL_BUFFER_SIZE): New symbol.
107423         Do not use xmalloc / xrealloc, since the caller is responsible for
107424         handling errors.  Preserve errno around `free' during failure.
107425         Do not overrun buffer when using getwd.
107427 2001-09-03  Paul Eggert  <eggert@twinsun.com>
107429         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
107430         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
107431         getcwd (NULL, 0).
107433 2001-09-03  Paul Eggert  <eggert@twinsun.com>
107435         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
107436         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
107437         spotted by Jim Meyering.
107439 2001-09-03  Jim Meyering  <meyering@lucent.com>
107441         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
107442         failure.
107444 2001-09-02  Jim Meyering  <meyering@lucent.com>
107446         * lib/error.c: Update from GNU libc.
107448 2001-09-01  Jim Meyering  <meyering@lucent.com>
107450         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
107451         Used by df.
107453 2001-09-01  Jim Meyering  <meyering@lucent.com>
107455         * lib/xreadlink.c: New file.
107456         * lib/xreadlink.h: New file.
107457         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
107458         xreadlink.h.
107460         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
107461         doesn't conflict with sparc Solaris 7's definition in
107462         /usr/include/sys/int_types.h.
107464         * lib/exclude.c: Use `""', not `<>' to #include non-system header
107465         files.
107466         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
107467         and strncasecmp as r-values.  Unixware didn't have declarations.
107469 2001-08-31  Paul Eggert  <eggert@twinsun.com>
107471         * lib/xstrtol.h: Add copyright notice.
107472         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
107473         LONGINT_INVALID_SUFFIX_CHAR.
107475 2001-08-31  Paul Eggert  <eggert@twinsun.com>
107477         * lib/xstrtol.c (strtoimax): New decl.
107479 2001-08-31  Paul Eggert  <eggert@twinsun.com>
107481         * lib/xgetcwd.c: Don't include pathmax.h.
107482         Include stdlib.h and unistd.h if available.
107483         Include xalloc.h.
107484         (xmalloc, xstrdup, free): Remove decls.
107485         (xgetcwd): Don't assume sizes fit in unsigned.
107486         Check for overflow when computing sizes.
107487         Simplify reallocation code.
107489 2001-08-31  Paul Eggert  <eggert@twinsun.com>
107491         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
107492         a directory's st_size can have an arbitrary value, so the old
107493         usage could waste an arbitrary amount of memory.  All uses
107494         changed.
107495         * lib/savedir.h: Update prototype.
107497 2001-08-31  Paul Eggert  <eggert@twinsun.com>
107499         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
107501         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
107502         old strtoimax.c.
107504         Also, make the following further changes to make this file's
107505         configuration more similar to that of strtol.c:
107506         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
107507         (strtoumax, uintmax_t, strtoull, strtol): Remove.
107508         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
107509         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
107510         changed to signed values.
107512         And make the following changes as well:
107513         Fix copyright notice, as 1999 was missing.
107514         (verify): New macro.
107515         (strtoimax): Check sizes at compile-time, not run-time.
107516         Prefer strtol to strtoll if both work.
107517         (main): Remove; it was not that useful and was a pain to maintain.
107519         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
107521 2001-08-31  Jim Meyering  <meyering@lucent.com>
107523         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
107524         Use an initial, malloc'd, buffer of length 128 rather than
107525         a statically allocated one of length 1024.
107527 2001-08-30  Paul Eggert  <eggert@twinsun.com>
107529         Simplify code, partly by assuming autoconf 2.52 semantics.
107531         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
107533         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
107534         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
107535         All uses removed.
107536         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
107537         Move AC_REQUIRE to next-to-top level, to avoid confusion.
107538         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
107539         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
107540         jm_AC_HEADER_INTTYPES_H.
107541         * m4/jm-macros.m4 (jm_MACROS): Likewise.
107543         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
107545         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
107546         Quote first arg of AC_DEFUN.
107547         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
107548         since they are needed to parse the include file even if we need
107549         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
107550         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
107551         but with opposite signedness.
107553 2001-08-30  Paul Eggert  <eggert@twinsun.com>
107555         Merge 'exclude' changes from tar 1.13.22.
107556         This fixes one or two unlikely storage allocation overflow bugs,
107557         but doesn't change user-visible behavior otherwise.
107559 2001-08-30  Paul Eggert  <eggert@twinsun.com>
107561         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
107562         (jm_PREREQ_EXCLUDE): New macro.
107564 2001-08-30  Paul Eggert  <eggert@twinsun.com>
107566         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
107567         tm to be declared.
107569 2001-08-30  Paul Eggert  <eggert@twinsun.com>
107571         * lib/hash.c: Remove '2001' from copyright notice.
107573 2001-08-30  Paul Eggert  <eggert@twinsun.com>
107575         * lib/full-write.h: New file.
107576         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
107577         * lib/full-write.c: Correct credits, as cccp.c no longer
107578         exists and anyway it was so heavily changed from the old cccp
107579         code as to be unrecognizable.  Include full-write.h.
107580         (full_write): Return size_t, with short writes meaning failure.
107581         All callers changed.  This fixes a bug with large buffers
107582         on 64-bit hosts.
107583         * lib/utime.c: Include full-write.h.
107585 2001-08-30  Paul Eggert  <eggert@twinsun.com>
107587         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
107588         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
107589         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
107590         Include if available.
107591         (<xalloc.h>): Include
107592         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
107593         (verify): New macro.  Use it to verify that EXCLUDE macros do not
107594         collide with FNM macros.
107595         (struct patopts): New struct.
107596         (struct exclude): Use it, as exclude patterns now come with options.
107597         (new_exclude): Support above changes.
107598         (new_exclude, add_exclude_file):
107599         Initial size must now be a power of two to simplify overflow checking.
107600         (free_exclude, fnmatch_no_wildcards): New function.
107601         (excluded_filename): No longer requires options arg, as the options
107602         are determined by add_exclude.  Now returns bool, not int.
107603         (excluded_filename, add_exclude):
107604         Add support for the fancy new exclusion options.
107605         (add_exclude, add_exclude_file): Now takes int options arg.
107606         Check for arithmetic overflow when computing sizes.
107607         (add_exclude_file): xrealloc might modify errno, so don't
107608         realloc until after errno might be used.
107610         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
107611         New macros.
107612         (free_exclude): New decl.
107613         (add_exclude, add_exclude_file): Now takes int options arg.
107614         (excluded_filename): No longer requires options arg, as the options
107615         are determined by add_exclude.  Now returns bool, not int.
107617 2001-08-30  Paul Eggert  <eggert@twinsun.com>
107619         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
107621 2001-08-27  Jim Meyering  <meyering@lucent.com>
107623         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
107625         * lib/version-etc.c (N_): Remove definition.
107626         Revert most of last change.
107627         Instead, simply don't mark the `Copyright...' string for translation.
107628         Based on advice from Paul Eggert.
107630         * lib/strtoxmax.c: Tweak comment.
107632 2001-08-26  Jim Meyering  <meyering@lucent.com>
107634         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
107636         * m4/xstrtoimax.m4: New file.
107637         * m4/xstrtoumax.m4: Add comments explaining why we
107638         AC_REPLACE_FUNCS(strtol).
107640 2001-08-26  Jim Meyering  <meyering@lucent.com>
107642         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
107643         of copyright with `%s' so translators don't get an untranslated
107644         message in 2002.
107645         (COPYRIGHT_YEAR): Define.
107646         (version_etc): Use fprintf rather than fputs.
107647         Suggestion from Ulrich Drepper.
107649         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
107651         * lib/strtoll.c: New file, from GNU libc.
107652         * lib/xstrtoimax.c: New file.
107654         * lib/xstrtol.h: Add xstrtoimax.
107655         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
107656         * lib/strtoimax.c: New file.  Likewise, but first define
107657         STRTOUXMAX_SIGNED.
107659         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
107660         ...
107661         * lib/strtoxmax.c: ... then renamed to this.
107663 2001-08-18  Paul Eggert  <eggert@twinsun.com>
107665         * m4/inttypes.m4: Add AC_PREREQ(2.13).
107666         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
107667         (jm_AC_TYPE_INTMAX_T): New macro.
107668         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
107670         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
107672         * m4/longlong.m4: Renamed from ulonglong.m4.
107673         * m4/inttypes.m4: Renamed from inttypes_h.m4.
107674         * m4/uintmax_t.m4: Removed.
107676 2001-08-13  Paul Eggert  <eggert@twinsun.com>
107678         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
107679         Port to Solaris 8, where 'sed' requires a space after the 'r'
107680         command, and where sh dislikes "$/".  Clean up the spacing a bit.
107681         Redirect output to $tmp just once.
107683 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
107685         * lib/addext.c (<errno.h>): Include.
107686         (errno): Declare if not defined.
107687         (addext): Work correctly when pathconf returns -1 and leaves
107688         errno alone because there is no limit.  Also, work even if
107689         pathconf returns a value greater than SIZE_MAX.
107691 2001-08-12  Jim Meyering  <meyering@lucent.com>
107693         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
107694         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
107695         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
107696         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
107697         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
107698         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
107699         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
107700         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
107701         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
107702         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
107703         utime.m4, utimes.m4, xstrtoumax.m4:
107704         Quote the first argument in each use of AC_DEFUN.
107706 2001-08-12  Jim Meyering  <meyering@lucent.com>
107708         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
107709         Simply `return getcwd (NULL, 0);'.
107710         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
107711         Use 1300 as initial value for length, not PATH_MAX.
107713         * lib/pathmax.h: Clean up cpp syntax.
107715 2001-08-12  Jim Meyering  <meyering@lucent.com>
107717         * lib/gettimeofday.c: New file.
107718         * lib/gtod.h: New file.
107719         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
107721 2001-08-05  Jim Meyering  <meyering@lucent.com>
107723         * m4/jm-macros.m4: Require autoconf-2.52.
107725 2001-08-04  Jim Meyering  <meyering@lucent.com>
107727         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
107728         stmt, to get in sync with glibc.
107730 2001-08-03  Paul Eggert  <eggert@twinsun.com>
107732         The following changes are from gettext 0.10.39 as maintained by
107733         Bruno Haible.
107735         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
107736         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
107737         with inverted sense.  All uses changed.
107739         * lib/mbswidth.c: Don't include <limits.h>.
107740         Include <stdlib.h> and <string.h> unconditionally.
107741         (iswcntrl, mbsinit, ISCNTRL): New macros.
107742         (mbsnwidth): Use K&R style function declarations.
107743         Don't bother checking for MB_LEN_MAX == 1, since the compiler
107744         can optimize it when MB_CUR_MAX == 1.
107745         The width of control characters is zero, not 1.
107747 2001-08-03  Paul Eggert  <eggert@twinsun.com>
107749         The following changes are from gettext 0.10.39 as maintained by
107750         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
107752         * m4/codeset.m4: Upgrade to serial AM1.
107753         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
107754         all uses changed.  Quote first arg of AC_DEFUN.
107755         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
107757         * m4/iconv.m4: Upgrade to serial AM2.
107758         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
107759         Add --with-libconv-prefix.
107760         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
107761         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
107762         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
107763         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
107764         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
107766         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
107767         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
107768         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
107769         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
107770         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
107771         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
107772         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
107773         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
107774         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
107776         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
107777         string.h any more.
107779         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
107780         not the default value.
107782         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
107783         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
107784         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
107785         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
107786         Also check for iswcntrl, used for wcwidth fallback.
107787         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
107788         to Autoconf 2.13.
107790 2001-08-03  Jim Meyering  <meyering@lucent.com>
107792         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
107793         as it was in the original.  Reported by Paul Eggert.
107795 2001-07-16  Jim Meyering  <meyering@lucent.com>
107797         * m4/gettimeofday.m4: New file.
107798         Prompted by a report from Bernhard Baehr.
107800 2001-07-15  Jim Meyering  <meyering@lucent.com>
107802         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
107803         stuff. Now it's in ../Makefile.cfg.
107805 2001-07-15  Jim Meyering  <meyering@lucent.com>
107807         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
107808         (BUILT_SOURCES): Add unlocked-io.h.
107809         (io_functions): Define.
107810         (unlocked-io.h): New rule.
107811         (DISTCLEANFILES): Add unlocked-io.h.
107812         (all-local): Depend on unlocked-io.h, to ensure it is created.
107814         * lib/unlocked-io.hin: New file
107816         * lib/regex.c: Update from glibc.
107818 2001-07-05  Jim Meyering  <meyering@lucent.com>
107820         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
107821         recommendation.
107822         (libfetish_a_SOURCES): Put all .h files here instead.
107823         Remove a thus-exposed (better checks in automake) duplicate and
107824         two unnecessary .h files.
107826 2001-07-04  Jim Meyering  <meyering@lucent.com>
107828         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
107829         that generates jm-glibc-io.m4 so that it doesn't trigger any make
107830         distcheck failure.
107832 2001-07-02  Jim Meyering  <meyering@lucent.com>
107834         The following changes were prompted by suggestions from Bruno Haible.
107836         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
107837         is now generated.
107838         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
107839         definition of EXTRA_DIST.
107840         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
107841         ensure that the generated file is created/updated whenever the list
107842         of $(unlocked_functions) is changed.
107843         (jm-glibc-io.m4): New rule.
107844         (unlocked-io.h): New rule -- currently unused.
107846 2001-06-24  Jim Meyering  <meyering@lucent.com>
107848         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
107849         unmatched right bracket, rather than kludging it with an extra,
107850         falsely-matching quote in a comment.  Patch by Akim Demaille.
107852 2001-06-11  Jim Meyering  <meyering@lucent.com>
107854         * lib/regex.c: Update from GNU libc.
107856 2001-05-27  Jim Meyering  <meyering@lucent.com>
107858         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
107859         Check for ut_type in struct utmp.
107861 2001-05-27  Jim Meyering  <meyering@lucent.com>
107863         * lib/readutmp.h (UT_TYPE): Define.
107865 2001-05-24  Jim Meyering  <meyering@lucent.com>
107867         * lib/argmatch.c: Include "quote.h".
107868         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
107869         quote function.  Reported by Göran Uddeborg.
107871 2001-05-22  Jim Meyering  <meyering@lucent.com>
107873         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
107874         now that we use the package-supplied version unconditionally.
107875         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
107877 2001-05-21  Jim Meyering  <meyering@lucent.com>
107879         * m4/regex.m4: Change a couple backticks to single quotes to avoid
107880         shell syntax errors.
107882 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
107884         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
107886 2001-05-20  Paul Eggert  <eggert@twinsun.com>
107888         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
107889         Don't bother to check library strftime, since
107890         we'll be using our own my_strftime function anyway.
107891         Define my_strftime instead of strftime.
107893 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
107895         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
107896         which is not yet declared.
107898 2001-05-15  Jim Meyering  <meyering@lucent.com>
107900         * m4/regex.m4: Use proper quoting so brackets appear in the test
107901         program.
107902         Reported by, and with help from, Bruno Haible.
107904 2001-05-13  Jim Meyering  <meyering@lucent.com>
107906         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
107907         undefined.
107909 2001-05-11  Paul Eggert  <eggert@twinsun.com>
107911         dirname code cleanup.  base_name now behaves more compatibly
107912         with POSIX basename when given file names that have trailing
107913         slashes, and similarly for dir_name.  Add new primitives
107914         base_len and dir_len.  Put the directory-name-related decls
107915         into dirname.h.
107917         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
107918         * lib/backupfile.c (base_name): Likewise.
107919         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
107920         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
107921         * lib/makepath.c (strip_trailing_slashes): Likewise.
107922         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
107923         ISSLASH): Likewise.
107924         * lib/rename.c (strip_trailing_slashes): Likewise.
107925         * lib/same.c (base_name): Likewise.
107926         * lib/stripslash.c (ISSLASH): Likewise.
107928         * lib/addext.c: Include <dirname.h> after size_t is defined.
107929         * lib/backupfile.c: Likewise.
107931         * lib/addext.c (addext): Use base_len to trim redundant
107932         trailing slashes instead of doing it ourselves.
107933         But do not trim the last slash if it is not redundant.
107935         * lib/backupfile.c (find_backup_file_name,
107936         max_backup_version): Use base_len instead of rolling it ourselves.
107937         Handle the case of "" and (on DOS) "C:" correctly.
107939         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
107940         needed. Include <string.h>, <dirname.h>.
107941         (base_name): Allow file names ending in slashes, other than names
107942         that are all slashes.  In this case, return the basename followed
107943         by the slashes.  This is more general, and can be used in places
107944         where the original base_name purposely had an assertion failure.
107945         (base_len): New function.
107947         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
107948         Do not include <assert.h>; no longer needed.
107949         Include xalloc.h.
107950         (memrchr): Remove decl.
107951         (dir_name_r): Remove.
107952         (dir_len): Renamed from dirlen.  All callers changed.
107953         Rewrite in terms of base_name, for simplicity and consistency.
107954         (dir_name): Never return NULL.  All callers changed.
107955         Do not include <stdlib.h> in test program; no longer needed.
107956         return 0; is fine for test program.
107958         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
107959         New macros.
107960         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
107962         * lib/path-concat.c (path_concat): Use base_len to compute
107963         base length, not strlen; this means we cannot rely on memcpy
107964         to null-terminate.
107966         * lib/same.c (STREQ): Remove.
107967         (same_name): Handle the case where the basename ends in trailing '/'.
107969         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
107970         a slash was stripped.  Do not strip the last slash after a
107971         file system prefix.
107973 2001-05-11  Paul Eggert  <eggert@twinsun.com>
107975         * lib/Makefile.am (libfetish_a_SOURCES):
107976         Add strftime.c, since we now compile it on all hosts.
107978         * lib/strftime.c (my_strftime):
107979         Define to nstrftime if emacs, but only if my_strftime is not defined.
107980         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
107981         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
107982         Add one more extra argument: a nanoseconds value.
107983         All uses changed.
107984         (ns): New macro.
107985         (my_strftime function): Add %N format.
107986         (emacs_strftimeu): Renamed from emacs_strftime,
107987         with extra ut argument.
107989 2001-05-09  Paul Eggert  <eggert@twinsun.com>
107991         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
107993 2001-04-21  Jim Meyering  <meyering@lucent.com>
107995         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
107996         doesn't interfere.
107998 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
108000         * m4/ftruncate.m4: Check for chsize.
108001         Link with ftruncate.o unconditionally if ftruncate is missing.
108002         This was required when cross-compiling to i586-mingw32msvc.
108004 2001-04-08  Jim Meyering  <meyering@lucent.com>
108006         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
108007         recomputed; that's necessary when the offset spans a DST transition.
108008         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
108010 2001-04-02  Jim Meyering  <meyering@lucent.com>
108012         * lib/regex.h, regex.c: Update from GNU libc.
108014 2001-03-24  Jim Meyering  <meyering@lucent.com>
108016         * m4/jm-macros.m4: Require autoconf-2.49d.
108018 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
108020         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
108022 2001-03-19  Paul Eggert  <eggert@twinsun.com>
108024         * lib/version-etc.c (version_etc_copyright): Update to 2001.
108026 2001-03-17  Jim Meyering  <meyering@lucent.com>
108028         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
108029         now that the version in autoconf is equivalent.
108030         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
108032         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
108033         Suggestion from Akim Demaille.
108035         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
108036         (jm_PREREQ_TEMPNAME): New function.
108038 2001-03-16  Paul Eggert  <eggert@twinsun.com>
108040         * lib/tempname.c (uint64_t): Define to uintmax_t if
108041         not defined, and if UINT64_MAX is not defined.
108042         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
108043         Reported by John David Anglin.
108045 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
108047         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
108048         resolve alias if codeset is empty.
108049         * lib/config.charset (BeOS): Use wildcard syntax.
108051 2001-03-13  Jim Meyering  <meyering@lucent.com>
108053         * lib/path-concat.c (path_concat)
108054         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
108055         concatenating e.g., `C:' and `foo'.
108056         From Bruno Haible.
108058 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
108060         * lib/localcharset.c (locale_charset): Don't use
108061         setlocale(LC_CTYPE,NULL). Don't return NULL.
108062         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
108064 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
108066         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
108067         support for DOS/DJGPP.
108069 2001-03-01  Paul Eggert  <eggert@twinsun.com>
108071         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
108072         lacks mkstemp.  Compile our own tempname.c if we compile our own
108073         mkstemp.c, as mkstemp relies on tempname.
108075 2001-03-01  Jim Meyering  <meyering@lucent.com>
108077         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
108078         AH_VERBATIM really does output its argument verbatim.
108080 2001-02-28  Paul Eggert  <eggert@twinsun.com>
108082         * lib/Makefile.am (libfetish_a_SOURCES):
108083         Add dup-safer.c, fopen-safer.c.
108084         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
108086         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
108087         * lib/unistd-safer.h: New files.
108089 2001-02-25  Paul Eggert  <eggert@twinsun.com>
108091         The mkstemp replacement is taken from glibc 2.2.2, with some
108092         portability fixes for use outside glibc, as follows:
108094         * lib/tempname.c (struct_stat64): New macro.
108095         (direxists, __gen_tempname): Use it.
108096         This avoids a portability problem with Solaris 8.
108098         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
108099         (<stddef.h>, <stdint.h>, <string.h>):
108100         Include only if STDC_HEADERS || _LIBC.
108101         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
108102         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
108103         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
108104         (__set_errno): Define this macro if <errno.h> doesn't.
108105         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
108106         Define these macros if <stdio.h> doesn't.
108107         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
108108         Define these macros if <sys/stat.h>
108109         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
108110         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
108111         __xstat64): Define if not _LIBC.
108112         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
108113         (__gen_tempname): Invoke gettimeofday only if
108114         HAVE_GETTIMEOFDAY || _LIBC;
108115         otherwise, fall back on plain "time".
108116         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
108118         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
108120         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
108122 2001-02-18  Paul Eggert  <eggert@twinsun.com>
108124         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
108126 2001-02-17  Paul Eggert  <eggert@twinsun.com>
108128         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
108129         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
108130         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
108131         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
108133 2001-02-17  Paul Eggert  <eggert@twinsun.com>
108135         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
108136         Remove workaround macros for hosts that have mbrtowc but not
108137         mbstate_t, as we now insist on proper declarations for both
108138         before using mbrtowc.
108140 2001-02-17  Jim Meyering  <meyering@lucent.com>
108142         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
108143         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
108144         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
108145         UnixWare 7.1.1.
108147         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
108148         rather than AC_CACHE_VAL.
108150 2001-02-17  Jim Meyering  <meyering@lucent.com>
108152         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
108153         around included file name.
108155         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
108157         * lib/strftime.c: Update from GNU libc (the only changes were to
108158         comments).
108160 2001-02-17  Jim Meyering  <meyering@lucent.com>
108162         * lib/regex.c: Update from libc.
108164 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
108166         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
108167         clash.
108169 2001-02-16  Paul Eggert  <eggert@twinsun.com>
108171         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
108172         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
108173         Reported by Mark Hounschell via Paul Eggert.
108175 2001-02-07  Jim Meyering  <meyering@lucent.com>
108177         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
108179 2001-02-05  Jim Meyering  <meyering@lucent.com>
108181         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
108182         it includes the patch required for `large file' support with at least
108183         HP-UX's 10.20 /bin/cc.
108185 2001-02-03  Jim Meyering  <meyering@lucent.com>
108187         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
108188         AS_IF, now that it works once again (mysteriously).
108189         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
108191 2001-01-30  Jim Meyering  <meyering@lucent.com>
108193         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
108194         * m4/chown.m4: Rename conftestchown to conftest.chown.
108195         * m4/rename.m4: s/conftestdir/conftest.d1/ and
108196         s/conftestdir2/conftest.d2/.
108197         * m4/utimes.m4: s/conftestdata/conftest.data/
108198         Inspired by Pavel Roskin's change in autoconf.
108200 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
108202         * lib/config.charset: Update for FreeBSD 4.2.
108204 2001-01-27  Jim Meyering  <meyering@lucent.com>
108206         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
108207         a use of AS_IF.
108208         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
108210 2001-01-26  Jim Meyering  <meyering@lucent.com>
108212         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
108213         quotearg.c includes it.
108215 2001-01-26  Jim Meyering  <meyering@lucent.com>
108217         * lib/quotearg.c: Include stddef.h.
108218         * lib/quote.c: Include stddef.h.
108219         Reported by Axel Kittenberger.
108221         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
108222         line in double quotes so that it evokes a better diagnostic.
108223         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
108224         Reported by Axel Kittenberger.
108226 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
108228         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
108229         as if it was a `charset'.
108231 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
108233         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
108234         has const.
108236 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
108238         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
108239         to avoid a warning.  Add back 'const' to inptr.
108241 2001-01-20  Jim Meyering  <meyering@lucent.com>
108243         Be sure that headers are checked before used in code compiled
108244         for the type checks.
108245         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
108246         In place of that, invoke jm_CHECK_ALL_TYPES.
108247         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
108248         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
108249         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
108250         The check for ssize_t was mistakenly run before the test for unistd.h.
108252         The configure-time check for stdbool.h was missing.
108253         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
108254         (jm_PREREQ_HASH): New function.
108256 2001-01-17  Jim Meyering  <meyering@lucent.com>
108258         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
108259         for autoconf-2.49c.
108260         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
108262 2001-01-16  Jim Meyering  <meyering@lucent.com>
108264         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
108265         From Bruno Haible.
108267 2001-01-14  Jim Meyering  <meyering@lucent.com>
108269         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
108270         foo and bar.  Create conftestdir/ in the script, not in the C code.
108271         Remove directories in the script, not in the C code.
108272         Remove conftestdir{,2} before trying to create the directory.
108273         Make the entire configure script fail if the mkdir fails.
108275 2001-01-14  Jim Meyering  <meyering@lucent.com>
108277         * lib/rename.c: New file.  From Volker Borchert.
108278         Include stdlib.h, string.h or strings.h, and xalloc.h.
108279         Use strip_trailing_slashes rather than open-coding it.
108281 2001-01-03  Paul Eggert  <eggert@twinsun.com>
108283         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
108285 2001-01-03  Jim Meyering  <meyering@lucent.com>
108287         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
108288         of local `inptr' to avoid warning with some system declarations of
108289         iconv.
108291 2001-01-02  Volker Borchert  <bt@teknon.de>
108293         * m4/rename.m4: New file.
108294         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
108296 2001-01-01  Jim Meyering  <meyering@lucent.com>
108298         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
108299         even on systems with utmpx.h.  It's necessary for the declaration of
108300         utmp's ut_user member.  Reported by Andreas Jaeger.
108302         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
108303         available. They are required for the declarations of getgrgid and
108304         getpwuid resp.
108305         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
108306         Reported by Andreas Jaeger.
108308 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
108310         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
108311         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
108312         so `make install' also works in VPATH builds.
108314 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
108316         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
108317         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
108318         can be used in subdirectories.
108320 2000-12-29  Paul Eggert  <eggert@twinsun.com>
108322         * lib/modechange.c: Do not assume that mode_t uses the
108323         traditional octal encoding.  E.g. "chmod 1 FOO" should set
108324         the other-execute bit of FOO even if S_IXOTH != 1.
108326         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
108327         WOTH, XOTH, ALLM): New macros.
108328         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
108329          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
108330         Use them.
108331         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
108332         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
108333         (mode_compile):
108334         No need to use uintmax_t; unsigned long is long enough.
108335         Don't bother to get suffix since we don't use it.
108337 2000-12-26  Jim Meyering  <meyering@lucent.com>
108339         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
108340         better with autoheader.
108342 2000-12-24  Jim Meyering  <meyering@lucent.com>
108344         * lib/hash.c (is_prime): Return explicit boolean values.
108345         (hash_get_first): Return NULL to appease Irix5.6's 89.
108346         Reported by Nelson Beebe.
108348 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
108350         * lib/localcharset.c (locale_charset): Add support for Win32.
108352 2000-12-18  Paul Eggert  <eggert@twinsun.com>
108354         * lib/physmem.h, lib/physmem.c: New files.
108356         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
108357         (noinst_HEADERS): Add physmem.h.
108359         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
108360         't' for compatibility with Solaris 8 sort.
108362 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
108364         * lib/config.charset: Add support for BeOS.
108366 2000-12-17  Jim Meyering  <meyering@lucent.com>
108368         * m4/dos.m4 (jm_AC_DOS): New file and macro.
108369         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
108371 2000-12-16  Jim Meyering  <meyering@lucent.com>
108373         This bug had a serious impact on chown: `chown N:M FILE' (for integer
108374         N and M) would have treated it like `chown N:N FILE'.
108376         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
108378 2000-12-16  Jim Meyering  <meyering@lucent.com>
108380         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
108381         SHELLS_FILE to a file name that's useful on djgpp systems.
108382         Include stdlib.h.
108383         (ADDITIONAL_DEFAULT_SHELLS): Define.
108384         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
108385         Based mostly on a patch from Prashant TR.
108387 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
108389         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
108390         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
108391         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
108393 2000-12-08  Andreas Schwab  <schwab@suse.de>
108395         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
108396         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
108398 2000-12-07  Jim Meyering  <meyering@lucent.com>
108400         * lib/stripslash.c (ISSLASH): Define.
108401         (strip_trailing_slashes): Use ISSLASH rather than comparing against
108402         `/'.
108403         From Prashant TR.
108405         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
108406         (dir_name_r): Declare this function as static.
108407         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
108408         manifest itself on a name containing a mix of slashes and
108409         backslashes.
108410         Make this function work with names starting with a DOS-style
108411         drive letter and colon prefix.
108412         (dir_name): Append `.' if necessary.
108413         Based mostly on patches from Prashant TR and Eli Zaretskii.
108415         * lib/dirname.h (dir_name_r): Remove prototype.
108417 2000-12-06  Paul Eggert  <eggert@twinsun.com>
108419         * m4/off_t-format.m4: Remove this file.
108420         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
108422 2000-12-06  Jim Meyering  <meyering@lucent.com>
108424         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
108425         replacement strtoull, we may well need the replacement strtoul, too.
108426         Check for declarations of strtoul and strtoull.
108427         Check for strtol.  Mainly as a cue to cause automake to include
108428         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
108429         Check for limits.h -- strtol.c needs it.
108431 2000-12-05  Jim Meyering  <meyering@lucent.com>
108433         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
108435 2000-12-04  Jim Meyering  <meyering@lucent.com>
108437         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
108438         Also include memory.h, stdlib.h, unistd.h if appropriate.
108439         Reported by Andreas Jaeger (conflicting declaration of malloc).
108441 2000-12-02  Jim Meyering  <meyering@lucent.com>
108443         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
108444         * m4/jm-macros.m4 (jm_MACROS): require it.
108446 2000-12-02  Jim Meyering  <meyering@lucent.com>
108448         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
108450 2000-12-01  Paul Eggert  <eggert@twinsun.com>
108452         * lib/memrchr.c: Include <config.h> before any system include file.
108454 2000-11-30  Jim Meyering  <meyering@lucent.com>
108456         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
108458 2000-11-30  Jim Meyering  <meyering@lucent.com>
108460         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
108462 2000-11-29  Paul Eggert  <eggert@twinsun.com>
108464         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
108466 2000-11-26  Jim Meyering  <meyering@lucent.com>
108468         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
108470 2000-11-22  Paul Eggert  <eggert@twinsun.com>
108472         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
108473         size of (size_t) -1; it's not portable.
108475 2000-11-17  Jim Meyering  <meyering@lucent.com>
108477         * lib/strstr.c: Update from GNU libc.
108479 2000-11-17  Akim Demaille  <akim@epita.fr>
108481         * lib/obstack.h: Formatting changes.
108482         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
108483         prevent type checking.
108484         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
108485         cast the value to (void *): assigning a `foo *' to a `void *'
108486         variable is valid.
108487         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
108489 2000-11-16  Jim Meyering  <meyering@lucent.com>
108491         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
108493 2000-11-11  Jim Meyering  <meyering@lucent.com>
108495         * lib/error.c: Add a couple #includes, merging from GNU libc version.
108497 2000-11-10  Jim Meyering  <meyering@lucent.com>
108499         * lib/obstack.h: Update from GNU libc.
108500         * lib/obstack.c: Likewise.
108502 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
108504         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
108506 2000-11-06  Paul Eggert  <eggert@twinsun.com>
108508         * lib/getusershell.c (setusershell): Use rewind rather than
108509         fseek/fseeko, to avoid configuration hassles with fseeko.
108510         Don't bother opening SHELLS_FILE if shellstream is NULL;
108511         it's not necessary.
108513 2000-11-05  Jim Meyering  <meyering@lucent.com>
108515         * lib/makepath.h (make_dir): Declare.
108516         * lib/makepath.c (make_dir): Remove `static' attribute.
108517         Tweak a comment.
108519 2000-11-04  Jim Meyering  <meyering@lucent.com>
108521         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
108523 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
108525         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
108526         last one in a bucket, advance to the next bucket.
108528 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
108530         * lib/fnmatch.c: Do not comment out all the code if we are using
108531         the GNU C library, because in some cases we are replacing buggy
108532         code in the GNU C library itself.
108534 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
108536         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
108537         (regex_compile): Catch bogus \(\1\).
108539 2000-10-30  Paul Eggert  <eggert@twinsun.com>
108541         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
108542         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
108543         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
108545 2000-10-30  Paul Eggert  <eggert@twinsun.com>
108547         * lib/error.h, getline.h, modechange.h:
108548         Remove "2000" from Copyright line, as the file hasn't been
108549         changed this year other than in the copyright notice.
108551         * lib/xalloc.h: Add "2000" to Copyright line, as this file
108552         was changed this year.
108554 2000-10-29  Jim Meyering  <meyering@lucent.com>
108556         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
108557         renaming.
108558         * m4/ls-mntd-fs.m4: Likewise
108560 2000-10-29  Jim Meyering  <meyering@lucent.com>
108562         * lib/xstat.in: Fix grammar in comment.
108564 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
108566         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
108567         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
108568         doesn't define __restrict_arr.
108570 2000-10-28  Jim Meyering  <meyering@lucent.com>
108572         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
108573         (jm_PREREQ_MEMCHR): New function.
108575 2000-10-28  Jim Meyering  <meyering@lucent.com>
108577         * lib/memchr.c: Update from libc.
108578         Adjust for portability:
108579         [HAVE_STDLIB_H]: Include stdlib.h.
108580         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
108581         Undef __memchr, too.
108582         [!weak_alias]: Define __memchr to memchr.
108584         * lib/regex.c: Update from libc.
108585         * lib/regex.h: Likewise.
108586         * lib/getopt1.c: Likewise.
108587         * lib/memcmp.c: Likewise.
108589         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
108590         Avoid using fseek, when possible -- it's broken by design.
108591         Patch by Ulrich Drepper.
108593 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
108595         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
108596         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
108597         Giving in to popular pressure to shut up the compiler with casts.
108599 2000-10-26  Jim Meyering  <meyering@lucent.com>
108601         * lib/strftime.c: Update from libc.
108603 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
108605         * regex.c: More `unsigned char' -> `re_char' changes.
108606         Also change several `int' into `re_wchar_t'.
108607         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
108608         (PUSH_FAILURE_POINTER): Don't cast any more.
108609         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
108610         We want GCC to complain, since this piece of code makes
108611         re_match non-reentrant, which *should* be fixed.
108612         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
108613         (EXTEND_BUFFER): Use RETALLOC.
108614         (SET_LIST_BIT): Don't cast.
108615         (re_wchar_t): New type.
108616         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
108617         that those two functions will always properly return.
108618         (IMMEDIATE_QUIT_CHECK): Cast to void.
108619         (analyse_first): Use recursion rather than an explicit stack.
108620         (re_compile_fastmap): Can't fail anymore.
108621         (re_search_2): Don't check re_compile_fastmap for failure.
108622         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
108623         Now also sets the new value (passed in a new argument).
108624         (re_match_2_internal): Use it.
108625         Also, use a new var `reg' of type size_t when looping through regs
108626         rather than reuse the inappropriate `mcnt'.
108628 2000-10-25  Jim Meyering  <meyering@lucent.com>
108630         * lib/obstack.c: Update from libc.
108632 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
108634         * regex.c (regex_compile): Change the way of handling a range from
108635         a char less than 256 to a char not less than 256.
108637 2000-10-24  Andrew Innes  <andrewi@gnu.org>
108639         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
108640         NT-Emacs only.
108641         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
108642         so that re_search functions only quit when callers expect them to.
108644 2000-10-23  Jim Meyering  <meyering@lucent.com>
108646         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
108647         wrong.  That set_locale call must not have any side effects.
108648         From Paul Eggert.
108650 2000-10-22  Jim Meyering  <meyering@lucent.com>
108652         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
108653         [CYCLIC]: Remove now-unused definition.
108655         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
108656         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
108657         Suggestion from Ulrich Drepper.
108659 2000-10-21  Jim Meyering  <meyering@lucent.com>
108661         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
108662         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
108663         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
108665 2000-10-21  Jim Meyering  <meyering@lucent.com>
108667         * lib/dirname.c (memrchr): Declare if necessary.
108668         (dir_name): Remove the restriction that there be no
108669         trailing slashes.  Now, this code skips past them, effectively
108670         ignoring them.
108671         [TEST_DIRNAME] (main): New unit tests.
108673         * lib/memrchr.c: New file from GNU libc.
108674         Undef __memrchr, too.
108675         [!weak_alias]: Define __memrchr to memrchr.
108676         Guard weak_alias use with `#ifdef weak_alias'.
108678 2000-10-21  Jim Meyering  <meyering@lucent.com>
108680         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
108681         (dir_name): Use dir_name_r.
108682         * lib/dirname.h (dir_name_r): Declare it.
108684 2000-10-17  Jim Meyering  <meyering@lucent.com>
108686         * lib/quote.h (PARAMS): Define and use.
108687         Reported by Akim Demaille.
108689         * lib/getopt.c: Update from libc.
108691 2000-10-16  Jim Meyering  <meyering@lucent.com>
108693         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
108694         setlocale.
108695         From Jan Fedak.
108697 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
108699         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
108701 2000-09-25  Jim Meyering  <meyering@lucent.com>
108703         * lib/md5.h (rol): Define (from GnuPG).
108705         * lib/sha.c: Give credit (GnuPG) where due.
108706         (M): Use rol rather than open-coding it.
108707         Add a FIXME comment.
108709 2000-09-21  Jim Meyering  <meyering@lucent.com>
108711         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
108712         Reported by Michael Stone.
108714 2000-09-20  Jim Meyering  <meyering@lucent.com>
108716         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
108717         (noinst_HEADERS): Add sha.h.
108718         Based on code from Scott G. Miller and from GnuPG.
108720 2000-09-18  Jim Meyering  <meyering@lucent.com>
108722         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
108723         LIBS. Otherwise, everyone ends up linking with -lelf for some
108724         configurations.
108725         Reported by Mike Stone.
108727 2000-09-15  Jim Meyering  <meyering@lucent.com>
108729         * lib/regex.c: Update from libc.
108731 2000-09-10  Jim Meyering  <meyering@lucent.com>
108733         * lib/getopt.c (_getopt_internal): Update from glibc.
108735 2000-09-09  Jim Meyering  <meyering@lucent.com>
108737         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
108738         think it should be used as a general replacement for isascii.
108739         * lib/fnmatch.c: Likewise.
108740         * lib/mbswidth.c: Likewise
108741         * lib/regex.c: Likewise.
108743         Don't use atoi.
108744         * lib/userspec.c: Include sys/param.h and limits.h.
108745         Include xstrtol.h.
108746         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
108747         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
108748         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
108749         UID, GID.  Check range.
108751 2000-09-06  Jim Meyering  <meyering@lucent.com>
108753         * lib/getopt.c (_getopt_internal): Update from glibc.
108755 2000-08-30  Jim Meyering  <meyering@lucent.com>
108757         * lib/strftime.c: Merge in changes from GNU libc.
108759 2000-08-26  Jim Meyering  <meyering@lucent.com>
108761         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
108762         * m4/fpending.m4: New file.
108764 2000-08-26  Jim Meyering  <meyering@lucent.com>
108766         * lib/closeout.c: Include "__fpending.h".
108767         (close_stdout_status): Return right away if there's nothing to flush.
108769         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
108770         * lib/__fpending.c: New file.
108771         * lib/__fpending.h: New file.
108773 2000-08-20  Jim Meyering  <meyering@lucent.com>
108775         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
108776         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
108777         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
108779 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
108781         Improve fileutils installation on systems where running
108782         programs (like install) can't be unlinked.
108783         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
108784         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
108786 2000-08-07  Paul Eggert  <eggert@twinsun.com>
108788         Standardize on "memory exhausted" instead of "Memory exhausted"
108789         or "virtual memory exhausted".
108790         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
108791         "virtual memory exhausted".
108792         * lib/same.c (same_name): Invoke xalloc_die instead of printing
108793         our own message.
108794         * lib/userspec.c (parse_user_spec): Likewise.
108795         * lib/bumpalloc.h: comment fix
108796         * lib/same.c, userspec.c: Include xalloc.h.
108798         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
108799         not char *const and pointing to a constant array.
108800         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
108801         (xrealloc): Comment fix.
108803         * lib/userspec.c (parse_user_spec):
108804         Don't translate a message until just before returning,
108805         to avoid unnecessary translation.
108807 2000-08-07  Jim Meyering  <meyering@lucent.com>
108809         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
108810         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
108811         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
108812         getgroups.c, gethostname.c, getopt.h, group-member.c,
108813         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
108814         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
108815         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
108816         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
108817         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
108818         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
108819         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
108820         yesno.c: Back out Copyright date changes for each file with no change
108821         this year.  This eases coordination with other programs using the same
108822         source code modules.  From Paul Eggert.
108824 2000-08-06  Paul Eggert  <eggert@twinsun.com>
108826         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
108827         not char, for compatibility with glibc 2.1.3 strftime.c.
108829 2000-08-03  Greg McGary  <greg@mcgary.org>
108831         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
108832         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
108833         (EXTEND_BUFFER): Use them.
108835 2000-08-01  Jim Meyering  <meyering@lucent.com>
108837         * lib/dirname.c (ISSLASH): Define.
108838         (BACKSLASH_IS_PATH_SEPARATOR): Define.
108839         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
108840         both `\' and `/' may be use as path separators.
108841         Based on a patch from Prashant TR.
108843 2000-07-31  Paul Eggert  <eggert@twinsun.com>
108845         * lib/quotearg.c (quotearg_n_options): Don't make the initial
108846         slot vector a constant, since it might get modified.
108848 2000-07-31  Jim Meyering  <meyering@lucent.com>
108850         * lib/xmalloc.c: Use `virtual memory exhausted', not
108851         `Memory exhausted'.
108852         * lib/obstack.c (print_and_abort): Likewise.
108854 2000-07-30  Paul Eggert  <eggert@twinsun.com>
108856         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
108857         buffer, so that the caller can always quote one small
108858         component of a "memory exhausted" message in slot 0.
108859         From a suggestion by Jim Meyering.
108861 2000-07-30  Jim Meyering  <meyering@lucent.com>
108863         * lib/makepath.c (make_path): Quote the other instance, too.
108865         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
108866         (STATIC_BUF_SIZE): Define.
108867         (quotearg_n_options): Use only statically allocated storage when
108868         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
108869         than STATIC_BUF_SIZE.
108871 2000-07-29  Jim Meyering  <meyering@lucent.com>
108873         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
108874         * lib/dirname.c (dir_name): Likewise.
108876         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
108877         `/'.
108879         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
108880         (dir_name): Assert that there are no trailing slashes.
108882 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
108884         * lib/mbswidth.h (mbswidth): Add a flags argument.
108885         (mbswidth): New declaration.
108886         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
108887         * lib/mbswidth.c (mbswidth): Add a flags argument.
108888         (mbsnwidth): New function.
108890 2000-07-24  Jim Meyering  <meyering@lucent.com>
108892         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
108894 2000-07-23  Paul Eggert  <eggert@twinsun.com>
108896         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
108898 2000-07-23  Paul Eggert  <eggert@twinsun.com>
108900         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
108901         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
108902         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
108903         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
108904         invoke multibyte primitives.
108906 2000-07-23  Paul Eggert  <eggert@twinsun.com>
108908         * lib/quotearg.c:
108909         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
108910         so that mbstate_t is always defined.
108912         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
108913         be 1 in at least one GCC installation, and this configuration
108914         error is likely to be common.  Ignoring MB_LEN_MAX hurts
108915         performance on hosts that have mbrtowc but have only unibyte
108916         locales, but I assume these hosts are rare.
108918 2000-07-23  Paul Eggert  <eggert@twinsun.com>
108920         * lib/mbswidth.c (_XOPEN_SOURCE):
108921         Don't define; this causes problems on Solaris 7.
108922         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
108924 2000-07-23  Jim Meyering  <meyering@lucent.com>
108926         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
108927         too: getgrgid, getpwuid, getuid.
108929 2000-07-23  Jim Meyering  <meyering@lucent.com>
108931         * lib/basename.c (base_name): Add an assertion.
108933 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
108935         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
108936         shadow its mbsinit function.
108938 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
108940         * lib/mbswidth.h: New file.
108941         * lib/mbswidth.c: New file.
108942         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
108943         (noinst_HEADERS): Add mbswidth.h.
108945 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
108947         * lib/config.charset: Add support for FreeBSD. Improve support for
108948         HP-UX and IRIX 6.
108950 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
108952         * m4/mbswidth.m4: New file.
108953         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
108955 2000-07-15  Jim Meyering  <meyering@lucent.com>
108957         * lib/makepath.c: Include quote.h.
108958         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
108959         corresponding argument in a `quote (...)' call.
108960         Give better diagnostics.
108962         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
108963         (noinst_HEADERS): Add quote.h.
108965         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
108966         from tar's src/misc.c.
108967         * lib/quote.h: New file.  Prototypes for same.
108969 2000-07-14  Paul Eggert  <eggert@twinsun.com>
108971         From a suggestion by Bruno Haible.
108972         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
108973         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
108974         to decide whether to define the BeOS workaround macro;
108975         this adjusts to the change to AC_MBSTATE_T.
108977 2000-07-14  Jim Meyering  <meyering@lucent.com>
108979         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
108980         jm_AC_TYPE_UINTMAX_T.
108982 2000-07-13  Paul Eggert  <eggert@twinsun.com>
108984         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
108986         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
108987         quotearg_buffer_restyled): Add support for
108988         clocale_quoting_style.  Undo previous change to
108989         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
108990         and "{RIGHT QUOTATION MARK}" msgids.
108992 2000-07-10  Paul Eggert  <eggert@twinsun.com>
108994         From a suggestion by Bruno Haible.
108995         * m4/mbstate_t.m4 (AC_MBSTATE_T):
108996         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
108997         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
108998         and mbstate_t, to a single-part test that simply defines mbstate_t.
108999         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
109000         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
109002 2000-07-10  Jim Meyering  <meyering@lucent.com>
109004         * m4/strerror_r.m4: Mirror the correction made in autoconf.
109006         * m4/gnu-source.m4: Output to confdefs.h directly.
109007         Suggestion from Akim Demaille.
109009 2000-07-09  Paul Eggert  <eggert@twinsun.com>
109011         The old behavior of quoting `like this' doesn't look good with
109012         newer, ISO-style fonts.  See:
109013         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
109015         Instead, quote "like this" by default.  Let the translator
109016         tailor the locale-specific quoting behavior by providing
109017         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
109019         * lib/quotearg.c (N_): New macro.
109020         (gettext_default): New function.
109021         (quotearg_buffer_restyled): Use
109022         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
109023         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
109025 2000-07-09  Jim Meyering  <meyering@lucent.com>
109027         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
109028         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
109030         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
109031         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
109033 2000-07-09  Jim Meyering  <meyering@lucent.com>
109035         * lib/Most files: Update copyright dates to include 2000.
109037 2000-07-08  Jim Meyering  <meyering@lucent.com>
109039         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
109040         if not defined.
109041         (xgethostname): Remove now-unnecessary #ifdef.
109042         Move declaration of `err' into loop where it's used.
109044 2000-07-05  Paul Eggert  <eggert@twinsun.com>
109045         and Bruno Haible  <haible@clisp.cons.org>
109047         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
109048         only if the test for an object-type mbstate_t fails.  This
109049         prevents us from mistakenly reporting that mbstate_t is a
109050         system object type after we "#define mbstate_t int" to work
109051         around its lack.
109053 2000-07-05  Paul Eggert  <eggert@twinsun.com>
109054         and Bruno Haible  <haible@clisp.cons.org>
109056         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
109058 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
109060         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
109061         to strerror_r.
109062         Include <ctype.h> for use of isalpha.
109064 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
109066         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
109067         by allocating a larger buffer. Test the gethostname return value for
109068         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
109069         returns an error and ENAMETOOLONG isn't defined.
109071 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
109073         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
109074         dimension.
109076 2000-07-04  Jim Meyering  <meyering@lucent.com>
109078         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
109079         of the deprecated AC_CHECKING.
109081 2000-07-04  Jim Meyering  <meyering@lucent.com>
109083         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
109084         Reported by Bruno Haible.
109086 2000-07-04  Jim Meyering  <meyering@lucent.com>
109088         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
109089         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
109090         lacks mbrtowc.
109092 2000-07-03  Paul Eggert  <eggert@twinsun.com>
109094         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
109095         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
109097 2000-07-03  Paul Eggert  <eggert@twinsun.com>
109098         and Bruno Haible  <haible@clisp.cons.org>
109100         * lib/quotearg.c (mbrtowc):
109101         Assign to *pwc, and return 1 only if result is nonzero.
109102         (iswprint): Use ISPRINT when substituting our own mbrtowc.
109104 2000-07-03  Jim Meyering  <meyering@lucent.com>
109106         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
109108 2000-07-03  Jim Meyering  <meyering@lucent.com>
109110         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
109111         This is necessary to get a definition of e.g., UTMP_FILE on
109112         HP-UX 10.20.
109113         From Bob Proulx.
109115 2000-07-02  Jim Meyering  <meyering@lucent.com>
109117         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
109119         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
109120         AC_LIBOBJ(function_name).
109121         * m4/chown.m4: Likewise.
109122         * m4/fnmatch.m4: Likewise.
109123         * m4/ftruncate.m4: Likewise.
109124         * m4/getgroups.m4: Likewise.
109125         * m4/getline.m4: Likewise.
109126         * m4/group-member.m4: Likewise.
109127         * m4/jm-macros.m4: Likewise.
109128         * m4/lstat.m4: Likewise.
109129         * m4/malloc.m4: Likewise.
109130         * m4/memcmp.m4: Likewise.
109131         * m4/nanosleep.m4: Likewise.
109132         * m4/putenv.m4: Likewise.
109133         * m4/realloc.m4: Likewise.
109134         * m4/regex.m4: Likewise.
109135         * m4/stat.m4: Likewise.
109136         * m4/strftime.m4: Likewise.
109138 2000-07-02  Jim Meyering  <meyering@lucent.com>
109140         * lib/quotearg.c (mbstate_t): Don't define here.
109142 2000-07-02  Jim Meyering  <meyering@lucent.com>
109144         * lib/nanosleep.c (SIGCONT): Define if not already defined.
109146 2000-07-01  Jim Meyering  <meyering@lucent.com>
109148         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
109150 2000-07-01  Jim Meyering  <meyering@lucent.com>
109152         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
109153         problem.
109155 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
109157         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
109158         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
109160 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
109162         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
109163         per change in ../m4/ls-mntd-fs.m4.
109164         (read_filesystem_list): Ignore symbolic links.
109166 2000-06-29  Jim Meyering  <meyering@lucent.com>
109168         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
109169         for declaration of strcmp.
109171         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
109173         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
109174         Avoid warning by casting result to `char *' to remove `const'.
109176 2000-06-28  Jim Meyering  <meyering@lucent.com>
109178         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
109179         included by quotearg.c, for which we perform this test.  From
109180         Bruno Haible.
109182 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
109184         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
109185         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
109186         <utmpx.h> exists, put readutmp.o into LIBOBJS.
109188 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
109190         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
109192 2000-06-26  Paul Eggert  <eggert@twinsun.com>
109194         savedir now sets errno on failure and invokes xmalloc to get memory.
109195         Fix a couple of other minor bugs while we're at it.
109197         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
109198         (NAMLEN): Remove macro.
109199         (malloc, realloc): Remove decls.
109200         (stpcpy): Likewise.
109201         ("xalloc.h"): Include.
109202         (NAME_SIZE_DEFAULT): New macro.
109203         (savedir): Use xmalloc / xrealloc to allocate memory.
109204         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
109205         Skip "" directory entries.
109206         Use strlen to calculate directory entry length, since the old method
109207         is rarely used these days and isn't worth supporting.
109208         Don't use a pointer after freeing it.
109209         Check for integer overflow when calculating allocation size.
109210         Use memcpy to copy entries, instead of stpcpy.
109211         Set errno properly when returning NULL.
109212         Check for readdir error.
109214 2000-06-26  Jim Meyering  <meyering@lucent.com>
109216         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
109218 2000-06-25  Jim Meyering  <meyering@lucent.com>
109220         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
109221         Linux header bug when _XOPEN_SOURCE is defined to 500.
109223 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
109225         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
109226         deficiency.
109228 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
109230         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
109231         Include xalloc.h.
109232         Don't include <stdlib.h>.  Don't declare malloc, realloc.
109234 2000-06-24  Jim Meyering  <meyering@lucent.com>
109236         * m4/strerror_r.m4: Revive this file -- to try out an experimental
109237         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
109238         for which strerror does return char*, but which lacks a conveniently
109239         accessible declaration of the function.  If the compile-test says
109240         strerror_r doesn't work, then resort to a `run'-test that works on
109241         BeOS and segfaults on DEC Unix.
109243 2000-06-24  Jim Meyering  <meyering@lucent.com>
109245         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
109247 2000-06-23  Paul Eggert  <eggert@twinsun.com>
109249         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
109250         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
109252 2000-06-23  Paul Eggert  <eggert@twinsun.com>
109254         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
109255         (mbrtowc, mbstate_t): Define substitutes if
109256         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
109257         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
109258         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
109260 2000-06-23  Jim Meyering  <meyering@lucent.com>
109262         * m4/afs.m4: Add missing AC_MSG_RESULT.
109263         Reported by Bruno Haible.
109265         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
109266         Suggestion from Bruno Haible.
109268 2000-06-23  Jim Meyering  <meyering@lucent.com>
109270         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
109272 2000-06-21  Jim Meyering  <meyering@lucent.com>
109274         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
109276 2000-06-21  Jim Meyering  <meyering@lucent.com>
109278         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
109279         (noinst_HEADERS): Add getstr.h.
109281         * lib/getline.c (getstr): Move into a separate file.
109282         * lib/getstr.c (getstr): New file, extracted from getline.c, with
109283         the following changes: new parameter, delim2; both delim[12]
109284         parameters have type `int', not `char'.  The latter would lose
109285         with 8-bit delimiters.
109286         * lib/getstr.h: New file.
109288 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
109290         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
109291         than 1024, return a memory chunk of least possible size, instead
109292         of size PATH_MAX + 2. In the loop, increment the size proportionally.
109293         Use free/xmalloc instead of xrealloc to avoid copying for very long
109294         paths.
109296 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
109298         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
109299         the empty string.
109301 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
109303         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
109304         address, not strdup.  Include <stdlib.h> and don't declare free().
109306 2000-06-19  Jim Meyering  <meyering@lucent.com>
109308         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
109310 2000-06-18  Jim Meyering  <meyering@lucent.com>
109312         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
109314         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
109315         `checking whether...' message to be consistent with that of the
109316         lstat test.
109318 2000-06-18  Jim Meyering  <meyering@lucent.com>
109320         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
109321         Besides, these days every porting target provides a mkdir function.
109323         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
109324         needed. (this snippet comes from src/system.h).
109326 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
109328         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
109330 2000-06-15  Paul Eggert  <eggert@twinsun.com>
109332         * lib/human.c (adjust_value): New function.
109333         (human_readable_inexact): Apply rounding style even when
109334         printing approximate values.
109336 2000-06-14  Paul Eggert  <eggert@twinsun.com>
109338         * lib/human.c (human_readable_inexact): Allow an input block
109339         size that is not a multiple of the output block size, and vice versa.
109340         Reported by Piergiorgio Sartor.
109342 2000-06-14  Paul Eggert  <eggert@twinsun.com>
109344         * lib/getdate.y (get_date): Apply relative times after time
109345         zone indicator, not before.  Reported by Todd A. Jacobs.
109347 2000-06-13  Jim Meyering  <meyering@lucent.com>
109349         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
109351         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
109353 2000-06-12  Paul Eggert  <eggert@twinsun.com>
109355         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
109357 2000-06-12  Jim Meyering  <meyering@lucent.com>
109359         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
109360         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
109361         optional argument.
109362         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
109363         the optional argument, `lib'.
109365 2000-06-08  Jim Meyering  <meyering@lucent.com>
109367         * m4/largefile.m4: Remove file (now that it's part of autoconf).
109369 2000-06-04  Paul Eggert  <eggert@twinsun.com>
109371         Rewrite largefile configuration so that we don't need to run
109372         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
109373         AC_CANONICAL_HOST in configure.in -- jmm]
109375         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
109376         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
109377         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
109378         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
109379         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
109380         All uses changed.
109381         Instead of inspecting the output of getconf, try to compile the
109382         test program without and with the macro definition.
109383         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
109384         for getconf.  Instead, check for the needed flags by compiling
109385         test programs.
109387 2000-06-04  Paul Eggert  <eggert@twinsun.com>
109389         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
109391 2000-06-04  Jim Meyering  <meyering@lucent.com>
109393         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
109394         SunOS 4.1.4 for which gid_t is an unsigned type.
109396 2000-06-03  Jim Meyering  <meyering@lucent.com>
109398         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
109399         now that autoconf requires that.
109401         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
109402         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
109403         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
109405 2000-06-03  Jim Meyering  <meyering@lucent.com>
109407         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
109409 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
109411         * m4/glibc21.m4: New file.
109412         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
109414 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
109416         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
109417         newer, don't install charset.alias.
109418         * lib/config.charset: Change the Linux/glibc rules so they become empty
109419         on glibc-2.1 or newer.
109421 2000-06-02  Jim Meyering  <meyering@lucent.com>
109423         * lib/mountlist.c: Back out last change.  Instead, do this...
109424         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
109425         me_dummy member using the same `ignore'-testing code.
109426         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
109427         fs_type strings.
109428         From Mark D. Roth.
109430 2000-05-29  Jim Meyering  <meyering@lucent.com>
109432         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
109433         mounts with the `ignore' attribute.  Based on a patch from
109434         Mark D. Roth.
109436 2000-05-28  Jim Meyering  <meyering@lucent.com>
109438         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
109439         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
109440         * m4/stat.m4: Likewise.
109441         * m4/lstat.m4: Likewise.
109442         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
109444         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
109445         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
109447 2000-05-26  Jim Meyering  <meyering@lucent.com>
109449         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
109451 2000-05-24  Jim Meyering  <meyering@lucent.com>
109453         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
109454         autoconf requires that.
109455         * m4/lib-check.m4: Likewise.
109456         * m4/jm-macros.m4: Likewise.
109457         * m4/strftime.m4: Likewise.
109459         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
109460         AC_CHECK_DECLS, now that autoconf requires that.
109462 2000-05-22  Jim Meyering  <meyering@lucent.com>
109464         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
109465         * m4/lstat.m4: Likewise.
109467 2000-05-22  Jim Meyering  <meyering@lucent.com>
109469         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
109471 2000-05-20  Jim Meyering  <meyering@lucent.com>
109473         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
109474         (jm_PREREQ): Use it.
109476 2000-05-18  Jim Meyering  <meyering@lucent.com>
109478         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
109479         back, too, since it may have been modified by allocate_entry.
109480         (hash_delete): Rewrite to use neither the assignment operator
109481         nor the comma operator in an if-expression.
109483 2000-05-15  Paul Eggert  <eggert@twinsun.com>
109485         * lib/closeout.c:
109486         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
109487         Remove; no longer needed.
109488         "quotearg.h": Add include.
109489         (file_name): Do not bother to explicitly initialize to NULL; it's less
109490         efficient on some hosts.
109491         (close_stdout_status): Remove test as to whether stdout was already
109492         closed; it breaks for the case "echo x | sort >&-".
109493         Quote file name colons.
109494         Do not assume that _("write error") lacks format strings.
109496 2000-05-15  Jim Meyering  <meyering@lucent.com>
109498         * lib/version-etc.c (version_etc_copyright): Update the copyright
109499         string used in all --version output.
109501 2000-05-14  Jim Meyering  <meyering@lucent.com>
109503         * lib/closeout.c (close_stdout_set_file_name): New function.
109504         (close_stdout_status): Use new file-scoped global.
109505         Return right away if fstat says the stdout file descriptor is invalid.
109506         * lib/closeout.h (close_stdout_set_file_name): Declare.
109508 2000-05-10  Jim Meyering  <meyering@lucent.com>
109510         * lib/closeout.c [default_exit_status]: New file-scoped variable.
109511         (close_stdout_set_status): New function.
109512         * lib/closeout.h (close_stdout_set_status): Declare.
109514 2000-05-09  Jim Meyering  <meyering@lucent.com>
109516         * m4/gettext.m4: Rename this...
109517         * m4/libintl.m4: ...to this.
109519 2000-05-08  Jim Meyering  <meyering@lucent.com>
109521         * lib/long-options.c: Don't include closeout.h.
109522         (parse_long_options): Don't call close_stdout for --version.
109524 2000-05-06  Paul Eggert  <eggert@twinsun.com>
109526         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
109527         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
109528         2.1.3 bug.  This avoids a clash when files like regex.c define
109529         _GNU_SOURCE.
109531 2000-05-06  Jim Meyering  <meyering@lucent.com>
109533         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
109534         (AC_REPLACE_FUNCS): Add strnlen.
109536         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
109537         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
109539         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
109540         AC_SEARCH_LIBS call for nanosleep.
109541         (LIB_NANOSLEEP): Set and AC_SUBST.
109543 2000-05-06  Jim Meyering  <meyering@lucent.com>
109545         * lib/strnlen.c: Undefine __strnlen and strnlen.
109546         [!weak_alias]: Define __strnlen to strnlen.
109548         * lib/atexit.c: New file, from libiberty.
109550 2000-05-06  Jim Meyering  <meyering@lucent.com>
109552         * lib/closeout.c (close_stdout_status): Also check for errors on the
109553         stderr stream.
109555 2000-05-05  Jim Meyering  <meyering@lucent.com>
109557         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
109558         AC_SEARCH_LIBS call for clock_gettime.
109559         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
109561         * m4/search-libs.m4: Update from autoconf.
109563         su doesn't work on Solaris 2.6.
109564         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
109565         <shadow.h>.  Reported by Dragos Harabor.
109567 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
109569         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
109570         memcpy instead of xmalloc, xrealloc, path_concat.
109571         (locale_charset): Treat empty environment variables as absent.
109572         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
109574 2000-05-04  Jim Meyering  <meyering@lucent.com>
109576         * lib/getopt.c: Update from glibc.
109577         * lib/obstack.c: Likewise.
109578         * lib/obstack.h: Likewise.
109579         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
109580         file
109582         * lib/regex.h: Likewise.
109583         * lib/strndup.c: Likewise.
109584         * lib/strnlen.c: New file, from glibc.
109586 2000-05-03  Jim Meyering  <meyering@lucent.com>
109588         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
109590 2000-05-02  Paul Eggert  <eggert@twinsun.com>
109592         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
109593         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
109594         compile-time test, rather than inspecting host and OS, to
109595         decide whether to define _LARGEFILE_SOURCE.
109597 2000-05-01  Jim Meyering  <meyering@lucent.com>
109599         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
109601         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
109602         Based on a patch from Bruno Haible.
109604 2000-05-01  Jim Meyering  <meyering@lucent.com>
109606         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
109608 2000-04-29  Jim Meyering  <meyering@lucent.com>
109610         * lib/path-concat.c: Declare strdup only if it's not defined.
109611         * lib/canon-host.c: Likewise.
109613 2000-04-28  Jim Meyering  <meyering@lucent.com>
109615         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
109616         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
109617         is included first, then limits.h is included by locale.h by libintl.h.
109618         From John David Anglin.
109620 2000-04-25  Jim Meyering  <meyering@lucent.com>
109622         * lib/makepath.c (S_IRWXUGO): Define.
109623         (make_path): Always perform explicit chmod if MODE specifies any
109624         of the `special' permission bits.  Prompted by a bug report against
109625         install from Mate Wierdl and Joost van Baal.
109627 2000-04-18  Jim Meyering  <meyering@lucent.com>
109629         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
109630         (jm_PREREQ): Use it.
109632 2000-04-18  Jim Meyering  <meyering@lucent.com>
109634         * lib/README: New file.
109636         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
109637         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
109639 2000-04-17  Jim Meyering  <meyering@lucent.com>
109641         Get it right :-)
109642         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
109643         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
109644         Suggestion from Akim Demaille.
109646 2000-04-17  Jim Meyering  <meyering@lucent.com>
109648         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
109649         the definition of it to rpl_strftime also defined-away the system's
109650         declaration.
109652 2000-04-15  Jim Meyering  <meyering@lucent.com>
109654         Use `C' to denote so-called `contiguous' files, the same way
109655         that tar does.
109656         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
109657         (ftypelet): Use S_ISCTG.
109658         From Michael Deutschmann.
109660 2000-04-14  Jim Meyering  <meyering@lucent.com>
109662         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
109663         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
109664         clobbered.
109666 2000-04-14  Jim Meyering  <meyering@lucent.com>
109668         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
109670 2000-04-13  Jim Meyering  <meyering@lucent.com>
109672         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
109673         AH_VERBATIM to insert required #ifndef into config.h.in.
109674         Suggestion from Akim Demaille.
109676 2000-04-12  Jim Meyering  <meyering@lucent.com>
109678         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
109679         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
109680         Christian Krackowizer.
109682         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
109683         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
109684         (AC_SYS_LARGEFILE): Require.
109685         (AM_C_PROTOTYPES): Require.
109687 2000-04-08  Jim Meyering  <meyering@lucent.com>
109689         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
109690         names don't conflict.  Reported by Eli Zaretskii.
109692 2000-04-07  Jim Meyering  <meyering@lucent.com>
109694         * lib/putenv.c: Move inclusion of errno.h so it follows that of
109695         sys/types.h, to work around system header problems on AIX 3.2.5.
109696         From Bruno Haible.
109698 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
109700         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
109701         bug.  Deal with the different error behavior of Irix iconv.
109703 2000-04-05  Paul Eggert  <eggert@twinsun.com>
109705         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
109706         IRIX if the installer said otherwise.
109708 2000-04-05  Jim Meyering  <meyering@lucent.com>
109710         Portability tweaks required for ultrix4.3.
109711         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
109712         (jm_CHECK_DECLS): Add getutent to the list of functions.
109713         (_jm_DECL_HEADERS): Add utmpx.h.
109714         From John David Anglin.
109716         * m4/strftime.m4: Back out the 2000-04-02 change.
109717         Instead of that change, simply undefine putenv in the test program.
109719 2000-04-05  Jim Meyering  <meyering@lucent.com>
109721         Portability tweaks required for ultrix4.3.
109722         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
109723         getutent.
109724         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
109725         * lib/canon-host.c: Declare strdup.
109726         * lib/path-concat.c: Likewise.
109727         From John David Anglin.
109729 2000-04-04  Jim Meyering  <meyering@lucent.com>
109731         Be more DOS 8.3-friendly.
109732         * lib/ref-add.sin: Renamed from ref-add.sed.in.
109733         * lib/ref-del.sin: Renamed from ref-del.sed.in.
109734         * lib/Makefile.am: Reflect renaming.
109735         Reported by Eli Zaretskii.
109737         Use a temporary file name that won't clash with `charset.alias'
109738         in the DOS 8.3 name space.
109739         * lib/Makefile.am (charset_tmp): Define.
109740         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
109741         (uninstall-local): Likewise.
109742         Reported by Eli Zaretskii.
109744 2000-04-03  Jim Meyering  <meyering@lucent.com>
109746         * m4/gettext.m4: Fix typo in comment.
109748         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
109749         textutils/configure.in).  Suggestion from Paul Eggert.
109750         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
109752 2000-04-02  Paul Eggert  <eggert@twinsun.com>
109754         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
109755         variable in the shell rather than using putenv, which isn't
109756         portable.  This avoids the configure-time inter-test dependency
109757         on the potentially-renamed putenv function.
109759 2000-03-30  Paul Eggert  <eggert@twinsun.com>
109761         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
109762         before checking struct stat.st_blksize, so that
109763         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
109765 2000-03-29  Paul Eggert  <eggert@twinsun.com>
109767         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
109768         since strftime.c uses HAVE_STRFTIME to decide whether to use
109769         the underlying strftime.
109771 2000-03-29  Paul Eggert  <eggert@twinsun.com>
109773         * lib/time/strftime.c (my_strftime): Make sure we call the system
109774         strftime, not ourselves, when invoking the underlying strftime.
109776 2000-03-24  Jim Meyering  <meyering@lucent.com>
109778         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
109779         (charset_alias): Define.
109780         (install-exec-local): Factor out common code.
109781         (uninstall-local): Split lines longer than 80.
109782         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
109783         (SUFFIXES): Define.
109784         (.sed.in.sed): New rule.  Don't redirect directly to $@.
109785         (CLEANFILES): Add ref-add.sed and ref-del.sed.
109787 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
109789         * lib/config.charset: Output a line containing "Packages using this
109790         file".
109791         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
109792         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
109793         ref-del.sed): New rules.
109795 2000-03-17  Jim Meyering  <meyering@lucent.com>
109797         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
109798         Otherwise, include <strings.h>
109800 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
109802         * lib/unicodeio.c (utf8_wctomb): New function.
109803         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
109804         format instead of in UCS-4 with platform dependent endianness.
109806 2000-03-10  Jim Meyering  <meyering@lucent.com>
109808         * m4/lib-check.m4: Look for getspnam in -lgen, too.
109809         From Marco Franzen.
109811 2000-03-07  Paul Eggert  <eggert@twinsun.com>
109813         * lib/savedir.c (savedir): Work even if directory size is
109814         negative; this can happen with some screwy NFS configurations.
109816 2000-03-06  Jim Meyering  <meyering@lucent.com>
109818         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
109819         if it's NULL (because we ran out of memory).  From Bruno Haible.
109821 2000-03-05  Jim Meyering  <meyering@lucent.com>
109823         * lib/localcharset.c ("path-concat.h"): Include.
109824         (get_charset_aliases): Use path_concat instead of ANSI string
109825         concatenation.
109827         * lib/unicodeio.h (PARAMS): Define.
109828         Use it to guard prototype.
109830 2000-03-04  Jim Meyering  <meyering@lucent.com>
109832         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
109833         for lib/localcharset.c.
109835 2000-03-04  Jim Meyering  <meyering@lucent.com>
109837         * lib/Makefile.am (install-exec-local): Create $(libdir) before
109838         installing into it.
109839         (uninstall-local): Uncomment this rule so `make distcheck' works
109840         once again.
109842         * lib/unicodeio.c (<errno.h>): Include it.
109843         (errno): Declare if not defined.
109845         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
109847         * lib/config.charset: New version, incorporating remarks from a linux
109848         i18n mailing list.  From Bruno Haible.
109850 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
109852         * m4/codeset.m4: New file.
109853         * m4/iconv.m4: New file.
109854         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
109856 2000-03-03  Jim Meyering  <meyering@lucent.com>
109858         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
109860 2000-03-02  Jim Meyering  <meyering@lucent.com>
109862         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
109863         the messages come out on separate lines.
109865         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
109866         rather than jm_CHECK_DECLARATIONS.
109867         * m4/decl.m4: Remove now-unused file.
109869         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
109870         geteuid.
109872 2000-03-02  Jim Meyering  <meyering@lucent.com>
109874         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
109876 2000-03-01  Jim Meyering  <meyering@lucent.com>
109878         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
109879         * lib/unicodeio.c: Likewise.
109881 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
109883         * lib/config.charset: New file.
109884         * lib/localcharset.c: New file.
109885         * lib/unicodeio.h, lib/unicodeio.c: New files.
109886         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
109887         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
109888         (noinst_HEADERS): Add unicodeio.h.
109889         (all-local, install-exec-local, charset.alias): New targets.
109891 2000-02-28  Paul Eggert  <eggert@twinsun.com>
109893         * lib/quotearg.c (ALERT_CHAR): New macro.
109894         (quotearg_buffer_restyled): Use it.
109896 2000-02-27  Jim Meyering  <meyering@lucent.com>
109898         * m4/check-decl.m4: Add getenv to the list.
109900 2000-02-27  Jim Meyering  <meyering@lucent.com>
109902         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
109903         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
109905         * lib/backupfile.c: Guard inclusion of stdlib.h with
109906         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
109907         Declare malloc if needed.
109909         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
109910         `#ifndef HAVE_DECL..'
109911         now that autoconf always defines the HAVE_DECL_ symbols.
109912         * lib/human.c: Likewise.
109913         * lib/same.c: Likewise.
109914         * lib/strtoumax.c: Likewise.
109916         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
109917         declaration check was not run.
109918         * lib/hash.c: Likewise.
109919         * lib/human.c: Likewise.
109920         * lib/same.c: Likewise.
109921         * lib/strtoumax.c: Likewise.
109923         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
109924         `.', then first look up the entire `.'-containing string as a login
109925         name.
109927 2000-02-23  Jim Meyering  <meyering@lucent.com>
109929         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
109930         in place of my hack.
109932 2000-02-18  Paul Eggert  <eggert@twinsun.com>
109934         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
109935         (textint): New typedef.
109936         (parser_control): Member year changed from int to textint.
109937         All uses changed.
109938         (YYSTYPE): Removed; replaced by %union with int and textint members.
109939         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
109940         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
109941         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
109942         (tSNUMBER, tUNUMBER): Now of type <textintval>.
109943         (date, number, to_year): Use width of number in digits, not its value,
109944         to determine whether it's a 2-digit year, or a 2-digit time.
109945         (yylex): Store number of digits of numeric tokens.
109946         Reported by John Kendall.
109948         (parser_control): Changed from struct parser_control to typedef (for
109949         consistency).  All uses changed.
109951         (tID): Removed; not used.
109952         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
109954 2000-02-14  Paul Eggert  <eggert@twinsun.com>
109956         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
109957         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
109959 2000-02-12  Jim Meyering  <meyering@lucent.com>
109961         * lib/userspec.c (ISDIGIT): Define it.
109962         (isdigit): Remove definition.
109963         (is_number): Use ISDIGIT, not isdigit.
109964         <libintl.h>: Include.
109965         (_ and N_): Define.
109966         (parse_user_spec): Mark translatable strings.
109968 2000-02-10  Jim Meyering  <meyering@lucent.com>
109970         With these changes, nanosleep.[ch] are finally enough like the other
109971         lib/* replacement files to compile on a few more losing systems.
109973         * lib/nanosleep.h: Don't include config.h.
109974         Remove prototype from declaration of nanosleep.
109975         (PARAMS): Remove now-unneeded definition.
109976         * lib/nanosleep.c: #undef nanosleep.
109977         (rpl_nanosleep): Rename from nanosleep.
109979 2000-02-10  Jim Meyering  <meyering@lucent.com>
109981         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
109982         gnu_nanosleep to rpl_nanosleep.
109984 2000-02-09  Jim Meyering  <meyering@lucent.com>
109986         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
109987         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
109989 2000-02-08  Akim Demaille  <akim@epita.fr>
109991         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
109992         `[' and `]' and remove uses of `changequote'.
109993         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
109994         (AC_SYS_LARGEFILE): Likewise.
109995         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
109996         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
109997         of changequote.
109998         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
109999         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
110000         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
110001         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
110003 2000-02-05  Jim Meyering  <meyering@lucent.com>
110005         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
110006         Remove explicit use of AC_HEADER_TIME.  It is required by
110007         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
110008         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
110009         in autoconf whereby the expansion of the latter ended up preceding
110010         the expansion of its prerequisite, AC_HEADER_TIME.
110011         Reported by Volker Borchert.
110013 2000-02-03  Jim Meyering  <meyering@lucent.com>
110015         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
110017 2000-02-03  Jim Meyering  <meyering@lucent.com>
110019         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
110020         rather than with `#if HAVE_UTMPNAME'.
110022 2000-02-02  Jim Meyering  <meyering@lucent.com>
110024         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
110025         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
110026         Reported by Eli Zaretskii.
110028 2000-02-01  Jim Meyering  <meyering@lucent.com>
110030         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
110032 2000-01-31  Jim Meyering  <meyering@lucent.com>
110034         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
110035         functions.  Add the time.h and sys/time.h headers along with the
110036         AC_REQUIRE'ment of AC_HEADER_TIME.
110038 2000-01-31  Jim Meyering  <meyering@lucent.com>
110040         * lib/nanosleep.h (nanosleep): Guard declaration with
110041         `#if ! HAVE_DECL_NANOSLEEP'.
110042         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
110043         the declaration in that vendor's sys/timers.h.
110044         Reported by Christian Krackowizer.
110046         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
110047         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
110048         (ISPRINT): Likewise.
110049         Reported by Tom Tromey.
110051 2000-01-30  Jim Meyering  <meyering@lucent.com>
110053         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
110055         * m4/prereq.m4 (utmp_includes): Define.
110056         Check for ut_user and ut_name members in both struct utmpx
110057         and struct utmp.
110059 2000-01-30  Jim Meyering  <meyering@lucent.com>
110061         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
110062         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
110063         header files where only utmpx.ut_user is declared.
110065         * lib/readutmp.h (UT_USER): Define.
110067 2000-01-29  Jim Meyering  <meyering@lucent.com>
110069         * m4/lib-check.m4: New file containing library-related checks from
110070         fileutils and sh-utils (textutils had none).
110072 2000-01-28  Jim Meyering  <meyering@lucent.com>
110074         * m4/perl.m4: Change format of warning message to look more like that
110075         from the missing script.  Suggestion from François Pinard.
110077 2000-01-25  Jim Meyering  <meyering@lucent.com>
110079         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
110080         well as time.h in the compile check.
110081         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
110082         Fix typo in cross-compiling case: s/yes/no/.
110084 2000-01-23  Jim Meyering  <meyering@lucent.com>
110086         * m4/jm-macros.m4: Move df-related tests here from
110087         fileutils/configure.in
110089         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
110090         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
110092         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
110093         s/space/ac_fsusage_space/.
110094         (jm_FILE_SYSTEM_USAGE): Take two parameters.
110096         * m4/ftruncate.m4: New file (derived from part of
110097         fileutils/configure.in).
110098         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
110099         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
110101         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
110102         AC_SUBST these here, rather than just in sh-util/configure.in, so
110103         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
110104         all the same.
110105         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
110106         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
110107         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
110108         (AC_SUBST(POW_LIBM)): Likewise.
110109         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
110111 2000-01-23  Jim Meyering  <meyering@lucent.com>
110113         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
110114         obstack.c.
110116 2000-01-22  Jim Meyering  <meyering@lucent.com>
110118         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
110120         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
110122         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
110123         configure.in
110124         (AC_CHECK_HEADERS): Likewise for sh-utils.
110125         (AC_CHECK_HEADERS): Likewise for textutils.
110126         Merge the three lists of headers.
110128         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
110129         from fileutils' configure.in.
110131         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
110132         code. Moved tests into their own function (_jm_DECL_HEADERS) in
110133         check-decl.m4.
110135         * m4/check-decl.m4: Use #if rather than #ifdef.
110136         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
110137         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
110138         (_jm_DECL_HEADERS): Define new function.
110139         (jm_CHECK_DECLARATIONS): Require it.
110141 2000-01-22  Jim Meyering  <meyering@lucent.com>
110143         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
110144         [! HAVE_DECL_STRTOULL]: Declare strtoull.
110145         Required for some AIX systems.  Reported by Christian Krackowizer.
110146         [TESTING] (main): New function.
110148         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
110149         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
110150         letters.
110152         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
110153         iswprint.
110155         * lib/strverscmp.c (ISDIGIT): Define.
110156         (strverscmp): Use ISDIGIT, not isdigit.
110158 2000-01-19  Jim Meyering  <meyering@lucent.com>
110160         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
110161         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
110162         defines `struct timespec' in <sys/time.h>
110164         * m4/c-bs-a.m4: Remove uses of changequote altogether.
110165         Thanks to Akim for explaining.
110167 2000-01-17  Paul Eggert  <eggert@twinsun.com>
110169         * lib/nanosleep.c (nanosleep):
110170         Don't use SA_INTERRUPT to decide whether to call sigaction, as
110171         POSIX.1 doesn't require SA_INTERRUPT and some systems
110172         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
110173         it's been part of POSIX.1 since day 1 (in 1988).
110175 2000-01-17  Jim Meyering  <meyering@lucent.com>
110177         * lib/interlock: Remove unused file.  Reported by François Pinard.
110179 2000-01-16  Paul Eggert  <eggert@twinsun.com>
110181         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
110182         alert, backslash, formfeed, and vertical tab unnecessarily in
110183         shell quoting style.
110185 2000-01-16  Jim Meyering  <meyering@lucent.com>
110187         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
110188         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
110189         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
110190         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
110192 2000-01-16  Jim Meyering  <meyering@lucent.com>
110194         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
110195         because the latter didn't work.
110197 2000-01-15  Jim Meyering  <meyering@lucent.com>
110199         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
110200         (AC_REPLACE_FUNCS): Add memcpy and memset.
110201         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
110202         Add strpbrk.
110203         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
110205 2000-01-12  Jim Meyering  <meyering@lucent.com>
110207         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
110208         (jm_PREREQ): Use it.
110209         (jm_PREREQ_READUTMP): New macro.
110210         (jm_PREREQ): Use it.
110212 2000-01-11  Paul Eggert  <eggert@twinsun.com>
110214         Quote multibyte characters correctly.
110215         * m4/c-bs-a.m4: New file.
110216         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
110217         (jm_PREREQ): Use it.
110219 2000-01-11  Paul Eggert  <eggert@twinsun.com>
110221         * m4/uintmax_t.m4: Port to autoconf 2.13.
110223 2000-01-08  Jim Meyering  <meyering@ascend.com>
110225         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
110226         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
110228 2000-01-04  Jim Meyering  <meyering@ascend.com>
110230         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
110231         jm_STRUCT_DIRENT_D_TYPE.
110232         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
110233         jm_STRUCT_DIRENT_D_INO.
110234         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
110235         jm_STRUCT_UTIMBUF.
110236         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
110237         renamings.
110238         * m4/utime.m4: Likewise.
110240         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
110241         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
110243 2000-01-03  Paul Eggert  <eggert@twinsun.com>
110245         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
110246         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
110248 2000-01-02  Jim Meyering  <meyering@ascend.com>
110250         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
110251         remember if this is necessary.
110253 1999-12-26  Jim Meyering  <meyering@ascend.com>
110255         * m4/jm-macros.m4: Use it here.
110256         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
110258 1999-12-23  Jim Meyering  <meyering@ascend.com>
110260         * m4/jm-macros.m4: Check for clock_gettime (moved from
110261         fileutils/configure.in)
110262         Check for gettimeofday.
110264 1999-12-20  Jim Meyering  <meyering@ascend.com>
110266         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
110267         autoconf-2.14a-1999-12-20.
110269 1999-12-19  Jim Meyering  <meyering@ascend.com>
110271         * m4/lstat-slash.m4: New file.
110272         * m4/jm-macros.m4: Use the new macro:
110273         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
110275 1999-12-07  Jim Meyering  <meyering@ascend.com>
110277         * m4/perl.m4: Require that File::Compare be available, too.
110278         Too many systems seem to lack it.
110280         * m4/strftime.m4: Add checks for most of the cpp macros tested in
110281         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
110283 1999-11-18  Paul Eggert  <eggert@twinsun.com>
110285         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
110286         problem with the QNX 4.25 shell, which doesn't propagate exit
110287         status of failed commands inside shell assignments.
110289 1999-11-17  Jim Meyering  <meyering@ascend.com>
110291         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
110293 1999-11-07  Jim Meyering  <meyering@ascend.com>
110295         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
110297 1999-11-06  Jim Meyering  <meyering@ascend.com>
110299         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
110300         * m4/jm-macros.m4 (jm_MACROS): Use it here.
110302 1999-11-05  Jim Meyering  <meyering@ascend.com>
110304         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
110305         configure.in of textutils, fileutils, and sh-utils into this one
110306         (shared between those packages) file.
110307         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
110308         AC_STRUCT_ST_BLKSIZE.
110310 1999-11-03  Jim Meyering  <meyering@ascend.com>
110312         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
110313         of AC_CHECK_TYPE checks includes unistd.h.
110314         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
110315         Suggestion from Akim Demaille.
110317 1999-10-30  Jim Meyering  <meyering@ascend.com>
110319         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
110320         m4-quoted string.
110321         * m4/ls-mntd-fs.m4: Likewise.
110322         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
110323         * m4/jm-winsz1.m4: Likewise.
110325         * m4/const.m4: Remove file, since the fix made it into the experimental
110326         version of autoconf.
110327         * m4/mktime.m4: Likewise.
110329         * m4/check-type.m4: Remove file, now that the latest version of
110330         AC_CHECK_TYPE takes a third arg to specify additional #includes.
110332         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
110333         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
110334         AC_CHECK_TYPE.
110336 1999-10-04  Jim Meyering  <meyering@ascend.com>
110338         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
110340 1999-09-22  Paul Eggert  <eggert@twinsun.com>
110342         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
110343         2.95.1 bug with HP-UX 10.20.
110345 1999-09-17  Jim Meyering  <meyering@ascend.com>
110347         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
110348         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
110349         due to missing strdup (against sh-utils-2.0).
110351 1999-08-29  Jim Meyering  <meyering@ascend.com>
110353         * m4/jm-macros.m4: Require jm_BISON.
110354         * m4/bison.m4: New file.
110356 1999-08-17  Paul Eggert  <eggert@twinsun.com>
110358         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
110359         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
110361 1999-08-05  Jim Meyering  <meyering@ascend.com>
110363         * m4/getline.m4: Rename test file from conftestdata to conftest.data
110364         to avoid conflicts with `conftest' on 8+3 filesystems.
110365         Suggestion from Eli Zaretskii.
110367 1999-08-04  Jim Meyering  <meyering@ascend.com>
110369         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
110370         fileutils and sh-utils (textutils's getline test was inadequate).
110371         (AM_FUNC_GETLINE): Run this test.
110372         (AC_CHECK_FUNCS): Check for getdelim.
110373         Reported by Bob Proulx.
110375 1999-08-02  Jim Meyering  <meyering@ascend.com>
110377         * m4/jm-macros.m4: Add a comment.
110379 1999-08-01  Paul Eggert  <eggert@twinsun.com>
110381         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
110382         <inttypes.h> defines strtoumax as a macro (and not as a
110383         function).
110385 1999-08-01  Paul Eggert  <eggert@twinsun.com>
110387         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
110388         that we can shift, multiply and divide unsigned long long
110389         values; Ultrix cc can't do it.
110391 1999-08-01  Paul Eggert  <eggert@twinsun.com>
110393         * m4/mktime.m4: New file, which is a preview of what should appear
110394         in the next public autoconf release.
110396 1999-08-01  Paul Eggert  <eggert@twinsun.com>
110398         * m4/lfs.m4: Remove this file.
110399         * m4/largefile.m4: New file.  It contains the old contents of
110400         lfs.m4, except that all names with prefix AC_LFS have been
110401         changed to use the prefix AC_SYS_LARGEFILE instead, to be
110402         compatible with future autoconf versions.  Also, some minor m4
110403         quoting problems have been fixed.
110405 1999-08-01  Paul Eggert  <eggert@twinsun.com>
110407         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
110408         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
110409         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
110410         and simplify the shell code.
110412 1999-08-01  Jim Meyering  <meyering@ascend.com>
110414         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
110415         m4.
110417 1999-07-20  Jim Meyering  <meyering@ascend.com>
110419         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
110421 1999-07-15  Jim Meyering  <meyering@ascend.com>
110423         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
110425 1999-05-22  Jim Meyering  <meyering@ascend.com>
110427         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
110429 1999-05-20  Jim Meyering  <meyering@ascend.com>
110431         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
110432         Add a colon after each `then' in case $4 is empty.
110434 1999-05-16  Jim Meyering  <meyering@ascend.com>
110436         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
110438 1999-05-10  Jim Meyering  <meyering@ascend.com>
110440         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
110442         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
110443         AC_FUNC_MKTIME.
110445 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
110447         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
110449 1999-05-04  Paul Eggert  <eggert@twinsun.com>
110451         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
110452         not CPPFLAGS, so that linking works correctly in IRIX.
110454 1999-04-30  Paul Eggert  <eggert@twinsun.com>
110456         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
110458 1999-04-20  Paul Eggert  <eggert@twinsun.com>
110460         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
110461         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
110462         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
110463         jm_AC_TYPE_UNSIGNED_LONG_LONG.
110464         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
110466         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
110468 1999-04-20  Jim Meyering  <meyering@ascend.com>
110470         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
110471         AC_REPLACE xstroull if necessary.  From Paul Eggert.
110472         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
110474 1999-04-18  Jim Meyering  <meyering@ascend.com>
110476         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
110477         * m4/jm-macros.m4: Use it.
110479 1999-04-06  Jim Meyering  <meyering@ascend.com>
110481         * m4/strftime.m4: Remove test for %f.
110483 1999-03-29  Jim Meyering  <meyering@ascend.com>
110485         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
110486         superset of the AC_TYPE_* checks in the textutils, fileutils,
110487         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
110488         AC_TYPE_PID_T.
110490 1999-03-28  Jim Meyering  <meyering@ascend.com>
110492         * m4/jm-macros.m4: Define GNU_PACKAGE here.
110493         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
110494         replaced e.g., in the *.sh files of the sh-utils.
110496 1999-03-20  Jim Meyering  <meyering@ascend.com>
110498         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
110499         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
110500         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
110502 1999-03-19  Jim Meyering  <meyering@ascend.com>
110504         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
110506 1999-03-12  Jim Meyering  <meyering@ascend.com>
110508         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
110510 1999-03-07  Jim Meyering  <meyering@ascend.com>
110512         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
110513         declared.
110515 1999-02-17  Jim Meyering  <meyering@ascend.com>
110517         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
110518         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
110520 1999-02-07  Jim Meyering  <meyering@ascend.com>
110522         * m4/group-member.m4: New file -- extracted from sh-utils'
110523         configure.in.
110525         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
110526         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
110528 1999-02-06  Jim Meyering  <meyering@ascend.com>
110530         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
110531         * m4/fnmatch.m4: Likewise.
110532         * m4/getgroups.m4: Likewise.
110533         * m4/lstat.m4: Likewise.
110534         * m4/malloc.m4: Likewise.
110535         * m4/putenv.m4: Likewise.
110536         * m4/realloc.m4: Likewise.
110537         * m4/regex.m4: Likewise.
110538         * m4/stat.m4: Likewise.
110539         * m4/strftime.m4: Likewise.
110540         Suggestion from Alain Magloire.
110542         * m4/chown.m4: Use `.$ac_objext', not `.o'.
110543         * m4/fnmatch.m4: Likewise.
110544         * m4/getgroups.m4: Likewise.
110545         * m4/getline.m4: Likewise.
110546         * m4/lstat.m4: Likewise.
110547         * m4/malloc.m4: Likewise.
110548         * m4/memcmp.m4: Likewise.
110549         * m4/putenv.m4: Likewise.
110550         * m4/realloc.m4: Likewise.
110551         * m4/regex.m4: Likewise.
110552         * m4/stat.m4: Likewise.
110553         * m4/strftime.m4: Likewise.
110554         Suggestion from Alain Magloire.
110556         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
110557         an argument.
110559         * m4/regex.m4: Add a run-time Test for proper operation of
110560         re_compile_pattern.
110562 1999-01-31  Jim Meyering  <meyering@ascend.com>
110564         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
110566 1999-01-30  Jim Meyering  <meyering@ascend.com>
110568         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
110570         * m4/jm-mktime.m4: Make this a wrapper around the official
110571         AM_FUNC_MKTIME rather than my private copy, now that the official one
110572         is up to date.
110573         * m4/mktime.m4: Remove file.
110575         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
110576         * m4/uptime.m4: Likewise.
110577         * m4/uintmax_t.m4: Likewise.
110579 1999-01-28  Jim Meyering  <meyering@ascend.com>
110581         * m4/jm-macros.m4: Use jm_AFS.
110582         * m4/afs.m4: New file (from fileutils' configure.in).
110584         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
110585         * m4/chown.m4: Likewise.
110586         * m4/d-ino.m4: Likewise.
110587         * m4/d-type.m4: Likewise.
110588         * m4/fnmatch.m4: Likewise.
110589         * m4/getgroups.m4: Likewise.
110590         * m4/gettext.m4: Likewise.
110591         * m4/jm-mktime.m4: Likewise.
110592         * m4/jm-winsz2.m4: Likewise.
110593         * m4/lcmessage.m4: Likewise.
110594         * m4/ls-mntd-fs.m4: Likewise.
110595         * m4/malloc.m4: Likewise.
110596         * m4/memcmp.m4: Likewise.
110597         * m4/putenv.m4: Likewise.
110598         * m4/realloc.m4: Likewise.
110599         * m4/st_mtim.m4: Likewise.
110600         * m4/strftime.m4: Likewise.
110602 1999-01-16  Jim Meyering  <meyering@ascend.com>
110604         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
110605         (ARGMATCH_DIE_DECL): Define.
110607 1999-01-12  Jim Meyering  <meyering@ascend.com>
110609         * m4/Makefile.am.in: Rewrite to avoid using fmt.
110610         Reported by Lars Hecking.
110612 1999-01-10  Jim Meyering  <meyering@ascend.com>
110614         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
110615         gross kludge.
110616         * m4/inttypes_h.m4: Likewise.
110617         * m4/lstat.m4: Likewise.
110618         * m4/malloc.m4: Likewise.
110619         * m4/readdir.m4: Likewise.
110620         * m4/realloc.m4: Likewise.
110621         * m4/st_dm_mode.m4: Likewise.
110622         * m4/stat.m4: Likewise.
110623         * m4/utimbuf.m4: Likewise.
110624         * m4/utimes.m4: Likewise.
110626         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
110627         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
110628         comments in config.h.in are meaningful.
110630         * m4/jm-macros.m4: Require autoconf-2.13 here.
110632         * m4/regex.m4: By default, don't use the included regex.c on systems
110633         with glibc 2.  Suggestion from Uli Drepper.
110635 1999-01-02  Jim Meyering  <meyering@ascend.com>
110637         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
110639 1998-12-18  Jim Meyering  <meyering@ascend.com>
110641         * m4/Makefile.am.in (Makefile.am): Simplify rule.
110642         Based on a suggestion from Lars Hecking.
110644 1998-11-16  Paul Eggert  <eggert@twinsun.com>
110646         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
110648 1998-11-16  Jim Meyering  <meyering@ascend.com>
110650         * m4/lfs.m4: Double-quote the `uname...` expression.
110652 1998-11-14  Jim Meyering  <meyering@ascend.com>
110654         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
110655         * m4/stat.m4: Likewise.
110657 1998-11-03  Jim Meyering  <meyering@ascend.com>
110659         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
110660         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
110662 1998-10-18  Jim Meyering  <meyering@ascend.com>
110664         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
110666 1998-10-17  Jim Meyering  <meyering@ascend.com>
110668         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
110669         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
110670         calls for those previously hard-coded headers.  Instead, take a new
110671         parameter.
110672         (jm_CHECK_DECLARATIONS): Reflect interface change.
110673         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
110674         (jm_CHECK_DECL_LOCALTIME_R): New macro.
110676         * m4/mktime.m4: Test for spring-forward gap before long-running test.
110678 1998-10-14  Jim Meyering  <meyering@ascend.com>
110680         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
110681         instead of "TZ=America/Vancouver".  From Paul Eggert.
110683 1998-10-11  Jim Meyering  <meyering@ascend.com>
110685         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
110686         This adds a test for a recently added compatibility fix for mktime.c.
110687         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
110689 1998-09-27  Jim Meyering  <meyering@ascend.com>
110691         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
110693         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
110694         ../configure.in, including a change from Gordon Matzigkeit to allow
110695         cross-compiling for the Hurd.
110697         * m4/glibc.m4: New file/macro to test for the GNU C Library
110698         versions 1 and 2.  From Gordon Matzigkeit.
110699         Indent.
110701 1998-09-21  Jim Meyering  <meyering@ascend.com>
110703         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
110705 1998-08-18  Paul Eggert  <eggert@twinsun.com>
110707         Port nanosecond-resolution times to UnixWare 2.1.2 and
110708         pedantic Solaris 2.6.
110710         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
110711         AC_STRUCT_ST_MTIM.
110712         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
110713         Generate name of ns member, instead of just 1 or undef.
110714         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
110716 1998-08-15  Jim Meyering  <meyering@ascend.com>
110718         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
110719         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
110720         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
110721         instead of jm_TYPE_SSIZE_T.
110723 1998-08-12  Jim Meyering  <meyering@ascend.com>
110725         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
110727 1998-08-02  Jim Meyering  <meyering@ascend.com>
110729         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
110730         in acconfig.h manually.
110732 1998-07-31  Paul Eggert  <eggert@twinsun.com>
110734         * m4/st_mtim.m4: New file.
110736 1998-07-28  Jim Meyering  <meyering@ascend.com>
110738         * m4/utimes.m4: Undef stat.
110740 1998-07-25  Jim Meyering  <meyering@ascend.com>
110742         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
110743         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
110745 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
110747         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
110748         uid and gid actually remain unchanged.
110750 1998-07-07  Jim Meyering  <meyering@ascend.com>
110752         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
110754 1998-07-04  Jim Meyering  <meyering@ascend.com>
110756         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
110757         to prove that this macro can be used in packages without regex.c.
110759 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
110761         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
110762         is to be used.
110764 1998-07-03  Jim Meyering  <meyering@ascend.com>
110766         * m4/gettext.m4: Add -lintl if it's found to be necessary.
110768         * m4/gettext.m4: New file -- from gettext-0.10.35.
110769         * m4/lcmessage.m4: Likewise.
110770         * m4/progtest.m4: Likewise.
110772         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
110773         * m4/jm-macros.m4: Require the new macro.
110775 1998-06-29  Jim Meyering  <meyering@ascend.com>
110777         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
110778         for the definition of NGROUPS (used in a system header included
110779         by sys/mount.h).
110781 1998-06-28  Jim Meyering  <meyering@ascend.com>
110783         * m4/ls-mntd-fs.m4: New file.
110784         * m4/fstypename.m4: New file.
110786         * m4/jm-macros.m4: Require the new macro.
110787         * m4/jm-glibc-io.m4: New file.
110789 1998-05-19  Jim Meyering  <meyering@ascend.com>
110791         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
110792         * m4/lchown.m4: New file.
110794         * m4/Makefile.am.in: New file.
110795         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
110797 1998-05-14  Jim Meyering  <meyering@ascend.com>
110799         * m4/Makefile.am (EXTRA_DIST): Add them.
110800         * m4/jm-macros.m4: New file.
110801         * m4/utimbuf.m4: New file.
110803 1998-05-12  Jim Meyering  <meyering@ascend.com>
110805         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
110807 1998-05-11  Jim Meyering  <meyering@ascend.com>
110809         * m4/isc-posix.m4: New file.
110811 1998-05-10  Jim Meyering  <meyering@ascend.com>
110813         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
110815 1998-05-09  Jim Meyering  <meyering@ascend.com>
110817         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
110818         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
110819         with automake.
110821         * m4/ssize_t.m4: New file.
110822         * m4/mktime.m4: Remove file -- the new automake has this now.
110824 1998-04-26  Jim Meyering  <meyering@ascend.com>
110826         * m4/assert.m4: New file.
110827         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
110829 1998-04-05  Jim Meyering  <meyering@ascend.com>
110831         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
110832         (jm_PREREQ): Use it here.
110834 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
110836         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
110837         in acconfig.h.
110839 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
110841         * m4/prereq.m4: New file.
110842         * m4/error.m4: New file.
110843         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
110845 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
110847         * m4/getline.m4: Don't set am_cv_func_working_getline before the
110848         cache-check for the same variable -- that defeated the purpose of
110849         the test; the test program was never run.  This was a problem only
110850         on systems with losing getline functions -- HP-UX 10.20 is one.
110851         Reported by Bjorn Helgaas.
110853 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
110855         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
110857 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
110859         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
110861         * m4/const.m4: New file.  Use an initializer in this declaration
110862         typedef int charset[2]; const charset x;
110863         Reported by Bob Glickstein.
110865 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
110867         * m4/chown.m4: Fix reversed types on -1 args to chown.
110868         From Kaveh Ghazi.
110870 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
110872         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
110873         Add lseek and memchr.
110875         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
110876         T.E.Dickey <dickey@clark.net> said that some older preprocessors
110877         have a 20-character limit on names.
110879 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
110881         * m4/inttypes_h.m4: New file.
110882         * m4/uintmax_t.m4: New file.
110883         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
110886         -----
110888         Local Variables:
110889         coding: utf-8
110890         End:
110892         Copyright (C) 1997-2017 Free Software Foundation, Inc.
110894         Copying and distribution of this file, with or without
110895         modification, are permitted provided the copyright notice
110896         and this notice are preserved.